/* ============================================
   VoxPals - Global Styles
   ============================================ */

:root {
    --bg-primary: #0a0a1a;
    --bg-secondary: #0f0f2a;
    --bg-card: rgba(15, 15, 42, 0.85);
    --bg-card-solid: #12122e;
    --bg-input: rgba(255, 255, 255, 0.06);
    --bg-hover: rgba(255, 255, 255, 0.08);
    --text-primary: #ffffff;
    --text-secondary: #a0a0c0;
    --text-muted: #6a6a8a;
    --accent-purple: #a855f7;
    --accent-pink: #ec4899;
    --accent-blue: #3b82f6;
    --accent-gradient: linear-gradient(135deg, #a855f7, #ec4899);
    --accent-gradient-hover: linear-gradient(135deg, #9333ea, #db2777);
    --neon-purple: #b44aff;
    --neon-pink: #ff44aa;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-light: rgba(255, 255, 255, 0.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --shadow-glow: 0 0 30px rgba(168, 85, 247, 0.15);
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.3);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: var(--accent-purple);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-pink);
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.3);
}

.btn-primary:hover {
    background: var(--accent-gradient-hover);
    box-shadow: 0 6px 20px rgba(168, 85, 247, 0.5);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 1.5px solid rgba(255, 255, 255, 0.25);
}

.btn-outline:hover {
    border-color: var(--accent-purple);
    background: rgba(168, 85, 247, 0.1);
}

.btn-lg {
    padding: 14px 28px;
    font-size: 15px;
    border-radius: var(--radius-md);
}

.btn-create {
    background: var(--accent-gradient);
    color: white;
    border-radius: 20px;
    padding: 8px 20px;
    font-size: 13px;
}

.btn-create:hover {
    background: var(--accent-gradient-hover);
    transform: translateY(-1px);
}

.btn-login {
    width: 100%;
    padding: 12px;
    background: var(--accent-gradient);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-login:hover {
    background: var(--accent-gradient-hover);
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.4);
}

.btn-google {
    width: 100%;
    padding: 12px;
    background: var(--bg-input);
    color: var(--text-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.btn-google:hover {
    background: var(--bg-hover);
    border-color: var(--accent-purple);
}

/* ============================================
   Landing Navigation
   ============================================ */

.landing-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 40px;
    background: rgba(10, 10, 26, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.logo-icon {
    font-size: 24px;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-text {
    font-size: 22px;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-center {
    display: flex;
    gap: 32px;
}

.nav-link {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--text-primary);
}

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

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 100px 60px 30px;
    overflow: hidden;
    background: radial-gradient(ellipse at 50% 105%, rgba(255, 150, 50, 0.08) 0%, transparent 35%),
                radial-gradient(ellipse at 50% 90%, rgba(255, 120, 30, 0.06) 0%, transparent 40%),
                radial-gradient(ellipse at 30% 70%, rgba(168, 85, 247, 0.12) 0%, transparent 45%),
                radial-gradient(ellipse at 70% 60%, rgba(236, 72, 153, 0.08) 0%, transparent 40%),
                radial-gradient(ellipse at 50% 50%, rgba(168, 85, 247, 0.1) 0%, transparent 50%),
                radial-gradient(ellipse at 80% 20%, rgba(236, 72, 153, 0.06) 0%, transparent 50%),
                radial-gradient(ellipse at 20% 30%, rgba(139, 92, 246, 0.05) 0%, transparent 40%),
                linear-gradient(to top, rgba(30, 15, 10, 0.4) 0%, rgba(15, 10, 30, 0.6) 30%, #0a0a1a 70%);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    background-size: 200px 200px;
    pointer-events: none;
    z-index: 0;
}

.hero-glow {
    position: absolute;
    bottom: -10%;
    left: 50%;
    transform: translateX(-50%);
    width: 120%;
    height: 60%;
    background: radial-gradient(ellipse at center bottom, rgba(255, 150, 50, 0.1) 0%, rgba(255, 120, 30, 0.06) 25%, rgba(168, 85, 247, 0.04) 50%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    pointer-events: none;
}

.neon-line {
    position: absolute;
    height: 5px;
    border-radius: 5px;
    filter: blur(2px);
    box-shadow: 0 0 15px 3px rgba(180, 74, 255, 0.4),
                0 0 40px 8px rgba(255, 68, 170, 0.2);
}

.neon-line-1 {
    top: 20%;
    left: -10%;
    width: 120%;
    height: 5px;
    background: linear-gradient(90deg, transparent 5%, var(--neon-purple), var(--neon-pink), var(--neon-purple), transparent 95%);
    opacity: 0.6;
    animation: neonFlow1 8s ease-in-out infinite;
    box-shadow: 0 0 20px 5px rgba(180, 74, 255, 0.5),
                0 0 60px 10px rgba(255, 68, 170, 0.25);
}

.neon-line-2 {
    top: 50%;
    left: -10%;
    width: 120%;
    height: 6px;
    background: linear-gradient(90deg, transparent 5%, var(--neon-pink), var(--neon-purple), var(--neon-pink), transparent 95%);
    opacity: 0.5;
    animation: neonFlow2 10s ease-in-out infinite;
    box-shadow: 0 0 20px 5px rgba(255, 68, 170, 0.5),
                0 0 60px 10px rgba(180, 74, 255, 0.25);
}

.neon-line-3 {
    top: 75%;
    left: -10%;
    width: 120%;
    height: 4px;
    background: linear-gradient(90deg, transparent 5%, var(--accent-blue), var(--neon-purple), var(--neon-pink), transparent 95%);
    opacity: 0.4;
    animation: neonFlow3 12s ease-in-out infinite;
    box-shadow: 0 0 15px 4px rgba(59, 130, 246, 0.4),
                0 0 50px 8px rgba(180, 74, 255, 0.2);
}

@keyframes neonFlow1 {
    0%, 100% { transform: translateX(-5%) rotate(-1deg) scaleY(1); opacity: 0.6; }
    25% { transform: translateX(2%) rotate(0.5deg) scaleY(2.5); opacity: 0.8; }
    50% { transform: translateX(5%) rotate(1deg) scaleY(1.5); opacity: 0.7; }
    75% { transform: translateX(0%) rotate(-0.5deg) scaleY(2); opacity: 0.9; }
}

@keyframes neonFlow2 {
    0%, 100% { transform: translateX(5%) rotate(0.5deg) scaleY(1); opacity: 0.5; }
    25% { transform: translateX(-2%) rotate(-1deg) scaleY(2); opacity: 0.7; }
    50% { transform: translateX(-5%) rotate(-0.5deg) scaleY(2.5); opacity: 0.8; }
    75% { transform: translateX(2%) rotate(0.5deg) scaleY(1.5); opacity: 0.6; }
}

@keyframes neonFlow3 {
    0%, 100% { transform: translateX(-3%) rotate(-0.5deg) scaleY(1); opacity: 0.4; }
    25% { transform: translateX(3%) rotate(1deg) scaleY(2); opacity: 0.6; }
    50% { transform: translateX(3%) rotate(0.5deg) scaleY(3); opacity: 0.7; }
    75% { transform: translateX(-2%) rotate(-1deg) scaleY(1.5); opacity: 0.5; }
}

.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    gap: 60px;
}

.hero-left {
    flex: 1;
    max-width: 550px;
}

.hero-title {
    font-size: 60px;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #ffffff 30%, #d4b5ff 70%, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 80px rgba(168, 85, 247, 0.3);
    filter: drop-shadow(0 0 30px rgba(168, 85, 247, 0.15));
}

.hero-subtitle {
    font-size: 17px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.hero-trust {
    font-size: 13px;
    color: var(--text-muted);
}

/* Login Card */
.login-card {
    background: rgba(20, 15, 50, 0.75);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(168, 85, 247, 0.25);
    border-radius: var(--radius-xl);
    padding: 32px;
    width: 380px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4),
                0 0 40px rgba(168, 85, 247, 0.12),
                0 0 80px rgba(168, 85, 247, 0.06),
                inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.login-card h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 4px;
}

.login-subtitle {
    color: var(--text-secondary);
    font-size: 13px;
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 14px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 14px;
    transition: var(--transition);
    outline: none;
    resize: vertical;
    min-height: 80px;
}

.form-group textarea:focus {
    border-color: var(--accent-purple);
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.15);
}

.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group select {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 14px;
    transition: var(--transition);
    outline: none;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236a6a8a' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

.form-group select:focus {
    border-color: var(--accent-purple);
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.15);
}

.form-group input[type="file"] {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 13px;
    cursor: pointer;
}

.form-group input[type="file"]::file-selector-button {
    padding: 6px 14px;
    background: var(--accent-gradient);
    border: none;
    border-radius: 6px;
    color: white;
    font-size: 12px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    margin-right: 10px;
    transition: var(--transition);
}

.form-group input[type="file"]::file-selector-button:hover {
    box-shadow: 0 2px 8px rgba(168, 85, 247, 0.3);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"] {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 14px;
    transition: var(--transition);
    outline: none;
}

.form-group input:focus {
    border-color: var(--accent-purple);
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.15);
}

.form-group input::placeholder {
    color: var(--text-muted);
}

.form-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.form-row-2col {
    display: flex;
    gap: 12px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    accent-color: var(--accent-purple);
}

.forgot-link {
    font-size: 13px;
    color: var(--accent-purple);
}

.divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 16px 0;
}

.divider::before, .divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.divider span {
    color: var(--text-muted);
    font-size: 12px;
}

.signup-prompt {
    text-align: center;
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 16px;
}

/* Pulse Ticker */
.pulse-ticker {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 40px;
    padding: 12px 24px;
    background: rgba(15, 15, 42, 0.8);
    border: 1px solid transparent;
    border-radius: 30px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    overflow: hidden;
    background-clip: padding-box;
    box-shadow: 0 0 0 1px rgba(168, 85, 247, 0.2),
                0 0 20px rgba(168, 85, 247, 0.08),
                0 4px 16px rgba(0, 0, 0, 0.3);
    background-image: linear-gradient(rgba(15, 15, 42, 0.85), rgba(15, 15, 42, 0.85)),
                       linear-gradient(90deg, rgba(168, 85, 247, 0.3), rgba(236, 72, 153, 0.3), rgba(168, 85, 247, 0.3));
    background-origin: border-box;
    background-clip: padding-box, border-box;
}

.pulse-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--accent-gradient);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

