/* Base Styles - Must be first */
html, body {
    background: linear-gradient(180deg, #07152a 0%, #0d1f3a 100%) !important;
    background-color: #07152a !important;
    margin: 0;
    padding: 0;
    padding-top: 80px; /* Space for fixed header */
    min-height: 100vh;
    color: white;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

/* Preview Image Effects - PREVIEWIMAGEBRUH.jpg */
.preview-image-container,
img[src*="PREVIEWIMAGEBRUH.jpg"],
img[src*="PREVIEWIMAGEBRUH"] {
    position: relative;
    display: inline-block;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: previewImageGlow 3s ease-in-out infinite;
}

.preview-image-container::before,
img[src*="PREVIEWIMAGEBRUH.jpg"]::before,
img[src*="PREVIEWIMAGEBRUH"]::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 70%
    );
    animation: shimmer 3s infinite;
    pointer-events: none;
    z-index: 1;
}

.preview-image-container img,
img[src*="PREVIEWIMAGEBRUH.jpg"],
img[src*="PREVIEWIMAGEBRUH"] {
    position: relative;
    z-index: 0;
    filter: brightness(1.05) contrast(1.1) saturate(1.15);
    transition: all 0.4s ease;
    width: 100%;
    height: auto;
    display: block;
}

.preview-image-container:hover,
img[src*="PREVIEWIMAGEBRUH.jpg"]:hover,
img[src*="PREVIEWIMAGEBRUH"]:hover {
    transform: scale(1.02) translateY(-2px);
    filter: brightness(1.1) contrast(1.15) saturate(1.2);
    box-shadow: 
        0 20px 60px rgba(29, 161, 242, 0.3),
        0 0 40px rgba(29, 161, 242, 0.2),
        0 0 80px rgba(29, 161, 242, 0.1);
}

.preview-image-container::after,
img[src*="PREVIEWIMAGEBRUH.jpg"]::after,
img[src*="PREVIEWIMAGEBRUH"]::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 16px;
    padding: 3px;
    background: linear-gradient(
        135deg,
        rgba(29, 161, 242, 0.6),
        rgba(138, 43, 226, 0.6),
        rgba(255, 20, 147, 0.6),
        rgba(29, 161, 242, 0.6)
    );
    background-size: 300% 300%;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: borderGradient 4s ease infinite;
    pointer-events: none;
    z-index: 2;
}

@keyframes previewImageGlow {
    0%, 100% {
        box-shadow: 
            0 0 20px rgba(29, 161, 242, 0.3),
            0 0 40px rgba(29, 161, 242, 0.2),
            0 0 60px rgba(29, 161, 242, 0.1);
    }
    50% {
        box-shadow: 
            0 0 30px rgba(29, 161, 242, 0.5),
            0 0 60px rgba(29, 161, 242, 0.3),
            0 0 90px rgba(29, 161, 242, 0.2);
    }
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

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

/* Floating animation for preview image */
.preview-image-float {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    33% {
        transform: translateY(-10px) rotate(1deg);
    }
    66% {
        transform: translateY(5px) rotate(-1deg);
    }
}

/* Particle effects around preview image */
.preview-image-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 3;
    overflow: hidden;
    border-radius: 16px;
}

.preview-image-particles::before,
.preview-image-particles::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(29, 161, 242, 0.8);
    border-radius: 50%;
    animation: particleFloat 8s infinite;
    box-shadow: 
        20px 30px 0 rgba(138, 43, 226, 0.6),
        -30px 50px 0 rgba(255, 20, 147, 0.6),
        40px -20px 0 rgba(29, 161, 242, 0.6),
        -50px -40px 0 rgba(138, 43, 226, 0.6);
}

.preview-image-particles::before {
    animation-delay: 0s;
}

.preview-image-particles::after {
    animation-delay: 2s;
    left: 50%;
    top: 30%;
}

@keyframes particleFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.8;
    }
    25% {
        transform: translate(20px, -30px) scale(1.2);
        opacity: 1;
    }
    50% {
        transform: translate(-15px, -50px) scale(0.8);
        opacity: 0.6;
    }
    75% {
        transform: translate(30px, -20px) scale(1.1);
        opacity: 0.9;
    }
}

