:root {
    --bg-dark: #18191A;
    /* FB Dark Mode Base */
    --bg-card: #242526;
    /* FB Dark Mode Card */
    --bg-hover: #3A3B3C;
    --bg-input: #3A3B3C;
    --text-main: #E4E6EB;
    --text-muted: #B0B3B8;

    /* Twitch/Gamer Accents */
    --neon-purple: #9146FF;
    /* Twitch Purple */
    --neon-cyan: #00e5ff;
    --neon-red: #ff3131;
    --border: #3A3B3C;

    --font-ui: 'Roboto', sans-serif;
    --font-display: 'Rajdhani', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body.hybrid-body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-ui);
    overflow-y: scroll;
}

/* =========================================
   HEADER (FB STYLE)
   ========================================= */
.fb-header {
    background-color: var(--bg-card);
    height: 56px;
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 16px;
}

.header-left,
.header-center,
.header-right {
    display: flex;
    align-items: center;
}

.header-left {
    width: 320px;
    gap: 10px;
}

.flame-text-small {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 1px;
    text-shadow: 0 0 5px #fff, 0 0 10px #ff9100, 0 0 20px var(--neon-red);
}

.header-search {
    display: flex;
    align-items: center;
    background: var(--bg-input);
    border-radius: 20px;
    padding: 0 12px;
    height: 40px;
    width: 240px;
}

.header-search input {
    background: transparent;
    border: none;
    color: var(--text-main);
    padding: 8px;
    outline: none;
    font-size: 0.95rem;
    width: 100%;
}

.header-search .search-icon {
    color: var(--text-muted);
}

.header-center {
    flex: 1;
    justify-content: center;
    gap: 8px;
}

.nav-icon {
    width: 110px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: var(--text-muted);
    transition: background 0.2s;
    cursor: pointer;
    position: relative;
    text-decoration: none;
}

.nav-icon svg {
    width: 28px;
    height: 28px;
}

.nav-icon:hover {
    background: var(--bg-hover);
}

.nav-icon.active {
    color: var(--neon-purple);
}

.nav-icon.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--neon-purple);
    border-radius: 3px 3px 0 0;
}

.header-right {
    width: 320px;
    justify-content: flex-end;
    gap: 10px;
}

.action-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-input);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    text-decoration: none;
    font-size: 1.2rem;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background 0.2s;
}

.action-btn:hover {
    background: var(--bg-hover);
}

.header-profile-badge {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border 0.2s;
}

.header-profile-badge img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.header-profile-badge:hover {
    border: 2px solid var(--neon-cyan);
}


/* =========================================
   APP LAYOUT (FB Grid)
   ========================================= */
.app-container {
    display: flex;
    max-width: 1920px;
    margin: 0 auto;
    min-height: calc(100vh - 56px);
}

/* LEFT SIDEBAR */
.sidebar-left {
    width: 360px;
    padding: 16px 8px 16px 16px;
    position: sticky;
    top: 56px;
    height: calc(100vh - 56px);
    overflow-y: auto;
}

.sidebar-menu-item {
    display: flex;
    align-items: center;
    padding: 8px;
    border-radius: 8px;
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    gap: 12px;
    transition: background 0.2s;
}

.sidebar-menu-item:hover {
    background: var(--bg-hover);
}

.sidebar-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-input);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

/* CENTER FEED */
.main-feed {
    flex: 1;
    max-width: 680px;
    margin: 0 auto;
    padding: 24px 0;
}

/* Facebook Style Post Creator */
.fb-post-creator {
    background: var(--bg-card);
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 16px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.fb-post-creator-top {
    display: flex;
    gap: 8px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.fb-post-creator-top img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.fb-post-creator-input {
    flex: 1;
    background: var(--bg-input);
    border-radius: 20px;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    color: var(--text-muted);
    cursor: pointer;
}

.fb-post-creator-input input {
    width: 100%;
    background: transparent;
    border: none;
    color: #fff;
    outline: none;
}

.fb-post-creator-bottom {
    display: flex;
    justify-content: space-between;
    padding-top: 12px;
}

.fb-creator-action {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-muted);
    font-weight: 500;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.fb-creator-action:hover {
    background: var(--bg-hover);
}


/* Facebook Style Post Item */
.fb-post {
    background: var(--bg-card);
    border-radius: 8px;
    margin-bottom: 16px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.fb-post-header {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    gap: 10px;
}

.fb-post-header img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.fb-post-header-info {
    flex: 1;
}

.fb-post-author {
    color: var(--text-main);
    font-weight: 500;
    text-decoration: none;
}

.fb-post-time {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.fb-post-body {
    padding: 4px 16px 16px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.fb-post-stats {
    padding: 10px 16px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.fb-post-actions {
    display: flex;
    padding: 4px 16px;
}

.fb-action-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 6px 0;
    color: var(--text-muted);
    font-weight: 500;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.2s;
    background: transparent;
    border: none;
    font-size: 0.95rem;
}

.fb-action-btn:hover {
    background: var(--bg-hover);
}

/* RIGHT SIDEBAR (Twitch/FB combo) */
.sidebar-right {
    width: 360px;
    padding: 16px 16px 16px 8px;
    position: sticky;
    top: 56px;
    height: calc(100vh - 56px);
    overflow-y: auto;
}

.sidebar-heading {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 1.05rem;
    padding: 8px 8px 4px;
    display: flex;
    justify-content: space-between;
}

.contact-item {
    display: flex;
    align-items: center;
    padding: 8px;
    border-radius: 8px;
    gap: 12px;
    cursor: pointer;
    transition: background 0.2s;
}

.contact-item:hover {
    background: var(--bg-hover);
}

.contact-avatar {
    position: relative;
}

.contact-avatar img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.contact-avatar .online-dot {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
    background: #31a24c;
    border-radius: 50%;
    border: 2px solid var(--bg-dark);
}

/* Twitch Live Card Item in Right Sidebar */
.live-stream-small {
    display: flex;
    gap: 10px;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.live-stream-small:hover {
    background: var(--bg-hover);
}

.stream-thumb-small {
    width: 120px;
    height: 68px;
    border-radius: 6px;
    background: var(--bg-input);
    position: relative;
    overflow: hidden;
}

.live-tag {
    position: absolute;
    top: 4px;
    left: 4px;
    background: #e91e63;
    color: #fff;
    font-size: 0.65rem;
    font-weight: bold;
    padding: 2px 4px;
    border-radius: 4px;
}

.stream-info-small .title {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-main);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.stream-info-small .channel {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Utilities / General elements */

.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    cursor: pointer;
    border: none;
    font-family: var(--font-ui);
    transition: all 0.2s;
}

.btn-primary {
    background: var(--neon-purple);
    color: #fff;
}

.btn-primary:hover {
    background: #772ce8;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--neon-cyan);
    color: var(--neon-cyan);
}

.btn-outline:hover {
    background: rgba(0, 229, 255, 0.1);
}

.btn-full {
    width: 100%;
}

.glass-card {
    background: var(--bg-card);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 5px;
}

.form-input {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border);
    color: var(--text-main);
    padding: 10px 15px;
    border-radius: 6px;
    outline: none;
}

.form-input:focus {
    border-color: var(--neon-purple);
}

.text-muted {
    color: var(--text-muted) !important;
}

.mt-4 {
    margin-top: 16px;
}