.pulse-item {
    font-size: 12px;
    color: #10b981;
    font-weight: 600;
    flex-shrink: 0;
}

.pulse-separator {
    color: var(--text-muted);
    flex-shrink: 0;
}

.pulse-avatars {
    display: flex;
    gap: 0;
    flex-shrink: 0;
}

.pulse-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    color: white;
    margin-left: -4px;
    border: 2px solid var(--bg-primary);
}

.pulse-avatar:first-child {
    margin-left: 0;
}

.pulse-text {
    font-size: 13px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ============================================
   Features Section
   ============================================ */

.features {
    padding: 80px 60px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.features::before {
    content: '';
    position: absolute;
    top: -120px;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to bottom, transparent, var(--bg-primary));
    pointer-events: none;
}

.features-header {
    text-align: center;
    margin-bottom: 50px;
}

.features-header h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 12px;
}

.features-header p {
    color: var(--text-secondary);
    font-size: 16px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.feature-card {
    background: rgba(15, 15, 42, 0.9);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px 20px;
    text-align: center;
    transition: all 0.4s ease;
}

.feature-card:hover {
    border-color: var(--accent-purple);
    transform: translateY(-6px);
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.2),
                0 0 60px rgba(168, 85, 247, 0.1),
                0 10px 40px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 24px;
    color: white;
}

.feature-card h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 12px;
}

.feature-card ul {
    list-style: none;
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ============================================
   Stats Section
   ============================================ */

.stats {
    padding: 60px;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.stats-grid {
    display: flex;
    justify-content: center;
    gap: 80px;
    max-width: 900px;
    margin: 0 auto;
}

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

.stat-number {
    display: block;
    font-size: 42px;
    font-weight: 900;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 4px;
    filter: drop-shadow(0 0 20px rgba(168, 85, 247, 0.3));
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
}

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

.landing-footer {
    padding: 40px 60px;
    background: var(--bg-secondary);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    gap: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.footer-tagline {
    color: var(--text-secondary);
    font-size: 13px;
    margin-bottom: 8px;
}

.footer-copyright {
    color: var(--text-muted);
    font-size: 12px;
}

.footer-links {
    display: flex;
    gap: 60px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-col a {
    color: var(--text-secondary);
    font-size: 13px;
}

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

.footer-right p {
    color: var(--text-secondary);
    font-size: 13px;
    margin-bottom: 12px;
}

.app-badges {
    display: flex;
    gap: 10px;
}

.app-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 12px;
    font-weight: 500;
}

.app-badge:hover {
    border-color: var(--accent-purple);
    color: var(--text-primary);
}

/* ============================================
   Modal
   ============================================ */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: var(--bg-card-solid);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 28px;
    width: 420px;
    max-width: 95vw;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5), 0 0 60px rgba(168, 85, 247, 0.08);
    animation: modalFadeIn 0.25s ease;
}

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

.modal h2 {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 4px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.modal > p {
    color: var(--text-secondary);
    font-size: 13px;
    margin-bottom: 24px;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 24px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

/* ============================================
   Profile Page Layout
   ============================================ */

.app-layout {
    display: flex;
    min-height: 100vh;
    padding-top: 56px;
}

/* Top Bar */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: rgba(10, 10, 26, 0.92);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    z-index: 1000;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.topbar-search {
    position: relative;
    display: flex;
    align-items: center;
}

.topbar-search input {
    width: 240px;
    padding: 9px 42px 9px 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    color: var(--text-primary);
    font-size: 13px;
    font-family: inherit;
    outline: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.topbar-search input:focus {
    width: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-purple);
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.12);
}

.topbar-search input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.topbar-search > i {
    display: none;
}

.topbar-search-btn {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f97316, #ef4444);
    border: none;
    color: white;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.3);
}

.topbar-search-btn:hover {
    background: linear-gradient(135deg, #ea580c, #dc2626);
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.4);
}

.topbar-center {
    display: flex;
    gap: 4px;
}

.topbar-nav-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 40px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 18px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.topbar-nav-item:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.topbar-nav-item.active {
    color: var(--accent-purple);
}

.topbar-nav-item.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 4px;
    right: 4px;
    height: 3px;
    background: var(--accent-gradient);
    border-radius: 3px;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.topbar-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-input);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    border: none;
    font-size: 15px;
}

.topbar-icon:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.topbar-icon .badge {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 18px;
    height: 18px;
    background: #ef4444;
    border-radius: 50%;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    border: 2px solid var(--bg-primary);
}

.topbar-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

.topbar-avatar:hover {
    border-color: var(--accent-purple);
}

/* Left Sidebar */
.left-sidebar {
    width: 260px;
    min-width: 260px;
    height: calc(100vh - 56px);
    position: sticky;
    top: 56px;
    overflow-y: auto;
    padding: 16px 12px;
    border-right: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

.left-sidebar::-webkit-scrollbar {
    width: 4px;
}

.left-sidebar::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 4px;
}

.sidebar-user:hover {
    background: var(--bg-hover);
}

.sidebar-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
}

.sidebar-user-info {
    overflow: hidden;
}

.sidebar-user-name {
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-user-status {
    font-size: 11px;
    color: var(--text-muted);
}

.sidebar-nav {
    list-style: none;
    margin-bottom: 16px;
}

.sidebar-nav li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 12px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    text-decoration: none;
}

.sidebar-nav li a:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.sidebar-nav li a.active {
    background: rgba(168, 85, 247, 0.12);
    color: var(--accent-purple);
}

.sidebar-nav li a i {
    width: 20px;
    text-align: center;
    font-size: 16px;
}

.sidebar-divider {
    height: 1px;
    background: var(--border-color);
    margin: 12px 0;
}

.sidebar-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 12px 4px;
}

.sidebar-shortcut {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 12px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 13px;
    cursor: pointer;
    transition: var(--transition);
}

.sidebar-shortcut:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.shortcut-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: white;
    flex-shrink: 0;
}

/* Main Content */
.main-content {
    flex: 1;
    min-width: 0;
}

/* Right Sidebar */
.right-sidebar {
    width: 300px;
    min-width: 300px;
    height: calc(100vh - 56px);
    position: sticky;
    top: 56px;
    overflow-y: auto;
    padding: 16px;
    border-left: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

.right-sidebar::-webkit-scrollbar {
    width: 4px;
}

.right-sidebar::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

.sidebar-card {
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3), 0 1px 4px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.03);
}

.sidebar-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.sidebar-card-header h3 {
    font-size: 14px;
    font-weight: 700;
}

.sidebar-card-header a {
    font-size: 12px;
    color: var(--accent-purple);
}

/* ============================================
   VoxPals Profile Page
   ============================================ */