body {
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

/* Feed v2 Styles - Professional X-style cards */

/* Remove ugly overlays and filters from old post cards */
.article-card,
.modern-post-card {
    background: transparent !important;
    backdrop-filter: none !important;
    box-shadow: none !important;
}

/* Feed Container */
.feed-container {
    max-width: 680px;
    margin: 0 auto;
    padding: 1rem;
}

@media (min-width: 1280px) {
    .feed-container {
        max-width: 1280px;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

.image-fallback-state {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 200px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px dashed rgba(255, 255, 255, 0.35);
    background: rgba(5, 12, 30, 0.85);
    display: block !important;
    visibility: visible !important;
}

.image-fallback-state img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(0.5) contrast(0.9) brightness(0.9);
    opacity: 0.55;
    transform: scale(1.05);
}

.image-fallback-overlay {
    position: absolute;
    inset: 0;
    padding: 1.25rem;
    background: radial-gradient(circle at center, rgba(7, 15, 35, 0.8), rgba(2, 4, 12, 0.95));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.65rem;
}

.image-fallback-title {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: #ff9f7c;
}

.image-fallback-subtitle {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.08em;
    line-height: 1.4;
}

/* Feed Controls */
.feed-controls {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(15, 15, 35, 0.95) !important;
    backdrop-filter: blur(10px);
    padding: 1rem;
    margin-bottom: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.feed-search-input:focus,
.feed-sort-select:focus {
    outline: none;
    border-color: #4A90E2 !important;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.5) !important;
}

/* Post Cards */
.feed-post-card {
    background: transparent !important;
    backdrop-filter: none !important;
    border: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 1rem !important;
    margin-left: 0 !important;
    transition: background 0.2s ease;
    min-height: 360px;
    display: grid;
    grid-template-rows: auto 1fr auto;
    box-sizing: border-box;
}

.feed-post-card:hover {
    background: rgba(255, 255, 255, 0.03) !important;
}

.article-card,
.article-card .article-content,
.article-card .article-excerpt,
.feed-post-card,
.feed-post-card > div {
    margin-left: 0 !important;
    padding-left: 0 !important;
    text-indent: 0 !important;
}

/* Avatar */
.feed-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

/* Author name */
.feed-author-name {
    font-weight: 700;
    font-size: 0.938rem;
    color: rgb(231, 233, 234);
    text-decoration: none;
    line-height: 1.25rem;
}

.feed-author-name:hover {
    text-decoration: underline;
}

/* Timestamp */
.feed-timestamp {
    color: rgb(113, 118, 123);
    font-size: 0.938rem;
    text-decoration: none;
    line-height: 1.25rem;
}

.feed-timestamp:hover {
    text-decoration: underline;
}

/* Post text - line clamping */
.feed-post-text {
    color: rgb(231, 233, 234);
    font-size: 0.938rem;
    line-height: 1.375rem;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
    margin: 0 0 0.75rem 0 !important;
    padding: 0 !important;
    text-align: left !important;
    text-indent: 0 !important;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-family: 'Century Schoolbook', 'Century Schoolbook L', serif;
}

@media (min-width: 1280px) {
    .feed-post-text {
        -webkit-line-clamp: 8;
    }
}

@media (max-width: 768px) {
    .feed-post-text {
        -webkit-line-clamp: 5;
    }
}

/* Media */
.feed-media-single,
.feed-media-video {
    width: 100%;
    max-height: 400px;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.feed-media-grid {
    display: grid;
    gap: 2px;
    width: 100%;
    max-height: 400px;
    overflow: hidden;
    border-radius: 16px;
    margin-bottom: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.feed-media-single img,
.feed-media-video video {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Engagement buttons */
.feed-engagement-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.2s ease;
    min-width: 36px;
    justify-content: flex-start;
    cursor: pointer;
    background: transparent;
    border: none;
    color: rgb(113, 118, 123);
    text-decoration: none;
    font-size: inherit;
}

.feed-engagement-btn:hover {
    background-color: rgba(29, 155, 240, 0.1) !important;
}

.feed-engagement-btn:focus {
    outline: 2px solid #4A90E2;
    outline-offset: 2px;
}

/* Pinned badge */
.feed-pinned-badge {
    color: rgb(113, 118, 123);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    padding: 0.125rem 0.375rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

/* Comment Drawer */
.feed-comment-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    animation: fadeIn 0.2s ease;
}

.feed-comment-drawer {
    width: 100%;
    max-width: 420px;
    height: 100%;
    background: rgba(15, 15, 35, 0.98);
    backdrop-filter: blur(20px);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    box-shadow: -4px 0 20px rgba(0,0,0,0.5);
    animation: slideInRight 0.3s ease;
}

@media (max-width: 768px) {
    .feed-comment-drawer {
        max-width: 100%;
        border-left: none;
    }
}

.feed-comments-list {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.feed-comment-item {
    padding: 1rem;
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Skeleton */
.feed-skeleton-card {
    min-height: 360px;
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 1rem;
}

/* Empty state */
.feed-empty-state {
    padding: 4rem 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
}

/* Animations */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

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

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Remove old post feed styles that cause ugly overlays */
.post-feed-controls {
    backdrop-filter: blur(5px) !important;
    background: rgba(15, 15, 35, 0.8) !important;
}

/* Ensure mark tags in search results have good contrast */
.feed-post-text mark {
    background: rgba(74, 144, 226, 0.3);
    color: rgb(231, 233, 234);
    padding: 0.125rem 0.25rem;
    border-radius: 2px;
}

/* Accessibility improvements */
.feed-engagement-btn:focus-visible,
.feed-search-input:focus-visible,
.feed-sort-select:focus-visible {
    outline: 2px solid #4A90E2;
    outline-offset: 2px;
}

/* Remove any remaining ugly filters */
.x-post-card,
.article-card,
.modern-post-card {
    filter: none !important;
}

/* ========================================
   Feed v2 Styles - Professional X-style cards
   ======================================== */

/* Remove ugly overlays and filters from old post cards */
.article-card,
.modern-post-card {
    background: transparent !important;
    backdrop-filter: none !important;
    box-shadow: none !important;
}

/* Feed Container */
.feed-container {
    max-width: 680px;
    margin: 0 auto;
    padding: 1rem;
}

@media (min-width: 1280px) {
    .feed-container {
        max-width: 1280px;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

/* Feed Controls */
.feed-controls {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(15, 15, 35, 0.95) !important;
    backdrop-filter: blur(10px);
    padding: 1rem;
    margin-bottom: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.feed-search-input:focus,
.feed-sort-select:focus {
    outline: none;
    border-color: #4A90E2 !important;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.5) !important;
}

/* Post Cards */
.feed-post-card {
    background: transparent !important;
    backdrop-filter: none !important;
    border: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 1rem !important;
    margin-left: 0 !important;
    transition: background 0.2s ease;
    min-height: 360px;
    display: grid;
    grid-template-rows: auto 1fr auto;
    box-sizing: border-box;
}

.feed-post-card:hover {
    background: rgba(255, 255, 255, 0.03) !important;
}

/* Avatar */
.feed-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

/* Author name */
.feed-author-name {
    font-weight: 700;
    font-size: 0.938rem;
    color: rgb(231, 233, 234);
    text-decoration: none;
    line-height: 1.25rem;
}

.feed-author-name:hover {
    text-decoration: underline;
}

/* Timestamp */
.feed-timestamp {
    color: rgb(113, 118, 123);
    font-size: 0.938rem;
    text-decoration: none;
    line-height: 1.25rem;
}

.feed-timestamp:hover {
    text-decoration: underline;
}

/* Post text - line clamping */
.feed-post-text {
    color: rgb(231, 233, 234);
    font-size: 0.938rem;
    line-height: 1.375rem;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
    margin: 0 0 0.75rem 0 !important;
    padding: 0 !important;
    text-align: left !important;
    text-indent: 0 !important;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-family: 'Century Schoolbook', 'Century Schoolbook L', serif;
}

@media (min-width: 1280px) {
    .feed-post-text {
        -webkit-line-clamp: 8;
    }
}

@media (max-width: 768px) {
    .feed-post-text {
        -webkit-line-clamp: 5;
    }
}

/* Media */
.feed-media-single,
.feed-media-video {
    width: 100%;
    max-height: 400px;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.feed-media-grid {
    display: grid;
    gap: 2px;
    width: 100%;
    max-height: 400px;
    overflow: hidden;
    border-radius: 16px;
    margin-bottom: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.feed-media-single img,
.feed-media-video video {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Engagement buttons */
.feed-engagement-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.2s ease;
    min-width: 36px;
    justify-content: flex-start;
    cursor: pointer;
    background: transparent;
    border: none;
    color: rgb(113, 118, 123);
    text-decoration: none;
    font-size: inherit;
}

.feed-engagement-btn:hover {
    background-color: rgba(29, 155, 240, 0.1) !important;
}

.feed-engagement-btn:focus {
    outline: 2px solid #4A90E2;
    outline-offset: 2px;
}

/* Pinned badge */
.feed-pinned-badge {
    color: rgb(113, 118, 123);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    padding: 0.125rem 0.375rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

/* Comment Drawer */
.feed-comment-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    animation: fadeIn 0.2s ease;
}

.feed-comment-drawer {
    width: 100%;
    max-width: 420px;
    height: 100%;
    background: rgba(15, 15, 35, 0.98);
    backdrop-filter: blur(20px);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    box-shadow: -4px 0 20px rgba(0,0,0,0.5);
    animation: slideInRight 0.3s ease;
}

@media (max-width: 768px) {
    .feed-comment-drawer {
        max-width: 100%;
        border-left: none;
    }
}

.feed-comments-list {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}

.feed-comment-item {
    padding: 1rem;
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Skeleton */
.feed-skeleton-card {
    min-height: 360px;
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 1rem;
}

/* Empty state */
.feed-empty-state {
    padding: 4rem 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
}

/* Animations */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

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

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Remove old post feed styles that cause ugly overlays */
.post-feed-controls {
    backdrop-filter: blur(5px) !important;
    background: rgba(15, 15, 35, 0.8) !important;
}

/* Ensure mark tags in search results have good contrast */
.feed-post-text mark {
    background: rgba(74, 144, 226, 0.3);
    color: rgb(231, 233, 234);
    padding: 0.125rem 0.25rem;
    border-radius: 2px;
}

/* Accessibility improvements */
.feed-engagement-btn:focus-visible,
.feed-search-input:focus-visible,
.feed-sort-select:focus-visible {
    outline: 2px solid #4A90E2;
    outline-offset: 2px;
}

/* Remove any remaining ugly filters */
.x-post-card,
.article-card,
.modern-post-card {
    filter: none !important;
}


/* ========================================
   Mobile Responsive Improvements
   ======================================== */

/* Mobile Feed Controls - Responsive improvements */
@media (max-width: 768px) {
    .feed-controls {
        padding: 0.75rem;
        gap: 0.75rem;
        margin-bottom: 1rem;
    }
    
    .feed-search-input {
        font-size: 16px !important; /* Prevent zoom on iOS */
        min-width: 0 !important;
        width: 100% !important;
    }
    
    .feed-sort-select {
        font-size: 16px !important; /* Prevent zoom on iOS */
        width: 100% !important;
    }
}

@media (max-width: 480px) {
    .feed-controls {
        padding: 0.5rem;
        gap: 0.5rem;
        flex-direction: column;
        align-items: stretch;
    }
    
    .feed-search-input,
    .feed-sort-select {
        width: 100% !important;
        min-width: 0 !important;
        font-size: 16px !important; /* Prevent zoom on iOS */
    }
    
    .feed-container {
        padding: 0.5rem;
    }
    
    .feed-post-card {
        padding: 0.75rem;
        min-height: auto;
    }
    
    .feed-media-single,
    .feed-media-video,
    .feed-media-grid {
        max-height: 300px;
    }
}

/* ========================================
   Enhanced Feed Styles - Premium Features
   ======================================== */

/* Enhanced Post Cards */
.feed-post-card.enhanced {
    position: relative;
    background: transparent !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.feed-post-card.enhanced:hover {
    background: rgba(255, 255, 255, 0.03) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Trending/Hot border styles removed per user request */

/* Enhanced Post Text */
.enhanced-post-text {
    color: rgb(231, 233, 234);
    font-size: 1rem;
    line-height: 1.625rem;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: 'Century Schoolbook', 'Century Schoolbook L', serif;
}

.enhanced-post-text a {
    color: rgb(29, 155, 240);
    text-decoration: none;
    transition: all 0.2s ease;
}

.enhanced-post-text a:hover {
    text-decoration: underline;
    color: rgb(26, 140, 216);
}

/* Enhanced Media */
.enhanced-media-single,
.enhanced-media-grid {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.enhanced-media-single:hover,
.enhanced-media-grid:hover {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.enhanced-media-single img,
.enhanced-media-grid img {
    transition: transform 0.3s ease;
}

.enhanced-media-single:hover img,
.enhanced-media-grid:hover img {
    transform: scale(1.05);
}

/* Enhanced Engagement Buttons */
.enhanced-engagement-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 20px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    font-weight: 500;
}

.enhanced-engagement-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Skeleton Loading */
.feed-post-card.skeleton {
    animation: pulse 1.5s ease-in-out infinite;
}

/* Trending/Hot badge animations removed per user request */

/* Media Lightbox */
#media-lightbox {
    animation: fadeIn 0.3s ease;
    cursor: zoom-out;
}

#media-lightbox img {
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Share Toast Notification */
.share-toast {
    animation: slideInRight 0.3s ease;
}

/* Enhanced Typography */
.enhanced-post-text {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    letter-spacing: -0.01em;
}

/* Better Mobile Experience for Enhanced Feed */
@media (max-width: 768px) {
    .feed-post-card.enhanced {
        padding: 1rem !important;
    }
    
    .enhanced-post-text {
        font-size: 0.938rem;
        line-height: 1.5rem;
    }
    
    .enhanced-engagement-btn {
        padding: 0.375rem 0.5rem;
        font-size: 0.813rem;
    }
}

/* Accessibility Improvements */
.feed-post-card.enhanced:focus {
    outline: 2px solid rgb(29, 155, 240);
    outline-offset: 2px;
}

.enhanced-engagement-btn:focus {
    outline: 2px solid rgb(29, 155, 240);
    outline-offset: 2px;
}

/* Performance: Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .feed-post-card.enhanced,
    .enhanced-media-single,
    .enhanced-media-grid,
    .enhanced-engagement-btn {
        transition: none;
        animation: none;
    }
}

/* ========================================
   DESKTOP HEADER STYLES
   ======================================== */

/* Desktop Header - Refined Professional Layout */
header.main-header,
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(7, 21, 42, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 1000;
    padding: 0.6rem 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 0;
    min-height: 60px;
    max-height: 60px;
    display: flex;
    align-items: center;
    overflow: visible;
    box-sizing: border-box;
}

/* Add padding-top to body to account for fixed header */
body {
    padding-top: 70px !important; /* Adjust based on header height */
}


.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    min-height: 60px;
    max-height: 60px;
    position: relative;
    overflow: visible;
    box-sizing: border-box;
}

/* Left Group: Logo + Brand - Positioned at left edge */
/* Left Zone: Logo + Site Name */
.header-left {
    display: flex !important;
    align-items: center !important;
    gap: 0.6rem !important;
    flex: 0 0 auto !important;
    flex-shrink: 0 !important;
    min-width: fit-content !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
    white-space: nowrap;
    overflow: visible;
}

.header-logo {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}

.header-logo img {
    height: 40px;
    width: 40px;
    max-width: 40px;
    max-height: 40px;
    display: block;
    object-fit: contain;
}

.brand-info {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    min-width: 0;
    justify-content: center;
}

.brand-info h1,
.brand-info .brand-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: #4A90E2;
    margin: 0;
    line-height: 1.2;
    white-space: nowrap;
}

.brand-info p,
.brand-info .brand-tagline {
    font-size: 0.813rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    line-height: 1.2;
    white-space: nowrap;
}

/* Center Zone: Navigation Links */
.header-center {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    min-width: 0;
    justify-content: center;
    overflow: visible;
    position: relative;
    flex-shrink: 1;
}

.main-nav {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    justify-content: center;
    min-width: 0;
    max-width: 100%;
    overflow: visible;
    position: relative;
}

.main-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: clamp(10px, 2vw, 28px);
    align-items: center;
    flex-wrap: nowrap;
}

.main-nav .nav-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.938rem;
    font-weight: 500;
    transition: color 0.2s ease;
    white-space: nowrap;
    line-height: 1.5;
    padding: 0.25rem 0;
}

.main-nav .nav-link:hover {
    color: #4A90E2;
}

/* Right Zone: Actions (Maintenance + Auth + Music) */
.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
    flex-shrink: 0;
    min-width: fit-content;
    overflow: visible;
    position: relative;
    z-index: 10;
    white-space: nowrap;
}

/* Auth buttons container */
.auth-buttons-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 0 0 auto;
    flex-shrink: 0;
    overflow: visible;
}

/* Individual auth buttons */
.auth-btn,
.signin-btn,
.signup-btn,
#signinBtn,
#signupBtn {
    flex: 0 0 auto;
    flex-shrink: 0;
    overflow: visible;
    white-space: nowrap;
    min-width: fit-content;
}

/* Music control button */
.music-control-btn {
    flex: 0 0 auto;
    flex-shrink: 0;
    overflow: visible;
    min-width: 32px;
    min-height: 32px;
}

.last-update {
    font-size: clamp(11px, 1vw, 14px);
    color: rgba(255, 255, 255, 0.9);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 0 0 auto;
    flex-shrink: 0;
    min-width: fit-content;
    max-width: clamp(180px, 22vw, 420px);
    padding: 6px 12px;
    background: linear-gradient(135deg, rgba(255, 204, 0, 0.15) 0%, rgba(255, 204, 0, 0.1) 100%);
    border: 1px solid rgba(255, 204, 0, 0.3);
    border-radius: 12px;
    font-weight: 500;
    display: flex !important; /* Force visibility */
    align-items: center;
    gap: 6px;
}

.last-update::before {
    content: '⚠️';
    font-size: 14px;
    flex-shrink: 0;
}

/* Breakpoints for responsive header - maintenance pill shrinks first */
@media (max-width: 1100px) {
    .header-container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .last-update {
        max-width: clamp(140px, 18vw, 300px);
        font-size: clamp(10px, 0.9vw, 13px);
    }
    
    .main-nav ul {
        gap: clamp(8px, 1.5vw, 20px);
    }
}

@media (max-width: 950px) {
    .last-update {
        display: flex !important; /* Keep visible as badge */
        font-size: clamp(10px, 1.2vw, 12px);
        padding: 4px 10px;
        max-width: clamp(160px, 20vw, 300px);
    }
    
    .main-nav ul {
        gap: clamp(6px, 1.2vw, 16px);
    }
}

@media (max-width: 1050px) {
    .header-container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Hide nav links, show hamburger menu */
    .nav-links {
        display: none !important;
    }
    
    .nav-menu-button {
        display: inline-flex !important;
    }
    
    .main-nav ul.nav-links {
        gap: clamp(8px, 1.5vw, 20px);
    }
}

/* Tight space classes for JS overlap guard */
.main-header.header--tight .last-update {
    max-width: 160px;
    font-size: 11px;
}

.main-header.header--ultratight .last-update {
    display: none;
}

@media (max-width: 900px) {
    .main-nav ul {
        gap: 1rem;
    }
}

@media (max-width: 700px) {
    .header-right {
        gap: 8px; /* Slightly reduced but still visible spacing */
    }
    
    .auth-btn {
        padding: 0.3rem 0.7rem;
        font-size: 0.8rem;
    }
    
    /* Ensure header-right doesn't shrink on mobile */
    .header-right {
        flex: 0 0 auto !important;
        flex-shrink: 0 !important;
        min-width: fit-content !important;
    }
}

/* Maintenance Banner - Professional styling */
.maintenance-banner {
    width: 100%;
    background: rgba(255, 204, 0, 0.08);
    border-bottom: 1px solid rgba(255, 204, 0, 0.5);
    color: #f8e08a;
    font-size: 0.85rem;
    display: none; /* Hidden by default, shown via JS if needed */
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    margin-bottom: 0.25rem;
    position: relative;
    z-index: 999;
}

.maintenance-banner-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.maintenance-icon {
    font-size: 1rem;
    flex-shrink: 0;
}

.maintenance-text {
    flex: 1;
    text-align: center;
    font-weight: 500;
}

.maintenance-banner-close {
    background: transparent;
    border: none;
    color: inherit;
    cursor: pointer;
    font-size: 1.25rem;
    line-height: 1;
    padding: 0.25rem 0.5rem;
    flex-shrink: 0;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.maintenance-banner-close:hover {
    opacity: 1;
}

.maintenance-banner-close:focus {
    outline: 2px solid rgba(255, 204, 0, 0.5);
    outline-offset: 2px;
    border-radius: 2px;
}

/* Mobile styles for maintenance banner */
@media (max-width: 768px) {
    .maintenance-banner {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
    }
    
    .maintenance-banner-content {
        gap: 0.5rem;
    }
    
    .maintenance-icon {
        font-size: 0.875rem;
    }
    
    .maintenance-text {
        font-size: 0.75rem;
    }
    
    .maintenance-banner-close {
        font-size: 1.125rem;
        padding: 0.125rem 0.375rem;
    }
    
    /* Adjust body padding for mobile header */
    html, body {
        padding-top: 70px; /* Smaller header on mobile */
    }
    
    /* Ensure hero section has proper spacing */
    .hero-section {
        margin-top: 1rem !important;
        padding-top: 1.5rem !important;
    }
    
    /* Ensure proper spacing between maintenance banner and hero */
    .maintenance-banner {
        margin-bottom: 0.5rem !important;
    }
    
    /* Hero stats container spacing */
    .hero-stats-container {
        margin-top: 1.5rem !important;
        margin-bottom: 1rem !important;
    }
}

.auth-buttons-container {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-shrink: 0;
    min-width: fit-content;
}

/* Header Buttons - Unified Height & Alignment */
.auth-btn {
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    flex-shrink: 0;
    min-width: fit-content;
}

.signin-btn {
    background: transparent;
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.signin-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.signup-btn {
    background: linear-gradient(135deg, #4FACFE 0%, #4A90E2 100%);
    color: white;
    border: none;
}

.signup-btn:hover {
    background: linear-gradient(135deg, #5FB8FF 0%, #5AA0F2 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79, 172, 254, 0.3);
}

.music-control-btn {
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    padding: 0;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    color: white;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.music-control-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Separation from flags/globe row - ensure hero section has proper spacing */
.hero-section {
    margin-top: 0.75rem;
}

.mobile-menu-toggle {
    display: none;
}

/* ========================================
   TABLET RESPONSIVE HEADER (768px - 1024px)
   ======================================== */
@media (min-width: 768px) and (max-width: 1024px) {
    .header-container {
        padding: 0 1rem;
        gap: 0.75rem;
    }
    
    /* Slightly reduce nav link gap if needed */
    .main-nav ul {
        gap: 1rem;
    }
    
    /* Optionally hide tagline on smaller tablets */
    .brand-info p,
    .brand-info .brand-tagline {
        display: none;
    }
    
    /* Ensure buttons don't wrap and are visible */
    .header-right {
        flex-shrink: 0 !important;
        min-width: fit-content !important;
        gap: 0.5rem !important;
    }
    
    /* Slightly smaller nav font if needed */
    .main-nav .nav-link {
        font-size: 0.875rem;
    }
    
    /* Keep last-update visible but smaller */
    .last-update {
        display: flex !important;
        font-size: 10px;
        padding: 4px 8px;
        max-width: 180px;
    }
}

/* ========================================
   DESKTOP MEDIUM (1025px - 1366px) - Laptop screens
   ======================================== */
@media (min-width: 1025px) and (max-width: 1366px) {
    .header-container {
        padding: 0 1rem;
        gap: 0.75rem;
    }
    
    .main-nav ul {
        gap: 1.25rem;
    }
    
    .main-nav .nav-link {
        font-size: 0.875rem;
    }
    
    /* Ensure header-right is always visible */
    .header-right {
        flex-shrink: 0 !important;
        min-width: fit-content !important;
        gap: 0.5rem !important;
    }
    
    /* Keep last-update visible on medium laptops */
    .last-update {
        display: flex !important;
        font-size: 11px;
        padding: 5px 10px;
        max-width: 200px;
    }
    
    /* Reduce brand tagline if needed */
    .brand-info p,
    .brand-info .brand-tagline {
        display: none;
    }
}

/* ========================================
   DESKTOP LARGE (≥ 1280px)
   ======================================== */
@media (min-width: 1367px) {
    .header-container {
        padding: 0 1.5rem;
        gap: 1rem;
    }
    
    .main-nav ul {
        gap: 1.75rem;
    }
}

/* Add padding to body to account for fixed header on desktop */
body {
    padding-top: 80px;
}

/* ========================================
   COMPREHENSIVE MOBILE FIXES
   ======================================== */

/* Critical: Prevent horizontal overflow on all mobile devices */
* {
    max-width: 100%;
    box-sizing: border-box;
}

html, body {
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
    position: relative;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/* Mobile: Fix all containers */
@media (max-width: 768px) {
    /* Prevent horizontal scroll */
    html, body {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100vw !important;
        position: relative;
        padding-top: 0 !important; /* Reset desktop padding-top for mobile */
    }
    
    /* Fix all containers */
    .container,
    section,
    div[class*="section"],
    div[class*="container"] {
        max-width: 100% !important;
        width: 100% !important;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }

    /* ========================================
       COMPLETE MOBILE LANDING PAGE REDESIGN
       Clean, Simple, Minimal Design
       ======================================== */
    
    /* Hero Section - Mobile-First Polish */
    .hero-section {
        position: relative !important;
        width: 100% !important;
        max-width: 100vw !important;
        min-height: auto !important;
        padding: 1rem !important;
        margin: 0 !important;
        background: linear-gradient(180deg, #07152a 0%, #0d1f3a 100%) !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        align-items: center !important;
        text-align: center !important;
        overflow: hidden !important;
    }
    
    /* Mobile-First Container Wrapper */
    .hero-section > * {
        max-width: 420px !important;
        width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    /* Hide ALL decorative elements on mobile */
    .hero-section .flags-background,
    .hero-section .welcome-background-image,
    .hero-section .rough-terrain-background,
    .hero-section .hero-logo,
    .hero-section .welcome-left-image,
    .hero-section .welcome-right-image {
        display: none !important;
    }

    /* Hero Title - Clean & Simple */
    .hero-title {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto 1.5rem !important;
        padding: 0 !important;
        font-size: 2rem !important;
        font-weight: 600 !important;
        line-height: 1.2 !important;
        color: #ffffff !important;
        text-align: center !important;
        background: none !important;
        -webkit-background-clip: unset !important;
        background-clip: unset !important;
        text-shadow: none !important;
        letter-spacing: -0.02em !important;
    }

    /* Welcome Text Container - Mobile Polish */
    .welcome-text-container {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0.5rem auto 0.75rem !important;
        min-height: auto !important;
    }

    .welcome-text {
        display: block !important;
        font-size: 1.75rem !important; /* text-3xl equivalent */
        font-weight: 600 !important;
        color: #ffffff !important;
        line-height: 1.3 !important;
        white-space: normal !important;
        overflow: visible !important;
        text-align: center !important;
        background: none !important;
        -webkit-background-clip: unset !important;
        background-clip: unset !important;
        text-shadow: none !important;
        padding: 0 !important;
        margin: 0 !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }
    
    @media (max-width: 480px) {
        .welcome-text {
            font-size: 1.5rem !important; /* text-2xl equivalent */
        }
    }

    /* Welcome Location - Consistent with desktop */
    .welcome-location {
        display: block !important;
        font-size: 0.875rem !important;
        font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
        background: linear-gradient(135deg, rgba(74, 158, 255, 0.9) 0%, rgba(91, 181, 255, 0.85) 100%) !important;
        -webkit-background-clip: text !important;
        -webkit-text-fill-color: transparent !important;
        background-clip: text !important;
        margin-top: 0.5rem !important;
        font-weight: 600 !important;
        letter-spacing: 0.05em !important;
        text-align: center !important;
    }

    /* HERO MODULE: Mobile Styles - Fixed Height */
    .hero-module-container {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto 1.5rem !important;
        padding: 0.625rem 1rem !important;
        min-height: 160px !important;
        text-align: center !important;
    }
    
    .hero-module-status {
        font-size: 0.563rem !important;
        margin-bottom: 0.375rem !important;
    }
    
    .hero-module-label {
        font-size: 0.5rem !important;
        padding: 0.188rem 0.5rem !important;
    }
    
    .hero-module-updated {
        font-size: 0.5rem !important;
    }
    
    .hero-module-headline {
        font-size: 0.938rem !important;
        margin-bottom: 0.313rem !important;
        line-height: 1.25 !important;
        min-height: 2.4em !important;
    }
    
    .hero-module-subhead {
        font-size: 0.688rem !important;
        line-height: 1.35 !important;
        margin-bottom: 0.563rem !important;
        min-height: 2.6em !important;
    }
    
    .hero-module-cta {
        flex-direction: column !important;
        gap: 0.438rem !important;
        margin-top: auto !important;
    }
    
    .hero-module-btn {
        width: 100% !important;
        padding: 0.438rem 0.75rem !important;
        font-size: 0.688rem !important;
    }

    /* Hero Stats - Compact Grid with 29.9M Featured (MOBILE ONLY) */
    .hero-stats-container {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        gap: 0.75rem !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        padding: 0 !important;
    }
    
    /* Hide Engagements card on mobile */
    .hero-stat-card[data-number="863.2K+"] {
        display: none !important;
    }
    
    /* Featured Total Impressions Card (30M+) - Full width at top */
    .hero-stat-card[data-number="30M+"] {
        order: -1 !important;
        flex: 0 0 100% !important;
        width: 100% !important;
        background: rgba(79, 172, 254, 0.12) !important;
        border: 1px solid rgba(79, 172, 254, 0.3) !important;
        border-radius: 12px !important;
        padding: 1rem !important;
        text-align: center !important;
        backdrop-filter: blur(10px) !important;
        box-shadow: 0 2px 8px rgba(79, 172, 254, 0.2) !important;
        margin-bottom: 0 !important;
        position: relative !important;
        z-index: 2 !important; /* Ensure it's above other stat cards and animated layers */
    }
    
    .hero-stat-card[data-number="29.9M"] .hero-stat-number-small {
        font-size: 1.5rem !important;
        font-weight: 700 !important;
        color: #4FACFE !important;
    }
    
    .hero-stat-card[data-number="29.9M"] .hero-stat-label-small {
        font-size: 0.813rem !important;
        font-weight: 600 !important;
    }
    
    /* 2x2 Grid for Other Metrics (Likes, Shares, Reposts, Followers) */
    .hero-stat-card:not([data-number="29.9M"]):not([data-number="863.2K+"]) {
        flex: 0 0 calc(50% - 0.375rem) !important;
        width: calc(50% - 0.375rem) !important;
        background: rgba(255, 255, 255, 0.05) !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        border-radius: 12px !important;
        padding: 0.75rem !important;
        text-align: center !important;
        backdrop-filter: blur(10px) !important;
        transition: transform 0.2s ease, background 0.2s ease !important;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
    }

    .hero-stat-card:active {
        transform: scale(0.98) !important;
        background: rgba(255, 255, 255, 0.08) !important;
    }

    .hero-stat-number-small {
        font-size: 1.125rem !important;
        font-weight: 600 !important;
        color: #ffffff !important;
        margin-bottom: 0.25rem !important;
        line-height: 1.2 !important;
    }

    .hero-stat-label-small {
        font-size: 0.688rem !important;
        color: rgba(255, 255, 255, 0.7) !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
        line-height: 1.2 !important;
    }

    /* Globe Section - Keep same as desktop on mobile */
    .globe-section {
        padding: 3rem 1rem !important;
        margin: 2rem 0 !important;
        background: rgba(7, 21, 42, 0.5) !important;
    }

    .globe-section .news-title {
        font-size: 1.75rem !important;
        margin-bottom: 1rem !important;
        text-align: center !important;
    }

    .globe-section .news-subtitle {
        font-size: 1rem !important;
        margin-bottom: 2rem !important;
        text-align: center !important;
        opacity: 1 !important;
    }

    #cia-globe-container {
        height: 600px !important;
        max-width: 1200px !important;
        margin: 0 auto !important;
        border-radius: 12px !important;
        overflow: hidden !important;
        background: linear-gradient(180deg, #07152a 0%, #0d1f3a 100%) !important;
        width: 100% !important;
    }

    /* Additional Mobile Cleanup - Hide any remaining decorative elements */
    .hero-section::before,
    .hero-section::after {
        display: none !important;
    }

    /* Remove any animations on mobile for performance (except rotating text) */
    .hero-section * {
        animation: none !important;
    }
    
    /* Keep rotating text animation */
    .welcome-text {
        animation: inherit !important;
    }

    .hero-title,
    .hero-subtitle {
        animation: none !important;
        transition: none !important;
    }
    
    /* Global spacing between sections */
    .hero-section + * {
        margin-top: 2rem !important;
    }
    
    /* Prevent horizontal overflow */
    .hero-section,
    .hero-section * {
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* Hide Feature Cards on Mobile */
    .fact-checker-features-grid,
    .fact-checker-features-grid .feature-card {
        display: none !important;
    }
    
    /* Floating Action Buttons - Bottom Right Stack */
    .tip-submit-btn {
        position: fixed !important;
        right: 1rem !important;
        bottom: 5rem !important; /* Above Noteworthy AI */
        z-index: 50 !important;
        padding: 0.75rem 1rem !important;
        font-size: 0.813rem !important;
        border-radius: 24px !important;
        display: flex !important;
        align-items: center !important;
        gap: 0.5rem !important;
        min-width: auto !important;
        width: auto !important;
        height: auto !important;
    }
    
    /* Noteworthy AI Chat Launcher - Position below Submit */
    noteworthy-chat-widget::part(launcher),
    .launcher {
        position: fixed !important;
        right: 1rem !important;
        bottom: 1.5rem !important;
        z-index: 49 !important;
        padding: 0.75rem 1rem !important;
        font-size: 0.813rem !important;
        border-radius: 24px !important;
    }
    
    @media (max-width: 480px) {
        .tip-submit-btn {
            right: 0.75rem !important;
            bottom: 4.5rem !important;
            padding: 0.625rem 0.875rem !important;
            font-size: 0.75rem !important;
        }
        
        noteworthy-chat-widget::part(launcher),
        .launcher {
            right: 0.75rem !important;
            bottom: 1rem !important;
            padding: 0.625rem 0.875rem !important;
            font-size: 0.75rem !important;
        }
    }
    
    /* Fix header on mobile - COMPLETE OVERHAUL - HIGHEST PRIORITY */
    header.main-header,
    .main-header {
        width: 100% !important;
        max-width: 100vw !important;
        padding: 0.5rem 1rem !important;
        margin-bottom: 0 !important;
        box-sizing: border-box !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 1000 !important;
        background: rgba(7, 21, 42, 0.98) !important;
        backdrop-filter: blur(10px) !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
        height: auto !important;
        min-height: 60px !important;
        margin: 0 !important;
    }
    
    /* Add padding to body to account for fixed header */
    body {
        padding-top: 70px !important;
    }
    
    @media (max-width: 480px) {
        body {
            padding-top: 65px !important;
        }
    }
    
    @media (max-width: 360px) {
        body {
            padding-top: 60px !important;
        }
    }
    
    .header-container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 1rem !important;
        margin: 0 !important;
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 0.75rem !important;
        height: auto !important;
        min-height: 44px !important;
        position: relative !important;
    }
    
    .header-left {
        display: flex !important;
        align-items: center !important;
        gap: 0.75rem !important;
        flex: 0 0 auto !important;
        flex-shrink: 0 !important;
        min-width: 0 !important;
        max-width: calc(100% - 200px) !important;
        overflow: hidden !important;
        margin-left: 0 !important;
        padding-left: 1rem !important;
    }
    
    .header-logo {
        flex: 0 0 auto !important;
        flex-shrink: 0 !important;
        display: flex !important;
        align-items: center !important;
        font-size: 0 !important;
        letter-spacing: 0 !important;
    }
    
    .header-logo a,
    .logo-link {
        display: flex !important;
        align-items: center !important;
        text-decoration: none !important;
        border: none !important;
    }
    
    /* AGGRESSIVE LOGO IMAGE SIZE FIX - OVERRIDE EVERYTHING - MAXIMUM SPECIFICITY */
    header.main-header .header-container .header-left .header-logo img,
    header.main-header .header-container .header-left .header-logo a img,
    header.main-header .header-container .header-left img,
    .main-header .header-container .header-left .header-logo img,
    .main-header .header-container .header-left .header-logo a img,
    .main-header .header-container .header-left img,
    .header-logo img,
    .header-logo img[style],
    .header-logo img[style*="height"],
    .header-logo a img,
    .header-logo a img[style],
    .logo-link img,
    .logo-link img[style],
    img[src*="IMG_5794.PNG"],
    img[src="IMG_5794.PNG"],
    img[alt*="Noteworthy News Logo"],
    .header-left img,
    .header-left .header-logo img,
    .header-container .header-logo img,
    .main-header .header-logo img,
    .main-header img[src*="IMG_5794.PNG"] {
        max-height: 32px !important;
        max-width: 32px !important;
        width: 32px !important;
        height: 32px !important;
        display: block !important;
        object-fit: contain !important;
        flex-shrink: 0 !important;
        box-sizing: border-box !important;
    }
    
    /* Force override inline styles with attribute selectors */
    .header-logo img[style*="height: 32px"],
    .header-logo img[style*="height: 40px"],
    .header-logo img[style*="height: 50px"],
    .header-logo img[style*="height: 60px"],
    img[src*="IMG_5794.PNG"][style*="height"] {
        max-height: 32px !important;
        max-width: 32px !important;
        width: 32px !important;
        height: 32px !important;
    }
    
    /* Make sure the container doesn't expand */
    .header-logo,
    .header-logo a,
    .logo-link {
        max-width: 32px !important;
        width: auto !important;
        height: 32px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex-shrink: 0 !important;
    }
    
    /* Override any embedded styles from HTML */
    @media (max-width: 768px) {
        header.main-header .header-container .header-left .header-logo img,
        .main-header .header-container .header-left .header-logo img,
        .header-logo img,
        img[src*="IMG_5794.PNG"] {
            max-height: 32px !important;
            max-width: 32px !important;
            width: 32px !important;
            height: 32px !important;
        }
    }
    
    .brand-info {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        overflow: hidden !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        gap: 0 !important;
    }
    
    .brand-info h1,
    .brand-info h1 .brand-name {
        font-size: 0.875rem !important;
        line-height: 1.2 !important;
        margin: 0 !important;
        padding: 0 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        font-weight: 700 !important;
        color: #4A9EFF !important;
    }
    
    .brand-info p {
        font-size: 0.65rem !important;
        line-height: 1.2 !important;
        margin: 0 !important;
        padding: 0 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        opacity: 0.8 !important;
        color: rgba(255, 255, 255, 0.7) !important;
    }
    
    .main-nav {
        display: none !important;
    }
    
    .header-right {
        display: flex !important;
        align-items: center !important;
        gap: 0.5rem !important;
        flex: 0 0 auto !important;
        flex-shrink: 0 !important;
        margin-left: auto !important;
    }
    
    .last-update {
        display: none !important;
    }
    
    /* Hide all auth buttons and containers on mobile */
    .auth-buttons-container,
    .header-right .auth-buttons-container,
    .auth-btn,
    .signin-btn,
    .signup-btn,
    #signinBtn,
    #signupBtn {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        width: 0 !important;
        height: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    .music-control-btn {
        min-width: 36px !important;
        min-height: 36px !important;
        width: 36px !important;
        height: 36px !important;
        padding: 0 !important;
        flex-shrink: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: transparent !important;
        border: none !important;
    }
    
    .music-control-btn .btn-icon {
        font-size: 1.125rem !important;
    }
    
    .mobile-menu-toggle {
        display: flex !important;
        flex: 0 0 auto !important;
        flex-shrink: 0 !important;
        margin-left: 0.5rem !important;
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        min-height: 44px !important;
    }
    
    /* Mobile menu toggle */
    .mobile-menu-toggle {
        display: flex !important;
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        min-height: 44px !important;
        padding: 0 !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 5px !important;
        background: transparent !important;
        border: none !important;
        cursor: pointer !important;
        z-index: 1001 !important;
        position: relative !important;
        touch-action: manipulation !important;
    }
    
    .mobile-menu-toggle span {
        width: 24px !important;
        height: 3px !important;
        background: white !important;
        border-radius: 2px !important;
        transition: all 0.3s ease !important;
        display: block !important;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px) !important;
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0 !important;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px) !important;
    }
    
    /* Hide desktop nav on mobile */
    .main-nav {
        display: none !important;
    }
    
    /* Mobile navigation overlay */
    .mobile-nav {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        background: rgba(7, 21, 42, 0.98) !important;
        backdrop-filter: blur(20px) !important;
        z-index: 999 !important;
        transform: translateX(-100%) !important;
        transition: transform 0.3s ease !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }
    
    .mobile-nav.active {
        transform: translateX(0) !important;
    }
    
    .mobile-nav-content {
        padding: 5rem 2rem 2rem !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .mobile-nav-content ul {
        list-style: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    .mobile-nav-content li {
        margin-bottom: 0.5rem !important;
    }
    
    .mobile-nav-content .nav-link {
        display: flex !important;
        align-items: center !important;
        padding: 1rem !important;
        color: white !important;
        text-decoration: none !important;
        font-size: 1.125rem !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
        min-height: 44px !important;
        touch-action: manipulation !important;
        -webkit-tap-highlight-color: rgba(255, 255, 255, 0.1) !important;
    }
    
    .mobile-nav-content .nav-link:active {
        background: rgba(255, 255, 255, 0.1) !important;
    }
    
    /* Hero section is now handled in the main mobile section above */
    
    .welcome-text {
        font-size: 1.75rem !important;
        line-height: 1.3 !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }
    
    .hero-subtitle {
        font-size: 0.875rem !important;
        line-height: 1.4 !important;
        padding: 0 1rem !important;
    }
    
    /* Fix images on mobile */
    img {
        max-width: 100% !important;
        height: auto !important;
    }
    
    .welcome-bg-img,
    .hero-logo-image,
    .welcome-left-image img,
    .welcome-right-image img {
        max-width: 100% !important;
        height: auto !important;
        object-fit: contain !important;
    }
    
    /* Fix buttons on mobile - ensure touch targets are at least 44x44px */
    button,
    .btn,
    .auth-btn,
    .music-control-btn,
    .play-button-large,
    a[role="button"] {
        min-height: 44px !important;
        min-width: 44px !important;
        padding: 0.75rem 1rem !important;
        font-size: 1rem !important;
        touch-action: manipulation !important;
    }
    
    /* Fix text inputs on mobile - prevent zoom on iOS */
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="search"],
    textarea,
    select {
        font-size: 16px !important;
        min-height: 44px !important;
        padding: 0.75rem !important;
    }
    
    /* Fix feed on mobile */
    .feed-container {
        padding: 0.5rem !important;
        max-width: 100% !important;
    }
    
    .feed-post-card {
        padding: 0.75rem !important;
        min-height: auto !important;
    }
    
    .feed-post-text {
        font-size: 0.938rem !important;
        line-height: 1.5 !important;
        font-family: 'Century Schoolbook', 'Century Schoolbook L', serif !important;
    }
    
    .feed-controls {
        padding: 0.75rem !important;
        flex-direction: column !important;
        gap: 0.75rem !important;
    }
    
    .feed-search-input,
    .feed-sort-select {
        width: 100% !important;
        font-size: 16px !important;
        min-height: 44px !important;
    }
    
    /* Fix cards and sections */
    .game-card,
    .article-card,
    .feature-card,
    section > div {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding: 1rem !important;
    }
    
    /* Fix tip button */
    .tip-submit-btn {
        bottom: 1rem !important;
        right: 1rem !important;
        min-width: 44px !important;
        min-height: 44px !important;
        padding: 0.75rem 1rem !important;
        font-size: 0.875rem !important;
    }
    
    /* Fix modals on mobile */
    .tip-modal-content,
    .modal-content {
        width: 95% !important;
        max-width: 95% !important;
        margin: 1rem auto !important;
        max-height: 90vh !important;
        overflow-y: auto !important;
    }
    
    /* Fix tables on mobile */
    table {
        display: block !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }
    
    /* Fix any absolute/fixed positioned elements */
    [style*="position: absolute"],
    [style*="position: fixed"] {
        max-width: 100vw !important;
    }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
    .main-header {
        padding: 0.5rem 0.75rem !important;
    }
    
    .header-container {
        gap: 0.5rem !important;
    }
    
    .header-left {
        gap: 0.5rem !important;
        max-width: calc(100% - 180px) !important;
        margin-left: -0.75rem !important;
        padding-left: 0.75rem !important;
    }
    
    .header-logo img,
    .header-logo img[style*="height"],
    img[src*="IMG_5794.PNG"] {
        max-height: 28px !important;
        max-width: 28px !important;
        height: 28px !important;
        width: auto !important;
    }
    
    .brand-info h1 {
        font-size: 0.75rem !important;
    }
    
    .brand-info p {
        font-size: 0.6rem !important;
    }
    
    .auth-btn {
        padding: 0.4rem 0.6rem !important;
        font-size: 0.7rem !important;
        min-height: 32px !important;
    }
    
    .music-control-btn {
        min-width: 32px !important;
        min-height: 32px !important;
        width: 32px !important;
        height: 32px !important;
    }
    
    .hero-title {
        font-size: 1.5rem !important;
    }
    
    .welcome-text {
        font-size: 1.5rem !important;
    }
    
    .hero-subtitle {
        font-size: 0.8rem !important;
    }
    
    /* Fix hero stat numbers - prevent line breaks */
    .hero-stat-number-small {
        white-space: nowrap !important;
        word-break: keep-all !important;
        overflow: visible !important;
        text-overflow: clip !important;
    }
    
    /* Fix brand info truncation on mobile */
    .brand-info h1,
    .brand-info .brand-name {
        overflow: visible !important;
        text-overflow: clip !important;
        max-width: 140px !important;
    }
    
    .brand-info .brand-tagline {
        overflow: visible !important;
        text-overflow: clip !important;
        max-width: 140px !important;
    }
    
    @media (max-width: 360px) {
        .brand-info .brand-tagline {
            display: none !important;
        }
        
        .brand-info h1 {
            max-width: 100px !important;
            font-size: 0.75rem !important;
        }
    }
    
    .feed-post-card {
        padding: 0.5rem !important;
    }
    
    .feed-post-text {
        font-size: 0.875rem !important;
        font-family: 'Century Schoolbook', 'Century Schoolbook L', serif !important;
    }
}

/* Ultra small devices */
@media (max-width: 360px) {
    .main-header {
        padding: 0.5rem !important;
    }
    
    .header-container {
        gap: 0.375rem !important;
    }
    
    .header-left {
        gap: 0.375rem !important;
        max-width: calc(100% - 160px) !important;
        margin-left: -0.5rem !important;
        padding-left: 0.5rem !important;
    }
    
    .header-logo img,
    .header-logo img[style*="height"],
    img[src*="IMG_5794.PNG"] {
        max-height: 24px !important;
        max-width: 24px !important;
        height: 24px !important;
        width: auto !important;
    }
    
    .brand-info h1 {
        font-size: 0.7rem !important;
    }
    
    .brand-info p {
        display: none !important;
    }
    
    .auth-btn {
        padding: 0.375rem 0.5rem !important;
        font-size: 0.65rem !important;
        min-height: 32px !important;
    }
    
    .music-control-btn {
        min-width: 32px !important;
        min-height: 32px !important;
        width: 32px !important;
        height: 32px !important;
    }
    
    .hero-title {
        font-size: 1.25rem !important;
    }
    
    .welcome-text {
        font-size: 1.25rem !important;
    }
}

/* Additional mobile fixes for common issues */
@media (max-width: 768px) {
    /* Prevent text selection issues on mobile */
    * {
        -webkit-tap-highlight-color: rgba(255, 255, 255, 0.1) !important;
        -webkit-touch-callout: default !important;
    }
    
    /* Fix scroll behavior */
    body {
        -webkit-overflow-scrolling: touch !important;
        overscroll-behavior-y: contain !important;
    }
    
    /* Fix any table or wide content */
    table,
    .table,
    pre,
    code {
        max-width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        display: block !important;
    }
    
    /* Fix any iframes or embeds */
    iframe,
    embed,
    object,
    video {
        max-width: 100% !important;
        height: auto !important;
    }
    
    /* Fix any fixed or absolute positioned elements that might overflow */
    [class*="fixed"],
    [class*="absolute"] {
        max-width: 100vw !important;
        left: auto !important;
        right: auto !important;
    }
    
    /* Fix any flex containers */
    [class*="flex"],
    .flex-container {
        flex-wrap: wrap !important;
    }
    
    /* Fix any grid containers */
    [class*="grid"] {
        grid-template-columns: 1fr !important;
    }
    
    /* Ensure all text is readable */
    p, span, div, a, li, td, th {
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        hyphens: auto !important;
    }
    
    /* Fix any carousels or sliders */
    [class*="carousel"],
    [class*="slider"],
    [class*="swiper"] {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        scroll-snap-type: x mandatory !important;
    }
    
    /* Fix any dropdowns or selects */
    select,
    .dropdown {
        max-width: 100% !important;
        width: 100% !important;
    }
    
    /* Fix any forms */
    form {
        max-width: 100% !important;
        width: 100% !important;
    }
    
    input,
    textarea {
        max-width: 100% !important;
        width: 100% !important;
    }
    
    /* Fix any ads */
    .adsbygoogle,
    ins[class*="adsbygoogle"] {
        max-width: 100% !important;
        width: 100% !important;
        display: block !important;
    }
    
    /* Fix hero stats container */
    .hero-stats-container {
        flex-wrap: wrap !important;
        gap: 0.5rem !important;
        justify-content: center !important;
        padding: 1rem 0.5rem !important;
    }
    
    .hero-stat-card {
        flex: 1 1 calc(50% - 0.5rem) !important;
        min-width: calc(50% - 0.5rem) !important;
        max-width: calc(50% - 0.5rem) !important;
        padding: 0.75rem 0.5rem !important;
        font-size: 0.875rem !important;
    }
    
    .hero-stat-number-small {
        font-size: 1rem !important;
        line-height: 1.2 !important;
    }
    
    .hero-stat-label-small {
        font-size: 0.75rem !important;
        line-height: 1.2 !important;
    }
    
    /* Fix article cards and carousel */
    .news-carousel {
        overflow-x: visible !important;
        -webkit-overflow-scrolling: touch !important;
        scroll-snap-type: none !important;
        scroll-padding: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    .articles-track {
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        overflow-x: visible !important;
        -webkit-overflow-scrolling: touch !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .article-card {
        flex: 0 0 85% !important;
        min-width: 85% !important;
        max-width: 85% !important;
        scroll-snap-align: start !important;
    }
    
    .article-image img {
        max-width: 100% !important;
        height: auto !important;
        transform: none !important;
    }
    
    /* Fix newsletter section */
    .news-cta {
        padding: 1.5rem 1rem !important;
        margin: 1rem 0 !important;
    }
    
    .news-cta h3 {
        font-size: 1.25rem !important;
        margin-bottom: 0.75rem !important;
    }
    
    .news-cta p {
        font-size: 0.9rem !important;
        margin-bottom: 1rem !important;
    }
    
    .newsletter-signup {
        flex-direction: column !important;
        gap: 0.75rem !important;
    }
    
    .newsletter-input {
        width: 100% !important;
        font-size: 16px !important;
        padding: 0.75rem !important;
        min-height: 44px !important;
    }
    
    .newsletter-btn {
        width: 100% !important;
        padding: 0.75rem 1rem !important;
        min-height: 44px !important;
        font-size: 1rem !important;
    }
    
    /* Fix fact-checker sections */
    .fact-checker-section {
        padding: 1.5rem 1rem !important;
        margin: 1rem 0 !important;
    }
    
    .fact-checker-content {
        flex-direction: column !important;
        gap: 1.5rem !important;
    }
    
    .fact-checker-text {
        width: 100% !important;
    }
    
    .fact-checker-title {
        font-size: 1.5rem !important;
        line-height: 1.3 !important;
    }
    
    /* Geography Game Card - Mobile Polish (MOBILE ONLY) */
    #geography-game-section .fact-checker-section {
        max-width: 420px !important;
        margin: 1rem auto !important;
        padding: 1.25rem 1.5rem 1.75rem !important;
        border-radius: 18px !important;
        box-sizing: border-box !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 0.75rem !important;
    }
    
    #geography-game-section .fact-checker-content {
        gap: 1rem !important;
    }
    
    #geography-game-section .fact-checker-title {
        font-size: 1.5rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    /* Badge styling for mobile */
    #geography-game-section .popular-badge {
        display: inline-flex !important;
        align-items: center !important;
        gap: 0.4rem !important;
        padding: 0.2rem 0.6rem !important;
        border-radius: 999px !important;
        background: rgba(255, 215, 0, 0.1) !important;
        border: 1px solid rgba(255, 215, 0, 0.4) !important;
        color: #ffd700 !important;
        font-weight: 600 !important;
        font-size: 0.75rem !important;
        text-transform: uppercase !important;
        letter-spacing: 0.05em !important;
        margin: 0.25rem 0 0.75rem 0 !important;
        align-self: flex-start !important;
    }
    
    #geography-game-section .fact-checker-description {
        font-size: 0.938rem !important;
        line-height: 1.6 !important;
        max-width: 34rem !important;
        margin: 0 auto 1rem !important;
        text-align: center !important;
    }
    
    #geography-game-section .fact-checker-action {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 0.75rem !important;
    }
    
    /* Hide duplicate CTA badge on mobile */
    #geography-game-section .fact-checker-action .cta-badge {
        display: none !important;
    }
    
    #geography-game-section .play-button-large {
        width: 100% !important;
        max-width: 320px !important;
        padding: 0.875rem 1.5rem !important;
        font-size: 1rem !important;
        min-height: 44px !important;
        text-align: center !important;
        margin-top: 0.5rem !important;
    }
}

/* Desktop: Ensure Geography Game Card looks correct on large screens */
@media (min-width: 769px) {
    #geography-game-section .fact-checker-section {
        max-width: 1200px !important;
        margin: 2rem auto !important;
        padding: 2rem 2.5rem !important;
    }
    
    #geography-game-section .fact-checker-description {
        max-width: none !important;
        margin: 0 0 1.5rem 0 !important;
        text-align: left !important;
        font-size: 1rem !important;
        line-height: 1.6 !important;
    }
    
    #geography-game-section .fact-checker-action {
        align-items: flex-start !important;
    }
    
    #geography-game-section .play-button-large {
        max-width: 280px !important;
        margin-top: 0 !important;
    }
}

    /* Fix leaderboards */
    .homepage-leaderboards-container {
        flex-direction: column !important;
        gap: 1.5rem !important;
        padding: 1rem 0 !important;
    }
    
    .homepage-leaderboard {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .homepage-leaderboard-title {
        font-size: 1.125rem !important;
        padding: 0.75rem 1rem !important;
    }
    
    .homepage-leaderboard-list {
        max-height: 300px !important;
        overflow-y: auto !important;
    }
    
    /* Fix news section */
    .news-section {
        padding: 1.5rem 1rem !important;
    }
    
    .news-title {
        font-size: 1.75rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .news-subtitle {
        font-size: 0.938rem !important;
        margin-bottom: 1.5rem !important;
    }
    
    /* Fix tip submit button */
    .tip-submit-btn {
        position: fixed !important;
        bottom: 1rem !important;
        right: 1rem !important;
        left: auto !important;
        width: auto !important;
        min-width: 44px !important;
        min-height: 44px !important;
        padding: 0.75rem 1rem !important;
        font-size: 0.875rem !important;
        z-index: 998 !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
    }
    
    .tip-submit-btn span:first-child {
        font-size: 1.25rem !important;
    }
    
    /* Fix modals */
    .tip-modal {
        padding: 1rem !important;
    }
    
    .tip-modal-content {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        max-height: 90vh !important;
        border-radius: 12px 12px 0 0 !important;
    }
    
    .tip-modal-header {
        padding: 1rem !important;
    }
    
    .tip-modal-header h2 {
        font-size: 1.25rem !important;
    }
    
    .tip-modal-body {
        padding: 1rem !important;
    }
    
    .tip-form-group {
        margin-bottom: 1rem !important;
    }
    
    .tip-form-group label {
        font-size: 0.938rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .tip-form-group input,
    .tip-form-group textarea {
        font-size: 16px !important;
        padding: 0.75rem !important;
        min-height: 44px !important;
    }
    
    .tip-form-group textarea {
        min-height: 120px !important;
    }
    
    .tip-submit-button {
        width: 100% !important;
        padding: 0.875rem !important;
        min-height: 44px !important;
        font-size: 1rem !important;
    }
    
    /* Fix welcome images - hide on mobile */
    .welcome-left-image,
    .welcome-right-image {
        display: none !important;
    }
    
    .welcome-bg-desktop {
        display: none !important;
    }
    
    .welcome-bg-mobile {
        display: block !important;
    }
    
    /* Fix hero logo - HIDE IT COMPLETELY ON MOBILE - it covers content */
    .hero-logo {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        height: 0 !important;
        width: 0 !important;
        overflow: hidden !important;
        position: absolute !important;
        left: -9999px !important;
        font-size: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        z-index: -1 !important;
    }
    
    .hero-logo-image {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        height: 0 !important;
        width: 0 !important;
    }
    
    .hero-logo::before,
    .hero-logo::after {
        display: none !important;
        content: none !important;
        width: 0 !important;
        height: 0 !important;
    }
    
    .hero-logo .logo-n,
    .hero-logo .logo-w {
        display: none !important;
    }
    
    /* Fix text truncation issues */
    .fact-checker-description,
    .fact-checker-text p,
    .about-text,
    .news-subtitle {
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        hyphens: auto !important;
        white-space: normal !important;
        text-overflow: clip !important;
        overflow: visible !important;
    }
    
    /* Fix Geography section text */
    #geography-game-section .fact-checker-description {
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
    }
    
    /* Ensure all text is fully visible */
    h1, h2, h3, h4, h5, h6,
    p, span, div, a, li {
        overflow: visible !important;
        text-overflow: clip !important;
        white-space: normal !important;
    }
    
    /* Fix Geography section specifically */
    #geography-game-section {
        padding: 1.5rem 1rem !important;
        margin: 1rem 0 !important;
    }
    
    #geography-game-section .fact-checker-title {
        font-size: 1.5rem !important;
        line-height: 1.3 !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }
    
    #geography-game-section .fact-checker-description {
        font-size: 0.938rem !important;
        line-height: 1.6 !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
        max-width: 100% !important;
    }
    
    /* Fix leaderboard loading states */
    .homepage-leaderboard-loading {
        padding: 2rem 1rem !important;
        text-align: center !important;
        font-size: 0.938rem !important;
    }
    
    /* Fix any elements that might be covering content */
    .hero-logo,
    .hero-logo-image,
    .hero-logo::before,
    .hero-logo::after {
        pointer-events: none !important;
        z-index: -1 !important;
    }
    
    /* Ensure hero section content is above everything */
    .hero-title,
    .hero-subtitle,
    .hero-stats-container,
    .welcome-text,
    .welcome-text-container {
        position: relative !important;
        z-index: 10 !important;
    }
    
    /* Fix any overlapping elements */
    .fact-checker-section,
    .news-section,
    .about-section,
    .spotlight-section {
        position: relative !important;
        z-index: 1 !important;
    }
    
    /* Fix rough terrain background */
    .rough-terrain-background {
        display: none !important;
    }
    
    /* Fix flags background */
    .flags-background {
        max-width: 100% !important;
        overflow: hidden !important;
    }
    
    /* Fix decorative elements */
    .western-decorations,
    .western-stars,
    .western-star {
        display: none !important;
    }
    
    /* Fix tunnel effects */
    .welcome-tunnel-bg,
    .falling-tunnel {
        display: none !important;
    }
    
    /* Fix particles */
    .particles,
    .matrix-rain {
        display: none !important;
    }
    
    /* Fix any absolute positioned elements */
    [style*="position: absolute"],
    [style*="position: fixed"] {
        max-width: 100vw !important;
        left: auto !important;
        right: auto !important;
    }
    
    /* Fix any transform that might cause overflow */
    [style*="transform"] {
        max-width: 100% !important;
    }
    
    /* Fix sidebar sticky ad */
    .adsense-sidebar-sticky {
        display: none !important;
    }
    
    /* Fix any sections with inline styles */
    section[style],
    div[style] {
        max-width: 100% !important;
        width: 100% !important;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        box-sizing: border-box !important;
    }
    
    /* Fix spotlight section */
    .spotlight-section {
        padding: 1.5rem 1rem !important;
        margin: 1rem 0 !important;
        background: rgba(255, 255, 255, 0.02) !important;
        backdrop-filter: blur(10px) !important;
        border: 1px solid rgba(255, 255, 255, 0.08) !important;
        border-radius: 8px !important;
    }
    
    .spotlight-content {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .spotlight-header {
        margin-bottom: 1.5rem !important;
    }
    
    .spotlight-title {
        font-size: 1.5rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .spotlight-subtitle {
        font-size: 0.938rem !important;
        margin-bottom: 1rem !important;
    }
    
    .spotlight-container {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .spotlight-content-display {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .spotlight-country-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 1rem !important;
        margin-bottom: 1.5rem !important;
    }
    
    .country-name {
        font-size: 1.5rem !important;
    }
    
    .refresh-spotlight-btn {
        width: 100% !important;
        padding: 0.75rem 1rem !important;
        min-height: 44px !important;
        font-size: 1rem !important;
    }
    
    .spotlight-images-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    .spotlight-image-card {
        width: 100% !important;
    }
    
    .spotlight-image-wrapper {
        width: 100% !important;
        aspect-ratio: 16/9 !important;
    }
    
    .spotlight-image-wrapper img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }
    
    /* Fix about section */
    .about-section {
        padding: 1.5rem 1rem !important;
        margin: 1rem 0 !important;
        background: rgba(255, 255, 255, 0.02) !important;
        backdrop-filter: blur(10px) !important;
        border: 1px solid rgba(255, 255, 255, 0.08) !important;
        border-radius: 8px !important;
    }
    
    .about-title {
        font-size: 1.75rem !important;
        margin-bottom: 1rem !important;
    }
    
    .about-text {
        font-size: 0.938rem !important;
        line-height: 1.6 !important;
        font-family: 'Century Schoolbook', 'Century Schoolbook L', serif !important;
    }
    
    /* Fix feature cards grid */
    .fact-checker-features-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
        margin: 1.5rem 0 !important;
    }
    
    .feature-card {
        width: 100% !important;
        padding: 1rem !important;
    }
    
    .feature-title {
        font-size: 1.125rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .feature-desc {
        font-size: 0.875rem !important;
    }
    
    /* Fix leaderboard wrapper */
    .fact-checker-leaderboard-wrapper {
        width: 100% !important;
        margin-top: 1.5rem !important;
    }
    
    .leaderboard-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.75rem !important;
        margin-bottom: 1rem !important;
    }
    
    .view-all-link {
        font-size: 0.938rem !important;
        padding: 0.5rem 1rem !important;
        min-height: 44px !important;
    }
    
    /* Fix AI chat section */
    #ai-assistant-section {
        padding: 1.5rem 1rem !important;
        margin: 1rem 0 !important;
    }
    
    /* Fix credibility section */
    #credibility-section {
        padding: 1.5rem 1rem !important;
        margin: 1rem 0 !important;
        background: rgba(255, 255, 255, 0.02) !important;
        backdrop-filter: blur(10px) !important;
        border: 1px solid rgba(255, 255, 255, 0.08) !important;
        border-radius: 8px !important;
    }
    
    /* Fix any grid layouts */
    [class*="grid"] {
        grid-template-columns: 1fr !important;
    }
    
    /* Fix any flex containers that might overflow */
    [class*="flex"] {
        flex-wrap: wrap !important;
    }
    
    /* Fix any carousels or sliders */
    [class*="carousel"],
    [class*="slider"] {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }
    
    /* Fix any tables */
    table {
        display: block !important;
        width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }
    
    /* Fix any code blocks */
    pre,
    code {
        max-width: 100% !important;
        overflow-x: auto !important;
        word-wrap: break-word !important;
        white-space: pre-wrap !important;
    }
    
    /* Fix any iframes */
    iframe {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 16/9 !important;
    }
    
    /* Fix any embeds */
    embed,
    object {
        max-width: 100% !important;
        width: 100% !important;
    }
    
    /* Fix any videos */
    video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    /* Fix any canvas elements */
    canvas {
        max-width: 100% !important;
        width: 100% !important;
    }
    
    /* Fix any SVG elements */
    svg {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    /* Fix any text that might overflow */
    h1, h2, h3, h4, h5, h6,
    p, span, div, a, li, td, th {
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        hyphens: auto !important;
        max-width: 100% !important;
    }
    
    /* Fix any lists */
    ul, ol {
        padding-left: 1.5rem !important;
        margin: 1rem 0 !important;
    }
    
    li {
        margin-bottom: 0.5rem !important;
    }
    
    /* Fix any blockquotes */
    blockquote {
        margin: 1rem 0 !important;
        padding: 1rem !important;
        font-size: 0.938rem !important;
    }
    
    /* Fix any horizontal rules */
    hr {
        margin: 1.5rem 0 !important;
    }
    
    /* Fix any definition lists */
    dl {
        margin: 1rem 0 !important;
    }
    
    dt {
        font-weight: 600 !important;
        margin-top: 1rem !important;
    }
    
    dd {
        margin-left: 1rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    /* Fix any fieldsets */
    fieldset {
        padding: 1rem !important;
        margin: 1rem 0 !important;
    }
    
    legend {
        font-size: 1rem !important;
        padding: 0 0.5rem !important;
    }
    
    /* Fix any progress bars */
    progress {
        width: 100% !important;
        height: 1.5rem !important;
    }
    
    /* Fix any meters */
    meter {
        width: 100% !important;
        height: 1.5rem !important;
    }
    
    /* Fix any details/summary */
    details {
        margin: 1rem 0 !important;
    }
    
    summary {
        padding: 0.75rem 1rem !important;
        min-height: 44px !important;
        font-size: 1rem !important;
        cursor: pointer !important;
    }
    
    /* Fix any dialog elements */
    dialog {
        width: 95% !important;
        max-width: 95% !important;
        padding: 1rem !important;
        margin: 1rem auto !important;
    }
    
    /* Fix any figure elements */
    figure {
        margin: 1rem 0 !important;
        max-width: 100% !important;
    }
    
    figcaption {
        font-size: 0.875rem !important;
        padding: 0.5rem !important;
    }
    
    /* Fix any address elements */
    address {
        font-style: normal !important;
        margin: 1rem 0 !important;
    }
    
    /* Fix any time elements */
    time {
        font-size: 0.875rem !important;
    }
    
    /* Fix any mark elements */
    mark {
        padding: 0.125rem 0.25rem !important;
    }
    
    /* Fix any small elements */
    small {
        font-size: 0.875rem !important;
    }
    
    /* Fix any sub/sup elements */
    sub, sup {
        font-size: 0.75rem !important;
    }
    
    /* Fix any kbd elements */
    kbd {
        padding: 0.25rem 0.5rem !important;
        font-size: 0.875rem !important;
    }
    
    /* Fix any samp elements */
    samp {
        font-family: monospace !important;
        font-size: 0.875rem !important;
    }
    
    /* Fix any var elements */
    var {
        font-style: italic !important;
    }
    
    /* Fix any abbr elements */
    abbr {
        text-decoration: underline dotted !important;
    }
    
    /* Fix any cite elements */
    cite {
        font-style: italic !important;
    }
    
    /* Fix any q elements */
    q {
        quotes: '"' '"' "'" "'" !important;
    }
    
    /* Fix any del/ins elements */
    del, ins {
        text-decoration: none !important;
    }
    
    /* Ensure all interactive elements are touch-friendly */
    [role="button"],
    [role="link"],
    [role="menuitem"],
    [role="tab"],
    [role="option"] {
        min-height: 44px !important;
        min-width: 44px !important;
        padding: 0.75rem 1rem !important;
    }
    
    /* Fix any aria-hidden elements that might cause issues */
    [aria-hidden="true"] {
        pointer-events: none !important;
    }
    
    /* Fix any skip links */
    .skip-link {
        position: absolute !important;
        left: -9999px !important;
        width: 1px !important;
        height: 1px !important;
        overflow: hidden !important;
    }
    
    .skip-link:focus {
        position: fixed !important;
        top: 1rem !important;
        left: 1rem !important;
        width: auto !important;
        height: auto !important;
        padding: 0.75rem 1rem !important;
        background: rgba(7, 21, 42, 0.98) !important;
        color: white !important;
        z-index: 10000 !important;
        border: 2px solid white !important;
        border-radius: 4px !important;
    }
    
    /* Override inline styles that could cause issues */
    img[style*="height: 40px"] {
        max-height: 35px !important;
        width: auto !important;
    }
    
    #twitter-widget-container {
        max-width: 100% !important;
        width: 100% !important;
        padding: 1rem !important;
        margin: 1rem 0 !important;
    }
    
    #countdown-completion-screen {
        width: 100% !important;
        max-width: 100vw !important;
        padding: 1rem !important;
    }
    
    #countdown-completion-screen > div {
        width: 95% !important;
        max-width: 95% !important;
        margin-top: 2rem !important;
    }
    
    #maintenance-overlay {
        width: 100% !important;
        max-width: 100vw !important;
        padding: 1rem !important;
    }
    
    #maintenance-document {
        max-width: 100% !important;
        width: 100% !important;
        padding: 1.5rem 1rem !important;
    }
    
    #maintenance-document img[style*="width: 180px"] {
        max-width: 120px !important;
        width: 120px !important;
        height: auto !important;
    }
    
    #maintenance-document img[style*="max-width: 280px"] {
        max-width: 200px !important;
        width: 100% !important;
        height: auto !important;
    }
    
    /* Fix any elements with transform that might overflow */
    img[style*="transform"] {
        max-width: 100% !important;
        transform: none !important;
    }
    
    /* Fix any elements with fixed positioning */
    [style*="position: fixed"] {
        max-width: 100vw !important;
        left: 0 !important;
        right: 0 !important;
    }
    
    /* Fix any elements with absolute positioning */
    [style*="position: absolute"] {
        max-width: 100% !important;
    }
    
    /* Fix any elements with specific widths in inline styles */
    [style*="width: 100%"] {
        max-width: 100% !important;
    }
    
    [style*="max-width"] {
        max-width: 100% !important;
    }
    
    /* Fix any elements with specific heights that might cause issues */
    [style*="height: 100vh"] {
        min-height: 100vh !important;
        height: auto !important;
    }
    
    /* Fix any flex containers with inline styles */
    [style*="flex-direction"] {
        flex-wrap: wrap !important;
    }
    
    /* Fix any display: none elements that should be visible on mobile */
    [style*="display: none"]:not(#twitter-widget-container):not([id*="hidden"]):not([class*="hidden"]) {
        /* Don't override intentionally hidden elements */
    }
    
    /* Ensure all text is readable and doesn't overflow */
    * {
        word-break: break-word !important;
        overflow-wrap: break-word !important;
    }
    
    /* Fix any z-index issues */
    [style*="z-index"] {
        max-width: 100vw !important;
    }
    
    /* Fix any background images */
    [style*="background-image"],
    [style*="background-size"],
    [style*="background-position"] {
        background-size: cover !important;
        background-position: center !important;
    }
    
    /* Fix any box-shadow that might cause visual issues */
    [style*="box-shadow"] {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
    }
    
    /* Fix any border-radius that might cause issues */
    [style*="border-radius"] {
        border-radius: 8px !important;
    }
    
    /* Fix any padding that might be too large */
    [style*="padding"] {
        padding: 1rem !important;
    }
    
    /* Fix any margin that might cause overflow */
    [style*="margin"] {
        margin: 1rem 0 !important;
    }
    
    /* Fix problematic transforms that cause overflow */
    img[style*="transform: scale"] {
        transform: none !important;
        max-width: 100% !important;
    }
    
    img[style*="transform: translate"] {
        transform: none !important;
        max-width: 100% !important;
    }
    
    /* Final safety: Ensure nothing can overflow horizontally */
    * {
        max-width: 100% !important;
    }
    
    /* Except for specific elements that need to scroll */
    .news-carousel,
    .articles-track,
    [class*="carousel"],
    [class*="slider"] {
        max-width: 100% !important;
        overflow-x: auto !important;
    }
    
    /* Ensure all containers respect mobile boundaries */
    .container > *,
    section > *,
    div[class*="section"] > * {
        max-width: 100% !important;
    }
    
    /* Performance optimizations for mobile */
    * {
        -webkit-tap-highlight-color: rgba(255, 255, 255, 0.1) !important;
        -webkit-touch-callout: default !important;
    }
    
    /* Smooth scrolling on mobile */
    html {
        -webkit-overflow-scrolling: touch !important;
        scroll-behavior: smooth !important;
    }
    
    /* Prevent text size adjustment on orientation change */
    body {
        -webkit-text-size-adjust: 100% !important;
        -ms-text-size-adjust: 100% !important;
        text-size-adjust: 100% !important;
    }
    
    /* Fix any potential viewport issues */
    @supports (-webkit-touch-callout: none) {
        html, body {
            min-height: -webkit-fill-available !important;
        }
    }
    
    /* Fix safe area insets for notched devices */
    .main-header {
        padding-top: env(safe-area-inset-top) !important;
    }
    
    .tip-submit-btn {
        bottom: calc(1rem + env(safe-area-inset-bottom)) !important;
    }
    
    /* Optimize images for mobile */
    img {
        image-rendering: -webkit-optimize-contrast !important;
        image-rendering: crisp-edges !important;
    }
    
    /* Fix any potential layout shifts */
    [class*="loading"],
    [class*="skeleton"] {
        min-height: 200px !important;
    }
    
    /* Ensure proper spacing for mobile */
    section + section {
        margin-top: 2rem !important;
    }
    
    /* Fix any potential stacking context issues */
    .main-header,
    .mobile-nav,
    .tip-modal {
        isolation: isolate !important;
    }
    
    /* Fix any potential paint issues */
    .hero-section,
    .news-section,
    .fact-checker-section {
        contain: layout style paint !important;
    }
    
    /* Fix any potential composite issues */
    .mobile-menu-toggle,
    .tip-submit-btn,
    button,
    .btn {
        will-change: transform !important;
        transform: translateZ(0) !important;
    }
    
    /* Fix any potential font loading issues */
    @font-face {
        font-display: swap;
    }
    
    /* Fix any potential animation performance issues */
    @media (prefers-reduced-motion: reduce) {
        *,
        *::before,
        *::after {
            animation-duration: 0.01ms !important;
            animation-iteration-count: 1 !important;
            transition-duration: 0.01ms !important;
            scroll-behavior: auto !important;
        }
    }
    
    /* Fix any potential color contrast issues */
    @media (prefers-contrast: high) {
        * {
            border-color: currentColor !important;
        }
    }
    
    /* Fix any potential dark mode issues */
    @media (prefers-color-scheme: dark) {
        * {
            color-scheme: dark !important;
        }
    }
    
    /* Fix any potential print issues */
    @media print {
        * {
            background: white !important;
            color: black !important;
        }
    }
    
    /* Fix any potential data saver issues */
    @media (prefers-reduced-data: reduce) {
        * {
            background-image: none !important;
        }
    }
}

