/* ==========================================================================
   SOUTAK (صوتُك) - LIGHT THEME DESKTOP AUDIO & COMMUNITY PLATFORM STYLESHEET
   ========================================================================== */

:root {
    /* Color Palette - Light Theme */
    --bg-main: #f5f7fd;
    --bg-card: #ffffff;
    --bg-card-hover: #ffffff;
    --bg-sidebar: #ffffff;
    --bg-topbar: rgba(245, 247, 253, 0.9);
    
    --primary: #6c5ce7;
    --primary-hover: #5b4cc7;
    --primary-light: #ede8ff;
    --accent-orange: #ff7675;
    --accent-green: #20bf6b;
    --accent-blue: #38ada9;
    --accent-pink: #e84393;
    
    --text-main: #1e1b2e;
    --text-muted: #6e7385;
    --text-dim: #9aa0b4;
    --border-color: #eaedf5;
    
    --font-main: 'Cairo', 'Tajawal', sans-serif;
    
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    
    --shadow-soft: 0 10px 30px rgba(108, 92, 231, 0.08);
    --shadow-card: 0 6px 20px rgba(0, 0, 0, 0.04);
    --shadow-glow: 0 8px 25px rgba(108, 92, 231, 0.25);
    
    --sidebar-width: 240px;
    --header-height: 70px;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-main);
    color: var(--text-main);
    direction: rtl;
    text-align: right;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
    background: #d0d5e5;
    border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Layout Grid */
.app-layout {
    display: flex;
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden;
}

/* ==========================================================================
   SIDEBAR NAVIGATION (RIGHT SIDE IN RTL)
   ========================================================================== */
.sidebar {
    width: var(--sidebar-width);
    background-color: var(--bg-sidebar);
    border-left: 1px solid var(--border-color);
    padding: 22px 14px;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 100;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.02);
}

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

.brand-logo {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--primary), #a29bfe);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: var(--shadow-glow);
}

.brand-name {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 6px;
}

.brand-badge {
    font-size: 0.62rem;
    background: var(--primary-light);
    color: var(--primary);
    padding: 2px 6px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(108, 92, 231, 0.2);
}

.btn-create-room {
    width: 100%;
    padding: 11px 14px;
    background: linear-gradient(135deg, var(--primary), #8c7ae6);
    border: none;
    border-radius: var(--radius-md);
    color: #fff;
    font-family: var(--font-main);
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: var(--shadow-glow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 20px;
}

.btn-create-room:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(108, 92, 231, 0.35);
}

.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all 0.25s ease;
    position: relative;
    white-space: nowrap;
}

.nav-item:hover {
    color: var(--primary);
    background-color: var(--primary-light);
}

.nav-item.active {
    color: var(--primary);
    background: var(--primary-light);
    font-weight: 800;
    border-right: 4px solid var(--primary);
}

.badge-count {
    margin-right: auto;
    background: var(--primary);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: var(--radius-full);
}

.badge-count.alt {
    background: var(--accent-orange);
}

.sidebar-user-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: #f8f9fe;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-top: auto;
}

.user-avatar-wrap {
    position: relative;
    width: 38px;
    height: 38px;
    flex-shrink: 0;
}

.user-avatar {
    width: 100%;
    height: 100%;
    border-radius: var(--radius-full);
    object-fit: cover;
}

.status-indicator {
    position: absolute;
    bottom: 2px;
    left: 2px;
    width: 9px;
    height: 9px;
    background-color: var(--accent-green);
    border: 2px solid #ffffff;
    border-radius: 50%;
}

.user-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-width: 0;
}

.user-name {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-handle {
    font-size: 0.72rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-icon-ghost {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    border-radius: var(--radius-sm);
    margin-right: auto;
    transition: color 0.2s;
}

.btn-icon-ghost:hover {
    color: var(--text-main);
}

/* ==========================================================================
   MAIN CONTENT CONTAINER
   ========================================================================== */
.main-content {
    margin-right: var(--sidebar-width);
    flex: 1;
    min-width: 0;
    width: calc(100% - var(--sidebar-width));
    padding: 20px 32px 100px 32px;
}

/* Top Application Bar */
.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.search-box {
    position: relative;
    flex: 1;
    max-width: 550px;
}

.search-icon {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-dim);
    pointer-events: none;
}

.search-box input {
    width: 100%;
    padding: 14px 48px 14px 20px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    color: var(--text-main);
    font-family: var(--font-main);
    font-size: 0.95rem;
    outline: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
}

.search-box input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(108, 92, 231, 0.15);
}

.top-bar-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.action-btn {
    width: 44px;
    height: 44px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
    transition: all 0.25s ease;
}

.action-btn:hover {
    background: #f8f9fe;
    transform: translateY(-2px);
    border-color: var(--primary);
}

.sparkles-btn {
    color: #e67e22;
    background: #fff8f0;
    border-color: #ffe0b2;
}

.sparkles-btn:hover {
    background: #ffe0b2;
}

.badge-dot {
    position: absolute;
    top: 2px;
    left: 2px;
    background: var(--primary);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-avatar {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 2px solid var(--primary);
    cursor: pointer;
}

/* Notification Panel Dropdown */
.notification-wrapper {
    position: relative;
}

.notification-dropdown {
    position: absolute;
    top: 55px;
    left: 0;
    width: 340px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    display: none;
    z-index: 150;
    overflow: hidden;
}

.notification-dropdown.show {
    display: block;
    animation: fadeIn 0.25s ease;
}

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

.dropdown-header h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
}

.btn-link {
    background: none;
    border: none;
    color: var(--primary);
    font-family: var(--font-main);
    font-size: 0.8rem;
    cursor: pointer;
    font-weight: 700;
}

.notification-list {
    max-height: 300px;
    overflow-y: auto;
}

.notif-item {
    display: flex;
    gap: 12px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.2s;
}

.notif-item.unread {
    background: var(--primary-light);
}

.notif-item:hover {
    background: #f8f9fe;
}

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

.notif-content p {
    font-size: 0.85rem;
    line-height: 1.4;
    color: var(--text-main);
}

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

/* ==========================================================================
   CATEGORIES SECTION
   ========================================================================== */
.categories-section {
    margin-bottom: 28px;
}

.categories-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 6px;
}

.cat-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    color: var(--text-muted);
    font-family: var(--font-main);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
    transition: all 0.25s ease;
}

.cat-tab:hover {
    color: var(--primary);
    background: var(--primary-light);
    border-color: rgba(108, 92, 231, 0.3);
    transform: translateY(-1px);
}

.cat-tab.active {
    background: var(--primary-light);
    color: var(--primary);
    border-color: var(--primary);
    font-weight: 800;
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.15);
}

.cat-icon {
    display: flex;
    align-items: center;
    font-size: 1.1rem;
}

.filter-btn {
    margin-right: auto;
    padding: 10px 14px;
}

/* ==========================================================================
   FEATURED HERO BANNER (MATCHING THE ORIGINAL MOCKUP PURPLE HERO)
   ========================================================================== */
.hero-banner {
    position: relative;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, #1f1854 0%, #100b38 60%, #0d092b 100%);
    overflow: hidden;
    margin-bottom: 36px;
    box-shadow: 0 15px 35px rgba(16, 11, 56, 0.25);
    color: #ffffff;
}

.hero-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 70%;
    height: 200%;
    background: radial-gradient(circle, rgba(108, 92, 231, 0.35) 0%, transparent 60%);
    pointer-events: none;
}

.banner-glass-content {
    padding: 32px 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    z-index: 2;
}

.banner-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.badge-hot {
    background: linear-gradient(135deg, #ff7675, #d63031);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 800;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.badge-qa {
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
}

.banner-title {
    font-size: 2.2rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 8px;
    color: #ffffff;
}

.banner-desc {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 700px;
    line-height: 1.6;
}

.banner-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    flex-wrap: wrap;
    gap: 20px;
}

