/* ===================================
   Dream X - Main Stylesheet
   Modern, clean design with pink accent
   =================================== */

/* === CSS RESET & BASE STYLES === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* =============================
    TOP PASSIONS DISPLAY (Sidebar/Home)
    ============================= */
.top-passions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    margin: 0 0 28px;
    align-items: flex-start;
    padding: 6px 4px 2px;
}

.top-passions span,
.top-passions .passion-display {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    font-size: .9rem;
    font-weight: 600;
    background: #fff;
    border: 2px solid #e1e8ed;
    border-radius: 26px;
    color: #253858;
    line-height: 1.1;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    transition: background .25s, border-color .25s, box-shadow .25s, transform .25s;
}

.top-passions span:hover,
.top-passions .passion-display:hover {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, #FF4DFF 0%, #D845FF 100%);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(255, 77, 255, 0.25);
}

.top-passions span:active,
.top-passions .passion-display:active {
    transform: translateY(-1px);
}

.top-passions span:focus-visible,
.top-passions .passion-display:focus-visible {
    outline: 3px solid rgba(255, 77, 255, .35);
    outline-offset: 2px;
}

/* =============================
    TRENDING POSTS COMPONENT
    ============================= */
.trending-posts {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0 0 28px;
}

.trending-posts-title {
    font-size: .85rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #2c3e50;
    margin: 0 0 4px;
}

/* New Card-based Trending Post Design */
.trending-post-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: #fff;
    border: 2px solid var(--border-color);
    border-radius: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.trending-post-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 6px 20px rgba(255, 77, 255, 0.18);
    transform: translateY(-2px);
}

.trending-post-card .avatar-sm {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FF4DFF, #A53CFF);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .95rem;
    color: #fff;
    box-shadow: 0 4px 12px rgba(255, 77, 255, 0.3);
    flex-shrink: 0;
}

.trending-post-card .avatar-sm img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.trending-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.trending-title {
    margin: 0;
    font-size: .85rem;
    font-weight: 700;
    line-height: 1.3;
    color: #111827;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.trending-user {
    margin: 0;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .03em;
    color: #6b7280;
}

.trending-stats {
    display: flex;
    gap: 8px;
    font-size: .7rem;
    color: #9ca3af;
    margin-top: 2px;
}

.trending-stat {
    display: flex;
    align-items: center;
    gap: 3px;
}

.view-btn {
    flex-shrink: 0;
    text-decoration: none;
    font-size: .7rem;
    font-weight: 700;
    color: var(--primary-color);
    padding: 6px 14px;
    border-radius: 20px;
    border: 2px solid var(--primary-color);
    background: #fff;
    transition: all 0.25s ease;
    white-space: nowrap;
}

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

/* Legacy support for old class names */
.trending-item {
    display: grid;
    grid-template-columns: 46px 1fr;
    gap: 12px;
    align-items: flex-start;
    padding: 6px 4px 10px;
    border-radius: 12px;
    transition: background .25s, box-shadow .25s;
}

.trending-item:hover {
    background: #fff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.trending-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FF4DFF, #A53CFF);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .9rem;
    color: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .15);
}

.trending-content {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.trending-author {
    margin: 0;
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: #6b7280;
}

.trending-view {
    align-self: flex-start;
    text-decoration: none;
    font-size: .7rem;
    font-weight: 600;
    color: var(--primary-color);
    padding: 4px 10px;
    border-radius: 20px;
    border: 2px solid var(--primary-color);
    background: #fff;
    transition: background .25s, color .25s;
}

.trending-view:hover {
    background: var(--primary-color);
    color: #fff;
}

:root {
    /* 🎨 DREAM X CORE COLOR PALETTE */
    
    /* 🌌 Background / Space Tones */
    --bg-midnight-void: #0B0A14;
    /* Midnight Void */
    --bg-deep-galaxy: #141022;
    /* Deep Galaxy */
    --bg-cosmic-shadow: #1E1630;
    /* Cosmic Shadow */
    
    /* 💜 Neon Pink Side (Left Stroke) */
    --primary-color: #FF4DFF;
    /* Electric Fuchsia (Primary) */
    --primary-hover: #D845FF;
    /* Neon Orchid */
    --primary-light: #A53CFF;
    /* Soft Magenta Glow */
    --primary-dark: #D845FF;
    /* Darker variant */
    
    /* 💙 Neon Blue Side (Right Stroke) */
    --cyan-color: #3FD6FF;
    /* Cyber Cyan (Primary) */
    --cyan-hover: #2BB6FF;
    /* Sky Neon */
    --cyan-light: #6AE6FF;
    /* Icy Glow Blue */
    --cyan-dark: #2BB6FF;
    /* Darker variant */
    
    /* Purple (Center Intersection) - Derived from palette */
    --secondary-color: #A53CFF;
    /* Soft Magenta Glow as secondary */
    --secondary-hover: #D845FF;
    /* Neon Orchid */
    --purple-light: #6AE6FF;
    /* Icy Glow Blue */
    --purple-dark: #2BB6FF;
    /* Sky Neon */
    
    /* Cosmic Background */
    --cosmic-bg: #0B0A14;
    /* Midnight Void */
    --cosmic-bg-light: #141022;
    /* Deep Galaxy */
    
    /* Logo-Inspired Gradients */
    --gradient-primary: linear-gradient(135deg, #FF4DFF 0%, #A53CFF 100%);
    /* Electric Fuchsia to Soft Magenta */
    --gradient-cyan: linear-gradient(135deg, #3FD6FF 0%, #2BB6FF 50%, #6AE6FF 100%);
    /* Cyber Cyan to Icy Glow */
    --gradient-x-logo: linear-gradient(135deg, #FF4DFF 0%, #A53CFF 50%, #3FD6FF 100%);
    /* Full X logo gradient */
    --gradient-secondary: linear-gradient(135deg, #3FD6FF 0%, #A53CFF 50%, #FF4DFF 100%);
    --gradient-animated: linear-gradient(-45deg, #3FD6FF, #2BB6FF, #A53CFF, #FF4DFF, #D845FF);
    /* Electric animated gradient */

    --text-dark: #1f2937;
    /* Darker gray for better contrast */
    --text-medium: #4b5563;
    /* Medium gray */
    --text-light: #6b7280;
    /* Light gray for secondary text */
    --text-lighter: #9ca3af;
    /* Lighter gray */

    --bg-light: #f9fafb;
    /* Soft white/gray background */
    --bg-white: #ffffff;
    /* Pure white */
    --bg-gray: #f3f4f6;
    /* Gray background */
    --border-color: #e5e7eb;
    /* Light border color */
    --border-focus: #fce7f3;
    /* Pink border for focus states */

    /* Success & Error Colors */
    --success-color: #10b981;
    --success-light: #d1fae5;
    --error-color: #ef4444;
    --error-light: #fee2e2;
    --warning-color: #f59e0b;
    --info-color: #3b82f6;

    /* Typography */
    --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;

    /* Spacing - More granular control */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    --spacing-3xl: 5rem;

    /* Border Radius - More options */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;
    --radius-2xl: 24px;
    --radius-full: 9999px;

    /* Shadows - Layered shadow system */
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 2px 4px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 12px 0 rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px 0 rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 16px 48px 0 rgba(0, 0, 0, 0.15);
    --shadow-2xl: 0 24px 64px 0 rgba(0, 0, 0, 0.2);
    --shadow-pink: 0 8px 24px rgba(255, 77, 255, 0.25);
    --shadow-pink-lg: 0 16px 48px rgba(255, 77, 255, 0.3);
    --shadow-cyan: 0 8px 24px rgba(63, 214, 255, 0.25);
    --shadow-cyan-lg: 0 16px 48px rgba(63, 214, 255, 0.3);
    --shadow-purple: 0 8px 24px rgba(165, 60, 255, 0.25);
    --shadow-purple-lg: 0 16px 48px rgba(165, 60, 255, 0.3);
    --shadow-electric: 0 0 20px rgba(255, 77, 255, 0.4), 0 0 40px rgba(63, 214, 255, 0.3);
    /* Electric glow effect */

    /* Transitions - More control */
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

    /* Z-index layers */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
}

body {
    font-family: var(--font-primary);
    color: #ffffff;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Selection styling */
::selection {
    background-color: rgba(255, 77, 255, 0.2);
    color: var(--text-dark);
}

::-moz-selection {
    background-color: rgba(255, 77, 255, 0.2);
    color: var(--text-dark);
}

/* === CONTAINER === */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* === NAVIGATION BAR === */
.navbar {
    background: rgba(11, 10, 20, 0.92);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    padding: 0.75rem 0;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
    border-bottom: 1px solid rgba(255, 77, 255, 0.08);
    transition: all var(--transition-smooth);
}

.navbar.scrolled {
    background: rgba(11, 10, 20, 0.97);
    box-shadow: var(--shadow-xl);
    padding: 0.5rem 0;
}

.ms-login-btn {
    display: flex;
    justify-content: center;
    /* centers content horizontally */
    align-items: center;
    /* vertically centers items */
    gap: 12px;
    /* spacing between icon and text */

    background-color: #2F2F2F;
    /* official dark Microsoft button */
    color: white;
    padding: 14px 20px;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    width: 100%;
    /* full width */
    max-width: 500px;
    /* optional */
    box-sizing: border-box;
}

.ms-login-btn img {
    width: 24px;
    height: 24px;
}

.ms-login-btn:hover {
    background-color: #1F1F1F;
}


.apple-signin {
    background: #000;
    /* official black */
    color: #fff;
    border-radius: 8px;
    /* Apple uses 8px */
    padding: 12px 16px;
    border: none;
    font-size: 16px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    cursor: pointer;
    text-decoration: none;
    /* when rendered as <a> */

    /* Remove any overflow issues */
    overflow: hidden;
}

.apple-signin img {
    width: 20px;
    /* official Apple size */
    height: 20px;
}

/* Support inline SVG as glyph */
.apple-signin svg {
    width: 20px;
    height: 20px;
    display: inline-block;
}

.apple-signin:disabled,
.apple-signin[aria-disabled="true"] {
    opacity: .6;
    cursor: not-allowed;
}


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

.logo a {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: var(--transition-smooth);
    position: relative;
}

.logo-image {
    display: block;
    height: 40px;
    width: auto;
    transition: var(--transition-smooth);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    letter-spacing: -0.02em;
}

.logo-x {
    color: #FF4DFF;
    background: linear-gradient(135deg, #FF4DFF, #D845FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo a:hover {
    transform: translateY(-2px);
}

.logo a:hover .logo-image {
    filter: drop-shadow(0 0 8px rgba(255, 77, 255, 0.4));
}

.logo a:hover .logo-x {
    filter: drop-shadow(0 0 8px rgba(255, 77, 255, 0.6));
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-dark);
    border-radius: 2px;
    transition: var(--transition-smooth);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1rem;
    align-items: center;
}

/* Navbar dropdown */
.nav-user {
    position: relative;
}

.nav-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    display: inline-block;
    border: 2px solid rgba(255, 77, 255, 0.3);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.nav-avatar-fallback {
    background: linear-gradient(135deg, #6AE6FF, #A53CFF);
    color: #fff;
    font-weight: 700;
    font-size: .95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
}

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    padding: 0.65rem 0.8rem;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    cursor: pointer;
    pointer-events: auto;
    display: inline-block;
    opacity: 0.9;
}

.nav-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: none;
    transition: left 0.5s ease;
    pointer-events: none;
}

.nav-links a:hover::before {
    left: 100%;
}

.nav-links a:hover {
    color: #FF4DFF;
    transform: translateY(-2px);
    background-color: rgba(255, 77, 255, 0.1);
    box-shadow: none;
    opacity: 1;
}

.nav-links a.active {
    color: #fff;
    background: linear-gradient(135deg, #FF4DFF, #D845FF);
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: .5rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem 0.75rem;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: auto;
    color: #ffffff;
}

.dropdown-toggle .caret {
    color: #ffffff;
    font-size: 0.75rem;
    opacity: 0.8;
    transition: all 0.2s ease;
}

.dropdown-toggle:hover .caret {
    opacity: 1;
}

.dropdown-toggle:hover {
    background-color: rgba(255, 77, 255, 0.1);
    transform: translateY(-2px);
}

.dropdown-toggle:hover .nav-avatar {
    border-color: var(--primary-color);
    box-shadow: 0 4px 16px rgba(255, 77, 255, 0.3), 0 0 0 4px rgba(255, 77, 255, 0.1);
}

.dropdown-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    background: #ffffff;
    border: 2px solid rgba(255, 77, 255, 0.2);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(255, 77, 255, 0.1);
    padding: 0.5rem 0;
    min-width: 200px;
    display: none;
    z-index: 1200;
    backdrop-filter: blur(10px);
}

.dropdown.open .dropdown-menu {
    display: block;
}

.dropdown-menu li {
    list-style: none;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1.25rem;
    text-decoration: none;
    color: #1f2937;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    pointer-events: auto;
    transition: all 0.2s ease;
}

.dropdown-menu a:hover {
    background: linear-gradient(90deg, rgba(255, 77, 255, 0.1), rgba(63, 214, 255, 0.1));
    color: #111827;
    padding-left: 1.5rem;
}

.dropdown-menu .divider {
    height: 1px;
    margin: 0.5rem 0;
    background: rgba(229, 231, 235, 0.8);
}

/* Dropdown Submenu for RBAC */
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dropdown-submenu-content {
    display: none;
    position: absolute;
    left: 100%;
    top: 0;
    min-width: 180px;
    background: #ffffff;
    border: 2px solid rgba(255, 77, 255, 0.2);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 0.5rem 0;
    list-style: none;
    margin: 0;
    z-index: 1300;
    margin-left: 8px;
    animation: slideInRight 0.2s ease forwards;
    transform-origin: left center;
}

.dropdown-submenu-content.right-aligned {
    left: auto;
    right: 100%;
    margin-left: 0;
    margin-right: 8px;
    animation: slideInLeft 0.2s ease forwards;
    transform-origin: right center;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-8px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(8px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.dropdown-submenu:hover .dropdown-submenu-content {
    display: block;
}

.dropdown-submenu.open .dropdown-submenu-content {
    display: block;
}

.dropdown-submenu-content li {
    list-style: none;
}

.dropdown-submenu-content a {
    display: block;
    padding: 0.6rem 1rem;
    text-decoration: none;
    color: #1f2937;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.dropdown-submenu-content a:hover {
    background: linear-gradient(90deg, rgba(255, 77, 255, 0.1), rgba(63, 214, 255, 0.1));
    color: var(--primary-color);
    padding-left: 1.2rem;
}

/* Mobile dropdown submenu */
@media (max-width: 768px) {
    .dropdown-submenu-content {
        position: static;
        left: 0;
        border: none;
        box-shadow: none;
        padding-left: 1rem;
        background: #f9fafb;
        border-radius: 8px;
        margin: 0.5rem 0;
        animation: none;
    }
    
    .dropdown-submenu-content.right-aligned {
        right: auto;
        margin-right: 0;
        animation: none;
    }
    
    .dropdown-submenu-content a {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }
}

/* === MAIN CONTENT === */
main {
    flex: 1;
}

/* === HERO SECTION === */
.hero {
    background: linear-gradient(-45deg, #3FD6FF, #2BB6FF, #A53CFF, #FF4DFF, #D845FF);
    background-size: 400% 400%;
    animation: gradientFlow 15s ease infinite, electricPulse 3s ease-in-out infinite;
    color: white;
    padding: var(--spacing-2xl) var(--spacing-md);
    text-align: center;
    position: relative;
    overflow: hidden;
}

@keyframes gradientFlow {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Electric pulse animation for logo theme */
@keyframes electricPulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(255, 77, 255, 0.3), 0 0 40px rgba(63, 214, 255, 0.2);
    }
    50% {
        box-shadow: 0 0 40px rgba(255, 77, 255, 0.6), 0 0 80px rgba(63, 214, 255, 0.4), 0 0 120px rgba(165, 60, 255, 0.3);
    }
}

/* Electric glow animation */
@keyframes electricGlow {
    0%, 100% {
        filter: drop-shadow(0 0 8px rgba(255, 77, 255, 0.6)) drop-shadow(0 0 12px rgba(63, 214, 255, 0.4));
    }
    50% {
        filter: drop-shadow(0 0 16px rgba(255, 77, 255, 0.9)) drop-shadow(0 0 24px rgba(63, 214, 255, 0.6)) drop-shadow(0 0 32px rgba(165, 60, 255, 0.5));
    }
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: floatPattern 20s linear infinite;
    pointer-events: none;
}

@keyframes floatPattern {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(50px, 50px);
    }
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    margin-bottom: var(--spacing-sm);
    line-height: 1.2;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    letter-spacing: -0.02em;
    animation: fadeInUp 0.8s ease-out;
}

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

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

.hero-subtitle {
    font-size: clamp(1rem, 3vw, 1.25rem);
    margin-bottom: var(--spacing-lg);
    opacity: 0.95;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1.2s ease-out 0.4s both;
}

/* === BUTTONS === */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-smooth);
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

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

/* === INTRO SECTION === */
.intro-section {
    padding: var(--spacing-xl) var(--spacing-md);
    background-color: var(--bg-white);
}

.intro-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: var(--spacing-sm);
    color: var(--text-dark);
}

.intro-text {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--spacing-lg);
    font-size: 1.1rem;
    color: var(--text-light);
}

/* === FEATURES GRID === */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-2xl);
}

.feature-card {
    background: linear-gradient(135deg, var(--bg-white) 0%, var(--bg-light) 100%);
    padding: var(--spacing-lg);
    border-radius: var(--radius-xl);
    transition: all var(--transition-smooth);
    border: 2px solid var(--border-color);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 77, 255, 0.08), transparent);
    transition: left 0.6s ease;
}