/* Extra small devices - additional fixes */
@media (max-width: 360px) {
    .hero-stats-container {
        grid-template-columns: 1fr !important;
    }
    
    .hero-stat-card {
        flex: 1 1 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
    }
    
    .article-card {
        flex: 0 0 90% !important;
        min-width: 90% !important;
        max-width: 90% !important;
    }
    
    .feed-post-card {
        padding: 0.5rem !important;
    }
    
    .mobile-nav-content {
        padding: 4rem 1.5rem 1.5rem !important;
    }
    
    .tip-modal-content {
        padding: 1rem 0.75rem !important;
    }
}

/* Cookie Consent Banner Styles - Professional Design */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, rgba(7, 21, 42, 0.98) 0%, rgba(13, 31, 58, 0.98) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(79, 172, 254, 0.3);
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.4);
    z-index: 10000;
    padding: 0;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 100%;
}

.cookie-banner.cookie-banner-visible {
    transform: translateY(0);
}

.cookie-banner.cookie-banner-hidden {
    transform: translateY(100%);
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    align-items: flex-start;
}

.cookie-banner-text {
    flex: 1;
    width: 100%;
    min-width: 0;
    overflow: visible;
}

.cookie-banner-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0 0 0.75rem 0;
    color: #ffffff;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.cookie-banner-text p {
    margin: 0;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    font-size: 0.938rem;
    font-weight: 400;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.cookie-banner-text a {
    color: #4A90E2;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid rgba(74, 144, 226, 0.3);
    transition: all 0.2s ease;
}