.banner-participants {
    display: flex;
    align-items: center;
    gap: 20px;
}

.avatar-stack {
    display: flex;
    align-items: center;
}

.avatar-stack img, .avatar-more {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid #100b38;
    object-fit: cover;
    margin-right: -10px;
}

.avatar-more {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.room-status-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.12);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 700;
    color: #ffffff;
}

.live-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-green);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-green);
    animation: pulse 1.5s infinite;
}

.btn-join-banner {
    padding: 14px 32px;
    background: #ffffff;
    color: #100b38;
    border: none;
    border-radius: var(--radius-full);
    font-family: var(--font-main);
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.btn-join-banner:hover {
    transform: scale(1.04);
    box-shadow: 0 12px 30px rgba(255, 255, 255, 0.45);
}

.audio-waves-icon {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 14px;
}

.audio-waves-icon span {
    width: 3px;
    background: var(--primary);
    border-radius: 2px;
    animation: soundWave 1.2s infinite ease-in-out;
}

.audio-waves-icon span:nth-child(1) { height: 40%; animation-delay: 0.1s; }
.audio-waves-icon span:nth-child(2) { height: 90%; animation-delay: 0.3s; }
.audio-waves-icon span:nth-child(3) { height: 60%; animation-delay: 0.2s; }
.audio-waves-icon span:nth-child(4) { height: 100%; animation-delay: 0.4s; }

.pagination-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding-bottom: 16px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transition: all 0.3s;
}

.dot.active {
    width: 24px;
    border-radius: var(--radius-full);
    background: #ffffff;
}

/* ==========================================================================
   SUGGESTED ROOMS GRID (LIGHT CARDS)
   ========================================================================== */
.section-container {
    margin-bottom: 40px;
}

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

.section-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-main);
}

.see-all-link {
    color: var(--primary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 700;
    transition: color 0.2s;
}

.see-all-link:hover {
    color: var(--primary-hover);
}

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

.room-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: all 0.3s ease;
    cursor: pointer;
}

.room-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(108, 92, 231, 0.12);
    border-color: rgba(108, 92, 231, 0.3);
}

.card-image-wrap {
    position: relative;
    height: 150px;
    overflow: hidden;
}

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

.room-card:hover .card-img {
    transform: scale(1.06);
}

.badge-live {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #20bf6b;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: var(--radius-full);
}

.card-speakers-stack {
    position: absolute;
    bottom: 10px;
    right: 10px;
    display: flex;
}

.card-speakers-stack img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    margin-right: -6px;
    object-fit: cover;
}

.card-content {
    padding: 16px;
}

.room-card-title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 4px;
}

.room-card-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.45;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-dim);
    font-size: 0.78rem;
    font-weight: 600;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ==========================================================================
   QUICK ACTION GRID CARDS (MATCHING PASTEL LIGHT MOCKUP)
   ========================================================================== */
.action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 12px;
}

.quick-card {
    border-radius: var(--radius-lg);
    padding: 16px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.quick-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.qc-purple { background-color: #f3f0ff; }
.qc-orange { background-color: #fff2e8; }
.qc-green  { background-color: #e6ffed; }
.qc-blue   { background-color: #e6f7ff; }
.qc-pink   { background-color: #fff0f6; }

.qc-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.qc-info h4 {
    font-size: 0.9rem;
    font-weight: 800;
    color: #1e1b2e;
}

.qc-info p {
    font-size: 0.72rem;
    color: #6e7385;
    font-weight: 600;
}

.qc-arrow {
    margin-right: auto;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1e1b2e;
    cursor: pointer;
    font-size: 0.8rem;
    transition: background 0.2s;
}

.quick-card:hover .qc-arrow {
    background: #ffffff;
}

/* ==========================================================================
   ACTIVE COMMUNITIES GRID
   ========================================================================== */
.communities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.community-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: all 0.3s ease;
}

.community-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
    border-color: rgba(108, 92, 231, 0.3);
}

.comm-banner {
    height: 100px;
    overflow: hidden;
}

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

.comm-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.comm-title-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
}

.comm-name {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-main);
}

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

.btn-comm-join {
    margin-top: 8px;
    padding: 8px 16px;
    background: var(--primary-light);
    color: var(--primary);
    border: 1px solid rgba(108, 92, 231, 0.2);
    border-radius: var(--radius-full);
    font-family: var(--font-main);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

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

.btn-comm-join.joined {
    background: var(--accent-green);
    color: #fff;
    border-color: var(--accent-green);
}

/* ==========================================================================
   FLOATING AUDIO DOCK PLAYER
   ========================================================================== */
.audio-player-dock {
    position: fixed;
    bottom: 24px;
    left: 40px;
    right: calc(var(--sidebar-width) + 40px);
    background: #18142e;
    color: #ffffff;
    border-radius: var(--radius-lg);
    padding: 14px 28px;
    box-shadow: 0 15px 35px rgba(24, 20, 46, 0.35);
    z-index: 200;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: none;
}

.audio-player-dock.active {
    display: block;
    animation: slideUp 0.4s ease;
}

.dock-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.dock-room-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.dock-live-pulse {
    width: 12px;
    height: 12px;
    background-color: var(--accent-green);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--accent-green);
    animation: pulse 1.5s infinite;
}

.dock-titles h4 {
    font-size: 0.95rem;
    font-weight: 800;
    margin-bottom: 2px;
}

.dock-titles span {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
}

.dock-equalizer {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 24px;
}

.dock-equalizer .bar {
    width: 4px;
    background: var(--primary);
    border-radius: 2px;
    animation: soundWave 1.2s infinite ease-in-out;
}

.dock-equalizer .bar1 { height: 40%; animation-delay: 0.1s; }
.dock-equalizer .bar2 { height: 80%; animation-delay: 0.3s; }
.dock-equalizer .bar3 { height: 100%; animation-delay: 0.2s; }
.dock-equalizer .bar4 { height: 50%; animation-delay: 0.4s; }
.dock-equalizer .bar5 { height: 90%; animation-delay: 0.15s; }
.dock-equalizer .bar6 { height: 30%; animation-delay: 0.25s; }

.dock-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.player-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.player-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
}

.player-btn.muted {
    background: rgba(235, 77, 75, 0.3);
    color: #ff7675;
    border-color: #ff7675;
}

.btn-leave {
    width: auto;
    padding: 0 18px;
    border-radius: var(--radius-full);
    background: rgba(235, 77, 75, 0.2);
    color: #ff7675;
    border-color: rgba(235, 77, 75, 0.4);
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 0.85rem;
    gap: 6px;
}

.btn-leave:hover {
    background: #ff7675;
    color: #fff;
}

/* ==========================================================================
   MODAL & TOAST NOTIFICATION
   ========================================================================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 300;
}

.modal-overlay.active {
    display: flex;
    animation: fadeIn 0.25s ease;
}

.modal-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 480px;
    padding: 28px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

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

.modal-header h3 {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-main);
}

.close-modal {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.6rem;
    cursor: pointer;
}

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

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

.form-group input, .form-group select {
    width: 100%;
    padding: 12px 16px;
    background: #f8f9fe;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-main);
    font-family: var(--font-main);
    font-size: 0.95rem;
    outline: none;
}

.btn-submit {
    width: 100%;
    padding: 14px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-main);
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.2s;
}

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

.toast-notification {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: var(--primary);
    color: #fff;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 700;
    box-shadow: var(--shadow-glow);
    display: none;
    z-index: 400;
}

.toast-notification.show {
    display: block;
    animation: slideInLeft 0.3s ease;
}

/* ==========================================================================
   KEYFRAME ANIMATIONS
   ========================================================================== */
@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.7; }
    50% { transform: scale(1.15); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.7; }
}