.feature-card:hover::before {
    left: 100%;
}

.feature-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl), 0 0 0 1px rgba(255, 77, 255, 0.2);
    border-color: var(--primary-color);
}

.feature-card:nth-child(1) {
    animation: fadeInUp 0.6s ease-out 0.1s both;
}

.feature-card:nth-child(2) {
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.feature-card:nth-child(3) {
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

.feature-card h3 {
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-sm);
    color: var(--text-dark);
    font-weight: 700;
}

.feature-card p {
    color: var(--text-medium);
    line-height: 1.8;
    font-size: var(--font-size-base);
}

/* === MISSION SECTION === */
.mission-section {
    padding: var(--spacing-xl) var(--spacing-md);
    background-color: var(--bg-light);
    text-align: center;
}

.mission-section h2 {
    font-size: 2rem;
    margin-bottom: var(--spacing-md);
}

.mission-quote {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin: var(--spacing-md) auto;
    max-width: 700px;
    font-style: italic;
}

.mission-section p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: var(--text-light);
}

/* === PAGE HEADER === */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #A53CFF 100%);
    color: white;
    padding: var(--spacing-lg) var(--spacing-md);
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-xs);
}

.page-header .subtitle {
    font-size: 1.2rem;
    opacity: 0.95;
}

/* === CONTENT SECTION === */
.content-section {
    padding: var(--spacing-xl) var(--spacing-md);
    background-color: var(--bg-white);
}

.content-block {
    max-width: 900px;
    margin: 0 auto var(--spacing-lg);
}

.content-block h2 {
    font-size: 1.75rem;
    margin-bottom: var(--spacing-sm);
    color: var(--text-dark);
}

.content-block p {
    margin-bottom: var(--spacing-sm);
    color: var(--text-dark);
    line-height: 1.8;
}

.philosophy-list {
    list-style: none;
    padding-left: 0;
}

.philosophy-list li {
    padding: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
    background-color: var(--bg-light);
    border-left: 4px solid var(--primary-color);
    border-radius: var(--radius-sm);
    color: var(--text-dark);
}

.cta-text {
    font-size: 1.1rem;
    text-align: center;
    margin-top: var(--spacing-md);
}

.inline-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-fast);
}

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

/* === FEATURE DETAILS === */
.feature-detail {
    max-width: 900px;
    margin: 0 auto var(--spacing-lg);
}

.feature-icon {
    font-size: 3rem;
    text-align: center;
    margin-bottom: var(--spacing-sm);
}

.feature-detail h2 {
    font-size: 1.75rem;
    margin-bottom: var(--spacing-sm);
    color: var(--text-dark);
    text-align: center;
}

.feature-description {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
    text-align: center;
}

.feature-benefits {
    background-color: var(--bg-light);
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
}

.feature-benefits h3 {
    margin-bottom: var(--spacing-sm);
    color: var(--text-dark);
}

.feature-benefits ul {
    padding-left: var(--spacing-md);
}

.feature-benefits li {
    margin-bottom: var(--spacing-xs);
    color: var(--text-light);
    line-height: 1.7;
}

.feature-divider {
    border: none;
    border-top: 2px solid var(--border-color);
    margin: var(--spacing-lg) auto;
    max-width: 200px;
}

.features-cta {
    text-align: center;
    margin-top: var(--spacing-xl);
    padding: var(--spacing-lg);
    background: linear-gradient(135deg, rgba(63, 214, 255, 0.1) 0%, rgba(255, 77, 255, 0.1) 100%);
    border-radius: var(--radius-lg);
}

.features-cta h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
}

.features-cta p {
    margin-bottom: var(--spacing-md);
    color: var(--text-light);
}

/* === CONTACT PAGE === */
.contact-intro {
    max-width: 800px;
    margin: 0 auto var(--spacing-lg);
    text-align: center;
}

.contact-intro p {
    font-size: 1.1rem;
    color: var(--text-light);
}

.contact-form-wrapper {
    max-width: 600px;
    margin: 0 auto var(--spacing-xl);
}

.contact-form {
    background-color: var(--bg-light);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 77, 255, 0.1);
}

.contact-form button[type="submit"] {
    width: 100%;
    background-color: var(--primary-color);
    color: white;
}

.contact-form button[type="submit"]:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 77, 255, 0.3);
}

.contact-info {
    max-width: 900px;
    margin: 0 auto var(--spacing-xl);
}

.contact-info h2 {
    text-align: center;
    margin-bottom: var(--spacing-md);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
}

.info-item {
    background-color: var(--bg-light);
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    text-align: center;
}

.info-item h3 {
    margin-bottom: var(--spacing-xs);
    color: var(--text-dark);
}

.info-item p {
    color: var(--text-light);
}

.info-item a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.info-item a:hover {
    text-decoration: underline;
}

.faq-section {
    max-width: 900px;
    margin: 0 auto;
}

.faq-section h2 {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.faq-item {
    margin-bottom: var(--spacing-md);
    padding: var(--spacing-md);
    background-color: var(--bg-light);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--primary-color);
}

.faq-item h3 {
    margin-bottom: var(--spacing-xs);
    color: var(--text-dark);
}

.faq-item p {
    color: var(--text-light);
    line-height: 1.7;
}

/* === FOOTER === */
.footer {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    color: white;
    padding: 3rem 0 1.5rem;
    margin-top: auto;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

.footer-column h3.footer-heading {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--primary-color);
}

.footer-tagline {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
}

.footer-description {
    font-size: 0.9rem;
    line-height: 1.6;
    opacity: 0.85;
    margin-bottom: 1.25rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.65rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 4px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom .copyright {
    font-size: 0.85rem;
    opacity: 0.7;
    margin: 0;
}

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

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 2rem 0 1rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 0;
        margin-bottom: 1.5rem;
    }

    .footer-column {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding: 1.25rem 0;
    }

    .footer-column:last-child {
        border-bottom: none;
    }

    .footer-column h3.footer-heading {
        font-size: 0.95rem;
        margin-bottom: 1rem;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .footer-column h3.footer-heading::before {
        content: '▶';
        font-size: 0.7em;
        color: var(--primary-color);
    }

    .footer-tagline {
        font-size: 1.15rem;
        margin-bottom: 0.6rem;
    }

    .footer-description {
        font-size: 0.85rem;
        line-height: 1.5;
        margin-bottom: 1rem;
    }

    .footer-social {
        gap: 0.85rem;
        justify-content: flex-start;
    }

    .footer-social a {
        width: 42px;
        height: 42px;
        border-radius: 10px;
    }

    .footer-links {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }

    .footer-links li {
        margin-bottom: 0;
    }

    .footer-links a {
        font-size: 0.85rem;
        padding: 0.5rem 0;
        display: block;
    }

    .footer-bottom {
        padding-top: 1.5rem;
    }

    .footer-bottom .copyright {
        font-size: 0.8rem;
    }
}

/* === RESPONSIVE DESIGN === */

/* === FEATURES PAGE STYLES === */

/* Features Hero */
.features-hero {
    background: linear-gradient(135deg, #6AE6FF 0%, #A53CFF 50%, var(--primary-color) 100%);
    color: white;
    padding: var(--spacing-xl) var(--spacing-md);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.features-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.features-hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

.features-hero-title {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: var(--spacing-sm);
    letter-spacing: -0.5px;
}

.features-hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
    opacity: 0.95;
    font-weight: 500;
}

.features-hero-description {
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.9;
}

/* Feature Category Sections */
.feature-category {
    padding: var(--spacing-xl) var(--spacing-md);
    background-color: var(--bg-white);
}

.feature-category-alt {
    background-color: var(--bg-light);
}

.category-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--spacing-lg);
}

.category-number {
    display: inline-block;
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: bold;
    letter-spacing: 2px;
    margin-bottom: var(--spacing-xs);
}

.category-title {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
    color: var(--text-dark);
}

.category-description {
    font-size: 1.15rem;
    color: var(--text-light);
    line-height: 1.8;
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.feature-box {
    background-color: var(--bg-white);
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    border: 2px solid var(--border-color);
    transition: var(--transition-smooth);
}

.feature-category-alt .feature-box {
    background-color: var(--bg-light);
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(255, 77, 255, 0.15);
    border-color: var(--primary-color);
}

.feature-box-icon {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
}

.feature-box h3 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-xs);
    color: var(--text-dark);
}

.feature-box p {
    color: var(--text-dark);
    line-height: 1.7;
}

/* Privacy Features (Section 8) - Match feature-box styling */
.privacy-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.privacy-box {
    background-color: var(--bg-white);
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    border: 2px solid var(--border-color);
    transition: var(--transition-smooth);
}

.feature-category-alt .privacy-box {
    background-color: var(--bg-light);
}

.privacy-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(255, 77, 255, 0.15);
    border-color: var(--primary-color);
}

.privacy-icon {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
}

.privacy-box h3 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-xs);
    color: var(--text-dark);
}

.privacy-box p {
    color: var(--text-dark);
    line-height: 1.7;
}

/* Feed Post Preview */
.feed-post-preview {
    max-width: 600px;
    margin: var(--spacing-xl) auto 0;
}

.feed-post-card {
    background-color: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.feed-post-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
}

.avatar-placeholder {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), #A53CFF);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
}

.feed-post-user h4 {
    margin: 0;
    color: var(--text-dark);
    font-size: 1rem;
}

.feed-post-skill {
    margin: 0;
    color: var(--text-light);
    font-size: 0.9rem;
}

.feed-post-image-placeholder {
    background: linear-gradient(135deg, rgba(63, 214, 255, 0.1), rgba(255, 77, 255, 0.1));
    border-radius: var(--radius-md);
    padding: var(--spacing-xl);
    text-align: center;
    margin-bottom: var(--spacing-sm);
}

.feed-post-image-placeholder span {
    font-size: 3rem;
    display: block;
    margin-bottom: var(--spacing-xs);
}

.feed-post-image-placeholder p {
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

.feed-post-text {
    color: var(--text-dark);
    line-height: 1.7;
    margin-bottom: var(--spacing-md);
}

.feed-post-stats {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    padding-top: var(--spacing-sm);
    border-top: 1px solid var(--border-color);
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Algorithm Timeline */
.algorithm-timeline {
    max-width: 1200px;
    margin: var(--spacing-xl) auto 0;
    display: flex;
    flex-wrap: nowrap;
    gap: 0;
    align-items: center;
    justify-content: center;
}

.timeline-step {
    flex: 1;
    min-width: 0;
    text-align: center;
    padding: 0 var(--spacing-sm);
}

.timeline-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), #A53CFF);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0 auto var(--spacing-sm);
    box-shadow: 0 4px 12px rgba(255, 77, 255, 0.3);
}

.timeline-content h3 {
    font-size: 1.15rem;
    margin-bottom: var(--spacing-xs);
    color: var(--text-dark);
}

.timeline-content p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
}

.timeline-connector {
    flex: 0 0 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), #A53CFF);
    align-self: flex-start;
    margin-top: 30px;
    border-radius: 2px;
}

/* Reward Grid */
.reward-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.reward-box {
    background-color: var(--bg-light);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    text-align: center;
    border: 2px solid transparent;
    transition: var(--transition-smooth);
}