.cookie-banner-text a:hover {
    color: #4FACFE;
    border-bottom-color: #4FACFE;
}

.cookie-banner-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    width: 100%;
    align-items: center;
}

.cookie-btn {
    padding: 0.875rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.938rem;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    white-space: nowrap;
}

.cookie-btn-accept {
    background: linear-gradient(135deg, #4FACFE 0%, #4A90E2 100%);
    color: white;
    border-color: rgba(79, 172, 254, 0.3);
    flex: 1;
    min-width: 140px;
}

.cookie-btn-accept:hover {
    background: linear-gradient(135deg, #5FB8FF 0%, #5AA0F2 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79, 172, 254, 0.3);
}

.cookie-btn-accept:active {
    transform: translateY(0);
}

.cookie-btn-reject {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.2);
    flex: 1;
    min-width: 140px;
}

.cookie-btn-reject:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.cookie-btn-reject:active {
    transform: translateY(0);
}

.cookie-btn-learn {
    background: transparent;
    color: #4A90E2;
    border-color: rgba(74, 144, 226, 0.3);
    padding: 0.875rem 1.25rem;
    min-width: auto;
}

.cookie-btn-learn:hover {
    background: rgba(74, 144, 226, 0.1);
    color: #4FACFE;
    border-color: rgba(79, 172, 254, 0.4);
}

/* Mobile styles for cookie banner */
@media (max-width: 768px) {
    .cookie-banner {
        padding: 0;
    }
    
    .cookie-banner-content {
        padding: 1.25rem;
        gap: 1rem;
    }
    
    .cookie-banner-title {
        font-size: 1.063rem;
        margin-bottom: 0.625rem;
    }
    
    .cookie-banner-text p {
        font-size: 0.875rem;
        line-height: 1.5;
    }
    
    .cookie-banner-buttons {
        flex-direction: column;
        width: 100%;
        gap: 0.625rem;
    }
    
    .cookie-btn {
        width: 100%;
        padding: 0.875rem 1.25rem;
        min-width: auto;
    }
    
    .cookie-btn-learn {
        order: 3;
        font-size: 0.875rem;
        padding: 0.75rem 1rem;
    }
}

@media (max-width: 480px) {
    .cookie-banner-content {
        padding: 1rem;
    }
    
    .cookie-banner-title {
        font-size: 1rem;
    }
    
    .cookie-banner-text p {
        font-size: 0.813rem;
    }
    
    .cookie-btn {
        font-size: 0.875rem;
        padding: 0.75rem 1rem;
    }
}

/* Landscape orientation fixes */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-section {
        min-height: auto !important;
        padding: 1rem !important;
    }
    
    .hero-title {
        font-size: 1.5rem !important;
    }
    
    .hero-subtitle {
        font-size: 0.8rem !important;
    }
    
    .main-header {
        padding: 0.5rem 1rem !important;
    }
    
    .mobile-nav-content {
        padding: 3rem 2rem 2rem !important;
    }
}