@keyframes soundWave {
    0%, 100% { height: 20%; }
    50% { height: 100%; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

/* ==========================================================================
   SOCIAL MEDIA PLATFORM PROFILE PAGE (صفحة الملف الشخصي لمنصة التواصل الاجتماعي)
   ========================================================================== */

.profile-page-wrapper {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* 1. Profile Hero & Cover Card */
.profile-hero-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    position: relative;
}

.profile-cover {
    height: 180px;
    background: linear-gradient(135deg, #1f1244 0%, #3a1d7c 45%, #18093d 100%);
    position: relative;
    overflow: hidden;
}

.profile-cover::before {
    content: '';
    position: absolute;
    top: -50%;
    right: 15%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, rgba(108, 92, 231, 0.4) 0%, transparent 70%);
    pointer-events: none;
}

.profile-cover::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: 10%;
    width: 50%;
    height: 160%;
    background: radial-gradient(circle, rgba(232, 67, 147, 0.35) 0%, transparent 60%);
    pointer-events: none;
}

.cover-decor-waves {
    position: absolute;
    inset: 0;
    opacity: 0.18;
    background-image: radial-gradient(#ffffff 1.5px, transparent 1.5px);
    background-size: 24px 24px;
}

.cover-badges-top {
    position: absolute;
    top: 16px;
    right: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 5;
}

.cover-pill {
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-edit-cover {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    font-family: var(--font-main);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.25s ease;
    z-index: 5;
}

.btn-edit-cover:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: translateY(-2px);
}

.profile-header-main {
    padding: 0 24px 22px 24px;
    position: relative;
    z-index: 2;
}

.profile-avatar-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-top: -45px;
    margin-bottom: 14px;
    flex-wrap: wrap;
    gap: 12px;
}

.profile-avatar-container {
    position: relative;
    width: 95px;
    height: 95px;
    flex-shrink: 0;
}

.profile-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 4px solid #ffffff;
    object-fit: cover;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    background: #ffffff;
}

.profile-avatar-container .status-indicator {
    position: absolute;
    bottom: 4px;
    left: 4px;
    width: 14px;
    height: 14px;
    background-color: var(--accent-green);
    border: 2.5px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(32, 191, 107, 0.7);
}

.profile-avatar-container .verified-badge-lg {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 24px;
    height: 24px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.creator-tier-badge {
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #ffd700, #ffaa00);
    color: #1a1a1a;
    font-size: 0.65rem;
    font-weight: 900;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    border: 2px solid #ffffff;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(255, 170, 0, 0.4);
}

.profile-actions-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-primary-action {
    background: linear-gradient(135deg, var(--primary), #8c7ae6);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-full);
    padding: 9px 18px;
    font-family: var(--font-main);
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: var(--shadow-glow);
    transition: all 0.25s ease;
}

.btn-primary-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(108, 92, 231, 0.35);
}

.btn-message-action {
    background: #ffffff;
    color: var(--primary);
    border: 1.5px solid var(--primary);
    border-radius: var(--radius-full);
    padding: 8px 16px;
    font-family: var(--font-main);
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

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

.btn-tip-action {
    background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
    color: #3b2003;
    border: none;
    border-radius: var(--radius-full);
    padding: 9px 18px;
    font-family: var(--font-main);
    font-size: 0.88rem;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 15px rgba(253, 160, 133, 0.3);
    transition: all 0.25s ease;
}

.btn-tip-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(253, 160, 133, 0.45);
}

.btn-ghost-action {
    background: #ffffff;
    color: var(--text-main);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    padding: 9px 14px;
    font-family: var(--font-main);
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.btn-ghost-action:hover {
    background: var(--primary-light);
    color: var(--primary);
    border-color: rgba(108, 92, 231, 0.3);
}

.btn-icon-round {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-icon-round:hover {
    color: var(--primary);
    border-color: var(--primary);
    background: #f8f9fe;
}

.profile-user-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.profile-name-title {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.profile-user-name {
    font-size: 1.45rem;
    font-weight: 900;
    color: var(--text-main);
    line-height: 1.2;
}

.profile-role-tag {
    background: var(--primary-light);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(108, 92, 231, 0.2);
}

.profile-user-handle {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
    direction: ltr;
    display: inline-block;
}

.profile-user-bio {
    font-size: 0.92rem;
    color: var(--text-main);
    line-height: 1.55;
    max-width: 800px;
}

.profile-user-bio .bio-tag {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
    transition: underline 0.2s;
}

.profile-user-bio .bio-tag:hover {
    text-decoration: underline;
}

.profile-meta-info {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 2px;
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 600;
}

.profile-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.profile-meta-item a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
}

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

/* 2. Story Highlights Bar (شريط الهايلايتس والقصص البارزة) */
.story-highlights-bar {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    box-shadow: var(--shadow-card);
    display: flex;
    align-items: center;
    gap: 18px;
    overflow-x: auto;
    scrollbar-width: none;
}

.story-highlights-bar::-webkit-scrollbar {
    display: none;
}

.highlight-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.highlight-item:hover {
    transform: translateY(-2px);
}

.highlight-ring {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    padding: 2.5px;
    background: linear-gradient(135deg, var(--primary), #e84393, #ffa502);
    display: flex;
    align-items: center;
    justify-content: center;
}

.highlight-inner-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid #ffffff;
    object-fit: cover;
    background: #ffffff;
}

.highlight-icon-box {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid #ffffff;
    background: #f8f9fe;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.highlight-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-main);
    max-width: 68px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 3. Comprehensive Social Stats Bar */
.profile-stats-bar {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

@media (max-width: 1100px) {
    .profile-stats-bar {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {
    .profile-stats-bar {
        grid-template-columns: repeat(2, 1fr);
    }
}

.profile-stat-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    text-align: center;
    box-shadow: var(--shadow-card);
    transition: all 0.25s ease;
}

.profile-stat-box.clickable {
    cursor: pointer;
}

.profile-stat-box.clickable:hover {
    transform: translateY(-2px);
    border-color: rgba(108, 92, 231, 0.35);
    box-shadow: 0 8px 16px rgba(108, 92, 231, 0.08);
}

.stat-number {
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--text-main);
    margin-bottom: 2px;
}

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

/* 4. Main Profile Grid Layout (Feed vs Sidebar) */
.profile-main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 20px;
    width: 100%;
}

.profile-content-col {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

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

/* Tabs Navigation */
.profile-tabs-header {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-card);
    padding: 6px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-card);
    margin-bottom: 18px;
    overflow-x: auto;
    scrollbar-width: none;
}

.profile-tabs-header::-webkit-scrollbar {
    display: none;
}

.profile-tab-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-family: var(--font-main);
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

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

.profile-tab-btn.active {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(108, 92, 231, 0.3);
}

.profile-tab-btn .tab-count {
    font-size: 0.75rem;
    background: rgba(0, 0, 0, 0.08);
    padding: 2px 8px;
    border-radius: var(--radius-full);
}

.profile-tab-btn.active .tab-count {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

/* Tab Panes */
.profile-tab-pane {
    display: none;
}

.profile-tab-pane.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* ==========================================================================
   5. SOCIAL POST CARDS (كروت المنشورات التفاعلية)
   ========================================================================== */
.posts-feed-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Quick Create Post Box at Profile */
.create-post-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 18px 22px;
    box-shadow: var(--shadow-card);
    display: flex;
    align-items: center;
    gap: 14px;
}

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

.create-post-input-trigger {
    flex: 1;
    background: #f8f9fe;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    padding: 12px 20px;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.create-post-input-trigger:hover {
    background: #ffffff;
    border-color: var(--primary);
    color: var(--text-main);
}

.create-post-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-post-action-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #f8f9fe;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.2s;
}

.btn-post-action-icon:hover {
    color: var(--primary);
    background: var(--primary-light);
    border-color: rgba(108, 92, 231, 0.3);
}

/* Social Post Card */
.social-post-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 22px;
    box-shadow: var(--shadow-card);
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.social-post-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-color: rgba(108, 92, 231, 0.25);
}

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

.post-author-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

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

.post-author-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

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

.post-author-name {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-main);
}