.reward-box:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(255, 77, 255, 0.15);
}

.reward-icon {
    font-size: 3.5rem;
    margin-bottom: var(--spacing-sm);
}

.reward-box h3 {
    font-size: 1.35rem;
    margin-bottom: var(--spacing-sm);
    color: var(--text-dark);
}

.reward-box p {
    color: var(--text-light);
    line-height: 1.8;
}

/* Marketplace Split */
.marketplace-split {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.marketplace-section {
    background-color: var(--bg-white);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    border: 2px solid var(--border-color);
}

.marketplace-title {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
    color: var(--text-dark);
}

.marketplace-icon {
    font-size: 1.75rem;
}

.marketplace-features {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.marketplace-item {
    display: flex;
    gap: var(--spacing-sm);
    align-items: flex-start;
}

.check-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.85rem;
}

.marketplace-item h4 {
    margin: 0 0 var(--spacing-xs) 0;
    color: var(--text-dark);
    font-size: 1.05rem;
}

.marketplace-item p {
    margin: 0;
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

.badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), #A53CFF);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: bold;
    margin-left: var(--spacing-xs);
}

/* Tiers Grid */
.tiers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-xl);
}

.tier-card {
    background-color: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    transition: var(--transition-smooth);
    position: relative;
}

.tier-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.tier-popular {
    border-color: var(--primary-color);
    border-width: 3px;
}

.tier-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary-color), #A53CFF);
    color: white;
    padding: 4px 16px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: bold;
}

.tier-header {
    text-align: center;
    padding-bottom: var(--spacing-md);
    border-bottom: 2px solid var(--border-color);
    margin-bottom: var(--spacing-md);
}

.tier-header h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-xs);
    color: var(--text-dark);
}

.tier-price {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin: 0;
}

.tier-price span {
    font-size: 1rem;
    color: var(--text-light);
}

.tier-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tier-features li {
    padding: var(--spacing-xs) 0;
    color: var(--text-dark);
    line-height: 1.8;
}

.tier-features li strong {
    color: var(--primary-color);
}

/* Roadmap Grid */
.roadmap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-xl);
}

.roadmap-item {
    background-color: var(--bg-white);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    border: 2px solid var(--border-color);
    text-align: center;
    transition: var(--transition-smooth);
}

.roadmap-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(255, 77, 255, 0.12);
}

.roadmap-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
}

.roadmap-item h3 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
    color: var(--text-dark);
}

.roadmap-item p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: var(--spacing-md);
}

.roadmap-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-coming {
    background-color: rgba(63, 214, 255, 0.15);
    color: #6AE6FF;
}

.status-development {
    background-color: rgba(255, 77, 255, 0.15);
    color: var(--primary-color);
}

.status-planned {
    background-color: rgba(127, 140, 141, 0.15);
    color: var(--text-light);
}

/* Features Final CTA */
.features-cta-section {
    background: linear-gradient(135deg, #6AE6FF 0%, #A53CFF 50%, var(--primary-color) 100%);
    padding: var(--spacing-xl) var(--spacing-md);
}

.features-final-cta {
    text-align: center;
    color: white;
    max-width: 800px;
    margin: 0 auto;
}

.features-final-cta h2 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
    line-height: 1.3;
}

.features-final-cta p {
    font-size: 1.15rem;
    margin-bottom: var(--spacing-lg);
    opacity: 0.95;
    line-height: 1.8;
}

.btn-cta {
    display: inline-block;
    background-color: white;
    color: var(--primary-color);
    padding: 1rem 3rem;
    border-radius: 50px;
    font-size: 1.15rem;
    font-weight: bold;
    text-decoration: none;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.btn-cta:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* === ANIMATION CLASSES === */

/* === AUTH PAGES (LOGIN/REGISTER) === */
.auth-page {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-xl) var(--spacing-md);
    background: linear-gradient(135deg, #0B0A14 0%, #141022 50%, #1E1630 100%);
    position: relative;
    overflow: hidden;
}

.auth-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 77, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(63, 214, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(165, 60, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.auth-page::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(255, 77, 255, 0.03) 2px, rgba(255, 77, 255, 0.03) 4px),
        repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(63, 214, 255, 0.03) 2px, rgba(63, 214, 255, 0.03) 4px);
    pointer-events: none;
    z-index: 0;
}

.auth-card {
    background-color: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 77, 255, 0.1);
    padding: var(--spacing-xl);
    max-width: 450px;
    width: 100%;
    position: relative;
    z-index: 1;
    backdrop-filter: blur(10px);
}

.auth-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.auth-header h1 {
    font-size: 2rem;
    margin-bottom: var(--spacing-xs);
    color: var(--text-dark);
}

.auth-subtitle {
    color: var(--text-light);
    font-size: 1rem;
    margin: 0;
}

.auth-form {
    margin-bottom: var(--spacing-md);
}

.auth-form .form-group {
    margin-bottom: var(--spacing-md);
}

.auth-form label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.auth-form input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: var(--transition-fast);
}

.auth-form input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 77, 255, 0.1);
}

.helper-text {
    display: block;
    margin-top: var(--spacing-xs);
    font-size: 0.85rem;
    color: var(--text-light);
}

.btn-full {
    width: 100%;
    padding: 0.85rem 1.5rem;
    font-size: 1rem;
}

.auth-divider {
    position: relative;
    text-align: center;
    margin: var(--spacing-md) 0;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background-color: var(--border-color);
}

.auth-divider span {
    position: relative;
    background-color: var(--bg-white);
    padding: 0 var(--spacing-sm);
    color: var(--text-light);
    font-size: 0.9rem;
}

.btn-google {
    width: 100%;
    background-color: var(--bg-white);
    color: var(--text-dark);
    border: 2px solid var(--border-color);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-google:hover {
    background-color: var(--bg-light);
    border-color: var(--text-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* OAuth providers layout */
.oauth-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.oauth-buttons>* {
    width: 100%;
}

.auth-footer {
    text-align: center;
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--border-color);
}

.auth-footer p {
    margin: 0;
    color: var(--text-light);
    font-size: 0.95rem;
}

.auth-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-fast);
}

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

/* Provider buttons (compact, branded) */
.btn-provider {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    border: 2px solid #e5e7eb;
    background: #fff;
    color: #111827;
    transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease;
}

.btn-provider:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .08);
    border-color: #d1d5db;
}

.btn-provider:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, .08);
}

.btn-microsoft {
    background: #fff;
    color: #111827;
}

.btn-google {
    background: #fff;
    color: #111827;
}

.btn-apple {
    background: #000;
    color: #fff;
    border-color: #000;
}

/* =============================
     ONBOARDING PAGE STYLES
     ============================= */
.onboarding-wrapper {
    max-width: 900px;
    margin: 2.5rem auto 3.5rem;
    background: var(--bg-white);
    padding: 2.5rem 2rem 2.75rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
    position: relative;
}

.onboarding-progress {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.progress-step {
    padding: 0.5rem 1rem;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-light);
}

.progress-step.active {
    background: var(--primary-color);
    color: white;
}

.onboarding-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.onboarding-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.onboarding-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
}

.onboarding-form {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.onboarding-section {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.category-grid,
.goals-grid,
.experience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
}

.category-card,
.goal-card,
.experience-card {
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.category-card:hover,
.goal-card:hover,
.experience-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 16px rgba(255, 77, 255, 0.15);
    transform: translateY(-2px);
}

.category-card.selected,
.goal-card.selected,
.experience-card.selected {
    background: linear-gradient(135deg, #FF4DFF, #D845FF);
    border-color: var(--primary-color);
    color: white;
}

.category-card input,
.goal-card input,
.experience-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.card-label {
    font-weight: 600;
    font-size: 0.95rem;
}

.onboarding-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
}

.onboarding-back {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.onboarding-back:hover {
    color: var(--primary-color);
}

.onboarding-submit {
    background: linear-gradient(135deg, #FF4DFF, #D845FF);
    color: white;
    border: none;
    padding: 0.85rem 2rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(255, 77, 255, 0.4);
    transition: all 0.3s ease;
}

.onboarding-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 77, 255, 0.5);
}

/* =============================
     MESSAGES PAGE STYLES
     ============================= */

.messages-page {
    background: radial-gradient(circle at 10% 10%, rgba(255, 77, 255, 0.06), transparent 35%), radial-gradient(circle at 85% 20%, rgba(63, 214, 255, 0.06), transparent 32%);
    padding-bottom: 3rem;
    overflow-x: hidden;
    padding-top: 0.5rem;
}

.messages-header {
    max-width: 1200px;
    margin: 1.5rem auto 0;
    padding: 1rem var(--spacing-md);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(247, 248, 255, 0.95));
    border: 1px solid rgba(124, 58, 237, 0.12);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.06);
}

.messages-header-left {
    display: flex;
    flex-direction: column;
    gap: .35rem;
}

.messages-kicker {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: .72rem;
    color: var(--text-light);
    font-weight: 800;
}

.messages-title-row {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
}

.messages-title {
    margin: 0;
    font-size: 1.4rem;
    letter-spacing: -0.01em;
    color: var(--text-dark);
    font-weight: 700;
}

.header-chip {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.78rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
    background: #fff;
    color: var(--text-dark);
}

.header-chip.live {
    background: rgba(16, 185, 129, 0.12);
    color: #0f766e;
    border-color: rgba(16, 185, 129, 0.2);
}

.header-chip.muted {
    background: rgba(63, 214, 255, 0.12);
    color: #4f46e5;
    border-color: rgba(63, 214, 255, 0.2);
}

.header-chip.admin-chip {
    background: rgba(15, 23, 42, 0.9);
    color: #f8fafc;
    border-color: rgba(15, 23, 42, 0.4);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.2);
}

.messages-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    color: var(--text-light);
    font-weight: 600;
}

.messages-meta-row .meta-pill {
    background: rgba(15, 23, 42, 0.05);
    padding: 0.25rem 0.6rem;
    border-radius: 10px;
    color: var(--text-dark);
    font-weight: 700;
}

.messages-meta-row .meta-pill.strong {
    background: rgba(16, 185, 129, 0.12);
    color: #0f766e;
    border: 1px solid rgba(16, 185, 129, 0.26);
}

.messages-header-actions {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
}

.admin-banner {
    max-width: 1240px;
    margin: 0.65rem auto 0;
    padding: 0.85rem 1rem;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.05);
    border: 1px solid rgba(15, 23, 42, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    color: var(--text-dark);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.04);
}

.admin-banner-copy {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    font-weight: 600;
}

.admin-banner-copy span {
    color: var(--text-light);
    font-weight: 600;
}

.admin-banner-actions {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
}

.header-btn {
    border: 1px solid var(--border-color);
    background: #fff;
    color: var(--text-dark);
    padding: .5rem .9rem;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all .2s ease;
}

.header-btn:hover:not(:disabled) {
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

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

.header-btn.secondary {
    background: rgba(63, 214, 255, 0.08);
    border-color: rgba(63, 214, 255, 0.18);
    color: #4b5563;
}

.header-btn.primary {
    background: linear-gradient(135deg, #FF4DFF, #7c3aed);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 10px 24px rgba(255, 77, 255, 0.25);
}

.messages-layout {
    max-width: 1240px;
    margin: 2.5rem auto 3rem;
    padding: 0 var(--spacing-md);
    display: grid;
    grid-template-columns: minmax(310px, 360px) minmax(0, 1fr);
    gap: 1.75rem;
    align-items: stretch;
    height: calc(100vh - 140px);
    min-height: 560px;
}

.messages-layout>* {
    min-height: 0;
}

.conversations-column {
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.92));
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 77, 255, 0.16);
    padding: 1.5rem 1.5rem 1.25rem;
    box-shadow: 0 15px 40px rgba(15, 23, 42, 0.08);
    height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.conversations-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: .75rem;
    margin-bottom: 1rem;
    flex-shrink: 0;
}

.conversations-title {
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    margin: 0;
}

.conversations-kicker {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: .72rem;
    color: var(--text-light);
    font-weight: 700;
}

.conversation-actions {
    display: flex;
    gap: .5rem;
    align-items: center;
}

.compact-button {
    background: linear-gradient(135deg, #FF4DFF, #7c3aed);
    color: #fff;
    border: none;
    padding: .55rem .85rem;
    border-radius: 14px;
    font-size: .8rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(255, 77, 255, 0.25);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.compact-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(124, 58, 237, 0.28);
}

.conversation-search {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: .5rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(247, 248, 255, 0.9));
    border: 1px solid rgba(124, 58, 237, 0.18);
    padding: .55rem .75rem;
    border-radius: 14px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
    flex-shrink: 0;
    overflow: visible;
}

.conversation-search-icon {
    font-size: .95rem;
    opacity: .65;
    flex-shrink: 0;
}

.conversation-search-input {
    width: 100%;
    min-width: 120px;
    border-radius: 10px;
    border: none;
    padding: 0.5rem 0.75rem;
    font-size: 0.95rem;
    background: transparent;
    outline: none;
    flex: 1;
}

.conversation-search {
    position: relative;
    overflow: hidden;
}

.conversation-search::after {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: 14px;
    padding: 1px;
    background: linear-gradient(120deg, rgba(255, 77, 255, 0.25), rgba(63, 214, 255, 0.2));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.6;
}

.conversation-list {
    scrollbar-width: thin;
    scrollbar-color: rgba(124, 58, 237, 0.35) rgba(0, 0, 0, 0.03);
}

.conversation-list::-webkit-scrollbar {
    width: 8px;
}

.conversation-list::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(124, 58, 237, 0.25), rgba(255, 77, 255, 0.25));
    border-radius: 12px;
}

.conversation-list::-webkit-scrollbar-track {
    background: transparent;
}

.conversation-list {
    list-style: none;
    margin: 0;
    padding: 0;
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1;
    min-height: 0;
    -webkit-overflow-scrolling: touch;
}


.conversation-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 0.7rem;
    border-radius: 16px;
    cursor: pointer;
    transition: background var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
    border: 1px solid transparent;
}

.conversation-item:hover {
    background: linear-gradient(90deg, rgba(255, 77, 255, 0.06), rgba(63, 214, 255, 0.05));
    transform: translateX(3px);
    border-color: rgba(255, 77, 255, 0.18);
}

.conversation-item.active {
    background: rgba(255, 77, 255, 0.08);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    border-color: rgba(124, 58, 237, 0.15);
}

.conversation-avatar {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary-color), #A53CFF);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    box-shadow: 0 6px 16px rgba(124, 58, 237, 0.2);
}