/* High DPI displays */
@media (max-width: 768px) and (-webkit-min-device-pixel-ratio: 2) {
    img {
        image-rendering: -webkit-optimize-contrast !important;
    }
}

/* Professional News-Style Background Boxes */
.about-section,
.credibility-section,
.spotlight-section,
.credibility-highlight {
    background: rgba(255, 255, 255, 0.02) !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 8px !important;
    padding: 2.5rem !important;
    margin: 2rem auto !important;
    max-width: 1200px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08) !important;
    transition: all 0.3s ease !important;
}

.about-section:hover,
.credibility-section:hover,
.spotlight-section:hover,
.credibility-highlight:hover {
    background: rgba(255, 255, 255, 0.03) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 0 2px 6px rgba(0, 0, 0, 0.1) !important;
}

.about-title,
.credibility-title,
.spotlight-title {
    color: rgba(255, 255, 255, 0.95) !important;
    font-weight: 700 !important;
    letter-spacing: -0.02em !important;
    margin-bottom: 1rem !important;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1) !important;
    padding-bottom: 0.75rem !important;
}

.about-text,
.credibility-subtitle,
.spotlight-subtitle {
    color: rgba(255, 255, 255, 0.85) !important;
    line-height: 1.7 !important;
}

/* Very small height devices */
@media (max-width: 768px) and (max-height: 500px) {
    .hero-section {
        padding: 1rem !important;
        min-height: auto !important;
    }
    
    .hero-title {
        font-size: 1.25rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .hero-subtitle {
        font-size: 0.75rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .hero-stats-container {
        display: none !important;
    }
}