.post-author-handle {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
}

.post-time-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    color: var(--text-dim);
    font-weight: 600;
}

.post-pinned-badge {
    background: #fff8f0;
    color: #e67e22;
    border: 1px solid #ffe0b2;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    gap: 4px;
}

.post-body {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.post-text {
    font-size: 1rem;
    color: var(--text-main);
    line-height: 1.65;
    word-break: break-word;
}

.post-text a, .post-text .hashtag {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
}

.post-text a:hover, .post-text .hashtag:hover {
    text-decoration: underline;
}

/* Post Media Grid */
.post-media-grid {
    display: grid;
    gap: 8px;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-top: 4px;
}

.post-media-grid.single {
    grid-template-columns: 1fr;
    max-height: 380px;
}

.post-media-grid.two {
    grid-template-columns: 1fr 1fr;
    max-height: 280px;
}

.post-media-grid.three {
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 1fr 1fr;
    max-height: 300px;
}

.post-media-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: transform 0.3s ease;
}

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

/* Interactive Poll in Post */
.post-poll-card {
    background: #f8f9fe;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 4px;
}

.poll-option {
    position: relative;
    background: #ffffff;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px 18px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
}

.poll-option:hover {
    border-color: var(--primary);
}

.poll-option.selected {
    border-color: var(--primary);
    background: var(--primary-light);
}

.poll-progress-bg {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    background: rgba(108, 92, 231, 0.15);
    z-index: 1;
    transition: width 0.4s ease;
}

.poll-opt-text {
    position: relative;
    z-index: 2;
}

.poll-opt-percent {
    position: relative;
    z-index: 2;
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--primary);
}

.poll-meta-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-top: 4px;
}

/* Post Live Room Attachment Preview */
.post-live-room-box {
    background: linear-gradient(135deg, #1f1854 0%, #100b38 100%);
    color: #ffffff;
    border-radius: var(--radius-md);
    padding: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    box-shadow: 0 8px 25px rgba(16, 11, 56, 0.25);
}

.post-room-info h4 {
    font-size: 1.05rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.post-room-info p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.75);
}

.btn-post-join-room {
    padding: 10px 20px;
    background: #ffffff;
    color: #100b38;
    border: none;
    border-radius: var(--radius-full);
    font-family: var(--font-main);
    font-weight: 800;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    transition: transform 0.2s;
}

.btn-post-join-room:hover {
    transform: scale(1.04);
}

/* Post Metrics & Actions Bar */
.post-stats-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
    font-size: 0.85rem;
    color: var(--text-dim);
    font-weight: 600;
}

.post-actions-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-top: 8px;
}

.action-btn-pill {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-main);
    font-size: 0.9rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.2s ease;
}

.action-btn-pill:hover {
    background: #f8f9fe;
    color: var(--text-main);
}

.action-btn-pill.like-btn:hover, .action-btn-pill.like-btn.liked {
    color: #e84393;
    background: #fde8ef;
}

.action-btn-pill.repost-btn:hover, .action-btn-pill.repost-btn.reposted {
    color: var(--accent-green);
    background: #e3f9ed;
}

.action-btn-pill.tip-btn:hover {
    color: #d48806;
    background: #fff9e6;
}

.action-btn-pill.bookmark-btn:hover, .action-btn-pill.bookmark-btn.bookmarked {
    color: var(--primary);
    background: var(--primary-light);
}

/* 6. Media Gallery Grid (معرض الصور والفيديوهات) */
.media-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

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

.gallery-item {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-card);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 800;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay span {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ==========================================================================
   7. PROFILE SIDEBAR WIDGETS
   ========================================================================== */
.profile-sidebar-widgets {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Creator Support & Monetization Card */
.creator-tip-card {
    background: linear-gradient(135deg, #ffffff 0%, #fffbf2 100%);
    border: 1.5px solid #ffe58f;
    border-radius: var(--radius-lg);
    padding: 22px;
    box-shadow: 0 10px 25px rgba(255, 170, 0, 0.08);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.tip-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tip-card-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, #ffd700, #ffaa00);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    box-shadow: 0 4px 12px rgba(255, 170, 0, 0.35);
}

.tip-card-title h4 {
    font-size: 1.05rem;
    font-weight: 800;
    color: #3b2003;
}

.tip-card-title p {
    font-size: 0.78rem;
    color: #8c6b32;
    font-weight: 600;
}

.tip-amounts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.tip-preset-btn {
    background: #ffffff;
    border: 1px solid #ffd591;
    border-radius: var(--radius-sm);
    padding: 8px 4px;
    font-family: var(--font-main);
    font-size: 0.9rem;
    font-weight: 800;
    color: #874d00;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tip-preset-btn:hover, .tip-preset-btn.active {
    background: linear-gradient(135deg, #ffd700, #ffaa00);
    color: #1a1a1a;
    border-color: #d48806;
}

.btn-send-tip-direct {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #fa8c16, #d46b08);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-full);
    font-family: var(--font-main);
    font-size: 0.95rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 6px 15px rgba(212, 107, 8, 0.3);
    transition: all 0.2s ease;
}

.btn-send-tip-direct:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(212, 107, 8, 0.45);
}

/* Security & Verification Widget */
.security-widget-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 22px;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.security-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.security-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-main);
}

.security-badge {
    font-size: 0.72rem;
    padding: 2px 10px;
    border-radius: var(--radius-full);
    font-weight: 800;
}

.security-badge.verified {
    background: #e6ffed;
    color: #389e0d;
    border: 1px solid #b7eb8f;
}

.security-badge.active-session {
    background: #e6f7ff;
    color: #096dd9;
    border: 1px solid #91d5ff;
}

/* ==========================================================================
   8. MODALS & POPUPS
   ========================================================================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 350;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
    animation: fadeIn 0.25s ease;
}

.modal-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 28px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

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

.modal-header h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-main);
}

.close-modal {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.6rem;
    cursor: pointer;
    line-height: 1;
}

/* Followers Modal List */
.followers-tabs-header {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 16px;
}

.followers-tab-btn {
    flex: 1;
    text-align: center;
    padding: 10px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    font-family: var(--font-main);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
}

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

.followers-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 380px;
    overflow-y: auto;
}

.follower-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 4px;
    border-bottom: 1px solid #f0f2f8;
}

.follower-user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

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

.follower-user-names h5 {
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--text-main);
}

.follower-user-names span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Payment Methods Selector in Tip Modal */
.payment-methods-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.payment-method-card {
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px 8px;
    text-align: center;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 800;
    transition: all 0.2s ease;
}

.payment-method-card:hover, .payment-method-card.selected {
    border-color: var(--primary);
    background: var(--primary-light);
    color: var(--primary);
}

/* ==========================================================================
   9. DEDICATED LIVE AUDIO & VIDEO ROOM STAGE (صفحة الغرفة الصوتية - LIGHT MODE)
   ========================================================================== */

body.room-page-mode {
    background-color: var(--bg-body);
    color: var(--text-main);
    overflow-x: hidden;
}

.room-layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: var(--bg-body);
}