.conversation-meta {
    flex: 1;
    min-width: 0;
}

.conversation-name {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.4;
    margin-bottom: 0.15rem;
}

.conversation-last {
    display: block;
    font-size: 0.8rem;
    color: var(--text-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.conversation-last.empty {
    font-style: italic;
    opacity: 0.9;
}


.conversation-pill {
    font-size: 0.72rem;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    font-weight: 700;
    border: 1px solid rgba(0, 0, 0, 0.05);
    background: #f8fafc;
}

.conversation-pill.pill-group {
    color: #7c3aed;
    border-color: rgba(124, 58, 237, 0.25);
    background: rgba(124, 58, 237, 0.08);
}

.conversation-pill.pill-direct {
    color: #0f172a;
    border-color: rgba(15, 23, 42, 0.08);
}

.chat-column {
    position: relative;
}

.chat-surface {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(247, 248, 255, 0.94) 100%);
    border-radius: var(--radius-lg);
    padding: 1.1rem 1.25rem 1.6rem;
    border: 1px solid rgba(63, 214, 255, 0.25);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
    height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(8px);
    position: relative;
    overflow: hidden;
}

.chat-surface::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 77, 255, 0.15), rgba(63, 214, 255, 0.18));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.7;
}

.chat-top-badges {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin: 0.25rem 0 0.85rem;
}

.pill-soft {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(63, 214, 255, 0.12);
    border: 1px solid rgba(63, 214, 255, 0.28);
    color: #4338ca;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-weight: 700;
    box-shadow: 0 8px 18px rgba(63, 214, 255, 0.18);
}

.pill-soft.pill-muted {
    background: rgba(15, 23, 42, 0.06);
    color: #0f172a;
    border-color: rgba(15, 23, 42, 0.08);
    box-shadow: none;
}

.conversation-time {
    font-size: 0.75rem;
    color: var(--text-light);
    margin-left: 0.5rem;
}

.conversation-unread {
    min-width: 20px;
    padding: 2px 6px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    text-align: center;
}

.conversation-item.empty-state {
    display: block;
    text-align: center;
    padding: 2.5rem 1rem;
    color: var(--text-light);
    cursor: default;
}

.conversation-item.empty-state span {
    display: block;
    white-space: normal;
    word-break: normal;
}

.conversation-item.empty-state .empty-title {
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.conversation-item.empty-state .empty-subtitle {
    font-size: 0.9rem;
}

.chat-column {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    border: 2px solid var(--border-color);
    padding: 1.5rem 1.5rem 1.25rem;
    display: flex;
    flex-direction: column;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
    height: 100%;
    min-height: 0;
}

.chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-bottom: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 16px;
    background: linear-gradient(90deg, rgba(255, 77, 255, 0.09), rgba(63, 214, 255, 0.09));
    border: 1px solid rgba(255, 77, 255, 0.12);
}

.chat-header-actions {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.chat-quick-actions {
    display: flex;
    gap: .5rem;
    align-items: center;
}

.chat-admin {
    display: flex;
    align-items: center;
    gap: .4rem;
}

.admin-mode-pill {
    background: #0f172a;
    color: #e5e7eb;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: .78rem;
    letter-spacing: .04em;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.18);
}

.pill-action {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    padding: .45rem 1rem;
    font-size: .85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all .2s ease;
    color: var(--text-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.pill-action:hover {
    background: var(--bg-secondary);
}

.pill-action.ghost {
    background: rgba(63, 214, 255, 0.08);
    border-color: rgba(63, 214, 255, 0.22);
    color: #4b5563;
}

.pill-link {
    text-decoration: none;
    font-weight: 700;
    color: var(--primary-color);
    padding: .45rem .85rem;
    border-radius: 999px;
    background: rgba(255, 77, 255, 0.1);
    border: 1px solid rgba(255, 77, 255, 0.16);
    box-shadow: 0 2px 8px rgba(255, 77, 255, 0.15);
}

.pill-link:hover {
    background: rgba(255, 77, 255, 0.16);
}

.icon-button {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
    font-weight: 800;
}

.icon-button:hover {
    background: var(--bg-secondary);
}

.chat-safety,
.chat-admin {
    position: relative;
}

.safety-menu {
    position: absolute;
    top: 42px;
    right: 0;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: .35rem 0;
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.12);
    min-width: 190px;
    display: none;
    z-index: 120;
}

.safety-menu.open {
    display: block;
}

.safety-menu-header {
    padding: .55rem 1rem;
    font-size: .8rem;
    font-weight: 700;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: .08em;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
}

.menu-status-pill {
    padding: .2rem .5rem;
    border-radius: 999px;
    font-size: .7rem;
    font-weight: 800;
    text-transform: none;
    letter-spacing: 0;
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    color: var(--text-dark);
}

.menu-status-pill.blocked {
    background: rgba(220, 38, 38, 0.1);
    border-color: rgba(220, 38, 38, 0.2);
    color: #991b1b;
}

.menu-status-pill.muted {
    background: rgba(107, 114, 128, 0.12);
    border-color: rgba(107, 114, 128, 0.2);
    color: #374151;
}

.safety-menu-banner {
    margin: 0 .85rem .35rem;
    padding: .55rem .75rem;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.08), rgba(248, 113, 113, 0.12));
    border: 1px solid rgba(220, 38, 38, 0.18);
    border-radius: 10px;
    font-size: .8rem;
    font-weight: 600;
    color: #7f1d1d;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.04);
}

.safety-item {
    width: 100%;
    text-align: left;
    padding: .65rem 1rem;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-dark);
    transition: background 0.2s;
    display: flex;
    align-items: center;
    gap: .5rem;
}

.safety-item:hover {
    background: var(--bg-secondary);
}

.safety-item.danger {
    color: #dc2626;
}

.chat-header-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.chat-avatar {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, #FF4DFF, #7c3aed);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(124, 58, 237, 0.25);
}

.chat-partner-name {
    display: block;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-dark);
    line-height: 1.3;
}

.chat-partner-passion {
    font-size: 0.8rem;
    color: var(--text-light);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.55rem;
    background: rgba(255, 77, 255, 0.12);
    border-radius: 999px;
    font-weight: 700;
}

.chat-partner-sub {
    display: block;
    color: var(--text-light);
    font-size: 0.8rem;
    margin-top: 2px;
}

.chat-history {
    flex: 1;
    padding: 1rem 0;
    margin-bottom: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: .5rem;
    min-height: 0;
    scroll-behavior: smooth;
}

.chat-empty {
    text-align: center;
    padding: 2.5rem 1rem;
    color: var(--text-light);
}

.chat-empty-title {
    margin: 0 0 .25rem;
    font-weight: 700;
    color: var(--text-dark);
}

.chat-empty-sub {
    margin: .15rem 0 .65rem;
}

.chat-start {
    display: inline-block;
    text-decoration: none;
    font-weight: 700;
    color: var(--primary-color);
}

.chat-start:hover {
    text-decoration: underline;
}

.chat-message-wrapper {
    display: flex;
    margin-bottom: 0.5rem;
    position: relative;
}

.chat-message-wrapper.outgoing {
    justify-content: flex-end;
}

.chat-message-wrapper.incoming {
    justify-content: flex-start;
}

.chat-bubble-container {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    max-width: 70%;
    min-width: 120px;
}

.chat-bubble {
    max-width: 100%;
    width: fit-content;
    min-width: fit-content;
    padding: 0.65rem 0.95rem;
    border-radius: 18px;
    background: var(--bg-light);
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.chat-text {
    word-break: break-word;
}

.chat-attachment-image,
.chat-attachment-video,
.chat-attachment-audio,
.chat-attachment-file {
    max-width: 100%;
}

.msg-action-btn {
    position: absolute;
    top: 6px;
    right: 6px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s, background 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 5;
    font-size: 14px;
    font-weight: 700;
}

.chat-message-wrapper:hover .msg-action-btn {
    opacity: 1;
}

.msg-action-btn:hover {
    background: #f3f4f6;
}

.msg-action-menu {
    display: none;
    position: absolute;
    top: 35px;
    right: 6px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 4px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    z-index: 100;
    min-width: 180px;
}

.msg-action-menu.show {
    display: block;
}

.msg-action-item {
    width: 100%;
    text-align: left;
    padding: 10px 14px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-dark);
    border-radius: 8px;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.msg-action-item:hover {
    background: #f3f4f6;
}

.msg-action-item.danger {
    color: #dc3545;
    border-top: 1px solid #e5e7eb;
}

.msg-action-item.danger:hover {
    background: #fee2e2;
}

.message-reactions {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.message-reaction-chip {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 2px 8px;
    font-size: 0.82rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.quick-react-btn {
    background: white;
    border: 1px solid #e5e7eb;
}

.ghost-pill {
    background: rgba(63, 214, 255, 0.08);
    color: #4b5563;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    padding: 0.35rem 0.8rem;
    font-weight: 700;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all .2s ease;
}

.ghost-pill:hover {
    background: rgba(63, 214, 255, 0.18);
}

.group-meta-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(120deg, #f5f3ff, #ecf3ff);
    border: 1px solid var(--border-color);
    padding: .6rem .9rem;
    border-radius: 12px;
    margin-bottom: .75rem;
    gap: 1rem;
}

.group-avatar-stack {
    display: flex;
    align-items: center;
    gap: -6px;
}

.group-avatar-stack img,
.group-avatar-stack .group-initial,
.group-avatar-stack .group-more {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #fff;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.group-initial,
.group-more {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #A53CFF;
    color: #fff;
    font-weight: 800;
    font-size: .8rem;
}

.group-meta-actions {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
}

.inline-add-member {
    border: 1px dashed var(--border-color);
    padding: .75rem;
    border-radius: 12px;
    margin: .35rem 0 1rem;
    background: #f9fafb;
}

.inline-add-member.active {
    box-shadow: 0 12px 26px rgba(124, 58, 237, 0.08);
    border-color: rgba(124, 58, 237, 0.25);
    background: #fff;
}

.inline-add-member input {
    width: 100%;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: .55rem .7rem;
    margin-bottom: .5rem;
}

.inline-add-member #inlineAddMemberResults {
    max-height: 180px;
    overflow-y: auto;
    display: grid;
    gap: .4rem;
}

.inline-add-member #inlineAddMemberResults::-webkit-scrollbar {
    width: 6px;
}

.inline-add-member #inlineAddMemberResults::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(124, 58, 237, 0.25), rgba(255, 77, 255, 0.25));
    border-radius: 12px;
}

.group-meta-actions .ghost-pill {
    transition: transform .15s ease, box-shadow .15s ease;
}

.group-meta-actions .ghost-pill[aria-expanded="true"] {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(124, 58, 237, 0.15);
}

.group-chip {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: 0.35rem 0.6rem;
    background: linear-gradient(135deg, rgba(255, 77, 255, 0.16), rgba(63, 214, 255, 0.14));
    border: 1px solid rgba(255, 77, 255, 0.2);
    border-radius: 999px;
    margin: 0.2rem;
    box-shadow: 0 6px 16px rgba(124, 58, 237, 0.12);
}

.group-chip img {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
}

.group-chip span {
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--text-dark);
}

.group-chip button {
    background: none;
    border: none;
    color: var(--text-dark);
    cursor: pointer;
    font-weight: 800;
}

.empty-selected {
    color: var(--text-light);
    font-size: 0.85rem;
    padding: 0.35rem 0;
}

.inline-result {
    display: flex;
    align-items: center;
    gap: .55rem;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: .5rem;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease;
}

.inline-result:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.inline-result img,
.inline-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--primary-color);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.inline-copy span {
    color: var(--text-light);
    font-size: .8rem;
}

.inline-empty {
    color: var(--text-light);
    font-size: .85rem;
    padding: .35rem;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.75), rgba(17, 24, 39, 0.65));
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(8px);
}

.modal-overlay.is-open {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Scoped visibility handling for group creation modal to avoid inline style conflicts */
#groupModal {
    display: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .2s ease, visibility .2s ease;
}

#groupModal.is-open {
    display: flex;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.group-modal-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 248, 255, 0.96));
    border-radius: 24px;
    max-width: 600px;
    width: 100%;
    box-shadow: 0 32px 80px rgba(15, 23, 42, 0.28);
    overflow: hidden;
    border: 1px solid rgba(124, 58, 237, 0.12);
}

.group-modal-hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.35rem 1.5rem;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.08), rgba(255, 77, 255, 0.08));
    border-bottom: 1px solid rgba(124, 58, 237, 0.15);
}

.group-hero-kicker {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: .7rem;
    margin: 0;
    color: #6b21a8;
    font-weight: 800;
}

.group-hero-title {
    margin: 0.15rem 0 0;
    font-size: 1.35rem;
    letter-spacing: -0.01em;
}

.group-hero-sub {
    margin: 0.35rem 0 0;
    color: #4b5563;
    font-weight: 600;
}

.group-hero-tags {
    display: flex;
    gap: .4rem;
    flex-wrap: wrap;
    margin-top: .7rem;
}

.group-tag {
    background: #0f172a;
    color: #e0e7ff;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 800;
    box-shadow: 0 12px 22px rgba(15, 23, 42, 0.25);
}

.modal-close-btn {
    background: none;
    border: none;
    font-size: 1.7rem;
    cursor: pointer;
    color: #475569;
    padding: 0.15rem 0.4rem;
    border-radius: 10px;
}

.modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.6);
}

.group-modal-body {
    padding: 1.3rem 1.5rem 1.6rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.group-field {
    display: flex;
    flex-direction: column;
    gap: .45rem;
}

.group-field label {
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: .72rem;
    color: #374151;
}

.group-field-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
}

.field-hint {
    margin: 0;
    color: #6b7280;
    font-size: .8rem;
}