/* Hero Banner - avatar + info integrated into the banner */
.vox-profile-hero {
    position: relative;
    height: 360px;
    background:
        /* Stars / dots scattered */
        radial-gradient(1px 1px at 10% 15%, rgba(255,255,255,0.7), transparent),
        radial-gradient(1px 1px at 25% 8%, rgba(255,255,255,0.5), transparent),
        radial-gradient(1.5px 1.5px at 40% 22%, rgba(255,255,255,0.6), transparent),
        radial-gradient(1px 1px at 55% 5%, rgba(255,255,255,0.8), transparent),
        radial-gradient(1px 1px at 70% 18%, rgba(255,255,255,0.4), transparent),
        radial-gradient(1.5px 1.5px at 85% 12%, rgba(255,255,255,0.6), transparent),
        radial-gradient(1px 1px at 15% 35%, rgba(255,255,255,0.3), transparent),
        radial-gradient(1px 1px at 60% 30%, rgba(255,255,255,0.5), transparent),
        radial-gradient(1px 1px at 90% 25%, rgba(255,255,255,0.4), transparent),
        radial-gradient(1px 1px at 33% 42%, rgba(255,255,255,0.3), transparent),
        radial-gradient(1px 1px at 78% 38%, rgba(255,255,255,0.5), transparent),
        /* Neon purple/pink atmospheric glow — upper sky */
        radial-gradient(ellipse 80% 40% at 30% 40%, rgba(180,74,255,0.15), transparent),
        radial-gradient(ellipse 60% 35% at 70% 35%, rgba(255,68,170,0.12), transparent),
        radial-gradient(ellipse 90% 30% at 50% 50%, rgba(120,50,220,0.1), transparent),
        /* City skyline silhouette shapes at bottom */
        linear-gradient(to top, #0a0618 0%, #0a0618 8%, transparent 8.1%),
        /* Tall buildings */
        linear-gradient(to top, #0d0820 0%, #0d0820 22%, transparent 22.1%) no-repeat 5% bottom / 3% 100%,
        linear-gradient(to top, #0d0820 0%, #0d0820 30%, transparent 30.1%) no-repeat 8% bottom / 2.5% 100%,
        linear-gradient(to top, #0d0820 0%, #0d0820 18%, transparent 18.1%) no-repeat 12% bottom / 4% 100%,
        linear-gradient(to top, #0c071e 0%, #0c071e 35%, transparent 35.1%) no-repeat 18% bottom / 3% 100%,
        linear-gradient(to top, #0c071e 0%, #0c071e 28%, transparent 28.1%) no-repeat 22% bottom / 2% 100%,
        linear-gradient(to top, #0d0820 0%, #0d0820 40%, transparent 40.1%) no-repeat 26% bottom / 3.5% 100%,
        linear-gradient(to top, #0d0820 0%, #0d0820 20%, transparent 20.1%) no-repeat 31% bottom / 5% 100%,
        linear-gradient(to top, #0c071e 0%, #0c071e 32%, transparent 32.1%) no-repeat 38% bottom / 2.5% 100%,
        linear-gradient(to top, #0c071e 0%, #0c071e 45%, transparent 45.1%) no-repeat 42% bottom / 3% 100%,
        linear-gradient(to top, #0d0820 0%, #0d0820 25%, transparent 25.1%) no-repeat 47% bottom / 4% 100%,
        linear-gradient(to top, #0d0820 0%, #0d0820 38%, transparent 38.1%) no-repeat 53% bottom / 2% 100%,
        linear-gradient(to top, #0c071e 0%, #0c071e 42%, transparent 42.1%) no-repeat 57% bottom / 3.5% 100%,
        linear-gradient(to top, #0d0820 0%, #0d0820 20%, transparent 20.1%) no-repeat 62% bottom / 4.5% 100%,
        linear-gradient(to top, #0c071e 0%, #0c071e 33%, transparent 33.1%) no-repeat 68% bottom / 2.5% 100%,
        linear-gradient(to top, #0d0820 0%, #0d0820 28%, transparent 28.1%) no-repeat 73% bottom / 3% 100%,
        linear-gradient(to top, #0c071e 0%, #0c071e 36%, transparent 36.1%) no-repeat 78% bottom / 2% 100%,
        linear-gradient(to top, #0d0820 0%, #0d0820 22%, transparent 22.1%) no-repeat 83% bottom / 4% 100%,
        linear-gradient(to top, #0c071e 0%, #0c071e 30%, transparent 30.1%) no-repeat 88% bottom / 3% 100%,
        linear-gradient(to top, #0d0820 0%, #0d0820 18%, transparent 18.1%) no-repeat 93% bottom / 3.5% 100%,
        /* City glow along horizon */
        linear-gradient(to top, rgba(180,74,255,0.2) 0%, rgba(255,68,170,0.1) 10%, transparent 25%),
        /* Deep night sky base */
        linear-gradient(180deg, #060314 0%, #0a0520 30%, #120a2a 60%, #1a0a2e 100%);
    overflow: hidden;
}

.profile-cover::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        /* Neon light trail 1 — flowing purple */
        radial-gradient(ellipse 50% 3px at 20% 60%, rgba(180,74,255,0.6), transparent),
        radial-gradient(ellipse 40% 4px at 50% 55%, rgba(255,68,170,0.5), transparent),
        radial-gradient(ellipse 45% 3px at 80% 65%, rgba(180,74,255,0.4), transparent),
        /* Neon light trail 2 — flowing pink */
        radial-gradient(ellipse 35% 3px at 30% 70%, rgba(255,68,170,0.5), transparent),
        radial-gradient(ellipse 50% 4px at 65% 62%, rgba(180,74,255,0.45), transparent),
        /* Ambient glow on buildings */
        radial-gradient(ellipse 20% 15% at 25% 85%, rgba(180,74,255,0.15), transparent),
        radial-gradient(ellipse 15% 12% at 55% 80%, rgba(255,68,170,0.12), transparent),
        radial-gradient(ellipse 18% 15% at 80% 85%, rgba(120,50,220,0.15), transparent);
    pointer-events: none;
    z-index: 1;
}

/* Animated neon trails on profile cover */
.profile-cover-neon {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 2;
    overflow: hidden;
}

.profile-cover-neon .cover-neon-trail {
    position: absolute;
    height: 4px;
    border-radius: 4px;
    filter: blur(2px);
}

.profile-cover-neon .cover-neon-trail:nth-child(1) {
    top: 55%;
    left: -10%;
    width: 120%;
    background: linear-gradient(90deg, transparent 5%, #b44aff, #ff44aa, #b44aff, transparent 95%);
    opacity: 0.5;
    animation: neonFlow1 8s ease-in-out infinite;
    box-shadow: 0 0 15px 4px rgba(180,74,255,0.4), 0 0 40px 8px rgba(255,68,170,0.2);
}

.profile-cover-neon .cover-neon-trail:nth-child(2) {
    top: 65%;
    left: -10%;
    width: 120%;
    height: 5px;
    background: linear-gradient(90deg, transparent 5%, #ff44aa, #b44aff, #ff44aa, transparent 95%);
    opacity: 0.4;
    animation: neonFlow2 10s ease-in-out infinite;
    box-shadow: 0 0 15px 4px rgba(255,68,170,0.4), 0 0 40px 8px rgba(180,74,255,0.2);
}

.profile-cover-neon .cover-neon-trail:nth-child(3) {
    top: 72%;
    left: -10%;
    width: 120%;
    height: 3px;
    background: linear-gradient(90deg, transparent 5%, #3b82f6, #b44aff, #ff44aa, transparent 95%);
    opacity: 0.35;
    animation: neonFlow3 12s ease-in-out infinite;
    box-shadow: 0 0 12px 3px rgba(59,130,246,0.3), 0 0 35px 6px rgba(180,74,255,0.15);
}

.profile-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-cover-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(transparent, var(--bg-primary));
}

/* Hero overlay */
.vox-profile-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 30%, rgba(10, 10, 26, 0.7) 70%, var(--bg-primary) 100%);
    z-index: 1;
}

.vox-profile-hero-bg {
    width: 100%;
    height: 100%;
}

/* Profile info inside the hero */
.vox-profile-hero-content {
    position: absolute;
    bottom: 24px;
    left: 0;
    right: 0;
    z-index: 3;
    display: flex;
    align-items: flex-end;
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
}

.vox-profile-avatar-wrap {
    position: relative;
    flex-shrink: 0;
}

.vox-profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 20px;
    border: 3px solid rgba(168, 85, 247, 0.5);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
    font-weight: 800;
    color: white;
    background: var(--accent-gradient);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.vox-profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vox-profile-identity {
    flex: 1;
    min-width: 0;
    padding-bottom: 4px;
}

.vox-profile-identity h1 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 4px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    gap: 8px;
}

.vox-profile-bio {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.vox-profile-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--text-muted);
}

.vox-profile-meta i {
    margin-right: 4px;
}

.vox-profile-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
    padding-bottom: 8px;
}

/* Stats + Nav Bar - sticky below hero */
.vox-profile-bar {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 56px;
    z-index: 10;
}

.vox-profile-bar-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
}

.vox-profile-nav {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
}

.vox-profile-nav::-webkit-scrollbar {
    display: none;
}

.vox-profile-pill {
    padding: 9px 18px;
    border-radius: 20px;
    background: none;
    border: 1px solid transparent;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.vox-profile-pill:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.vox-profile-pill.active {
    background: rgba(168, 85, 247, 0.15);
    border-color: rgba(168, 85, 247, 0.3);
    color: var(--accent-purple);
}

/* Profile Content */
.vox-profile-content {
    max-width: 1100px;
    margin: 20px auto;
    padding: 0 24px;
}

/* Top row: Intro | Composer | Featured Photos */
.vox-profile-top-row {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    align-items: flex-start;
    margin-left: -20px;
    margin-right: -20px;
}

.vox-profile-top-intro {
    width: 220px;
    min-width: 220px;
    flex-shrink: 0;
}

.vox-profile-top-center {
    flex: 1;
    min-width: 0;
    padding: 0 8px;
}

.vox-profile-top-photos {
    width: 260px;
    min-width: 260px;
    flex-shrink: 0;
}

@media (max-width: 900px) {
    .vox-profile-top-row {
        flex-direction: column;
    }
    .vox-profile-top-intro,
    .vox-profile-top-center,
    .vox-profile-top-photos {
        width: 100%;
        min-width: 100%;
    }
}

/* Two-column layout: posts left, sidebar right */
.vox-profile-layout {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.vox-profile-main {
    flex: 1;
    min-width: 0;
}

.vox-profile-sidebar {
    width: 320px;
    min-width: 320px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: sticky;
    top: 120px;
}

/* Sidebar cards */
.vox-profile-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 18px;
}

.vox-profile-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.vox-profile-card-header h3 {
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.vox-profile-card-header h3 i {
    color: var(--accent-purple);
    font-size: 13px;
}

.vox-profile-card-header h3 span {
    color: var(--text-muted);
    font-weight: 400;
    font-size: 13px;
}

.vox-edit-pencil {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 11px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 2;
}

.vox-edit-pencil:hover {
    background: rgba(168, 85, 247, 0.15);
    border-color: var(--accent-purple);
    color: var(--accent-purple);
}

.vox-profile-top-intro {
    position: relative;
}

/* Responsive */
@media (max-width: 900px) {
    .vox-profile-layout {
        flex-direction: column;
    }
    .vox-profile-sidebar {
        width: 100%;
        min-width: 100%;
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
    }
    .vox-profile-sidebar .vox-profile-card {
        flex: 1;
        min-width: 280px;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .vox-profile-hero-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .vox-profile-actions {
        justify-content: center;
    }
    .vox-profile-bar-inner {
        flex-direction: column;
        gap: 8px;
        padding: 12px 24px;
    }
    .vox-profile-cards-row {
        grid-template-columns: 1fr;
    }
    .vox-bio-card-inner {
        flex-direction: column;
        gap: 16px;
    }
}

/* Cover edit button */
.btn-cover-edit {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: white;
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
}

.btn-cover-edit:hover {
    background: rgba(0, 0, 0, 0.8);
    border-color: var(--accent-purple);
}

.btn-cover-edit i {
    font-size: 14px;
}

/* Avatar edit button */
.btn-avatar-edit {
    position: absolute;
    bottom: 4px;
    right: 4px;
    z-index: 5;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--accent-gradient);
    border: 2px solid var(--bg-primary);
    color: white;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.btn-avatar-edit:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.4);
}

/* Make avatar wrapper relative for positioning */
.profile-avatar-wrapper {
    position: relative;
    flex-shrink: 0;
}

/* Profile Header */
.profile-header {
    position: relative;
    max-width: 900px;
    margin: -70px auto 0;
    padding: 0 24px;
}

.profile-header-top {
    display: flex;
    align-items: flex-end;
    gap: 20px;
    margin-bottom: 16px;
}

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

.profile-avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 4px solid var(--bg-primary);
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    font-weight: 800;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

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

.online-indicator {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 18px;
    height: 18px;
    background: #10b981;
    border-radius: 50%;
    border: 3px solid var(--bg-primary);
}

.profile-info {
    flex: 1;
    padding-bottom: 10px;
}

.profile-name {
    font-size: 28px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
}

.verified-badge {
    color: var(--accent-blue);
    font-size: 18px;
}

.profile-bio-short {
    color: var(--text-secondary);
    font-size: 14px;
    margin-top: 2px;
}

.profile-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 6px;
    font-size: 13px;
    color: var(--text-muted);
}

.profile-meta i {
    margin-right: 4px;
}

.profile-actions {
    display: flex;
    gap: 8px;
    padding-bottom: 10px;
    flex-shrink: 0;
}

.btn-add-circle {
    background: var(--accent-gradient);
    color: white;
    border: none;
    border-radius: 20px;
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.btn-add-circle:hover {
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.4);
}

.btn-profile-action {
    background: var(--bg-input);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.btn-profile-action:hover {
    background: var(--bg-hover);
    border-color: var(--accent-purple);
}

/* Profile Stats */
.profile-stats {
    display: flex;
    gap: 20px;
    margin-top: 12px;
    padding: 12px 0;
    border-top: 1px solid var(--border-color);
}

.profile-stat {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-secondary);
}

.profile-stat strong {
    color: var(--text-primary);
    font-weight: 700;
}

.profile-stat .tag {
    background: var(--bg-input);
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 12px;
}

/* Profile Tabs */
.profile-tabs {
    display: flex;
    gap: 4px;
    margin-top: 16px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0;
}

.profile-tab {
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: var(--transition);
}

.profile-tab:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.profile-tab.active {
    color: var(--accent-purple);
    border-bottom-color: var(--accent-purple);
}

/* Profile Body */
.profile-body {
    display: flex;
    gap: 20px;
    max-width: 900px;
    margin: 20px auto;
    padding: 0 24px;
}

.profile-left-col {
    width: 340px;
    flex-shrink: 0;
}

.profile-right-col {
    flex: 1;
    min-width: 0;
}

/* Info Card */
.info-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-bottom: 16px;
}

.info-card h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 6px 0;
    font-size: 13px;
    color: var(--text-secondary);
}

.info-item i {
    color: var(--text-muted);
    width: 16px;
    text-align: center;
    margin-top: 3px;
}

.edit-bio-btn {
    display: block;
    width: 100%;
    padding: 8px;
    margin-top: 12px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.edit-bio-btn:hover {
    background: var(--bg-hover);
}

/* Photos Grid */
.photos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.photo-thumb {
    aspect-ratio: 1;
    background: var(--bg-input);
    overflow: hidden;
    cursor: pointer;
    position: relative;
}

/* Give empty photo thumbs warm/cool gradient looks like photo thumbnails */
.photo-thumb:nth-child(1) { background: linear-gradient(135deg, #1a1040, #2d1b69, #ff6b35, #ff9a56); }
.photo-thumb:nth-child(2) { background: linear-gradient(160deg, #0f2027, #203a43, #2c5364); }
.photo-thumb:nth-child(3) { background: linear-gradient(135deg, #1a0a2e, #e74c8b, #ff8c69); }
.photo-thumb:nth-child(4) { background: linear-gradient(145deg, #0c1445, #1a237e, #4fc3f7); }
.photo-thumb:nth-child(5) { background: linear-gradient(135deg, #3c1053, #ad5389, #fcb69f); }
.photo-thumb:nth-child(6) { background: linear-gradient(150deg, #0f0c29, #302b63, #24243e); }
.photo-thumb:nth-child(7) { background: linear-gradient(135deg, #ff6a00, #ee0979, #ff6b6b); }
.photo-thumb:nth-child(8) { background: linear-gradient(160deg, #0d324d, #7f5a83, #a9c9ff); }
.photo-thumb:nth-child(9) { background: linear-gradient(135deg, #1a0533, #4a148c, #e040fb); }

/* Shimmer effect on photo thumbs without images */
.photo-thumb:not(:has(img))::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
    animation: photoShimmer 3s ease-in-out infinite;
}

@keyframes photoShimmer {
    0% { left: -50%; }
    100% { left: 150%; }
}

.photo-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

/* Create Post */
.create-post-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 16px;
}

.create-post-top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.create-post-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    flex-shrink: 0;
}

.create-post-input {
    flex: 1;
    padding: 10px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    color: var(--text-muted);
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
}

.create-post-input:hover {
    background: var(--bg-hover);
}

.create-post-actions {
    display: flex;
    gap: 4px;
    border-top: 1px solid var(--border-color);
    padding-top: 10px;
}

.post-action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    background: none;
    font-family: inherit;
}

.post-action-btn:hover {
    background: var(--bg-hover);
}

.post-action-btn .fa-image { color: #10b981; }
.post-action-btn .fa-user-tag { color: var(--accent-blue); }
.post-action-btn .fa-smile { color: #f59e0b; }

/* Post Card */
.post-card {
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.25), 0 1px 3px rgba(0,0,0,0.15);
}

.post-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
}

.post-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    flex-shrink: 0;
}

.post-user-info {
    flex: 1;
}

.post-user-name {
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.post-time {
    font-size: 12px;
    color: var(--text-muted);
}

.post-menu {
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    transition: var(--transition);
}

.post-menu:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.post-content {
    padding: 0 16px 12px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.post-content .hashtag {
    color: var(--accent-purple);
}

.post-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    display: block;
    border-top: 1px solid rgba(255,255,255,0.03);
    border-bottom: 1px solid rgba(255,255,255,0.03);
}

.post-engagement {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px;
    font-size: 13px;
    color: var(--text-muted);
}

.post-likes {
    display: flex;
    align-items: center;
    gap: 6px;
}

.post-likes .like-icons {
    display: flex;
    gap: 0;
}

.post-likes .like-icon {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: white;
    margin-left: -3px;
}

.post-likes .like-icon:first-child { margin-left: 0; }

.post-actions-bar {
    display: flex;
    border-top: 1px solid var(--border-color);
    padding: 4px 8px;
}

.post-action {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    background: none;
    font-family: inherit;
}

.post-action:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

/* Event Items */
.event-item {
    display: flex;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
}

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

.event-thumb {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, #1a0a2e, #4a1a6e, #2a1a4e);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    position: relative;
    overflow: hidden;
}

.event-thumb::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(180,74,255,0.15) 0%, transparent 50%, rgba(255,68,170,0.1) 100%);
    pointer-events: none;
}

.event-item:nth-child(1) .event-thumb { background: linear-gradient(135deg, #1a0533, #ff6b35, #e74c3c); }
.event-item:nth-child(2) .event-thumb { background: linear-gradient(135deg, #0d1b4e, #3b82f6, #6366f1); }
.event-item:nth-child(3) .event-thumb { background: linear-gradient(135deg, #1a0a2e, #a855f7, #ec4899); }
.event-item:nth-child(4) .event-thumb { background: linear-gradient(135deg, #0f2027, #2c5364, #4fc3f7); }

.event-info h4 {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 2px;
}

.event-info p {
    font-size: 11px;
    color: var(--text-muted);
}

/* People Suggestion */
.person-suggestion {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
}

.person-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.person-info {
    flex: 1;
    overflow: hidden;
}

.person-info h4 {
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.person-info p {
    font-size: 11px;
    color: var(--text-muted);
}

.btn-add-friend {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    color: var(--accent-purple);
    padding: 4px 12px;
    border-radius: 14px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-add-friend:hover {
    background: rgba(168, 85, 247, 0.15);
    border-color: var(--accent-purple);
}

/* Invite Card */
.invite-card {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.15), rgba(236, 72, 153, 0.1));
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.invite-card p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.btn-invite {
    width: 100%;
    padding: 8px;
    background: var(--accent-gradient);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-invite:hover {
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.4);
}

/* Active Now */
.active-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
}

.active-user-avatar {
    position: relative;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.active-user-avatar .online-dot {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
    background: #10b981;
    border-radius: 50%;
    border: 2px solid var(--bg-card-solid);
}

.active-user span {
    font-size: 13px;
    font-weight: 500;
}

/* Trending Item */
.trending-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    font-size: 13px;
}

.trending-item i {
    color: var(--accent-pink);
    font-size: 12px;
}

.trending-item a {
    color: var(--text-secondary);
}

.trending-item a:hover {
    color: var(--accent-purple);
}

/* ============================================
   Notifications
   ============================================ */

.notification-toast {
    position: fixed;
    top: 70px;
    right: 20px;
    background: var(--bg-card-solid);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-card);
    z-index: 3000;
    transform: translateX(120%);
    transition: transform 0.3s ease;
    max-width: 360px;
}

.notification-toast.show {
    transform: translateX(0);
}

.notification-toast .toast-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.notification-toast .toast-content {
    flex: 1;
}

.notification-toast .toast-content strong {
    font-size: 13px;
}

.notification-toast .toast-content p {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 2px;
}

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

@media (max-width: 1200px) {
    .right-sidebar {
        display: none;
    }
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .left-sidebar {
        display: none;
    }
    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }
    .hero-left {
        max-width: 100%;
    }
    .hero-buttons {
        justify-content: center;
    }
    .login-card {
        width: 100%;
        max-width: 400px;
    }
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .stats-grid {
        flex-wrap: wrap;
        gap: 40px;
    }
    .footer-content {
        flex-direction: column;
    }
    .landing-nav {
        padding: 12px 20px;
    }
    .nav-center {
        display: none;
    }
    .hero {
        padding: 100px 20px 30px;
    }
    .features {
        padding: 60px 20px;
    }
    .profile-header-top {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .profile-actions {
        justify-content: center;
    }
    .profile-body {
        flex-direction: column;
    }
    .profile-left-col {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .hero-title {
        font-size: 36px;
    }
    .features-grid {
        grid-template-columns: 1fr;
    }
    .topbar-center {
        display: none;
    }
    .topbar-search input {
        width: 160px;
    }
}

/* ============================================
   Scrollbar
   ============================================ */

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-purple);
}

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

.text-gradient {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.see-all {
    font-size: 12px;
    color: var(--accent-purple);
    cursor: pointer;
}

.see-all:hover {
    color: var(--accent-pink);
}

/* ============================================
   News Feed Page
   ============================================ */

.feed-container {
    max-width: 600px;
    margin: 20px auto;
    padding: 0 20px;
}

/* ============================================
   Ticker Animation
   ============================================ */

@keyframes tickerScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.ticker-scroll {
    animation: tickerScroll 20s linear infinite;
}

/* ============================================
   Page Visibility
   ============================================ */

.page-section {
    display: none;
}

.page-section.active {
    display: block;
}

.app-shell {
    display: none;
}

.app-shell.active {
    display: flex;
}

.landing-page-section {
    display: none;
}

.landing-page-section.active {
    display: block;
}

/* ============================================
   Messenger / Chat
   ============================================ */

/* ============================================
   Messenger Layout
   ============================================ */

.messenger-layout {
    display: flex;
    height: calc(100vh - 56px);
    background: var(--bg-primary);
}

/* Sidebar - conversation list */
.messenger-sidebar {
    width: 360px;
    min-width: 360px;
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    background: var(--bg-secondary);
    height: 100%;
}

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

.messenger-sidebar-header h2 {
    font-size: 22px;
    font-weight: 800;
}

.messenger-sidebar-actions {
    display: flex;
    gap: 4px;
}

.messenger-search {
    padding: 10px 16px;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.messenger-search i {
    position: absolute;
    left: 28px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 13px;
    pointer-events: none;
}

.messenger-search input {
    width: 100%;
    padding: 10px 14px 10px 36px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    color: var(--text-primary);
    font-size: 13px;
    font-family: inherit;
    outline: none;
    transition: var(--transition);
}

.messenger-search input:focus {
    border-color: var(--accent-purple);
    background: var(--bg-hover);
}

.messenger-search input::placeholder {
    color: var(--text-muted);
}

/* Conversation list items */
.conversation-list {
    flex: 1;
    overflow-y: auto;
}

.conversation-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

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

.conversation-item.active {
    background: rgba(168, 85, 247, 0.1);
    border-left-color: var(--accent-purple);
}

.conversation-item.unread {
    background: rgba(168, 85, 247, 0.05);
}

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

.conv-avatar .online-dot {
    position: absolute;
    bottom: 1px;
    right: 1px;
    width: 12px;
    height: 12px;
    background: #10b981;
    border-radius: 50%;
    border: 2px solid var(--bg-secondary);
}

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

.conv-info-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2px;
}

.conv-name {
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.conv-time {
    font-size: 11px;
    color: var(--text-muted);
    flex-shrink: 0;
}

.conv-last-msg {
    font-size: 13px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.conv-unread-badge {
    min-width: 20px;
    height: 20px;
    background: var(--accent-gradient);
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    padding: 0 6px;
    flex-shrink: 0;
}

/* Chat area - right side */
.messenger-chat {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--bg-primary);
    min-width: 0;
    height: 100%;
}

.messenger-empty {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 16px;
    color: var(--text-muted);
    padding: 40px;
    text-align: center;
}

.messenger-empty-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(168, 85, 247, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--accent-purple);
    margin-bottom: 8px;
}

.messenger-empty h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.messenger-empty p {
    font-size: 14px;
    color: var(--text-secondary);
    max-width: 300px;
}

/* Active chat */
.messenger-active-chat {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Chat header */
.chat-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-secondary);
    flex-shrink: 0;
}

.chat-back-btn {
    display: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 16px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.chat-back-btn:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

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

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

.chat-header-info h3 {
    font-size: 15px;
    font-weight: 600;
}

.chat-status {
    font-size: 12px;
    color: #10b981;
}

.chat-header-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.chat-header-actions button {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-input);
    border: none;
    color: var(--text-secondary);
    font-size: 15px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-header-actions button:hover {
    background: var(--bg-hover);
    color: var(--accent-purple);
}

/* Chat Messages */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.chat-date-separator {
    text-align: center;
    padding: 16px 0;
    font-size: 12px;
    color: var(--text-muted);
}

.chat-date-separator span {
    background: var(--bg-card);
    padding: 4px 14px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.chat-message {
    display: flex;
    gap: 8px;
    max-width: 70%;
    margin-bottom: 2px;
}

.chat-message.own {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.chat-msg-avatar {
    flex-shrink: 0;
    align-self: flex-end;
}

.chat-msg-bubble {
    padding: 10px 14px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.5;
    word-break: break-word;
}

.chat-message:not(.own) .chat-msg-bubble {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-bottom-left-radius: 4px;
    color: var(--text-primary);
}

.chat-message.own .chat-msg-bubble {
    background: var(--accent-gradient);
    border-bottom-right-radius: 4px;
    color: white;
}

.chat-msg-time {
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 2px;
    padding: 0 4px;
}

.chat-message.own .chat-msg-time {
    text-align: right;
}

.chat-msg-media {
    max-width: 300px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 4px;
}

.chat-msg-media img {
    width: 100%;
    display: block;
}

/* Typing indicator */
.chat-typing {
    padding: 6px 20px;
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.typing-dots {
    display: flex;
    gap: 3px;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--text-muted);
    animation: typingBounce 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
    40% { transform: scale(1); opacity: 1; }
}

/* Chat input */
.chat-input-area {
    padding: 12px 16px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.chat-input-action {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
}

.chat-input-action:hover {
    color: var(--accent-purple);
}

.chat-input-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.chat-input-wrapper input {
    width: 100%;
    padding: 10px 40px 10px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: var(--transition);
}

.chat-input-wrapper input:focus {
    border-color: var(--accent-purple);
    background: var(--bg-hover);
}

.chat-input-wrapper input::placeholder {
    color: var(--text-muted);
}

.chat-emoji-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 18px;
    cursor: pointer;
    transition: var(--transition);
}

.chat-emoji-btn:hover {
    color: #f59e0b;
}

.chat-send-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent-gradient);
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.chat-send-btn:hover {
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.4);
    transform: scale(1.05);
}

/* Messenger responsive */
@media (max-width: 768px) {
    .messenger-sidebar {
        width: 100%;
        min-width: 100%;
    }
    .messenger-chat {
        display: none;
    }
    .messenger-layout.chat-open .messenger-sidebar {
        display: none;
    }
    .messenger-layout.chat-open .messenger-chat {
        display: flex;
    }
    .chat-back-btn {
        display: flex;
    }
}

/* ============================================
   Video/Voice Call UI
   ============================================ */

.call-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 5000;
}

.call-overlay.active {
    display: flex;
}

.call-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    padding: 40px;
    text-align: center;
}

.call-avatar-large {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
    font-weight: 800;
    color: white;
    animation: callPulse 2s ease-in-out infinite;
}

@keyframes callPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(168, 85, 247, 0.5); }
    50% { box-shadow: 0 0 0 20px rgba(168, 85, 247, 0); }
}

.call-user-name {
    font-size: 24px;
    font-weight: 700;
}

.call-status {
    font-size: 14px;
    color: var(--text-muted);
}

.call-timer {
    font-size: 16px;
    color: var(--text-secondary);
    font-variant-numeric: tabular-nums;
}

.call-actions {
    display: flex;
    gap: 16px;
    margin-top: 20px;
}

.call-action-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: none;
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: white;
}

.call-action-btn.mute { background: var(--bg-input); color: var(--text-primary); }
.call-action-btn.camera { background: var(--bg-input); color: var(--text-primary); }
.call-action-btn.end { background: #ef4444; }
.call-action-btn.accept { background: #10b981; }
.call-action-btn.reject { background: #ef4444; }

.call-action-btn:hover {
    transform: scale(1.1);
}

.call-action-btn.muted,
.call-action-btn.camera-off {
    background: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.call-video-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.call-video-container video.remote-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.call-video-container video.local-video {
    position: absolute;
    bottom: 16px;
    right: 16px;
    width: 200px;
    border-radius: var(--radius-md);
    border: 2px solid var(--accent-purple);
}

/* Incoming Call Modal */
.incoming-call-modal {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--bg-card-solid);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 24px;
    z-index: 6000;
    display: none;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5), var(--shadow-glow);
    animation: slideIn 0.3s ease;
    min-width: 280px;
    text-align: center;
}

.incoming-call-modal.active {
    display: block;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* ============================================
   Groups Page
   ============================================ */

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.page-header h1 {
    font-size: 24px;
    font-weight: 800;
}

.page-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    overflow-x: auto;
}

.page-tab {
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: var(--transition);
    white-space: nowrap;
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
    font-family: inherit;
}

.page-tab:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
}

.page-tab.active {
    color: var(--accent-purple);
    border-bottom-color: var(--accent-purple);
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.grid-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
}

.grid-card:hover {
    border-color: var(--accent-purple);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.grid-card-cover {
    height: 140px;
    background: linear-gradient(135deg, #1a0a2e, #2d1b4e);
    position: relative;
    overflow: hidden;
}

.grid-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.grid-card-body {
    padding: 16px;
}

.grid-card-body h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
}

.grid-card-body p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.grid-card-meta {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: var(--text-muted);
}

.grid-card-footer {
    padding: 12px 16px;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 8px;
}

.grid-card-footer .btn {
    flex: 1;
    padding: 8px;
    font-size: 13px;
}

/* ============================================
   Group Detail
   ============================================ */

.group-detail-header {
    position: relative;
}

.group-cover {
    height: 280px;
    background: linear-gradient(135deg, #1a0a2e, #2d1b4e);
    overflow: hidden;
}

.group-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.group-info-bar {
    max-width: 900px;
    margin: -40px auto 0;
    padding: 0 24px;
    position: relative;
    z-index: 2;
}

.group-info-bar h1 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 4px;
}

.group-info-bar .group-meta {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

/* ============================================
   Events Page
   ============================================ */

.event-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
}

.event-card:hover {
    border-color: var(--accent-purple);
    transform: translateY(-2px);
}

.event-card-cover {
    height: 160px;
    background: linear-gradient(135deg, #1a0a2e, #2d1b4e);
    position: relative;
    overflow: hidden;
}

.event-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-date-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--accent-gradient);
    border-radius: var(--radius-sm);
    padding: 6px 12px;
    text-align: center;
    line-height: 1.2;
}

.event-date-badge .month {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.event-date-badge .day {
    font-size: 20px;
    font-weight: 800;
}

.event-card-body {
    padding: 16px;
}

.event-card-body h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 6px;
}

.event-card-body .event-datetime {
    font-size: 13px;
    color: var(--accent-purple);
    margin-bottom: 4px;
}

.event-card-body .event-location {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

.event-card-body .event-attendees-info {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 8px;
}

/* ============================================
   Marketplace
   ============================================ */

.marketplace-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-pill {
    padding: 6px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.filter-pill:hover,
.filter-pill.active {
    background: rgba(168, 85, 247, 0.15);
    border-color: var(--accent-purple);
    color: var(--accent-purple);
}

.listing-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
}

.listing-card:hover {
    border-color: var(--accent-purple);
    transform: translateY(-2px);
}

.listing-card-image {
    height: 200px;
    background: var(--bg-input);
    overflow: hidden;
    position: relative;
}

.listing-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.listing-save-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0,0,0,0.5);
    border: none;
    color: white;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.listing-save-btn:hover,
.listing-save-btn.saved {
    background: var(--accent-purple);
}

.listing-card-body {
    padding: 14px;
}

.listing-price {
    font-size: 18px;
    font-weight: 800;
    color: var(--accent-purple);
    margin-bottom: 4px;
}

.listing-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.listing-meta {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Listing Detail */
.listing-detail {
    max-width: 900px;
    margin: 20px auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 24px;
}

.listing-gallery {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.listing-gallery-main {
    height: 400px;
    background: var(--bg-input);
    display: flex;
    align-items: center;
    justify-content: center;
}

.listing-gallery-main img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.listing-gallery-thumbs {
    display: flex;
    gap: 4px;
    padding: 8px;
    overflow-x: auto;
}

.listing-gallery-thumbs img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

.listing-gallery-thumbs img:hover,
.listing-gallery-thumbs img.active {
    border-color: var(--accent-purple);
}

.listing-detail-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.listing-detail-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
}

.listing-detail-card h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
}

.listing-detail-price {
    font-size: 28px;
    font-weight: 900;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
}

.listing-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.listing-detail-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.listing-detail-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
}

.listing-detail-actions {
    display: flex;
    gap: 8px;
}

.listing-detail-actions .btn {
    flex: 1;
}

/* Seller Card */
.seller-card {
    display: flex;
    align-items: center;
    gap: 12px;
}

.seller-card .seller-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: white;
}

.seller-card .seller-info h4 {
    font-size: 14px;
    font-weight: 600;
}

.seller-card .seller-info p {
    font-size: 12px;
    color: var(--text-muted);
}

/* ============================================
   Search Page
   ============================================ */

.search-page-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 24px;
}

.search-page-header {
    margin-bottom: 20px;
}

.search-page-header h2 {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-primary);
}

.search-page-header h2 span {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Search tabs */
.search-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
    overflow-x: auto;
}

.search-tab {
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    border: none;
    border-bottom: 3px solid transparent;
    background: none;
    font-family: inherit;
    transition: var(--transition);
    white-space: nowrap;
}

.search-tab:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
}

.search-tab.active {
    color: var(--accent-purple);
    border-bottom-color: var(--accent-purple);
}

/* Search results */
.search-results {
    min-height: 200px;
}

.search-section {
    margin-bottom: 28px;
}

.search-section h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 14px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-section h3::before {
    content: '';
    width: 4px;
    height: 18px;
    background: var(--accent-gradient);
    border-radius: 2px;
}

/* Search result items (used in inline styles from JS but also as base) */
.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.search-result-item:hover {
    border-color: var(--accent-purple);
    background: var(--bg-hover);
}

/* ============================================
   Notifications Page
   ============================================ */

.notification-list {
    max-width: 700px;
    margin: 0 auto;
}

.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 2px;
}

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

.notification-item.unread {
    background: rgba(168, 85, 247, 0.06);
    border-left: 3px solid var(--accent-purple);
}

.notification-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    position: relative;
}

.notification-icon .notif-type-icon {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: white;
    border: 2px solid var(--bg-primary);
}

.notification-content {
    flex: 1;
}

.notification-content p {
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-secondary);
}

.notification-content p strong {
    color: var(--text-primary);
}

.notification-content .notif-time {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

.notification-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent-purple);
    flex-shrink: 0;
    margin-top: 6px;
}

/* ============================================
   Settings Page
   ============================================ */

.settings-layout {
    display: flex;
    max-width: 900px;
    margin: 20px auto;
    padding: 0 24px;
    gap: 24px;
}

.settings-sidebar {
    width: 240px;
    flex-shrink: 0;
}

.settings-nav {
    list-style: none;
}

.settings-nav li {
    margin-bottom: 2px;
}

.settings-nav li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 14px;
    text-decoration: none;
    transition: var(--transition);
}

.settings-nav li a:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.settings-nav li a.active {
    background: rgba(168, 85, 247, 0.12);
    color: var(--accent-purple);
}

.settings-content {
    flex: 1;
}

.settings-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 16px;
}

.settings-section h2 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

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

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

.setting-label {
    font-size: 14px;
    font-weight: 500;
}

.setting-desc {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    transition: var(--transition);
}

.toggle-slider::before {
    content: '';
    position: absolute;
    height: 18px;
    width: 18px;
    left: 2px;
    bottom: 2px;
    background: white;
    border-radius: 50%;
    transition: var(--transition);
}

.toggle-switch input:checked + .toggle-slider {
    background: var(--accent-purple);
    border-color: var(--accent-purple);
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(20px);
}

/* Select Dropdown */
.settings-select {
    padding: 8px 12px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 13px;
    outline: none;
    cursor: pointer;
}

.settings-select:focus {
    border-color: var(--accent-purple);
}

/* ============================================
   Friends Page
   ============================================ */

.friends-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.friend-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    text-align: center;
    transition: var(--transition);
}

.friend-card:hover {
    border-color: var(--accent-purple);
}

.friend-card-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 800;
    color: white;
}

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

.friend-card h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.friend-card p {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.friend-card-actions {
    display: flex;
    gap: 6px;
    justify-content: center;
}

.friend-card-actions .btn {
    padding: 6px 14px;
    font-size: 12px;
}

/* ============================================
   Image Lightbox
   ============================================ */

.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.92);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 4000;
    cursor: pointer;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: var(--radius-md);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============================================
   Reaction Picker
   ============================================ */

.reaction-picker {
    position: absolute;
    bottom: 100%;
    left: 0;
    background: var(--bg-card-solid);
    border: 1px solid var(--border-light);
    border-radius: 30px;
    padding: 6px 10px;
    display: none;
    gap: 4px;
    box-shadow: var(--shadow-card);
    z-index: 100;
}

.reaction-picker.active {
    display: flex;
}

.reaction-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: none;
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.reaction-btn:hover {
    transform: scale(1.3);
    background: var(--bg-hover);
}

/* ============================================
   Stories
   ============================================ */

.stories-row {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    overflow-x: auto;
    padding: 4px 0;
    scrollbar-width: none;
}

.stories-row::-webkit-scrollbar {
    display: none;
}

.story-card {
    width: 110px;
    min-width: 110px;
    height: 160px;
    border-radius: var(--radius-md);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
}

.story-card:hover {
    transform: scale(1.03);
}

.story-card-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.story-card-create {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding-bottom: 12px;
}

.story-card-avatar {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: white;
    border: 2px solid var(--accent-purple);
}

.story-card-name {
    position: absolute;
    bottom: 8px;
    left: 8px;
    right: 8px;
    font-size: 11px;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

/* ============================================
   Create Post Modal
   ============================================ */

/* ============================================
   VoxPals Composer - Feed Card
   ============================================ */

.vox-composer-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    margin-bottom: 20px;
    overflow: hidden;
    transition: var(--transition);
}

.vox-composer-card:hover {
    border-color: rgba(168, 85, 247, 0.3);
}

.vox-composer-prompt {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    cursor: pointer;
    transition: var(--transition);
}

.vox-composer-prompt:hover {
    background: var(--bg-hover);
}

.vox-composer-text {
    flex: 1;
    font-size: 15px;
    color: var(--text-muted);
}

.vox-composer-quick-actions {
    display: flex;
    gap: 4px;
}

.vox-quick-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.vox-quick-btn:hover {
    border-color: var(--accent-purple);
    color: var(--accent-purple);
    background: rgba(168, 85, 247, 0.1);
}

/* ============================================
   VoxPals Composer - Modal
   ============================================ */

.vox-post-composer {
    width: 540px;
    max-width: 95vw;
    max-height: 90vh;
    overflow-y: auto;
    background: var(--bg-card-solid);
    border: 1px solid var(--border-light);
    border-radius: 24px;
    position: relative;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5), 0 0 60px rgba(168, 85, 247, 0.08);
    animation: modalFadeIn 0.25s ease;
    overflow: hidden;
}

.vox-post-composer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #a855f7, #ec4899, #a855f7);
    border-radius: 24px 24px 0 0;
}

.vox-composer-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 24px 16px;
}

.vox-composer-header-info {
    flex: 1;
}

.vox-composer-header-name {
    font-size: 15px;
    font-weight: 700;
    display: block;
    margin-bottom: 4px;
}

.vox-composer-visibility select {
    padding: 4px 24px 4px 8px;
    background: rgba(168, 85, 247, 0.12);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 14px;
    color: var(--accent-purple);
    font-size: 11px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    outline: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath fill='%23a855f7' d='M5 7L1 3h8z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
}

.vox-composer-visibility select:focus {
    box-shadow: 0 0 0 2px rgba(168, 85, 247, 0.2);
}

.vox-composer-body {
    padding: 0 24px;
}

.vox-composer-body textarea {
    width: 100%;
    min-height: 120px;
    padding: 0;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 16px;
    line-height: 1.7;
    resize: none;
    outline: none;
}

.vox-composer-body textarea::placeholder {
    color: var(--text-muted);
}

.vox-composer-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
    border-top: 1px solid var(--border-color);
    margin-top: 12px;
}

.vox-toolbar-left {
    display: flex;
    gap: 2px;
}

.vox-toolbar-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.vox-toolbar-btn:hover {
    background: var(--bg-hover);
    color: var(--accent-purple);
}

.vox-toolbar-btn:nth-child(1):hover { color: #10b981; }
.vox-toolbar-btn:nth-child(2):hover { color: #ec4899; }
.vox-toolbar-btn:nth-child(3):hover { color: #f59e0b; }
.vox-toolbar-btn:nth-child(4):hover { color: #ef4444; }
.vox-toolbar-btn:nth-child(5):hover { color: #3b82f6; }
.vox-toolbar-btn:nth-child(6):hover { color: #f59e0b; }

.vox-publish-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: var(--accent-gradient);
    border: none;
    border-radius: 20px;
    color: white;
    font-size: 14px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
}

.vox-publish-btn:hover {
    box-shadow: 0 4px 16px rgba(168, 85, 247, 0.4);
    transform: translateY(-1px);
}

.vox-publish-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.vox-publish-btn i {
    font-size: 13px;
}

/* Media preview in composer */
.post-media-preview {
    position: relative;
    margin: 0 24px 12px;
    border-radius: var(--radius-md);
    border: 1px dashed var(--border-color);
    overflow: hidden;
    background: var(--bg-input);
    padding: 10px;
}

.post-media-thumbs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.post-media-thumbs img,
.post-media-thumbs video {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
}

.btn-remove-media {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    color: white;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.btn-remove-media:hover {
    background: rgba(239, 68, 68, 0.8);
}

.create-post-modal-content {
    padding: 4px 0;
}

.create-post-modal-content textarea {
    width: 100%;
    min-height: 120px;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 16px;
    line-height: 1.6;
    resize: none;
    outline: none;
    padding: 12px 0;
}

.create-post-modal-content textarea::placeholder {
    color: var(--text-muted);
}

.media-preview {
    position: relative;
    margin: 12px 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    display: none;
}

.media-preview.active {
    display: block;
}

.media-preview img,
.media-preview video {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: var(--radius-md);
}

.media-preview .remove-media {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(0,0,0,0.6);
    border: none;
    color: white;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.post-options-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 12px 0;
    border-top: 1px solid var(--border-color);
}

.post-option-btns {
    display: flex;
    gap: 4px;
}

.post-option-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.post-option-btn:hover {
    background: var(--bg-hover);
    color: var(--accent-purple);
}

.privacy-select {
    padding: 6px 12px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    color: var(--text-secondary);
    font-size: 12px;
    font-family: inherit;
    outline: none;
    cursor: pointer;
}

/* ============================================
   Post Detail Modal
   ============================================ */

.post-detail-modal {
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
}

.comments-list {
    margin-top: 16px;
}

.comment-item {
    display: flex;
    gap: 10px;
    padding: 10px 0;
}

.comment-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.comment-body {
    flex: 1;
}

.comment-bubble {
    background: var(--bg-input);
    border-radius: 12px;
    padding: 8px 12px;
}

.comment-user-name {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 2px;
}

.comment-text {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.comment-actions {
    display: flex;
    gap: 12px;
    padding: 4px 0 0 12px;
    font-size: 12px;
    color: var(--text-muted);
}

.comment-actions span {
    cursor: pointer;
    transition: var(--transition);
}

.comment-actions span:hover {
    color: var(--accent-purple);
}

.comment-replies {
    padding-left: 42px;
}

.comment-input-area {
    display: flex;
    gap: 10px;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
    margin-top: 12px;
}

.comment-input-area input {
    flex: 1;
    padding: 10px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    color: var(--text-primary);
    font-size: 13px;
    font-family: inherit;
    outline: none;
}

.comment-input-area input:focus {
    border-color: var(--accent-purple);
}

.comment-send-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--accent-gradient);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.comment-send-btn:hover {
    box-shadow: 0 2px 10px rgba(168, 85, 247, 0.4);
}

/* ============================================
   Empty States
   ============================================ */

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 16px;
    color: var(--accent-purple);
    opacity: 0.4;
}

.empty-state h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.empty-state p {
    font-size: 14px;
    max-width: 400px;
    margin: 0 auto;
}

/* ============================================
   Loading States
   ============================================ */

.loading-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--border-color);
    border-top-color: var(--accent-purple);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.skeleton {
    background: linear-gradient(90deg, var(--bg-input) 25%, var(--bg-hover) 50%, var(--bg-input) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ============================================
   Profile Avatar Sizes
   ============================================ */

.avatar-xs {
    width: 24px;
    height: 24px;
    font-size: 10px;
}

.avatar-sm {
    width: 32px;
    height: 32px;
    font-size: 12px;
}

.avatar-md {
    width: 40px;
    height: 40px;
    font-size: 16px;
}

.avatar-lg {
    width: 56px;
    height: 56px;
    font-size: 22px;
}

.avatar-xl {
    width: 80px;
    height: 80px;
    font-size: 28px;
}

/* ============================================
   Page Content Container
   ============================================ */

.page-content {
    max-width: 900px;
    margin: 20px auto;
    padding: 0 24px;
}

/* ============================================
   Profile Dropdown
   ============================================ */

.profile-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: var(--bg-card-solid);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 8px;
    min-width: 280px;
    box-shadow: var(--shadow-card);
    display: none;
    z-index: 100;
}

.profile-dropdown.active {
    display: block;
}

.profile-dropdown-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 8px;
}

.profile-dropdown-user:hover {
    background: var(--bg-hover);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-secondary);
    font-size: 14px;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-family: inherit;
}

.dropdown-item:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.dropdown-item i {
    width: 20px;
    text-align: center;
}

.dropdown-item.danger {
    color: #ef4444;
}

.dropdown-item.danger:hover {
    background: rgba(239, 68, 68, 0.1);
}

/* ============================================
   Responsive Additions
   ============================================ */

/* ============================================
   Toast Container
   ============================================ */

#toastContainer {
    position: fixed;
    top: 70px;
    right: 20px;
    z-index: 7000;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* ============================================
   Topbar Dropdowns
   ============================================ */

.topbar-right {
    position: relative;
}

.topbar-dropdown {
    position: fixed;
    top: 56px;
    right: 16px;
    width: 360px;
    max-height: 480px;
    background: var(--bg-card-solid);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    overflow-y: auto;
    display: none;
    z-index: 1001;
}

.topbar-dropdown.active {
    display: block;
}

.dropdown-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    background: var(--bg-card-solid);
    z-index: 1;
}

.dropdown-header h3 {
    font-size: 18px;
    font-weight: 800;
}

.dropdown-body {
    padding: 8px;
}

.dropdown-empty {
    text-align: center;
    padding: 30px;
    color: var(--text-muted);
    font-size: 14px;
}

.dropdown-notif-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.dropdown-notif-item:hover {
    background: var(--bg-hover);
}

.dropdown-notif-item.unread {
    background: rgba(168, 85, 247, 0.06);
}

.dropdown-msg-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.dropdown-msg-item:hover {
    background: var(--bg-hover);
}

/* ============================================
   Create Modals Extended
   ============================================ */

.modal.wide {
    width: 520px;
}

.modal-form-group {
    margin-bottom: 14px;
}

.modal-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.modal-form-group input,
.modal-form-group textarea,
.modal-form-group select {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: var(--transition);
}

.modal-form-group input:focus,
.modal-form-group textarea:focus,
.modal-form-group select:focus {
    border-color: var(--accent-purple);
}

.modal-form-group textarea {
    min-height: 80px;
    resize: vertical;
}

.modal-form-group select {
    cursor: pointer;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
    margin-top: 16px;
}

.modal-footer .btn-cancel {
    background: var(--bg-input);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

@media (max-width: 768px) {
    .messenger-layout.old-unused {
        flex-direction: column;
    }
    .conversation-list.old-unused {
        width: 100%;
        min-width: 100%;
        height: auto;
        max-height: 40vh;
    }
    .listing-detail {
        grid-template-columns: 1fr;
    }
    .settings-layout {
        flex-direction: column;
    }
    .settings-sidebar {
        width: 100%;
    }
    .friends-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
    .content-grid {
        grid-template-columns: 1fr;
    }
    .call-video-container video.local-video {
        width: 120px;
    }
}