/* Room Header Bar */
.room-header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 32px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.room-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.room-community-badge {
    background: var(--primary-light);
    color: var(--primary);
    border: 1px solid rgba(108, 92, 231, 0.2);
    font-size: 0.82rem;
    font-weight: 800;
    padding: 5px 14px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.room-community-badge:hover {
    background: var(--primary);
    color: #ffffff;
}

.room-title-head {
    font-size: 1.18rem;
    font-weight: 800;
    color: var(--text-main);
}

.room-header-center {
    display: flex;
    align-items: center;
    gap: 14px;
}

.live-indicator-pill {
    background: #fff1f0;
    border: 1px solid #ffa39e;
    color: #cf1322;
    font-size: 0.8rem;
    font-weight: 800;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    gap: 8px;
}

.live-timer {
    font-family: monospace;
    font-size: 0.85rem;
    color: #cf1322;
    font-weight: 700;
}

.room-listeners-count {
    font-size: 0.88rem;
    color: var(--text-muted);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}

.room-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-leave-quietly {
    padding: 9px 20px;
    background: #fff1f0;
    color: #cf1322;
    border: 1px solid #ffa39e;
    border-radius: var(--radius-full);
    font-family: var(--font-main);
    font-size: 0.9rem;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.btn-leave-quietly:hover {
    background: #ff4d4f;
    color: #ffffff;
    border-color: #ff4d4f;
}

/* Room Main Stage Grid Layout */
.room-main-container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    flex: 1;
    min-height: calc(100vh - 140px);
    width: 100%;
}

@media (max-width: 1100px) {
    .room-main-container {
        grid-template-columns: 1fr;
    }
}

.room-stage-area {
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 22px;
    position: relative;
    overflow-y: auto;
    min-width: 0;
}

/* Stage Sections */
.stage-section {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.stage-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

.stage-section-title {
    font-size: 0.98rem;
    font-weight: 800;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 6px;
}

.stage-section-count {
    font-size: 0.75rem;
    background: #eef1fc;
    color: var(--primary);
    font-weight: 800;
    padding: 2px 10px;
    border-radius: var(--radius-full);
}

/* Speakers Stage Grid */
.speakers-stage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(105px, 1fr));
    gap: 16px;
}

.speaker-stage-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
    position: relative;
    cursor: pointer;
}

.speaker-avatar-wrap {
    position: relative;
    width: 76px;
    height: 76px;
    border-radius: 50%;
    transition: transform 0.25s ease;
}

.speaker-stage-card:hover .speaker-avatar-wrap {
    transform: scale(1.06);
}

.speaker-stage-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid #ffffff;
    object-fit: cover;
    background: #ffffff;
    box-shadow: 0 4px 14px rgba(108, 92, 231, 0.12);
}

/* Speaking Aura Glow Animation */
.speaker-stage-card.is-speaking .speaker-avatar-wrap {
    border-radius: 50%;
    box-shadow: 0 0 0 3px #20bf6b, 0 0 16px rgba(32, 191, 107, 0.45);
    animation: speakerAura 1.4s infinite ease-in-out;
}

@keyframes speakerAura {
    0%, 100% {
        box-shadow: 0 0 0 2.5px #20bf6b, 0 0 10px rgba(32, 191, 107, 0.3);
    }
    50% {
        box-shadow: 0 0 0 5px #20bf6b, 0 0 18px rgba(32, 191, 107, 0.6);
    }
}

.speaker-mic-indicator {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.68rem;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.speaker-mic-indicator.live {
    background: #20bf6b;
    color: #ffffff;
}

.speaker-mic-indicator.muted {
    background: #eb4d4b;
    color: #ffffff;
}

.speaker-info-meta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.speaker-name {
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--text-main);
    max-width: 105px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.speaker-role-pill {
    font-size: 0.68rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: var(--radius-full);
}

.speaker-role-pill.host {
    background: #fff7e6;
    color: #d46b08;
    border: 1px solid #ffd591;
}

.speaker-role-pill.cohost {
    background: var(--primary-light);
    color: var(--primary);
    border: 1px solid rgba(108, 92, 231, 0.25);
}

.speaker-role-pill.speaker {
    background: #f1f3f9;
    color: var(--text-muted);
    border: 1px solid var(--border-color);
}

/* Listeners Audience Grid */
.listeners-stage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(55px, 1fr));
    gap: 10px;
}

.listener-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    position: relative;
}

.listener-avatar-wrap {
    position: relative;
    width: 48px;
    height: 48px;
}

.listener-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ffffff;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease;
}

.listener-card:hover .listener-avatar {
    transform: scale(1.1);
    border-color: var(--primary);
}

.listener-hand-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 18px;
    height: 18px;
    background: #ffd700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    animation: bounceHand 1s infinite alternate;
}

.listener-name {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 700;
    max-width: 55px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
}

/* Floating Reactions Stream Canvas */
.floating-reactions-canvas {
    position: absolute;
    bottom: 20px;
    left: 40px;
    width: 120px;
    height: 240px;
    pointer-events: none;
    z-index: 50;
    overflow: hidden;
}

.floating-emoji {
    position: absolute;
    bottom: 0;
    left: 50%;
    font-size: 1.8rem;
    opacity: 0;
    transform: translateX(-50%) scale(0.5);
    animation: floatUpEmoji 2.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes floatUpEmoji {
    0% {
        opacity: 1;
        transform: translate(-50%, 0) scale(0.8) rotate(0deg);
    }
    50% {
        opacity: 0.9;
        transform: translate(calc(-50% + 20px), -100px) scale(1.2) rotate(15deg);
    }
    100% {
        opacity: 0;
    }
}

/* Live Room Side Panel (Chat & Raised Hands Queue) */
.room-side-panel {
    background: #ffffff;
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.02);
}

.side-panel-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
}

.side-panel-tab-btn {
    flex: 1;
    padding: 14px 10px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-main);
    font-size: 0.9rem;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}

.side-panel-tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    background: var(--primary-light);
}

.panel-content-pane {
    flex: 1;
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.panel-content-pane.active {
    display: flex;
}

/* Chat Messages Feed */
.room-chat-feed {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #fafbff;
}

.chat-msg-row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.chat-msg-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.chat-msg-body {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 9px 13px;
    max-width: 85%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.chat-msg-author {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 2px;
}

.chat-msg-text {
    font-size: 0.88rem;
    color: var(--text-main);
    line-height: 1.4;
}

.chat-input-bar {
    padding: 14px 16px;
    border-top: 1px solid var(--border-color);
    background: #ffffff;
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-input-bar input {
    flex: 1;
    padding: 10px 16px;
    background: #f8f9fe;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    color: var(--text-main);
    font-family: var(--font-main);
    font-size: 0.9rem;
    outline: none;
}

.chat-input-bar input:focus {
    border-color: var(--primary);
    background: #ffffff;
}

.btn-send-chat {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--primary);
    color: #ffffff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s;
}

.btn-send-chat:hover {
    transform: scale(1.08);
}

/* Raised Hands Queue List */
.queue-list-container {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
    background: #fafbff;
}

.queue-request-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.queue-user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.queue-user-names h5 {
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--text-main);
}

.queue-user-names span {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.queue-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-accept-speaker {
    padding: 6px 12px;
    background: var(--accent-green);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-full);
    font-family: var(--font-main);
    font-size: 0.78rem;
    font-weight: 800;
    cursor: pointer;
}

.btn-decline-speaker {
    padding: 6px 10px;
    background: #f1f3f9;
    color: var(--text-muted);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-family: var(--font-main);
    font-size: 0.78rem;
    cursor: pointer;
}

/* Interactive Room Bottom Controls Dock */
.room-bottom-controls-bar {
    position: sticky;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-color);
    padding: 14px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    z-index: 100;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.04);
}

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

.btn-room-mic {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--primary), #8c7ae6);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-full);
    font-family: var(--font-main);
    font-size: 0.95rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(108, 92, 231, 0.35);
    transition: all 0.25s ease;
}

.btn-room-mic.muted {
    background: #fff1f0;
    color: #cf1322;
    border: 1px solid #ffa39e;
    box-shadow: none;
}