.group-input-shell {
    display: flex;
    align-items: center;
    gap: .55rem;
    padding: .6rem .75rem;
    border: 1px solid rgba(148, 163, 184, 0.6);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.group-input-shell input {
    border: none;
    outline: none;
    flex: 1;
    font-size: 0.95rem;
    background: transparent;
}

.input-lead {
    font-weight: 800;
    color: #7c3aed;
    font-size: 1rem;
}

.group-user-results {
    max-height: 220px;
    overflow-y: auto;
    border: 1px solid rgba(148, 163, 184, 0.6);
    border-radius: 12px;
    background: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.group-result-item {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .65rem .75rem;
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
    cursor: pointer;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

.group-result-item:last-child {
    border-bottom: none;
}

.group-result-item:hover {
    background: rgba(124, 58, 237, 0.05);
    transform: translateY(-1px);
    box-shadow: 0 10px 18px rgba(124, 58, 237, 0.12);
}

.group-result-avatar {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
}

.group-result-avatar.fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #7c3aed, #FF4DFF);
    color: #fff;
    font-weight: 800;
}

.group-result-meta {
    display: flex;
    flex-direction: column;
}

.group-result-meta .name {
    font-weight: 700;
    font-size: .9rem;
    color: #0f172a;
}

.group-result-meta .handle {
    color: #6b7280;
    font-size: .78rem;
}

.action-pill {
    margin-left: auto;
    background: linear-gradient(135deg, #7c3aed, #FF4DFF);
    color: #fff;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    font-weight: 800;
    font-size: .75rem;
    box-shadow: 0 10px 20px rgba(255, 77, 255, 0.22);
}

.selected-users {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    min-height: 48px;
    padding: .6rem;
    border: 2px dashed rgba(124, 58, 237, 0.25);
    border-radius: 12px;
    background: rgba(124, 58, 237, 0.04);
}

.chip-soft {
    background: rgba(124, 58, 237, 0.12);
    color: #5b21b6;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: .8rem;
    border: 1px solid rgba(124, 58, 237, 0.22);
}

.group-primary-btn {
    width: 100%;
    background: linear-gradient(120deg, #111827, #0f172a 60%, #7c3aed);
    color: #fff;
    border: none;
    padding: .85rem;
    border-radius: 14px;
    font-weight: 800;
    font-size: .95rem;
    cursor: pointer;
    box-shadow: 0 16px 32px rgba(17, 24, 39, 0.35);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.group-primary-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 22px 40px rgba(17, 24, 39, 0.4);
}

.group-tips {
    background: #0f172a;
    color: #e5e7eb;
    padding: .75rem 1rem;
    border-radius: 12px;
    margin-bottom: .75rem;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.25);
}

.group-tips ul {
    margin: .35rem 0 0;
    padding-left: 1.2rem;
}

.group-tips li {
    margin: 0.2rem 0;
}

.group-tips .tips-title {
    display: flex;
    align-items: center;
    gap: .35rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    font-size: .78rem;
    color: #c7d2fe;
}

.group-tips li {
    margin: .2rem 0;
    font-size: .9rem;
}

.tips-title {
    margin: 0;
    font-weight: 800;
    letter-spacing: .5px;
    text-transform: uppercase;
    font-size: .75rem;
}

.reply-context {
    border-left: 3px solid var(--primary-color);
    padding-left: .65rem;
    margin-bottom: .35rem;
}

.reply-author {
    font-weight: 700;
    font-size: .85rem;
    color: var(--primary-color);
}

.reply-preview {
    color: var(--text-light);
    font-size: .85rem;
}

.reply-btn {
    position: absolute;
    top: 6px;
    left: -34px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 50%;
    width: 26px;
    height: 26px;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.chat-message-wrapper:hover .reply-btn {
    display: flex;
}

.reply-preview-bar {
    display: flex;
    align-items: center;
    gap: .65rem;
    background: linear-gradient(120deg, rgba(124, 58, 237, 0.15), rgba(255, 77, 255, 0.12));
    border: 1px solid rgba(124, 58, 237, 0.28);
    border-radius: 14px;
    padding: .65rem .8rem;
    margin-bottom: .5rem;
    box-shadow: 0 8px 22px rgba(124, 58, 237, 0.15);
}

.reply-preview-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #fff;
    color: #7c3aed;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.reply-preview-bar .replying-to {
    font-weight: 800;
    color: #312e81;
    letter-spacing: 0.01em;
}

.reply-preview-bar .replying-body {
    color: #1f2937;
    font-size: .92rem;
    font-weight: 600;
}

.reply-preview-bar .reply-cancel {
    background: #111827;
    color: #fff;
    border: none;
    font-size: .9rem;
    cursor: pointer;
    border-radius: 8px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 16px rgba(17, 24, 39, 0.15);
}

.chat-message-wrapper.reply-target .chat-bubble {
    box-shadow: 0 12px 30px rgba(124, 58, 237, 0.2);
    border-color: rgba(124, 58, 237, 0.35);
}

/* Show message action button on hover */
.chat-message-wrapper.incoming:hover .msg-action-btn {
    opacity: 1 !important;
    display: flex !important;
}

.chat-message-wrapper.outgoing .chat-bubble {
    background: var(--primary-color);
    color: #fff;
}

.chat-text {
    margin: 0 0 0.25rem;
    font-size: 0.9rem;
}

/* Responsive attachments inside bubbles */
.chat-attachment-image {
    display: block;
    max-width: min(100%, 420px);
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 4px 0;
    cursor: zoom-in;
}

.chat-attachment-video {
    display: block;
    width: min(100%, 480px);
    max-height: 320px;
    border-radius: 10px;
    margin: 6px 0;
}

.chat-attachment-audio {
    width: 100%;
    max-width: 420px;
}

.chat-attachment-file {
    display: inline-block;
    font-weight: 600;
    color: var(--primary-color);
}

/* Carousel slides */
.carousel-slide {
    flex: 0 0 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
}

.chat-time {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.85);
}

.chat-message-wrapper.incoming .chat-time {
    color: var(--text-light);
}

.chat-input-row {
    display: flex;
    gap: 0.75rem;
    border-top: 1px solid rgba(255, 77, 255, 0.15);
    padding-top: 0.85rem;
    align-items: flex-end;
}

.chat-attach-btn {
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.25rem;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
    flex-shrink: 0;
}

.chat-attach-btn:hover {
    background: rgba(255, 77, 255, 0.1);
}

.file-count-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    border: 2px solid white;
}

.chat-input {
    flex: 1;
    border-radius: 14px;
    border: 2px solid rgba(63, 214, 255, 0.2);
    padding: 0.65rem 0.85rem;
    font-size: 0.95rem;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(247, 248, 255, 0.95));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
    resize: none;
    min-height: 44px;
    max-height: 120px;
}

.file-preview-container {
    margin-top: 0.5rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 77, 255, 0.2);
    border-radius: 12px;
    font-size: 0.85rem;
}

.file-preview-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.25rem 0;
    padding: 0.35rem 0.5rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
}

.file-preview-name {
    font-weight: 600;
    color: var(--text-dark);
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-preview-size {
    color: var(--text-light);
    font-size: 0.8rem;
    flex-shrink: 0;
}

.file-preview-remove {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--primary-color);
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    transition: background 0.2s;
    flex-shrink: 0;
}

.file-preview-remove:hover {
    background: rgba(255, 77, 255, 0.1);
}

.file-preview-actions {
    text-align: right;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 77, 255, 0.15);
}

.file-preview-clear {
    background: none;
    border: none;
    cursor: pointer;
    color: #ef4444;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    transition: background 0.2s;
}

.file-preview-clear:hover {
    background: rgba(239, 68, 68, 0.1);
}

.chat-send-btn {
    background: linear-gradient(135deg, #FF4DFF, #7c3aed);
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 0.65rem 1.35rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 12px 30px rgba(124, 58, 237, 0.35);
}

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

@media (max-width: 768px) {
    .messages-header {
        padding: 0.75rem var(--spacing-sm);
        margin: 1rem auto 0;
    }

    .messages-title {
        font-size: 1.25rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        color: var(--text-dark);
        font-weight: 700;
    }

    .messages-header-actions {
        gap: 0.5rem;
        flex-wrap: nowrap;
    }

    .header-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
        white-space: nowrap;
    }

    .header-btn.primary {
        order: -1;
    }

    .conversations-column {
        padding: 1rem;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        height: 100%;
        max-height: 100vh;
    }

    .conversations-header {
        flex-shrink: 0;
        margin-bottom: 0.75rem;
    }

    .conversation-search {
        flex-shrink: 0;
        min-width: 0;
        overflow: visible;
        margin-bottom: 0.75rem;
        padding: 0.75rem 1rem;
    }

    .conversation-search-input {
        min-width: 100px;
        font-size: 1rem;
        padding: 0.65rem 0.85rem;
    }

    .conversation-list {
        overflow-y: auto;
        overflow-x: hidden;
        flex: 1;
        min-height: 0;
        -webkit-overflow-scrolling: touch;
    }

    .conversation-item {
        display: flex;
        visibility: visible;
        opacity: 1;
        min-height: 60px;
    }

    .chat-header {
        padding: 0.75rem;
        margin-bottom: 0.75rem;
    }

    .chat-header-left {
        flex: 1;
        min-width: 0;
    }

    .chat-partner-name {
        font-size: 1.05rem;
        font-weight: 700;
        color: var(--text-dark);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
        display: block;
    }

    .conversation-name {
        font-size: 1rem;
        font-weight: 700;
        color: var(--text-dark);
    }

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

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

/* === Messages Deluxe Refresh === */
.messages-page {
    position: relative;
    isolation: isolate;
}

.messages-page::before,
.messages-page::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at 20% 20%, rgba(255, 77, 255, 0.14), transparent 32%), radial-gradient(circle at 82% 10%, rgba(63, 214, 255, 0.16), transparent 28%), radial-gradient(circle at 50% 92%, rgba(255, 255, 255, 0.7), transparent 38%);
    filter: blur(12px);
    opacity: 0.8;
    z-index: -2;
}

.messages-page::after {
    background: radial-gradient(1200px at 50% -200px, rgba(255, 255, 255, 0.55), transparent 70%);
    filter: blur(24px);
    opacity: 0.7;
}

.messages-header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(14px) saturate(140%);
    border: 1px solid rgba(255, 77, 255, 0.18);
    box-shadow: 0 22px 60px rgba(124, 58, 237, 0.12), 0 1px 0 rgba(255, 255, 255, 0.6) inset;
}

.messages-title {
    font-size: 1.6rem;
    letter-spacing: -0.02em;
}

.messages-meta-row span {
    padding: 6px 10px;
    background: rgba(15, 23, 42, 0.04);
    border-radius: 10px;
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.header-chip.live {
    position: relative;
    overflow: hidden;
}

.header-chip.live::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: radial-gradient(circle at 20% 50%, rgba(16, 185, 129, 0.22), transparent 60%);
    animation: pulseRing 2.4s ease-in-out infinite;
}

@keyframes pulseRing {
    0% {
        transform: scale(0.9);
        opacity: 0.9;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.5;
    }

    100% {
        transform: scale(0.9);
        opacity: 0.9;
    }
}

.conversation-search {
    box-shadow: 0 14px 36px rgba(124, 58, 237, 0.08);
}

.conversation-search-icon {
    position: relative;
    width: 26px;
    height: 26px;
}

.conversation-search-icon::before {
    content: "🔍";
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #4b5563;
}

.compact-button .icon-circle {
    margin-right: 6px;
}

.conversations-column {
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.12), 0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

.conversation-item {
    position: relative;
    overflow: hidden;
}

.conversation-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(255, 77, 255, 0.08), rgba(124, 58, 237, 0.06));
    opacity: 0;
    transition: opacity var(--transition-fast);
    pointer-events: none;
}

.conversation-item:hover::after {
    opacity: 1;
}

.conversation-item.active {
    background: linear-gradient(135deg, rgba(255, 77, 255, 0.12), rgba(63, 214, 255, 0.08));
    box-shadow: 0 16px 42px rgba(124, 58, 237, 0.15);
    border-color: rgba(124, 58, 237, 0.22);
}

.conversation-pill {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.chat-avatar-gradient {
    background: radial-gradient(circle at 20% 20%, #ffb8da, #FF4DFF 35%, #7c3aed 80%);
    letter-spacing: 0.08em;
}

.chat-surface {
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.9), rgba(244, 244, 255, 0.94));
    overflow: hidden;
}

.chat-surface::after {
    content: "";
    position: absolute;
    inset: -30% -10% auto -10%;
    height: 65%;
    background: radial-gradient(closest-side, rgba(255, 77, 255, 0.16), transparent 60%), radial-gradient(closest-side, rgba(63, 214, 255, 0.14), transparent 60%);
    filter: blur(28px);
    opacity: 0.65;
    z-index: -1;
}

.chat-header {
    border: 1px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px) saturate(130%);
    box-shadow: 0 16px 38px rgba(15, 23, 42, 0.12);
}

.chat-top-badges .pill-soft {
    background: rgba(15, 23, 42, 0.06);
    border-color: rgba(15, 23, 42, 0.08);
}

.chat-history {
    padding: 1.2rem 0.1rem 1rem;
    scroll-padding-bottom: 140px;
}

.chat-message-wrapper {
    margin-bottom: 0.85rem;
}

.chat-bubble {
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(4px);
}

.chat-message-wrapper.outgoing .chat-bubble {
    background: linear-gradient(135deg, var(--primary-color), #A53CFF);
    color: #fff;
    box-shadow: 0 4px 12px rgba(255, 77, 255, 0.25);
    margin-left: auto;
}

.chat-message-wrapper.incoming .chat-bubble {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(15, 23, 42, 0.08);
    margin-right: auto;
}

.message-reaction-chip {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(124, 58, 237, 0.18);
    box-shadow: 0 10px 28px rgba(124, 58, 237, 0.14);
}

.msg-action-btn,
.quick-react-btn {
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.18);
}

.reply-btn {
    background: #fff;
    border: 1px solid rgba(124, 58, 237, 0.25);
}

.chat-input-row {
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.95), rgba(247, 248, 255, 0.98));
    border: 1px solid rgba(255, 77, 255, 0.15);
    border-radius: 20px;
    padding: 0.75rem 1rem;
    box-shadow: 0 4px 16px rgba(255, 77, 255, 0.1);
    margin: 0 1rem 1rem;
}

.chat-input {
    border: 1px solid rgba(124, 58, 237, 0.18);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.chat-input:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(255, 77, 255, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.chat-send-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #111827, #312e81);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 18px 36px rgba(17, 24, 39, 0.24);
    padding: 0.65rem 1.2rem;
}

.chat-send-btn::after {
    content: "→";
    font-weight: 800;
    font-size: 0.95rem;
}

.icon-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: var(--gradient-primary);
    color: #fff;
    font-weight: 800;
    box-shadow: 0 10px 20px rgba(255, 77, 255, 0.24);
}

.icon-shield::before {
    content: "🛡️";
}

.icon-link::before {
    content: "🔗";
}

.icon-user::before {
    content: "👤";
}

.icon-dot::before {
    content: "•";
    font-size: 18px;
}

.icon-flag::before {
    content: "🚩";
}

.icon-unblock::before {
    content: "✅";
}

