/* ==========================================================================
   GLOBAL APP LOCK: DEEP PURE BLACK WORKSPACE (STRICT VERTICAL ONLY)
   ========================================================================== */

html, body {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
    overflow-y: auto !important; /* Permits normal vertical scrolling */
}

/* Ensure container areas stretch to full viewport width safely without horizontal blowout */
.app-container, .screen-content-area {
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
    padding-bottom: 90px; /* Safe cushion area so content doesn't hide behind bottom bar */
}

/* ==========================================================================
   🔒 PREMIUM ENDLESS MARQUEE TICKER (DYNAMC GRADIENT TRACK)
   ========================================================================== */

.index-ticker-wrap {
    width: 92%;
    margin: 12px auto;
    height: 32px;
    overflow: hidden;
    background-color: #09090b;
    border: 1px solid #27272a;
    border-radius: 8px;
    position: relative;
    display: flex;
}

.index-ticker-track {
    display: flex;
    width: max-content;
    animation: indexHorizontalScroll 18s linear infinite;
}

.index-ticker-text {
    font-size: 11px;
    font-weight: 900;
    /* Beautiful Premium Gradient: Vibrant Orange to Red-Violet Corporate Hue */
    background: linear-gradient(90deg, #f97316, #ec4899, #f43f5e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 1px;
    white-space: nowrap;
    text-transform: uppercase;
    line-height: 32px;
    height: 32px;
    padding-right: 60px;
    display: inline-block;
    flex-shrink: 0;
}

@keyframes indexHorizontalScroll {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); }
}

/* ==========================================================================
   🛠️ FIXED BOTTOM GRAPHIC NAVIGATION ENGINE (HAND-DRAWN VECTOR ICONS)
   ========================================================================== */

.bottom-nav-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 72px;
    background-color: #09090b;
    border-top: 1px solid #18181b;
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 9999;
    padding: 6px 0;
    box-sizing: border-box;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    color: #a1a1aa;
    text-decoration: none !important;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    flex: 1;
    cursor: pointer;
}

.nav-item.active {
    color: #ffffff;
}

/* 🎨 PURE VECTOR SHAPE CALCULATIONS (NO IMAGES OR STICKERS) */
.vector-icon-box {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* 🏠 HOME ICON: Structured Outer A-Frame Roof & Solid Base Node */
.icon-home-shape {
    width: 16px;
    height: 14px;
    border: 2px solid #a1a1aa;
    border-top: none;
    position: relative;
    margin-top: 6px;
}
.icon-home-shape::before {
    content: '';
    position: absolute;
    top: -8px;
    left: -4px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 8px solid #a1a1aa;
}
.nav-item.active .icon-home-shape { border-color: #ffffff; }
.nav-item.active .icon-home-shape::before { border-bottom-color: #ffffff; }

/* 👥 FRIENDS ICON: Dual Stacked Custom Shoulder Blocks and Circular Skull Nodes */
.icon-friends-shape {
    width: 12px;
    height: 12px;
    border: 2px solid #a1a1aa;
    border-radius: 50%;
    position: relative;
}
.icon-friends-shape::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: -5px;
    width: 18px;
    height: 6px;
    border: 2px solid #a1a1aa;
    border-bottom: none;
    border-radius: 6px 6px 0 0;
}
.nav-item.active .icon-friends-shape, 
.nav-item.active .icon-friends-shape::before { border-color: #ffffff; }

/* 💬 CHATS ICON: Symmetric Rectangle Frame with Angled Chat Tail Extension */
.icon-chats-shape {
    width: 18px;
    height: 13px;
    border: 2px solid #a1a1aa;
    border-radius: 4px;
    position: relative;
}
.icon-chats-shape::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 3px;
    width: 0;
    height: 0;
    border-left: 4px solid #a1a1aa;
    border-top: 4px solid transparent;
}
.nav-item.active .icon-chats-shape { border-color: #ffffff; }
.nav-item.active .icon-chats-shape::before { border-left-color: #ffffff; }

/* 🔔 NOTIFICATIONS ICON: Geometric Bell Profile Tracking Line with Base Clanger Round */
.icon-notifications-shape {
    width: 14px;
    height: 12px;
    border: 2px solid #a1a1aa;
    border-bottom: none;
    border-radius: 6px 6px 0 0;
    position: relative;
    margin-top: -2px;
}
.icon-notifications-shape::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: -3px;
    width: 16px;
    height: 2px;
    background-color: #a1a1aa;
}
.icon-notifications-shape::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 4px;
    width: 4px;
    height: 3px;
    background-color: #a1a1aa;
    border-radius: 0 0 2px 2px;
}
.nav-item.active .icon-notifications-shape { border-color: #ffffff; }
.nav-item.active .icon-notifications-shape::before,
.nav-item.active .icon-notifications-shape::after { background-color: #ffffff; }

/* 👤 PROFILE ICON: Centered Circular Head Frame Sitting On Top Of A Broad Vaulted Torso Outrigger */
.icon-profile-shape {
    width: 8px;
    height: 8px;
    border: 2px solid #a1a1aa;
    border-radius: 50%;
    position: relative;
    margin-top: -4px;
}
.icon-profile-shape::before {
    content: '';
    position: absolute;
    bottom: -10px;
    left: -6px;
    width: 16px;
    height: 8px;
    border: 2px solid #a1a1aa;
    border-bottom: none;
    border-radius: 8px 8px 0 0;
}
.nav-item.active .icon-profile-shape { border-color: #ffffff; }
.nav-item.active .icon-profile-shape::before { border-color: #ffffff; }

/* ==========================================================================
   HIGH-CONTRAST POSTS: PURE WHITE BLOCKS WITH INK BLACK TEXT
   ========================================================================== */

.post-card {
    background-color: #ffffff !important;
    color: #000000 !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 16px !important;
    margin: 16px auto !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5) !important;
    width: 92% !important;
    box-sizing: border-box !important;
}

.post-card * { color: #000000 !important; }


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