.btn-room-raise {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #f8f9fe;
    color: var(--text-main);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-family: var(--font-main);
    font-size: 0.9rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-room-raise.raised {
    background: #fffbe6;
    color: #d48806;
    border-color: #ffe58f;
}

/* Quick Reaction Emoji Pills */
.controls-center-reactions {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f8f9fe;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
}

.btn-reaction-trigger {
    background: transparent;
    border: none;
    font-size: 1.35rem;
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 50%;
    transition: transform 0.15s ease;
}

.btn-reaction-trigger:hover {
    transform: scale(1.35) rotate(10deg);
}

.controls-right-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-room-action-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #f8f9fe;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.2s ease;
}

.btn-room-action-icon:hover {
    background: var(--primary-light);
    color: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* ==========================================================================
   10. DEDICATED COMMUNITY PAGE (صفحة المجتمع الواحد - HOME & WALL)
   ========================================================================== */

.community-page-wrapper {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Community Hero Card */
.community-hero-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.community-cover {
    height: 240px;
    background: linear-gradient(135deg, rgba(20, 30, 48, 0.4), rgba(36, 59, 85, 0.6)), url('https://images.unsplash.com/photo-1464822759023-fed622ff2c3b?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
    position: relative;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

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

.comm-cover-pill {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    color: var(--text-main);
    font-size: 0.8rem;
    font-weight: 800;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.community-header-main {
    padding: 0 32px 28px;
    position: relative;
}

.community-avatar-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-top: -50px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 16px;
}

.community-avatar-container {
    position: relative;
    width: 105px;
    height: 105px;
}

.community-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 24px;
    border: 4px solid #ffffff;
    object-fit: cover;
    background: #ffffff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.community-category-badge {
    position: absolute;
    bottom: -4px;
    left: -4px;
    background: #fa8c16;
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    border: 2px solid #ffffff;
}

.community-actions-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-join-comm-main {
    padding: 10px 22px;
    background: #e6ffed;
    color: #389e0d;
    border: 1.5px solid #b7eb8f;
    border-radius: var(--radius-full);
    font-family: var(--font-main);
    font-size: 0.92rem;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.btn-join-comm-main:hover {
    background: #d9f7be;
}

.btn-join-comm-main.not-joined {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

.btn-start-space-comm {
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--primary), #8c7ae6);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-full);
    font-family: var(--font-main);
    font-size: 0.92rem;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(108, 92, 231, 0.3);
    transition: all 0.2s ease;
}

.btn-start-space-comm:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(108, 92, 231, 0.45);
}

.community-title-meta h1 {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.community-tagline {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
}

.community-description {
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--text-muted);
    max-width: 860px;
    margin-bottom: 16px;
}

/* Destinations Guide Grid */
.destinations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.destination-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.destination-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.destination-img-wrap {
    height: 180px;
    position: relative;
}

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

.destination-badge-country {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--text-main);
    font-size: 0.78rem;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.destination-img-wrap {
    height: 140px;
    position: relative;
    overflow: hidden;
}

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

.destination-card:hover .destination-img {
    transform: scale(1.06);
}

.destination-country-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--text-main);
    font-size: 0.72rem;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.destination-difficulty {
    position: absolute;
    bottom: 10px;
    left: 10px;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    color: #ffffff;
}

.destination-difficulty.easy { background: #20bf6b; }
.destination-difficulty.moderate { background: #fa8c16; }
.destination-difficulty.expert { background: #eb4d4b; }

.destination-body {
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.destination-body h3 {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-main);
}

.destination-body p {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.45;
}

.destination-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 2px;
}

.highlight-pill {
    background: #f8f9fe;
    color: var(--text-main);
    border: 1px solid var(--border-color);
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: var(--radius-sm);
}

/* Leaderboard List */
.leaderboard-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.leaderboard-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.leaderboard-rank {
    font-size: 1.1rem;
    font-weight: 900;
    width: 28px;
    text-align: center;
}

.leaderboard-user {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

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

.leaderboard-details h5 {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--text-main);
}

.leaderboard-details span {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.leaderboard-points-badge {
    background: #fff7e6;
    color: #d46b08;
    border: 1px solid #ffd591;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: var(--radius-full);
}

/* Community Rules List */
.rules-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rule-item-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.rule-number {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.rule-content h4 {
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 2px;
}

.rule-content p {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.45;
}

/* ==========================================================================
   11. ADVANCED SEARCH & VIDEO FEED WITH FILTERS (صفحة البحث والفيديوهات)
   ========================================================================== */

.search-page-wrapper {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

/* Search Hero Card */
.search-hero-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.search-hero-input-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8f9fe;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-full);
    padding: 6px 16px;
    transition: all 0.25s ease;
}

.search-hero-input-wrap:focus-within {
    border-color: var(--primary);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.12);
}

.search-hero-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-family: var(--font-main);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
}

.search-hero-input::placeholder {
    color: var(--text-muted);
    font-weight: 500;
}

.btn-search-icon-action {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.95rem;
    padding: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.btn-search-icon-action:hover {
    color: var(--primary);
    background: var(--primary-light);
}

.suggested-queries-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.suggested-query-label {
    font-size: 0.76rem;
    font-weight: 800;
    color: var(--text-muted);
}

.suggested-query-pill {
    background: #f8f9fe;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    font-size: 0.74rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: var(--radius-full);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

.suggested-query-pill:hover {
    background: var(--primary-light);
    color: var(--primary);
    border-color: var(--primary);
}

/* Category Switcher Tabs for Search */
#searchCategoryTabs.profile-tabs-header {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-card);
    padding: 5px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-card);
    margin-bottom: 4px;
    overflow-x: auto;
    scrollbar-width: none;
    flex-wrap: nowrap;
}

#searchCategoryTabs .profile-tab-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 7px 12px;
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    font-family: var(--font-main);
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

#searchCategoryTabs .profile-tab-btn:hover {
    color: var(--primary);
    background: #f8f9fe;
}

#searchCategoryTabs .profile-tab-btn.active {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(108, 92, 231, 0.25);
}

#searchCategoryTabs .profile-tab-btn .tab-count {
    font-size: 0.7rem;
    background: rgba(0, 0, 0, 0.08);
    padding: 1px 6px;
    border-radius: var(--radius-full);
}

#searchCategoryTabs .profile-tab-btn.active .tab-count {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

/* Advanced Filters Toolbar */
.search-filters-bar {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 8px 14px;
    box-shadow: var(--shadow-card);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}

.filters-group-left {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.filter-select-wrapper {
    position: relative;
    display: inline-block;
}

.filter-select {
    appearance: none;
    -webkit-appearance: none;
    background: #f8f9fe;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    padding: 5px 24px 5px 10px;
    font-family: var(--font-main);
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-main);
    cursor: pointer;
    outline: none;
    transition: all 0.2s ease;
}

.filter-select:hover, .filter-select:focus {
    border-color: var(--primary);
    background: #ffffff;
}

.filter-select-icon {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--text-muted);
    font-size: 0.72rem;
}

.filter-toggle-pill {
    padding: 5px 10px;
    background: #f8f9fe;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-family: var(--font-main);
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
}

.filter-toggle-pill:hover {
    border-color: var(--primary);
}

.filter-toggle-pill.active {
    background: var(--primary-light);
    color: var(--primary);
    border-color: var(--primary);
}

.btn-reset-filters {
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-main);
    font-size: 0.78rem;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}

.btn-reset-filters:hover {
    color: #ff4d4f;
}

/* Results Summary Bar */
.search-results-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2px 4px;
}

.results-count-text {
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--text-main);
}

.results-count-text span {
    color: var(--primary);
}

/* Top Matching Creators Carousel / Horizontal List */
.matching-creators-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.creators-scroll-row {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
}

.creators-scroll-row::-webkit-scrollbar {
    display: none;
}

.creator-search-card {
    min-width: 155px;
    max-width: 155px;
    background: #f8f9fe;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 5px;
    transition: transform 0.2s ease;
}

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

.creator-search-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.creator-search-name {
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 3px;
}