.icon-block::before {
    content: "🚫";
}

.icon-pause::before {
    content: "⏸";
}

.icon-snow::before {
    content: "❄️";
}

.icon-gear::before {
    content: "⚙️";
}

.icon-down::before {
    content: "⬇️";
}

.icon-plus::before {
    content: "➕";
}

.icon-dots::before {
    content: "⋯";
    font-size: 16px;
}

.icon-shield,
.icon-link,
.icon-user,
.icon-dot,
.icon-flag,
.icon-unblock,
.icon-block,
.icon-pause,
.icon-snow,
.icon-gear,
.icon-down,
.icon-plus,
.icon-dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    margin-right: 6px;
}

.pill-action .icon-dot {
    margin-right: 8px;
}

.safety-item .icon-flag,
.safety-item .icon-block,
.safety-item .icon-unblock,
.safety-item .icon-gear,
.safety-item .icon-pause,
.safety-item .icon-snow,
.safety-item .icon-down {
    margin-right: 10px;
}

/* =============================
     GLOBAL AVATAR STYLES
     ============================= */
/* Used across multiple pages - keep in global styles */
.avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), #A53CFF);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.avatar-sm {
    width: 36px;
    height: 36px;
    font-size: .85rem;
}

/* =============================
     PROFILE PAGE STYLES
     ============================= */
.profile-page {
    position: relative;
}

.profile-banner {
    position: relative;
    height: 260px;
    border-radius: 20px;
    overflow: visible;
    margin: 0 0 160px;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.08);
}

.profile-cover-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #6AE6FF 0%, #A53CFF 50%, var(--primary-color) 100%);
    filter: saturate(105%);
    border-radius: 20px;
    overflow: hidden;
    z-index: 1;
}

.profile-cover-gradient::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 40%, rgba(255, 255, 255, .16), rgba(255, 255, 255, 0) 55%);
    mix-blend-mode: overlay;
}

.profile-banner-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    z-index: 0;
}

.profile-avatar-wrapper {
    position: absolute;
    left: 50%;
    bottom: -145px;
    transform: translateX(-50%);
    padding: 10px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fff, #d9d9d9);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24);
    z-index: 2;
}

.profile-page .profile-avatar-wrapper .profile-avatar {
    width: 250px !important;
    height: 250px !important;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), #A53CFF);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 5.5rem !important;
    font-weight: 800;
    letter-spacing: -2px;
    border: 10px solid #fff;
    overflow: hidden;
    position: relative;
}

.profile-page .profile-avatar-wrapper .profile-avatar img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    border-radius: 50%;
}

@media (max-width: 900px) {
    .profile-banner {
        height: 220px;
        margin-bottom: 140px;
    }

    .profile-avatar-wrapper {
        bottom: -110px;
        padding: 8px;
    }

    .profile-page .profile-avatar-wrapper .profile-avatar {
        width: 200px !important;
        height: 200px !important;
        font-size: 4.8rem !important;
        border-width: 8px;
    }
}

@media (max-width: 640px) {
    .profile-banner {
        height: 200px;
        margin-bottom: 130px;
    }

    .profile-avatar-wrapper {
        bottom: -100px;
        padding: 7px;
    }

    .profile-page .profile-avatar-wrapper .profile-avatar {
        width: 180px !important;
        height: 180px !important;
        font-size: 4.2rem !important;
        border-width: 7px;
    }
}

.profile-header-section {
    max-width: 1000px;
    margin: 100px auto 2rem;
    padding: 0 var(--spacing-md);
    text-align: center;
}

.profile-name {
    font-size: 2.2rem;
    margin: 0;
    font-weight: 700;
}

.profile-handle {
    display: inline-block;
    margin-top: .35rem;
    font-size: .95rem;
    color: var(--text-light);
    font-weight: 600;
}

.profile-tags {
    margin: 1rem 0 1.25rem;
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    justify-content: center;
}

.passion-tag {
    background: var(--primary-color);
    color: #fff;
    padding: .4rem .9rem;
    border-radius: 30px;
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .5px;
    box-shadow: 0 4px 12px rgba(255, 77, 255, .35);
}

.profile-bio {
    max-width: 760px;
    margin: .25rem auto 1.75rem;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-dark);
}

.profile-stats {
    display: flex;
    justify-content: center;
    gap: 2.2rem;
    flex-wrap: wrap;
    margin-bottom: 1.75rem;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-light);
}

/* Stats Dropdown (Mobile) */
.stats-dropdown-btn {
    display: none;
    background: #f3f4f6;
    border: 2px solid #e5e7eb;
    color: #6b7280;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: auto;
    margin: 0 auto 1.75rem;
    text-align: center;
}

.stats-dropdown-btn:hover {
    background: #e5e7eb;
    border-color: #d1d5db;
}

.stats-dropdown-btn.active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.stats-dropdown-menu {
    display: none;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1.75rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.stats-dropdown-menu.active {
    display: block;
}

.stats-dropdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    border-bottom: 1px solid #f3f4f6;
}

.stats-dropdown-item:last-child {
    border-bottom: none;
}

.stats-dropdown-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stats-dropdown-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

.profile-action-row {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.profile-btn {
    text-decoration: none;
    cursor: pointer;
    border: none;
    padding: .75rem 1.3rem;
    font-size: .85rem;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition-fast);
}

.profile-btn.outline {
    background: #fff;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

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

.profile-btn.primary {
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 4px 14px rgba(255, 77, 255, 0.4);
}

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

.profile-action-row .profile-btn {
    min-width: 140px;
    text-align: center;
}

.profile-btn.ghost {
    background: #f3f4f6;
    color: #374151;
    border: 2px solid #e5e7eb;
}

.profile-btn.ghost:hover {
    background: #e5e7eb;
}

.profile-btn.icon-btn {
    width: 48px;
    padding: 0.55rem 0;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.profile-btn.primary.follow-btn.is-following {
    background: #6b7280;
    color: #fff;
}

.profile-btn.primary.follow-btn.is-following:hover {
    background: #4b5563;
}

.profile-menu {
    position: relative;
}

.profile-menu-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 10;
    min-width: 180px;
    padding: .25rem 0;
}

.profile-menu-item {
    width: 100%;
    text-align: left;
    padding: 12px 16px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: .9rem;
    color: #374151;
    transition: background 0.15s, color 0.15s;
    display: block;
}

.profile-menu-item:hover {
    background: #eef2ff;
    color: #4338ca;
}

.profile-menu-item.danger:hover {
    background: #fee2e2;
    color: #991b1b;
}

.profile-menu-item.warning:hover {
    background: #fef3c7;
    color: #92400e;
}

.profile-menu-item.link {
    text-decoration: none;
}

.profile-menu-item.link:hover {
    background: #dbeafe;
    color: #1d4ed8;
}

.blocked-badge {
    display: none;
    align-items: center;
    gap: 12px;
    justify-content: center;
    margin: 22px auto 0;
    padding: 14px 18px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(254, 242, 242, 0.95), rgba(254, 226, 226, 0.95));
    border: 1px solid #fecaca;
    color: #991b1b;
    max-width: 720px;
    box-shadow: 0 10px 30px rgba(153, 27, 27, 0.08);
    backdrop-filter: blur(8px);
}

.blocked-badge.is-visible {
    display: flex;
}

.profile-page.is-blocked-view .profile-header-section {
    margin-top: 100px;
}

.blocked-badge__icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: #fff;
    color: #dc2626;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    border: 1px solid #fecdd3;
}

.blocked-badge__title {
    font-weight: 800;
    font-size: 1rem;
    margin-bottom: 4px;
}

.blocked-badge__text {
    color: #b91c1c;
    font-size: 0.92rem;
}

/* Tabs */
.profile-tabs-wrapper {
    max-width: 1100px;
    margin: 2.5rem auto 4rem;
    padding: 0 var(--spacing-md);
}

/* Tabs Dropdown (Mobile) */
.tabs-dropdown-container {
    display: none;
    margin-bottom: 1.25rem;
}

.tabs-dropdown-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: #f3f4f6;
    border: 2px solid #e5e7eb;
    color: #374151;
    padding: 12px 16px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tabs-dropdown-btn:hover {
    background: #e5e7eb;
    border-color: #d1d5db;
}

.tabs-dropdown-btn.active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.tabs-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    z-index: 100;
    margin-top: -2px;
}

.tabs-dropdown-menu.active {
    display: block;
}

.tabs-dropdown-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px 16px;
    border: none;
    background: none;
    color: #374151;
    font-weight: 500;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f3f4f6;
    text-align: left;
}

.tabs-dropdown-item:last-child {
    border-bottom: none;
}

.tabs-dropdown-item:hover {
    background: #f9fafb;
    color: var(--primary-color);
}

.tabs-dropdown-item.active {
    background: #f3f4f6;
    color: var(--primary-color);
    font-weight: 700;
}

.profile-tabs {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
    justify-content: center;
}

.tab-btn {
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    padding: .6rem 1.1rem;
    font-size: .75rem;
    font-weight: 600;
    border-radius: 40px;
    cursor: pointer;
    transition: var(--transition-fast);
    letter-spacing: .5px;
}

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

.tab-btn.active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(255, 77, 255, .35);
}

.tab-panels {
    display: block;
}

.tab-panel {
    display: none;
    animation: fadeIn .5s ease;
}

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

/* Cards */
.card {
    background: #fff;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.4rem 1.4rem 1.2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .05);
    transition: var(--transition-fast);
}

.card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 6px 24px rgba(255, 77, 255, 0.15);
}

.card-spacious {
    padding: 1.8rem 1.7rem 1.6rem;
}

.panel-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 .75rem;
    color: #1f2937;
}

.panel-text {
    font-size: .9rem;
    line-height: 1.6;
    color: #374151;
    margin: 0 0 .5rem;
}

/* Skills */
.skills-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    margin: 0;
    padding: 0;
}

.skill-item {
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    padding: .45rem .85rem;
    font-size: .65rem;
    font-weight: 600;
    border-radius: 30px;
    letter-spacing: .5px;
    color: #1f2937;
}

/* Projects */
.projects-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.project-card {
    background: #fff;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.1rem 1.1rem .95rem;
    display: flex;
    flex-direction: column;
    gap: .55rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .05);
}

.project-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 6px 20px rgba(255, 77, 255, .18);
}

.project-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: .75rem;
}

.project-title {
    font-size: .95rem;
    margin: 0;
    font-weight: 700;
}

.project-tag {
    background: var(--primary-color);
    color: #fff;
    font-size: .55rem;
    font-weight: 600;
    padding: .3rem .6rem;
    border-radius: 20px;
    letter-spacing: .5px;
    box-shadow: 0 2px 6px rgba(255, 77, 255, 0.35);
}

.project-desc {
    font-size: .75rem;
    line-height: 1.5;
    margin: 0;
    color: var(--text-dark);
}

.project-link {
    font-size: .7rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--primary-color);
}

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

/* Services */
.services-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.service-card {
    background: #fff;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.1rem 1.1rem .95rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .05);
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.service-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 6px 20px rgba(255, 77, 255, .18);
}

.service-title {
    font-size: .95rem;
    margin: 0;
    font-weight: 700;
}

.service-desc {
    font-size: .75rem;
    line-height: 1.5;
    margin: 0;
    color: var(--text-dark);
}

.service-btn {
    align-self: flex-start;
    background: var(--primary-color);
    color: #fff;
    text-decoration: none;
    font-size: .65rem;
    font-weight: 600;
    padding: .45rem .85rem;
    border-radius: 30px;
    box-shadow: 0 3px 10px rgba(255, 77, 255, 0.35);
    transition: var(--transition-fast);
}

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

/* Reels Grid - Google Electric Border Animation */
.reel-card {
    position: relative;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.reel-card::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 14px;
    padding: 6px;
    background: linear-gradient(45deg,
            #4285f4, #ea4335, #fbbc04, #34a853,
            #4285f4, #ea4335, #fbbc04, #34a853);
    background-size: 400% 400%;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: electric-border 6s linear infinite;
    opacity: 1;
    transition: opacity 0.3s ease;
    pointer-events: none;
    filter: brightness(1.2) saturate(1.3);
}

.reel-card:hover::before {
    filter: brightness(1.4) saturate(1.5);
    inset: -8px;
}

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

@keyframes electric-border {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.reel-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, 0.7));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 16px;
    pointer-events: none;
}

@media (max-width: 800px) {
    .profile-stats {
        gap: 1.2rem;
    }

    .profile-banner {
        height: 210px;
        margin-bottom: 100px;
    }

    .profile-avatar-wrapper {
        bottom: -95px;
        padding: 7px;
    }

    .profile-page .profile-avatar-wrapper .profile-avatar {
        width: 170px !important;
        height: 170px !important;
        font-size: 4rem !important;
        border-width: 7px;
    }

    .profile-header-section {
        margin: 90px auto 1.5rem;
    }

    .profile-name {
        font-size: 1.75rem;
    }
}

@media (max-width: 520px) {
    .profile-tags {
        gap: .45rem;
    }

    .passion-tag {
        font-size: .6rem;
        padding: .35rem .7rem;
    }

    .profile-stats {
        display: none;
    }

    .stats-dropdown-btn {
        display: block;
    }

    .profile-tabs {
        display: none;
    }

    .tabs-dropdown-container {
        display: block;
        position: relative;
    }

    .stat-number {
        font-size: 1.15rem;
    }

    .profile-action-row {
        gap: .6rem;
    }

    .profile-btn {
        padding: .6rem 1rem;
        font-size: .75rem;
    }

    .skills-list {
        gap: .4rem;
    }
}

/* =============================
     EDIT PROFILE PAGE STYLES
     ============================= */
.edit-profile-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    max-width: 1600px;
    margin: 2.5rem auto 3.5rem;
    padding: 0 var(--spacing-lg);
}

.edit-profile-preview {
    align-self: start;
}

.cover-preview {
    position: relative;
    height: 240px;
    margin-bottom: 90px;
}

.cover-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #6AE6FF 0%, #A53CFF 50%, var(--primary-color) 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .5px;
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 32px rgba(0, 0, 0, .18);
}

.avatar-preview {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), #A53CFF);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 3rem;
    font-weight: 700;
    box-shadow: 0 12px 36px rgba(0, 0, 0, .28);
    border: 4px solid #fff;
    margin-bottom: -10px;
    overflow: hidden;
}

.upload-group {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
}