.creator-search-handle {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.creator-search-bio {
    font-size: 0.7rem;
    color: var(--text-muted);
    line-height: 1.3;
    max-height: 28px;
    overflow: hidden;
    margin: 1px 0 3px;
}

.creator-search-followers {
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--primary);
}

/* Video Results Grid */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 14px;
}

.video-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.video-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.07);
}

.video-thumb-container {
    height: 140px;
    position: relative;
    overflow: hidden;
    background: #000000;
}

.video-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.video-play-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.video-card:hover .video-play-overlay {
    opacity: 1;
}

.video-play-btn-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.2s ease;
}

.video-card:hover .video-play-btn-circle {
    transform: scale(1);
}

.video-duration-badge {
    position: absolute;
    bottom: 6px;
    left: 6px;
    background: rgba(0, 0, 0, 0.85);
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    font-family: monospace;
}

.video-quality-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    background: linear-gradient(135deg, #fa8c16, #d46b08);
    color: #ffffff;
    font-size: 0.62rem;
    font-weight: 900;
    padding: 2px 5px;
    border-radius: var(--radius-sm);
}

.video-card-body {
    padding: 10px 12px;
    display: flex;
    gap: 8px;
}

.video-author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.video-content-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.video-card-title {
    font-size: 0.84rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-author-name {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

.video-meta-stats {
    font-size: 0.7rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Keyword Highlighting */
.highlight-term {
    background: #fffbe6;
    color: #d48806;
    padding: 0 3px;
    border-radius: 3px;
    font-weight: 800;
}

/* Trending Searches Sidebar List */
.trending-search-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #f0f2f8;
    cursor: pointer;
    transition: all 0.2s ease;
}

.trending-search-item:hover {
    padding-right: 4px;
    color: var(--primary);
}

.trending-search-info h5 {
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--text-main);
}

.trending-search-info span {
    font-size: 0.68rem;
    color: var(--text-muted);
}

/* ==========================================================================
   ENHANCED SOCIAL MEDIA HOME FEED STYLES (STORIES, REELS, POLLS, INFINITE SCROLL)
   ========================================================================== */

/* 1. Stories Tray */
.stories-tray-section {
    margin-bottom: 24px;
}

.stories-scroll-row {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding: 6px 2px 14px;
    scrollbar-width: thin;
    scrollbar-color: #d0d5e5 transparent;
}

.stories-scroll-row::-webkit-scrollbar {
    height: 5px;
}

.stories-scroll-row::-webkit-scrollbar-thumb {
    background: #d0d5e5;
    border-radius: var(--radius-full);
}

.story-card {
    min-width: 110px;
    width: 110px;
    height: 170px;
    border-radius: var(--radius-md);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    background: #1e1b2e;
    box-shadow: var(--shadow-card);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 10px;
}

.story-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 25px rgba(108, 92, 231, 0.2);
}

.story-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.story-card:hover .story-bg-img {
    transform: scale(1.08);
    opacity: 0.95;
}

.story-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.1) 40%, rgba(0,0,0,0.85) 100%);
    pointer-events: none;
}

.story-avatar-wrap {
    position: relative;
    z-index: 2;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    padding: 2px;
    background: linear-gradient(135deg, #ff7675, #6c5ce7, #0984e3);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.story-avatar-wrap.live {
    background: linear-gradient(135deg, #ff4757, #ff6b81);
    animation: pulseGlow 1.8s infinite;
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(255, 71, 87, 0.7); }
    70% { box-shadow: 0 0 0 8px rgba(255, 71, 87, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 71, 87, 0); }
}

.story-avatar-wrap img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ffffff;
}

.story-badge-live {
    position: absolute;
    bottom: -4px;
    right: 50%;
    transform: translateX(50%);
    background: #ff4757;
    color: #ffffff;
    font-size: 0.58rem;
    font-weight: 900;
    padding: 1px 4px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.story-user-name {
    position: relative;
    z-index: 2;
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Add Story Card */
.story-card.add-story-card {
    background: #ffffff;
    border: 2px dashed #d0d5e5;
}

.story-card.add-story-card:hover {
    border-color: var(--primary);
}

.add-story-btn-circle {
    width: 42px;
    height: 42px;
    background: var(--primary);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(108, 92, 231, 0.35);
    margin: auto 0;
    align-self: center;
}

.story-card.add-story-card .story-user-name {
    color: var(--text-main);
    text-shadow: none;
    text-align: center;
}

/* 2. Feed Filter Navigation Tabs */
.feed-filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 8px 12px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-card);
    gap: 10px;
    overflow-x: auto;
}

.feed-filter-tabs-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.feed-tab-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-muted);
    font-family: var(--font-main);
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.feed-tab-btn:hover {
    background: #f0f3fa;
    color: var(--text-main);
}

.feed-tab-btn.active {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(108, 92, 231, 0.25);
}

.feed-tab-btn .tab-badge {
    font-size: 0.7rem;
    padding: 1px 6px;
    border-radius: var(--radius-full);
    background: rgba(0, 0, 0, 0.08);
}

.feed-tab-btn.active .tab-badge {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

/* 3. Shorts & Reels Section */
.reels-highlight-section {
    background: linear-gradient(135deg, #1c1836, #2d2658);
    border-radius: var(--radius-lg);
    padding: 22px;
    margin-bottom: 28px;
    box-shadow: 0 10px 30px rgba(28, 24, 54, 0.15);
    color: #ffffff;
}

.reels-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.reels-title-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.reels-title-wrap h2 {
    font-size: 1.25rem;
    font-weight: 800;
    color: #ffffff;
}

.reels-badge-hot {
    background: linear-gradient(135deg, #ff4757, #ff6b81);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: var(--radius-full);
}

.reels-scroll-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 14px;
}

@media (max-width: 768px) {
    .reels-scroll-row {
        display: flex;
        overflow-x: auto;
        padding-bottom: 8px;
    }
    .reel-card {
        min-width: 160px;
    }
}

.reel-card {
    height: 270px;
    border-radius: var(--radius-md);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0,0,0,0.3);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 12px;
}

.reel-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.45);
}

.reel-thumb-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.reel-card:hover .reel-thumb-img {
    transform: scale(1.08);
}

.reel-gradient-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, transparent 40%, rgba(0,0,0,0.92) 100%);
    pointer-events: none;
}

.reel-top-row {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.reel-views-pill {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    gap: 4px;
}

.reel-play-icon-center {
    position: absolute;
    top: 45%;
    right: 50%;
    transform: translate(50%, -50%) scale(0.85);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.2rem;
    opacity: 0;
    transition: all 0.25s ease;
    z-index: 2;
}

.reel-card:hover .reel-play-icon-center {
    opacity: 1;
    transform: translate(50%, -50%) scale(1);
    background: var(--primary);
}

.reel-bottom-info {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.reel-caption {
    font-size: 0.84rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.reel-creator-chip {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
}

.reel-creator-avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid #ffffff;
}

.reel-creator-name {
    font-size: 0.72rem;
    color: #f1f2f6;
    font-weight: 600;
}

/* 4. Interactive Poll inside Post */
.post-poll-box {
    background: #f8f9fe;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 8px;
}

.poll-question-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 6px;
}

.poll-options-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.poll-option-btn {
    position: relative;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.2s ease;
    font-family: var(--font-main);
}

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

.poll-option-btn.selected {
    border-color: var(--primary);
    background: #f7f5ff;
}

.poll-bar-fill {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    background: rgba(108, 92, 231, 0.12);
    border-radius: var(--radius-sm);
    pointer-events: none;
    transition: width 0.6s ease;
}

.poll-option-btn.selected .poll-bar-fill {
    background: rgba(108, 92, 231, 0.22);
}

.poll-opt-text {
    position: relative;
    z-index: 2;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 6px;
}

.poll-opt-percent {
    position: relative;
    z-index: 2;
    font-size: 0.86rem;
    font-weight: 800;
    color: var(--primary);
}

.poll-meta-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.76rem;
    color: var(--text-muted);
    font-weight: 600;
    padding-top: 4px;
}