.file-field {
    display: flex;
    flex-direction: column;
    gap: .4rem;
    background: #fff;
    border: 2px solid var(--border-color);
    padding: .9rem 1rem .8rem;
    border-radius: var(--radius-lg);
    font-size: .75rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .05);
}

.file-field:hover {
    border-color: var(--primary-color);
}

.file-label {
    font-weight: 700;
    font-size: .7rem;
    letter-spacing: .75px;
    text-transform: uppercase;
    color: var(--text-dark);
}

.file-field input[type=file] {
    font-size: .7rem;
}

.hint {
    font-size: .6rem;
    color: var(--text-light);
}

.edit-profile-form-wrapper {
    background: #fff;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem 2rem 1.75rem;
    box-shadow: 0 6px 26px rgba(0, 0, 0, .06);
}

.page-title {
    font-size: 1.75rem;
    margin: 0 0 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 1px;
}

.edit-profile-form {
    display: flex;
    flex-direction: column;
    gap: 1.3rem;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: .55rem;
}

.form-label {
    font-weight: 600;
    font-size: .8rem;
    letter-spacing: .5px;
    text-transform: uppercase;
    color: var(--text-dark);
}

.form-input,
.form-textarea {
    width: 100%;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: .75rem .9rem;
    font-family: var(--font-primary);
    font-size: .9rem;
    transition: var(--transition-fast);
    background: #fff;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 77, 255, .15);
}

.form-textarea {
    resize: vertical;
}

.checkbox-grid {
    display: grid;
    gap: .65rem;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.checkbox-pill {
    position: relative;
    display: flex;
    align-items: center;
    gap: .45rem;
    background: var(--bg-light);
    border: 2px solid var(--border-color);
    padding: .6rem .75rem;
    font-size: .65rem;
    font-weight: 600;
    border-radius: 40px;
    cursor: pointer;
    user-select: none;
    transition: var(--transition-fast);
}

.checkbox-pill input {
    display: none;
}

.checkbox-pill:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(255, 77, 255, .12);
}

.checkbox-pill input:checked+span,
.checkbox-pill input:checked~span {
    color: var(--primary-color);
    font-weight: 700;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: .9rem;
    margin-top: .5rem;
}

.btn-primary,
.btn-secondary {
    display: inline-block;
    text-decoration: none;
    font-weight: 600;
    font-size: .8rem;
    padding: .75rem 1.4rem;
    border-radius: 50px;
    transition: var(--transition-fast);
}

.btn-primary {
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 4px 14px rgba(255, 77, 255, .4);
    border: none;
}

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

.btn-secondary {
    background: #fff;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

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

/* =============================
     PRICING PAGE STYLES
     ============================= */
.pricing-hero {
    background: linear-gradient(135deg, #6AE6FF 0%, #A53CFF 50%, var(--primary-color) 100%);
    color: white;
    padding: var(--spacing-xl) var(--spacing-md);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.pricing-hero-inner {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.pricing-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    line-height: 1.2;
}

.pricing-subtitle {
    font-size: 1.25rem;
    opacity: 0.95;
    margin-bottom: var(--spacing-md);
}

.pricing-grid-section {
    padding: var(--spacing-xl) var(--spacing-md);
    background-color: var(--bg-light);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
    max-width: 1200px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.pricing-card.pricing-highlight {
    border-color: var(--primary-color);
    border-width: 3px;
    position: relative;
    box-shadow: 0 8px 24px rgba(255, 77, 255, 0.2);
}

.pricing-card.pricing-highlight::before {
    content: 'POPULAR';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary-color), #A53CFF);
    color: white;
    padding: 4px 16px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.pricing-card-header {
    text-align: center;
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-md);
    border-bottom: 2px solid var(--border-color);
}

.tier-name {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
    color: var(--text-dark);
}

.tier-tagline {
    font-size: 1rem;
    color: var(--text-light);
    margin-bottom: var(--spacing-sm);
    font-style: italic;
}

.tier-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: var(--spacing-xs);
}

.tier-features {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--spacing-lg) 0;
    flex: 1;
}

.tier-features li {
    padding: var(--spacing-xs) 0;
    color: var(--text-dark);
    line-height: 1.7;
    position: relative;
    padding-left: 24px;
}

.tier-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 700;
}

.tier-actions {
    margin-top: auto;
}

.tier-btn {
    width: 100%;
    padding: 0.85rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-color);
}

.tier-btn.primary {
    background: linear-gradient(135deg, var(--primary-color), #A53CFF);
    color: white;
    border: none;
    box-shadow: 0 4px 14px rgba(255, 77, 255, 0.4);
}

.tier-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 77, 255, 0.5);
}

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

.tier-btn.outline:hover {
    background: var(--primary-color);
    color: white;
}

/* =============================
     BILLING PAGE STYLES
     ============================= */
.billing-hero {
    background: linear-gradient(135deg, #6AE6FF 0%, #A53CFF 50%, var(--primary-color) 100%);
    color: white;
    padding: var(--spacing-xl) var(--spacing-md);
    text-align: center;
}

.billing-hero-inner {
    max-width: 900px;
    margin: 0 auto;
}

.billing-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
}

.billing-subtitle {
    font-size: 1.15rem;
    opacity: 0.95;
}

.billing-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: var(--spacing-xl) var(--spacing-md);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.billing-card {
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.billing-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.billing-card-featured {
    border-color: var(--primary-color);
    border-width: 3px;
    box-shadow: 0 8px 24px rgba(255, 77, 255, 0.15);
}

.billing-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: var(--text-dark);
}

.billing-card-desc {
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
}

.billing-plan-subheading {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
}

.billing-plan-details {
    margin-bottom: var(--spacing-lg);
}

.billing-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) 0;
    border-bottom: 1px solid var(--border-color);
}

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

.billing-info-label {
    font-weight: 600;
    color: var(--text-dark);
}

.billing-info-value {
    color: var(--text-light);
}

.billing-info-value-with-badge {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.billing-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.billing-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.billing-badge-neutral {
    background: rgba(107, 114, 128, 0.15);
    color: #6b7280;
}

.billing-badge-blue {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}

.billing-badge-pink {
    background: rgba(255, 77, 255, 0.15);
    color: var(--primary-color);
}

.billing-badge-purple {
    background: rgba(168, 85, 247, 0.15);
    color: #a855f7;
}

.billing-badge-teal {
    background: rgba(20, 184, 166, 0.15);
    color: #14b8a6;
}

.billing-actions {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.billing-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.billing-btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #A53CFF);
    color: white;
    border: none;
    box-shadow: 0 4px 14px rgba(255, 77, 255, 0.4);
}

.billing-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 77, 255, 0.5);
}

.billing-btn-secondary {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.billing-btn-secondary:hover {
    background: rgba(255, 77, 255, 0.1);
}

.billing-btn-outline {
    background: white;
    color: var(--text-dark);
    border: 2px solid var(--border-color);
}

.billing-btn-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.billing-note {
    margin-top: var(--spacing-md);
    font-size: 0.9rem;
    color: var(--text-light);
    font-style: italic;
}

.payment-methods-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.payment-method {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md);
    background: var(--bg-light);
    border-radius: var(--radius-md);
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.payment-method:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(255, 77, 255, 0.1);
}

.payment-method-info {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.payment-card-icon {
    width: 40px;
    height: 28px;
    background: linear-gradient(135deg, var(--primary-color), #A53CFF);
    border-radius: 4px;
}

.payment-method-brand {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 2px;
}

.payment-method-expiry {
    font-size: 0.85rem;
    color: var(--text-light);
}

.payment-default-label {
    background: linear-gradient(135deg, var(--primary-color), #A53CFF);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
}

.payment-action-link {
    background: none;
    border: none;
    color: var(--primary-color);
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    font-size: 0.9rem;
}

.payment-action-link:hover {
    color: var(--primary-hover);
}

.billing-table-wrapper {
    overflow-x: auto;
}

.billing-table {
    width: 100%;
    border-collapse: collapse;
}

.billing-table th,
.billing-table td {
    padding: var(--spacing-sm);
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.billing-table th {
    font-weight: 600;
    color: var(--text-dark);
    background: var(--bg-light);
}

.billing-table td {
    color: var(--text-light);
}

.billing-table tr:hover {
    background: var(--bg-light);
}

.billing-download-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.billing-download-link:hover {
    text-decoration: underline;
}

/* =============================
     SETTINGS PAGE STYLES
     ============================= */
.settings-wrapper {
    max-width: 900px;
    margin: 2.5rem auto 3.5rem;
    padding: 0 var(--spacing-md);
}

.settings-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: var(--spacing-lg);
    color: #111827;
}

.settings-card {
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.settings-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    color: #111827;
}

.settings-field-group {
    margin-bottom: var(--spacing-md);
}

.settings-label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 600;
    color: #1f2937;
    font-size: 0.95rem;
}

.settings-input,
.settings-textarea,
.settings-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-family: var(--font-primary);
    font-size: 1rem;
    color: #1f2937;
    background-color: #ffffff;
    transition: all 0.3s ease;
}

.settings-input:focus,
.settings-textarea:focus,
.settings-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 77, 255, 0.1);
}

.settings-textarea {
    resize: vertical;
    min-height: 100px;
}

.settings-actions-inline {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.settings-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid var(--border-color);
    background: white;
    color: var(--text-dark);
}

.settings-btn.primary {
    background: linear-gradient(135deg, var(--primary-color), #A53CFF);
    color: white;
    border: none;
    box-shadow: 0 4px 14px rgba(255, 77, 255, 0.4);
}

.settings-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 77, 255, 0.5);
}

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

.settings-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

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

/* =============================
     SERVICES PAGE STYLES
     ============================= */
.services-hero {
    background: linear-gradient(135deg, #6AE6FF 0%, #A53CFF 50%, var(--primary-color) 100%);
    color: white;
    padding: var(--spacing-xl) var(--spacing-md);
    text-align: center;
}

.services-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-xl) var(--spacing-md);
}

.services-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--spacing-xl);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.service-card {
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(255, 77, 255, 0.15);
    border-color: var(--primary-color);
}

.service-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
}

.service-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), #A53CFF);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
}

.service-provider {
    flex: 1;
}

.provider-name {
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 2px;
}

.provider-passion {
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 600;
}

.service-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
    color: var(--text-dark);
}

.service-desc {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: var(--spacing-sm);
}

.service-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

.service-btn {
    background: linear-gradient(135deg, var(--primary-color), #A53CFF);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
    display: inline-block;
}

.service-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(255, 77, 255, 0.4);
}

/* =============================
     RESPONSIVE DESIGN FIXES
     ============================= */
@media (max-width: 768px) {

    .pricing-grid,
    .billing-container,
    .services-grid {
        grid-template-columns: 1fr;
    }

    .pricing-title,
    .billing-title {
        font-size: 2rem;
    }

    .tier-name {
        font-size: 1.5rem;
    }

    .tier-price {
        font-size: 2rem;
    }

    .category-grid,
    .goals-grid,
    .experience-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }

    .onboarding-title {
        font-size: 1.75rem;
    }

    .settings-title {
        font-size: 1.75rem;
    }

    .billing-info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-xs);
    }
}

@media (max-width: 480px) {

    .pricing-title,
    .billing-title {
        font-size: 1.75rem;
    }

    .pricing-subtitle,
    .billing-subtitle {
        font-size: 1rem;
    }

    .tier-btn,
    .billing-btn {
        width: 100%;
    }

    .onboarding-actions {
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    .onboarding-submit {
        width: 100%;
    }
}

/* =============================
     SERVICES PAGE - ADDITIONAL STYLES
     ============================= */
.services-hero-inner {
    max-width: 900px;
    margin: 0 auto;
}

.services-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
    color: white;
}

.services-subtitle {
    font-size: 1.15rem;
    opacity: 0.95;
    color: white;
}

.services-filters {
    background: var(--bg-white);
    padding: var(--spacing-lg) var(--spacing-md);
    border-bottom: 2px solid var(--border-color);
}

.filters-form {
    max-width: 1200px;
    margin: 0 auto;
}

.filters-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.filter-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.filter-select {
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 77, 255, 0.1);
}

.filters-apply-btn {
    background: linear-gradient(135deg, var(--primary-color), #A53CFF);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(255, 77, 255, 0.4);
}

.filters-apply-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 77, 255, 0.5);
}

.services-grid-section {
    padding: var(--spacing-xl) var(--spacing-md);
    background: var(--bg-light);
}

.service-provider-card {
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.service-provider-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(255, 77, 255, 0.15);
    border-color: var(--primary-color);
}

.provider-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-xs);
}

.provider-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), #A53CFF);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
}

.provider-meta {
    flex: 1;
}

.provider-name {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 4px 0;
    color: var(--text-dark);
}

.provider-passion {
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 600;
}

.provider-desc {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: var(--spacing-sm);
}

.provider-rating-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-sm);
    padding-top: var(--spacing-sm);
    border-top: 1px solid var(--border-color);
}

.rating-stars {
    color: #fbbf24;
    font-size: 1rem;
}

.provider-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

.provider-details-btn {
    background: linear-gradient(135deg, var(--primary-color), #A53CFF);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
}

.provider-details-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(255, 77, 255, 0.4);
}

.services-note-section {
    padding: var(--spacing-lg) var(--spacing-md);
    background: var(--bg-white);
    text-align: center;
}

/* =============================
     HELP CENTER PAGE STYLES
     ============================= */
.help-hero {
    background: linear-gradient(135deg, #6AE6FF 0%, #A53CFF 50%, var(--primary-color) 100%);
    color: white;
    padding: var(--spacing-xl) var(--spacing-md);
    text-align: center;
}

.help-hero-inner {
    max-width: 900px;
    margin: 0 auto;
}

.help-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
}

.help-subtitle {
    font-size: 1.15rem;
    opacity: 0.95;
}

.help-search-section {
    padding: var(--spacing-lg) var(--spacing-md);
    background: white;
}

.help-search-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    gap: var(--spacing-sm);
    background: white;
    padding: 0.5rem;
    border-radius: 50px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.help-search-input {
    flex: 1;
    padding: 0.85rem 1.25rem;
    border: none;
    border-radius: 50px;
    font-family: var(--font-primary);
    font-size: 1rem;
    background: transparent;
    outline: none;
}

.help-search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 77, 255, 0.1);
}

.help-search-btn {
    background: linear-gradient(135deg, var(--primary-color), #A53CFF);
    color: white;
    border: none;
    padding: 0.85rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(255, 77, 255, 0.4);
}

.help-search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 77, 255, 0.5);
}

.help-faq-section {
    padding: var(--spacing-xl) var(--spacing-md);
    background: var(--bg-light);
    max-width: 900px;
    margin: 0 auto;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.faq-item {
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(255, 77, 255, 0.1);
}

.faq-question {
    width: 100%;
    padding: var(--spacing-md);
    background: none;
    border: none;
    text-align: left;
    font-family: var(--font-primary);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: var(--bg-light);
}

.faq-question-text {
    flex: 1;
}

.faq-toggle {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.faq-question[aria-expanded="true"] .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 var(--spacing-md) var(--spacing-md);
    color: var(--text-light);
    line-height: 1.7;
}

.faq-answer[hidden] {
    display: none;
}

.help-contact-section {
    padding: var(--spacing-xl) var(--spacing-md);
    background: var(--bg-white);
}

.help-contact-card {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    background: var(--bg-light);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    border: 2px solid var(--border-color);
}

.contact-heading {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: var(--text-dark);
}

.contact-text {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: var(--spacing-lg);
}

.contact-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), #A53CFF);
    color: white;
    padding: 0.85rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(255, 77, 255, 0.4);
}

.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 77, 255, 0.5);
}

/* =============================
     ADMIN DASHBOARD STYLES
     ============================= */

/* Admin Dashboard Container */
.admin-dashboard-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem var(--spacing-md) 4rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: calc(100vh - 60px);
}

.admin-dashboard-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, var(--primary-color), #A53CFF);
    border-radius: var(--radius-lg);
    color: white;
    box-shadow: 0 10px 40px rgba(255, 77, 255, 0.3);
}

.admin-dashboard-header h1 {
    font-size: 2.5rem;
    margin: 0 0 0.5rem;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.admin-dashboard-header p {
    font-size: 1.1rem;
    margin: 0;
    opacity: 0.95;
}

/* Alert Messages */
.admin-alert {
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    font-weight: 600;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

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

.admin-alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.admin-alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Metrics Grid */
.admin-metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.admin-metric-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.admin-metric-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), #A53CFF);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.admin-metric-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(255, 77, 255, 0.2);
    border-color: var(--primary-color);
}

.admin-metric-card:hover::before {
    transform: scaleX(1);
}

.metric-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: inline-block;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.admin-metric-card h3 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-light);
    margin: 0 0 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.metric-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 0.5rem 0;
    line-height: 1;
}

.metric-sub {
    font-size: 0.85rem;
    color: var(--text-light);
    display: block;
    margin-top: 0.5rem;
}

/* Admin Panel */
.admin-panel {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
    overflow: hidden;
}

.panel-head {
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-bottom: 2px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.panel-head h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.badge {
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Quick Actions */
.admin-quick-actions {
    margin-bottom: 2.5rem;
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    padding: 1.5rem 2rem;
}

.action-btn {
    background: linear-gradient(135deg, var(--primary-color), #D845FF);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 77, 255, 0.3);
}

.action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 77, 255, 0.4);
}

.action-icon {
    font-size: 1.25rem;
}

/* Search Form */
.admin-search-form {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

.admin-search-input {
    flex: 1;
    min-width: 200px;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.admin-search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 77, 255, 0.1);
}

.admin-search-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.admin-search-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

.admin-search-clear {
    padding: 0.75rem 1.5rem;
    background: #f8f9fa;
    color: var(--text-dark);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.admin-search-clear:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Table Styles */
.table-responsive {
    overflow-x: auto;
    padding: 1.5rem 2rem;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.admin-table thead tr {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-bottom: 2px solid var(--primary-color);
}

.admin-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 700;
    color: var(--text-dark);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.admin-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-dark);
}

.admin-table tbody tr {
    transition: all 0.2s ease;
}

.admin-table tbody tr:hover {
    background: linear-gradient(135deg, rgba(255, 77, 255, 0.05), rgba(165, 60, 255, 0.05));
    transform: scale(1.01);
}

.user-id {
    font-weight: 700;
    color: var(--text-light);
    font-family: monospace;
}

.user-info strong {
    color: var(--text-dark);
    font-weight: 600;
}

.role-badge {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: capitalize;
}

.role-user {
    background: #e3f2fd;
    color: #1976d2;
}

.role-admin {
    background: #fff3e0;
    color: #f57c00;
}

.role-super_admin {
    background: linear-gradient(135deg, #FF4DFF, #A53CFF);
    color: white;
}

/* Role Update Form */
.role-update-form {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.role-select {
    padding: 0.5rem 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.role-select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.btn-update {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.no-results {
    text-align: center;
    padding: 2rem !important;
    color: var(--text-light);
    font-style: italic;
}

/* Pagination */
.admin-pagination {
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 2px solid var(--border-color);
    flex-wrap: wrap;
    gap: 1rem;
}

.pagination-info {
    color: var(--text-light);
    font-weight: 600;
}

.pagination-controls {
    display: flex;
    gap: 0.5rem;
}

.pagination-btn {
    padding: 0.75rem 1.25rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    background: white;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.pagination-btn:hover:not(:disabled) {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

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

/* Audit Table */
.audit-table .action-code {
    background: #f8f9fa;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.85rem;
    color: var(--primary-color);
}

.audit-table .details-pre {
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
    font-family: monospace;
    font-size: 0.85rem;
    color: var(--text-light);
    max-width: 300px;
}

/* Admin Dashboard Two-Column Layout */
.admin-two-column {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

@media (max-width: 992px) {
    .admin-two-column {
        grid-template-columns: 1fr;
    }
}

/* Admin Actions Section */
.admin-actions {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.admin-actions h2 {
    margin: 0 0 1.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
}

/* Mini Button */
.mini-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.mini-btn.danger {
    background: var(--error-color);
}

.mini-btn.danger:hover {
    background: #dc2626;
}

/* Status Chips */
.status-chip {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: capitalize;
}

.status-chip.pending {
    background: #fff3cd;
    color: #856404;
}

.status-chip.approved,
.status-chip.resolved {
    background: #d4edda;
    color: #155724;
}

.status-chip.rejected,
.status-chip.flagged {
    background: #f8d7da;
    color: #721c24;
}

.status-chip.review,
.status-chip.open {
    background: #cce5ff;
    color: #004085;
}

/* Broadcast Form */
.broadcast-form {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
}

.broadcast-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.broadcast-form textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 0.95rem;
    resize: vertical;
    transition: all 0.3s ease;
    color: var(--text-dark);
    background: white;
}

.broadcast-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 77, 255, 0.1);
}

.broadcast-form textarea::placeholder {
    color: var(--text-light);
}

/* Submit Announce Button */
.submit-announce {
    margin-top: 1rem;
    background: linear-gradient(135deg, var(--primary-color), #D845FF);
    color: white;
    padding: 1rem 2rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 77, 255, 0.3);
}

.submit-announce:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 77, 255, 0.4);
}

/* Action Button Danger Variant */
.action-btn.danger {
    background: linear-gradient(135deg, var(--error-color), #dc2626);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.action-btn.danger:hover {
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
    .admin-dashboard-container {
        padding: 1rem var(--spacing-sm) 2rem;
    }

    .admin-dashboard-header h1 {
        font-size: 1.75rem;
    }

    .admin-metrics-grid {
        grid-template-columns: 1fr;
    }

    .panel-head {
        padding: 1rem;
    }

    .panel-head h2 {
        font-size: 1.25rem;
    }

    .table-responsive {
        padding: 1rem;
    }

    .admin-table {
        font-size: 0.85rem;
    }

    .admin-table th,
    .admin-table td {
        padding: 0.5rem;
    }

    .role-update-form {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-pagination {
        flex-direction: column;
        text-align: center;
    }

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

/* Legacy Admin Styles (keeping for backwards compatibility) */
.admin-wrapper {
    max-width: 1200px;
    margin: 2.5rem auto 3.5rem;
    padding: 0 var(--spacing-md);
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.admin-stats .settings-card {
    text-align: center;
    padding: var(--spacing-lg);
}

.admin-stats .settings-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: var(--spacing-xs);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-stats .settings-card div {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-white);
}

.admin-table thead tr {
    text-align: left;
    border-bottom: 2px solid var(--border-color);
    background: var(--bg-light);
}

.admin-table th {
    padding: var(--spacing-sm);
    font-weight: 600;
    color: var(--text-dark);
}

.admin-table td {
    padding: var(--spacing-sm);
    border-bottom: 1px solid var(--border-color);
    color: var(--text-dark);
}

.admin-table tbody tr:hover {
    background: var(--bg-light);
}

.admin-action-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.admin-pagination {
    display: flex;
    justify-content: center;
    gap: var(--spacing-xs);
    margin-top: var(--spacing-lg);
}

.admin-pagination a,
.admin-pagination span {
    padding: 0.5rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    transition: all 0.3s ease;
}

.admin-pagination a:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.admin-pagination span {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* =============================
     MOBILE MENU STYLES
     ============================= */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: var(--spacing-md);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
        z-index: 999;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        width: 100%;
        padding: var(--spacing-sm);
        color: var(--text-dark) !important;
        font-weight: 600;
    }

    .nav-links a:hover,
    .nav-links a.active {
        color: var(--primary-color) !important;
        background: rgba(255, 77, 255, 0.1);
    }

    .help-search-form {
        flex-direction: column;
    }

    .help-search-btn {
        width: 100%;
    }

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

    .admin-table {
        font-size: 0.85rem;
    }

    .admin-table th,
    .admin-table td {
        padding: var(--spacing-xs);
    }
}

/* ===================================
   MESSAGE REACTIONS
   =================================== */
.chat-message-wrapper:hover .quick-react-btn {
    opacity: 1 !important;
}

.quick-react-btn {
    transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.quick-react-btn:hover {
    transform: scale(1.1);
    background: #f3f4f6 !important;
}

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

.reaction-picker {
    animation: slideUp 0.2s ease;
}

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

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

.reaction-option:active {
    transform: scale(0.9);
}

.message-reactions {
    animation: fadeIn 0.3s ease;
    display: flex;
    margin-top: 4px;
    gap: 4px;
    flex-wrap: wrap;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Comment reply indicator */
.comment-item .reply {
    position: relative;
}

.comment-item .reply::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(135deg, #7C3AED 0%, #9f7aea 100%);
    opacity: 0.3;
}

/* Service card title */
.service-title-card {
    font-size: 1.125rem;
    font-weight: 700;
    margin: 12px 0 8px 0;
    color: #1f2937;
}

.service-category {
    display: inline-block;
    background: linear-gradient(135deg, rgba(63, 214, 255, 0.1), rgba(165, 60, 255, 0.1));
    color: #A53CFF;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 8px;
}

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

.service-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.service-header {
    margin-bottom: 12px;
}

.service-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: #1f2937;
}

.service-desc {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 16px;
}

.service-btn {
    display: block;
    width: 100%;
    padding: 10px 20px;
    background: linear-gradient(135deg, #6AE6FF 0%, #A53CFF 100%);
    color: white;
    text-align: center;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 16px;
}

.service-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

/* ===================================
   SETTINGS PAGE ENHANCEMENTS
   =================================== */

/* Toggle row improvements */
.toggle-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #f9fafb;
    border-radius: 12px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.toggle-row:hover {
    background: #f3f4f6;
    border-color: #e5e7eb;
}

.toggle-row input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #ec4899;
}

.toggle-row span {
    font-size: 1rem;
    font-weight: 500;
    color: #374151;
}

/* Settings button improvements */
.settings-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.settings-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.settings-btn:active::after {
    width: 300px;
    height: 300px;
}

.settings-btn.primary {
    background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
    color: white;
    box-shadow: 0 4px 14px rgba(236, 72, 153, 0.3);
}

.settings-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(236, 72, 153, 0.4);
}

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

/* Passkey section enhancements */
.settings-card {
    position: relative;
}

.settings-card h2.settings-card-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.settings-card h2.settings-card-title::before {
    content: '';
    width: 4px;
    height: 24px;
    background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
    border-radius: 2px;
}

.settings-note {
    color: #374151;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Fix text visibility on settings page */
.settings-card p,
.settings-card small,
.settings-card span:not(.status-badge):not(.blocked-handle):not(.blocked-meta),
.settings-card ul,
.settings-card li {
    color: #374151 !important;
}

.settings-card p[style*="color:#6b7280"],
.settings-card p[style*="color:#4b5563"],
.settings-card small[style*="color:#6b7280"],
.settings-card span[style*="color:#6b7280"]:not(.status-badge),
.settings-card div[style*="color:#6b7280"] {
    color: #374151 !important;
}

.settings-card #strengthText,
.settings-card #strengthChecklist,
.settings-card #strengthChecklist li {
    color: #374151 !important;
}

.settings-card #strengthChecklist span {
    color: #6b7280 !important;
}

.settings-card input[type="text"],
.settings-card input[type="email"],
.settings-card input[type="password"],
.settings-card textarea,
.settings-card select {
    color: #1f2937 !important;
    background-color: #ffffff !important;
}

.settings-actions-inline {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Connected accounts styling */
.settings-card>div[style*="flex-direction:column"]>div {
    padding: 14px;
    background: #f9fafb;
    border-radius: 10px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.settings-card>div[style*="flex-direction:column"]>div:hover {
    background: white;
    border-color: #e5e7eb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* Success/Error toast improvements */
#toastNotification {
    animation: slideInFromTop 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes slideInFromTop {
    from {
        transform: translateY(-100px);
        opacity: 0;
    }

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

/* Passkey button icon */
.settings-btn.primary[id*="passkey"]::before {
    content: '🔐';
    display: inline-block;
    font-size: 1.2rem;
    margin-right: 8px;
    line-height: 1;
}

/* Notification preferences visual enhancement */
form[action*="notifications"] .toggle-row:nth-child(1) input:checked~span::after {
    content: ' ✉️';
}

form[action*="notifications"] .toggle-row:nth-child(2) input:checked~span::after {
    content: ' 🔔';
}

form[action*="notifications"] .toggle-row:nth-child(3) input:checked~span::after {
    content: ' 💬';
}

/* Settings form spacing */
.settings-form {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Responsive improvements */
@media (max-width: 640px) {
    .settings-btn {
        width: 100%;
        justify-content: center;
    }

    .settings-actions-inline {
        flex-direction: column;
    }

    .settings-card>div[style*="flex-direction:column"]>div {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
    }

    /* Algorithm Timeline mobile collapse */
    .algorithm-timeline {
        flex-direction: column;
        gap: var(--spacing-lg);
    }

    .timeline-connector {
        display: none;
    }

    .timeline-step {
        width: 100%;
        max-width: 400px;
    }
}