/* 5. Voice Note / Audio Post Waveform */
.audio-post-player {
    background: linear-gradient(135deg, #f8f9fe, #ede8ff);
    border: 1px solid rgba(108, 92, 231, 0.2);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 8px;
}

.audio-play-btn-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: #ffffff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(108, 92, 231, 0.3);
    flex-shrink: 0;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.audio-play-btn-circle:hover {
    transform: scale(1.06);
    background: var(--primary-hover);
}

.audio-waveform-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.waveform-bars {
    display: flex;
    align-items: center;
    gap: 3px;
    height: 28px;
}

.wave-bar {
    flex: 1;
    background: #c5cae9;
    border-radius: 2px;
    transition: height 0.2s ease, background-color 0.2s ease;
}

.wave-bar.active {
    background: var(--primary);
}

.audio-time-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--text-muted);
}

/* 6. Long-Form Video Section (Watch 4K) */
.watch-section-container {
    margin-bottom: 28px;
}

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

/* 7. Suggested Creators Row */
.creators-recommendation-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 28px;
    box-shadow: var(--shadow-card);
}

/* 8. Infinite Scroll Loader */
.infinite-scroll-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 10px 40px;
    gap: 12px;
}

.spinner-pulse-ring {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 3px solid rgba(108, 92, 231, 0.15);
    border-top-color: var(--primary);
    animation: spinInfinite 0.85s linear infinite;
}

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

.loader-status-text {
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.infinite-end-banner {
    background: #f8f9fe;
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-md);
    padding: 18px;
    text-align: center;
    font-size: 0.86rem;
    font-weight: 800;
    color: var(--text-muted);
    margin: 20px 0;
}

/* ==========================================================================
   COMPREHENSIVE RESPONSIVE DESIGN (FOR MAIN APP INDEX & FEED)
   ========================================================================== */

/* Large Tablets & Medium Screens (max-width: 1200px) */
@media (max-width: 1200px) {
    .feed-layout-grid,
    .main-social-feed-layout {
        grid-template-columns: 1fr 300px !important;
        gap: 18px !important;
    }
}

/* Tablets (max-width: 992px) */
@media (max-width: 992px) {
    :root {
        --sidebar-width: 70px;
    }
    .sidebar {
        width: 70px;
        padding: 16px 8px;
        align-items: center;
    }
    .brand-name,
    .btn-create-room span,
    .nav-item span,
    .badge-count,
    .sidebar-user-card .user-info,
    .sidebar-user-card .btn-icon-ghost {
        display: none !important;
    }
    .brand-logo {
        margin: 0 auto;
    }
    .btn-create-room {
        width: 44px;
        height: 44px;
        padding: 0;
        border-radius: 50%;
        margin-bottom: 16px;
    }
    .nav-item {
        justify-content: center;
        padding: 12px;
    }
    .sidebar-user-card {
        padding: 4px;
        background: transparent;
        border: none;
        justify-content: center;
    }
    .main-content {
        margin-right: 70px;
        width: calc(100% - 70px);
        padding: 16px 20px 100px;
    }
    .feed-layout-grid,
    .main-social-feed-layout {
        grid-template-columns: 1fr !important;
    }
    .feed-sidebar-column,
    .right-sidebar-widgets {
        display: none !important;
    }
    .audio-player-dock {
        left: 20px;
        right: 90px;
    }
}

/* Mobile Screens (max-width: 768px) */
@media (max-width: 768px) {
    :root {
        --sidebar-width: 0px;
    }
    .sidebar {
        display: none !important;
    }
    .main-content {
        margin-right: 0 !important;
        width: 100% !important;
        padding: 12px 12px 90px !important;
    }
    .top-bar {
        gap: 10px;
        margin-bottom: 16px;
    }
    .search-box input {
        padding: 10px 38px 10px 14px;
        font-size: 0.85rem;
    }
    .action-btn {
        width: 38px;
        height: 38px;
    }
    .banner-glass-content {
        padding: 20px 16px;
    }
    .banner-title {
        font-size: 1.3rem !important;
    }
    .banner-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }
    .btn-join-banner {
        width: 100%;
        justify-content: center;
        padding: 11px 20px;
    }
    .rooms-grid,
    .communities-grid {
        grid-template-columns: 1fr;
    }
    .watch-videos-grid {
        grid-template-columns: 1fr;
    }
    .post-actions-buttons-row {
        flex-wrap: wrap;
    }
    .audio-player-dock {
        left: 12px;
        right: 12px;
        bottom: 12px;
        padding: 10px 14px;
    }
    .dock-equalizer {
        display: none;
    }
    .dock-titles h4 {
        font-size: 0.85rem;
    }
    .dock-titles span {
        font-size: 0.7rem;
    }
    .notification-dropdown {
        left: -80px;
        width: 290px;
    }
}

/* Extra Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
    .top-bar {
        flex-wrap: wrap;
    }
    .search-box {
        order: 2;
        max-width: 100%;
        width: 100%;
    }
    .top-bar-actions {
        order: 1;
        width: 100%;
        justify-content: flex-end;
    }
    .feed-filter-bar {
        padding: 6px;
    }
    .feed-tab-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    .btn-post-action {
        font-size: 0.75rem;
        padding: 6px 4px;
    }
    .modal-card {
        padding: 18px 14px;
    }
    .toast-notification {
        left: 12px;
        right: 12px;
        bottom: 12px;
        text-align: center;
    }
}

/* Specific Profile Page Responsiveness */
@media (max-width: 768px) {
    .profile-cover {
        height: 140px;
    }
    .profile-header-main {
        padding: 0 16px 18px;
    }
    .profile-avatar-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        margin-top: -40px;
    }
    .profile-avatar-container {
        width: 80px;
        height: 80px;
    }
    .profile-actions-bar {
        width: 100%;
        justify-content: flex-start;
    }
    .btn-primary-action, .btn-message-action, .btn-tip-action {
        flex: 1;
        justify-content: center;
        padding: 8px 12px;
        font-size: 0.82rem;
    }
    .profile-user-name {
        font-size: 1.25rem;
    }
    .profile-main-grid {
        grid-template-columns: 1fr !important;
    }
    .profile-sidebar-widgets {
        display: none !important;
    }
    .profile-stats-bar {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 8px;
    }
    .stat-number {
        font-size: 1.1rem;
    }
    .stat-label {
        font-size: 0.7rem;
    }
    .story-highlights-bar {
        padding: 10px 12px;
        gap: 14px;
    }
    .highlight-ring {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 480px) {
    .profile-stats-bar {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .profile-actions-bar {
        flex-wrap: wrap;
    }
    .btn-ghost-action {
        flex: 1;
        justify-content: center;
    }
}

/* Specific Search Page Responsiveness */
@media (max-width: 992px) {
    .search-main-grid {
        grid-template-columns: 1fr !important;
    }
    .search-sidebar-widgets {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .search-filters-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    .filters-group-left {
        overflow-x: auto;
        padding-bottom: 4px;
        flex-wrap: nowrap;
        scrollbar-width: none;
    }
    .videos-grid {
        grid-template-columns: 1fr;
    }
    .search-hero-input-wrap {
        padding: 4px 12px;
    }
    .search-hero-input {
        font-size: 0.88rem;
    }
}

@media (max-width: 480px) {
    .suggested-queries-row {
        gap: 4px;
    }
    .suggested-query-pill {
        font-size: 0.7rem;
        padding: 2px 7px;
    }
    #searchCategoryTabs .profile-tab-btn {
        padding: 6px 10px;
        font-size: 0.76rem;
    }
}





