/* ========================================= */
/* LEGACY FORUM STYLES                       */
/* ========================================= */

.forum { margin-top: 10px; background-color: #9597AB; color: #000; }
.fhead { background-color: #9597AB; color: #FFF; text-align: left; border-radius: 5px; }
.blue1 { 
    background: linear-gradient(180deg, rgba(1,98,37,1) 10%, rgba(109,229,81,1) 100%); 
    color: #000; margin: 0; padding: 10px; 
    border-top-left-radius: 8px; border-top-right-radius: 8px; 
    margin-left: 3px; margin-right: 3px; 
}
.forum2 { 
    color: black; background-color: #E3FCE1; font-style: italic;
    padding: 12px 8px; margin-bottom: 4px; margin-left: 3px; margin-right: 3px; 
    border: 3px dotted #04612A; text-align: center; 
    box-shadow: 0 0 10px #461300;
    border-bottom-right-radius: 8px; border-bottom-left-radius: 8px; 
}
b.drop-shadow { text-shadow: 2px 2px 3px silver; }

/* ========================================= */
/* PREMIUM MESSAGE CARD DESIGN               */
/* ========================================= */

.forum-post {
    background: linear-gradient(145deg, #1a1f4e 0%, #0b0c3f 100%);
    border: 2px solid #00ffff;
    border-radius: 16px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(0, 255, 255, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.forum-post::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #00ffff, #00ff88, #00ffff);
    opacity: 0.8;
}

.forum-post:hover {
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.6),
        0 0 30px rgba(0, 255, 255, 0.25);
    transform: translateY(-2px);
}

/* ========================================= */
/* POST HEADER                               */
/* ========================================= */

.post-header {
    background: linear-gradient(135deg, #00ff88 0%, #00cc6a 50%, #00aa55 100%);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 3px dotted rgba(0, 0, 0, 0.2);
    position: relative;
}

.post-header::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
}

.user-avatar {
    width: 48px; height: 48px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: bold; font-size: 20px; color: #fff;
    border: 3px solid #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.user-avatar:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.5);
}

.user-info {
    flex: 1; min-width: 0;
    display: flex; flex-direction: column; gap: 4px;
}

.username-row {
    display: flex; justify-content: space-between; align-items: center;
}

.username {
    font-size: 17px; font-weight: 800; color: #000;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
    letter-spacing: 0.5px;
}

.online-badge {
    background: rgba(255, 255, 255, 0.95);
    color: #00aa55;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px; font-weight: 700;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    display: flex; align-items: center; gap: 4px;
}

.online-badge::before {
    content: '';
    width: 6px; height: 6px;
    border-radius: 50%;
    background: currentColor;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.timestamp {
    font-size: 12px; color: #003322; font-weight: 600;
    text-align: left;
    display: flex; align-items: center; gap: 4px;
}

.time-ago { font-weight: 700; color: #004433; }
.time-separator { color: #006655; font-size: 10px; }
.time-exact { font-weight: 600; color: #005544; }

/* ========================================= */
/* MESSAGE CONTENT                           */
/* ========================================= */

/* ========================================= */
/* MESSAGE CONTENT (FIXED SPACING)           */
/* ========================================= */

.post-content {
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 50%, #f0f4f2 100%);
    
    /* TIGHT PADDING: Reduced vertical space */
    padding: 10px 15px; 
    
    text-align: center;
    border-top: 2px dotted #00cc6a;
    border-bottom: 2px dotted #00cc6a;
    
    /* REMOVED MARGIN: Flush with edges */
    margin: 0; 
    border-radius: 0; 
    position: relative;
}

/* FIXED INNER BORDER: Removed the 5px inset that created empty space */
.post-content::before {
    content: '';
    position: absolute;
    top: 2px; left: 2px; right: 2px; bottom: 2px; /* Changed from 5px to 2px */
    border: 1px solid rgba(0, 204, 106, 0.15);
    border-radius: 4px;
    pointer-events: none;
}

.message-text {
    font-size: 28px;
    line-height: 1.5;
    color: #000;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-shadow: 
        1px 1px 0px #cccccc,
        2px 2px 4px rgba(0, 0, 0, 0.4),
        0px 0px 2px rgba(0, 0, 0, 0.8);
    word-wrap: break-word;
    overflow-wrap: break-word;
    position: relative;
    z-index: 1;
}

.message-text .forum-smile {
    width: 55px; height: 55px;
    vertical-align: middle;
    margin: 0 8px;
    filter: drop-shadow(3px 3px 4px rgba(0,0,0,0.4));
    transition: all 0.3s ease;
}

.message-text .forum-smile:hover {
    transform: scale(1.15) rotate(5deg);
}

/* ========================================= */
/* REACTION BAR                              */
/* ========================================= */

.reaction-bar {
    display: flex; flex-wrap: wrap; gap: 10px;
    padding: 14px 16px;
    background: linear-gradient(135deg, rgba(10, 12, 63, 0.95) 0%, rgba(26, 31, 78, 0.95) 100%);
    border-top: 1px solid rgba(0, 255, 255, 0.2);
    border-bottom: 1px solid rgba(0, 255, 255, 0.1);
    justify-content: flex-start;
    position: relative;
}

.reaction-bar::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.5), transparent);
}

.reaction-btn {
    display: inline-flex; align-items: center; gap: 6px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    border-radius: 25px;
    padding: 6px 14px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #ccc;
    font-size: 14px; font-weight: 700;
    outline: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.reaction-btn::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.reaction-btn:hover::before { left: 100%; }

.reaction-btn:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.3);
}

.reaction-btn .r-emoji {
    font-size: 18px; line-height: 1;
    filter: grayscale(30%);
    transition: all 0.3s ease;
}

.reaction-btn .r-count {
    font-size: 13px; min-width: 16px;
    text-align: center; font-weight: 800;
}

.reaction-btn.active {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.reaction-btn.active .r-emoji {
    filter: grayscale(0%);
    transform: scale(1.2);
    animation: bounce 0.5s ease;
}

@keyframes bounce {
    0%, 100% { transform: scale(1.2); }
    50% { transform: scale(1.4); }
}

.reaction-btn.active[data-type="like"] {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.25) 0%, rgba(0, 204, 106, 0.15) 100%);
    border-color: rgba(0, 255, 136, 0.6);
    color: #00ff88;
    box-shadow: 0 4px 15px rgba(0, 255, 136, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.reaction-btn.active[data-type="love"] {
    background: linear-gradient(135deg, rgba(255, 77, 106, 0.25) 0%, rgba(255, 50, 80, 0.15) 100%);
    border-color: rgba(255, 77, 106, 0.6);
    color: #ff4d6a;
    box-shadow: 0 4px 15px rgba(255, 77, 106, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.reaction-btn.active[data-type="fire"] {
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.25) 0%, rgba(255, 120, 0, 0.15) 100%);
    border-color: rgba(255, 152, 0, 0.6);
    color: #ff9800;
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.reaction-btn.active[data-type="laugh"] {
    background: linear-gradient(135deg, rgba(255, 235, 59, 0.25) 0%, rgba(255, 220, 0, 0.15) 100%);
    border-color: rgba(255, 235, 59, 0.6);
    color: #ffeb3b;
    box-shadow: 0 4px 15px rgba(255, 235, 59, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.reaction-btn.active[data-type="wow"] {
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.25) 0%, rgba(25, 120, 220, 0.15) 100%);
    border-color: rgba(33, 150, 243, 0.6);
    color: #2196f3;
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.reaction-btn.active[data-type="sad"] {
    background: linear-gradient(135deg, rgba(156, 39, 176, 0.25) 0%, rgba(130, 30, 150, 0.15) 100%);
    border-color: rgba(156, 39, 176, 0.6);
    color: #ce93d8;
    box-shadow: 0 4px 15px rgba(156, 39, 176, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* ========================================= */
/* ACTION BUTTONS                            */
/* ========================================= */

.action-buttons {
    display: flex; gap: 10px;
    justify-content: flex-end; align-items: center;
    padding: 12px 16px;
    background: linear-gradient(135deg, rgba(10, 12, 63, 0.8) 0%, rgba(26, 31, 78, 0.8) 100%);
    border-top: 1px solid rgba(0, 255, 255, 0.1);
    flex-wrap: wrap;
}

.action-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 14px;
    font-size: 13px; font-weight: 700;
    text-decoration: none;
    border-radius: 8px;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    height: 32px;
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.action-btn:active { transform: translateY(0); }

.btn-icon { font-size: 16px; line-height: 1; }
.btn-text { line-height: 1; letter-spacing: 0.3px; }

.reply-btn { color: #667eea; border-color: rgba(102, 126, 234, 0.3); }
.reply-btn:hover { background: rgba(102, 126, 234, 0.15); border-color: #667eea; box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3); }

.quote-btn { color: #11998e; border-color: rgba(17, 153, 142, 0.3); }
.quote-btn:hover { background: rgba(17, 153, 142, 0.15); border-color: #11998e; box-shadow: 0 4px 12px rgba(17, 153, 142, 0.3); }

.delete-btn { color: #eb3349; border-color: rgba(235, 51, 73, 0.3); }
.delete-btn:hover { background: rgba(235, 51, 73, 0.15); border-color: #eb3349; box-shadow: 0 4px 12px rgba(235, 51, 73, 0.3); }

.clear-btn { color: #f5576c; border-color: rgba(245, 87, 108, 0.3); }
.clear-btn:hover { background: rgba(245, 87, 108, 0.15); border-color: #f5576c; box-shadow: 0 4px 12px rgba(245, 87, 108, 0.3); }

/* ========================================= */
/* SMILES BOX                                */
/* ========================================= */

/* ========================================= */
/* SMILES BOX (UPDATED)                      */
/* ========================================= */

.message-input-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
    max-widthاات: 250px; /* Keep input wrapper same */
}

.message-input-wrapper textarea {
    width: 100%;
    border-radius: 10px;
    box-sizing: border-box;
    padding-right: 45px;
}

.smiles-toggle-btn {
    position: absolute;
    bottom: 8px; right: 8px;
    background: linear-gradient(135deg, #00ffff, #0088ff);
    border: none;
    font-size: 18px;
    cursor: pointer;
    padding: 0; line-height: 1;
    z-index: 10;
    width: 32px; height: 32px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 255, 255, 0.4);
    transition: all 0.2s ease;
}

.smiles-toggle-btn:hover { transform: scale(1.1); box-shadow: 0 4px 12px rgba(0, 255, 255, 0.6); }
.smiles-toggle-btn:active { transform: scale(0.95); }

/* UPDATED: Larger Popup Size */
.smiles-popup {
    position: absolute;
    bottom: 50px; 
    right0;
    width: 340px; /* Increased from 260px */
    max-height: 400px; /* Increased from 280px */
    background: linear-gradient(145deg, #1e2054, #0b0c3f);
    border: 1px solid rgba(0, 255, 255, 0.5);
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6), 0 0 15px rgba(0, 255, 255, 0.2);
    z-index: 100;
    display: flex; flex-direction: column;
    overflow: hidden;
    opacity: 0; visibility: hidden;
    transform: translateY(15px) scale(0.9);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.smiles-popup.active {
    opacity: 1; visibility: visible;
    transform: translateY(0) scale(1);
}

.smiles-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 15px; /* Slightly more padding */
    background: rgba(0, 255, 255, 0.1);
    border-bottom: 1px solid rgba(0, 255, 255, 0.3);
    color: #00ffff;
    font-size: 14px; /* Slightly larger text */
    font-weight: bold;
    text-transform: uppercase; letter-spacing: 1px;
    flex-shrink: 0;
}

.close-smiles {
    background: transparent; border: none;
    color: #fff; font-size: 24px; /* Larger close button */
    cursor: pointer; line-height: 1;
    padding: 0 4px;
    transition: color 0.2s;
}

.close-smiles:hover { color: #ff4444; }

/* UPDATED: Grid Layout for Larger Images */
.smiles-grid {
    flex: 1; overflow-y: auto;
    padding: 15px;
    display: grid;
    /* Changed minmax from 42px to 60px for bigger images */
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr)); 
    gap: 12px;
    align-content: start;
}

.smiles-grid::-webkit-scrollbar { width: 8px; }
.smiles-grid::-webkit-scrollbar-track { background: rgba(0,0,0,0.2); }
.smiles-grid::-webkit-scrollbar-thumb { background: rgba(0, 255, 255, 0.5); border-radius: 10px; }
.smiles-grid::-webkit-scrollbar-thumb:hover { background: #00ffff; }

/* UPDATED: Image Styling */
.smiles-grid img {
    width: 100%;
    /* Removed aspect-ratio to prevent distortion if images aren't square */
    /* Removed max-width/max-height constraints so they fill the grid cell */
    cursor: pointer;
    object-fit: contain; /* Ensures the whole image is visible */
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    padding: 5px;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid transparent;
    margin: 0 auto;
    display: block;
}

.smiles-grid img:hover {
    transform: scale(1.1) translateY(-2px);
    background: rgba(0, 255, 255, 0.15);
    border-color: #00ffff;
    box-shadow: 0 0 12px rgba(0, 255, 255, 0.6);
}

.forum-smile {
    display: inline-block;
    width: 40px; height: 40px;
    vertical-align: middle;
    object-fit: contain;
    margin: 0 3px;
}

@media (max-width: 768px) {
    /* ... other existing mobile styles ... */

    .smiles-popup {
        width: 300px; /* Slightly smaller on tablet/mobile but still bigger than before */
        max-height: 350px;
        bottom: 45px;
        right: -10px; /* Adjust position if needed */
    }
    
    .smiles-grid {
        /* Keep images decent size on mobile */
        grid-template-columns: repeat(auto-fill, minmax(50px, 1fr)); 
        gap: 10px;
    }
    
    .smiles-grid img {
        /* Ensure they fit the new grid size */
        max-width: none; 
        max-height: none;
    }
}

/* ========================================= */
/* SUBMIT BUTTON                             */
/* ========================================= */

#submitComment {
    background: linear-gradient(135deg, #ff9500 0%, #ff5e00 100%);
    color: #fff;
    font-size: 14px; font-weight: 700;
    letter-spacing: 0.5px;
    padding: 8px 24px;
    height: 36px; line-height: 20px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    box-shadow: 0 3px 8px rgba(255, 94, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    display: inline-flex; align-items: center; justify-content: center;
    gap: 6px;
}

#submitComment::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

#submitComment:hover::before { left: 100%; }

#submitComment:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 94, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    background: linear-gradient(135deg, #ffaa33 0%, #ff7733 100%);
}

#submitComment:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(255, 94, 0, 0.4), inset 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* ========================================= */
/* LOAD MORE BUTTON                          */
/* ========================================= */

#loadMore {
    padding: 14px 35px;
    border: 2px solid #FFD700;
    border-radius: 10px;
    background: linear-gradient(to bottom, #ffcc00, #ff9900);
    color: #000;
    font-size: 18px; font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 0 10px #FFD700, 0 0 20px rgba(255, 215, 0, 0.5);
    transition: all 0.3s ease;
    margin: 15px 0;
}

#loadMore:hover {
    background: linear-gradient(to bottom, #ffe066, #ffb300);
    transform: scale(1.05);
    box-shadow: 0 0 15px #FFD700, 0 0 30px rgba(255, 215, 0, 0.8);
}

#loadMore:disabled {
    background: #666; color: #ccc;
    border-color: #888;
    box-shadow: none;
    transform: none;
}

/* ========================================= */
/* QUOTE STYLES                              */
/* ========================================= */

/* ========================================= */
/* QUOTE STYLES (COMPACT & DARK)             */
/* ========================================= */

.quote-container {
    /* Compact Sizing */
    padding: 6px 10px;
    margin: 5px 0;
    
    /* Dark Theme Background */
    background: linear-gradient(135deg, #1a1f4e 0%, #0b0c3f 100%);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-left: 3px solid #00ffff;
    border-radius: 8px;
    
    /* Shadow & Layout */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    position: relative;
    transition: all 0.2s ease;
}

.quote-container:hover {
    border-left-color: #00ff88;
    box-shadow: 0 4px 12px rgba(0, 255, 255, 0.2);
}

.quote-icon {
	text-align:left;
    position: absolute;
    top: 0px; right: 8px;
    font-size: 14px;
    color: rgba(0, 255, 255, 0.2);
    font-family: Georgia, serif;
    line-height: 1;
}

.quote-header {
    text-align: left;    
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.quote-author {
    font-weight: 800; 
    color: #00ffff; /* Bright Cyan for name */
    font-size: 11px; 
    letter-spacing: 0.5px;
    text-transform: uppercase;
    display: flex; align-items: center; gap: 4px;
}

.quote-author::before { content: "▸"; color: #00ff88; font-size: 9px; }

.quote-date { 
    font-size: 9px; 
    color: #aaa; 
    margin-left: auto; 
    font-style: italic; 
}

.quote-content { 
    /* Dark Text with Shadow as requested */
    color: #e0e0e0; 
    font-size: 12px; 
    line-height: 1.3; 
    padding-left: 2px; 
    font-weight: 600;
    text-shadow: 1px 1px 2px #000000;
}

.quote-content p { margin: 2px 0; }

/* Quote Color Variations (Updated for Dark Theme) */
.quote-style-blue {
    border-left-color: #2196f3;
}
.quote-style-blue .quote-author { color: #64b5f6; }
.quote-style-blue .quote-author::before { color: #2196f3; }

.quote-style-purple {
    border-left-color: #9c27b0;
}
.quote-style-purple .quote-author { color: #ce93d8; }
.quote-style-purple .quote-author::before { color: #9c27b0; }

.quote-style-gold {
    border-left-color: #ff9800;
}
.quote-style-gold .quote-author { color: #ffb74d; }
.quote-style-gold .quote-author::before { color: #ff9800; }

/* ========================================= */
/* LOGIN NOTICE & FORM CONTAINER             */
/* ========================================= */

.login-notice {
    background-color: #0b0c3f;
    border: 2px solid cyan;
    border-radius: 10px;
}

.post-form-container {
    background-color: #0b0c3f;
    border: 2px solid cyan;
    border-radius: 10px;
}

.refresh-btn {
    border: 1px solid silver;
    border-radius: 2px;
    background-color: #FFFFFF;
    padding: 4px;
    font-size: 17px;
    color: #000000;
}

.footer-nav {
    background-color: #5DADE2;
    margin: 2px; padding: 2px;
    border-radius: 4px;
}

/* ========================================= */
/* TYPING INDICATOR                          */
/* ========================================= */

#typing-indicator {
    display: none;
    position: fixed;
    bottom: 10px; left: 10px;
    z-index: 9999;
    background: #222;
    color: #fff;
    padding: 10px 15px;
    border-radius: 20px;
    font-size: 14px;
}

#typing-indicator .dots {
    display: inline-block;
    margin-left: 8px;
    vertical-align: middle;
}

#typing-indicator .dots span {
    display: inline-block;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #00FFFF;
    margin: 0 2px;
    animation: bounce-dots 1.4s infinite ease-in-out both;
}

#typing-indicator .dots span:nth-child(1) { animation-delay: -0.32s; }
#typing-indicator .dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes bounce-dots {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1.0); }
}

/* ========================================= */
/* FILTER SECTION                            */
/* ========================================= */

.filter-container {
    background: linear-gradient(135deg, #1a1f4e 0%, #0b0c3f 100%);
    border: 2px solid #00ffff;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 255, 255, 0.2);
}

.filter-row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.filter-item {
    flex: 1;
    min-width: 200px;
}

.filter-label {
    display: block;
    color: #00ffff;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-select,
.filter-input {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid rgba(0, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    outline: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.filter-select:focus,
.filter-input:focus {
    border-color: #00ffff;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.filter-select option {
    background: #0b0c3f;
    color: #fff;
    padding: 8px;
}

.filter-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
    font-weight: 400;
}

.filter-info {
    margin-top: 12px;
    padding: 10px 15px;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

#filterInfoText {
    color: #00ff88;
    font-size: 13px;
    font-weight: 600;
}

.clear-filters-btn {
    background: linear-gradient(135deg, #ff4444, #cc0000);
    color: #fff;
    border: none;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
}

.clear-filters-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 68, 68, 0.4);
}

/* ========================================= */
/* OTHER STYLES                              */
/* ========================================= */

.opt { text-align: right; color: #FFFFFF; }
.pagebtn {
    border: 1px solid silver;
    border-radius: 4px;
    background-color: #FFFFFF;
    padding: 6px 14px;
    font-size: 16px;
    color: #000000;
    cursor: pointer;
    margin: 0 6px;
}
#paginationLinks { text-align: center; margin: 10px 0; color: #FFFFFF; }

/* ========================================= */
/* MOBILE RESPONSIVE                         */
/* ========================================= */

@media (max-width: 768px) {
    .forum-post {
        margin-bottom: 16px;
        border-radius: 12px;
    }
    
    .post-header { padding: 12px 14px; }
    
    .user-avatar {
        width: 42px; height: 42px;
        font-size: 18px;
    }
    
    .username { font-size: 15px; }
    
    .online-badge {
        font-size: 11px;
        padding: 3px 10px;
    }
    
    .timestamp { font-size: 11px; }
    
    .post-content {
	
        padding: 12px 8px;
        margin: 0;
    }
    
    .message-text { font-size: 24px; }
    
    .message-text .forum-smile {
        width: 45px; height: 45px;
    }
    
    .reaction-bar {
        padding: 12px 14px;
        gap: 8px;
    }
    
    .reaction-btn {
        padding: 5px 12px;
        font-size: 13px;
    }
    
    .reaction-btn .r-emoji { font-size: 16px; }
    .reaction-btn .r-count { font-size: 12px; }
    
    .action-buttons {
        padding: 10px 14px;
        gap: 8px;
    }
    
    .action-btn {
        padding: 6px 12px;
        font-size: 12px;
        height: 30px;
    }
    
    .btn-icon { font-size: 14px; }
    
    .message-input-wrapper { max-width: 100%; }
    
    .smiles-popup {
        width: 240px;
        max-height: 250px;
        bottom: 45px;
    }
    
    .smiles-grid img {
        max-width: 36px;
        max-height: 36px;
    }
    
    #submitComment {
        height: 34px;
        padding: 7px 20px;
        font-size: 13px;
        border-radius: 18px;
    }
    
    .quote-container {
        padding: 7px 10px;
        margin: 6px 0;
        border-radius: 8px;
    }
    
    .quote-icon { font-size: 16px; top: 5px; right: 8px; }
    
    .quote-author { font-size: 11px; }
    .quote-author::before { font-size: 9px; }
    .quote-date { font-size: 9px; }
    .quote-content { font-size: 12px; line-height: 1.4; }
    
    .filter-container {
        padding: 12px;
    }
    
    .filter-row {
        flex-direction: column;
        gap: 12px;
    }
    
    .filter-item {
        min-width: 100%;
    }
    
    .filter-select,
    .filter-input {
        padding: 9px 12px;
        font-size: 13px;
    }
    
    .filter-info {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .clear-filters-btn {
        width: 100%;
        padding: 8px;
    }
}

@media (max-width: 480px) {
    .message-text { font-size: 20px; }
    
    .message-text .forum-smile {
        width: 40px; height: 40px;
    }
    
    .action-btn {
        padding: 5px 10px;
        font-size: 11px;
        flex: 1 1 calc(50% - 8px);
        justify-content: center;
    }
    
    .reaction-btn {
        padding: 4px 10px;
        font-size: 12px;
    }
    
    #submitComment {
        width: 100%;
        max-width: 250px;
        height: 38px;
        font-size: 14px;
    }
}

@media (max-width: 360px) {
    .quote-container { padding: 6px 8px; }
   
    .quote-date { width: 100%; margin-left: 0; margin-top: 2px; }
}
/* OLD HEAVY VERSION */
.forum-post {
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(0, 255, 255, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* NEW LIGHTER VERSION */
.forum-post {
    /* Removed complex inset shadows and large blurs */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3); 
    border: 1px solid rgba(0, 255, 255, 0.3); /* Thinner border */
    will-change: transform; /* Hint to browser for optimization */
}

/* Remove backdrop-filter if not strictly necessary, it's very slow on Android */
.quote-container {
    /* backdrop-filter: blur(10px);  <-- REMOVE THIS LINE */
    background: rgba(255, 255, 255, 0.95); /* Use solid opacity instead */
}

.simple-quote {
    /* Layout & Spacing */
    position: relative;
    padding: 20px 20px 20px 30px; /* Extra left padding for the quote mark */
    margin: 20px 0;
    
    /* The Pink Left Border */
    border-left: 6px solid #f4c2c2; /* Soft pink color */
    background-color: #fff;
    
    /* Typography */
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 24px;
    font-weight: 800; /* Bold like the image */
    line-height: 1.3;
    color: #000;
}

/* The Large Opening Quote Mark */
.simple-quote::before {
    content: "\201C"; /* Unicode for left double quotation mark */
    position: absolute;
    top: 10px;
    left: 5px;
    
    /* Styling the mark */
    font-size: 40px;
    font-weight: 900;
    color: #f4c2c2; /* Matches the border */
    line-height: 1;
}
/* ========================================= */
/* CLEAN SIMPLE QUOTE STYLE                  */
/* ========================================= */

.quote-container {
    /* Layout & Spacing */
    position: relative;
    
    
    /* The Pink Left Border */
    border-left: 6px solid #f4c2c2; 
    background-color: #FFF0E3;
    
    /* Remove old dark theme styles */
    border-radius: 10px;
    border-top: none;
    border-right: none;
    border-bottom: none;
    box-shadow: none;
}

/* The Large Opening Quote Mark (❝) */
.quote-icon {
    position: absolute;
    top: 15px;
    left: 8px;
    font-size: 32px;
    line-height: 1;
    color: #ff0000; /* Matches the border */
    font-weight: 900;
}

/* Header: Author & Date */
.quote-header {
   
    border-bottom: none; /* Removed old dotted line */
    padding-bottom: 0;
}

.quote-author {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 14px;
    font-weight: 800;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Hide the arrow before author name from previous style */
.quote-author::before { content: "" !important; }

.quote-date {
    font-size: 12px;
    color: #999;
    font-style: normal;
    font-weight: 500;
}

/* The Message Content */
.quote-content {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 22px; /* Large and bold like image */
    font-weight: 800;
    
    color: #000000;
    padding-left: 0;
    text-shadow: none; /* Removed old shadow */
}

.quote-content p {
    margin: 0;
}

/* Remove old color variations to keep it clean */
.quote-style-blue, .quote-style-purple, .quote-style-gold {
    border-left-color: #f4c2c2 !important;
}

.panel-heading2 {
    color: #000 !important; /* Force black text */
    font-weight: bold;
    background-color: #f0f0f0; /* Optional: Light gray background for better contrast */
    padding: 10px;
    border-bottom: 2px solid #e70042; /* Optional: Match your theme color */
    margin-top: 15px;
}

/* ===== GOLDEN MATKA PILL-STYLE FOOTER ===== */
.gm-pill-footer {
    background: linear-gradient(180deg, #0f172a 0%, #020617 100%); /* Deep Navy Gradient */
    border-top: 3px solid #eab308; /* Rich Gold Accent Line */
    padding: 20px 10px 15px;
    text-align: center;
    font-family: 'Segoe UI', system-ui, sans-serif;
    margin-top: 20px;
}

/* Pill Navigation Grid */
.gm-pill-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 15px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Base Pill Style */
.gm-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 700;
    border-radius: 25px; /* Full Pill Shape */
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    min-height: 36px; /* Touch Friendly */
}

/* Individual Pill Colors - Vibrant & Distinct */
.gm-home { background: #eab308; color: #0f172a; }       /* Gold */
.gm-about { background: #3b82f6; color: #fff; }         /* Bright Blue */
.gm-contact { background: #10b981; color: #fff; }       /* Emerald Green */
.gm-privacy { background: #8b5cf6; color: #fff; }       /* Purple */
.gm-terms { background: #ef4444; color: #fff; }         /* Red */

.gm-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    filter: brightness(1.1);
}

/* Brand Section */
.gm-pill-brand {
    margin-bottom: 12px;
}

.gm-site-name {
    display: block;
    font-size: 18px;
    font-weight: 900;
    color: #eab308; /* Gold */
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.gm-admin-info {
    font-size: 11px;
    color: #94a3b8; /* Muted Gray */
    letter-spacing: 0.5px;
}

/* Bottom Row: Copyright + Phone */
.gm-pill-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    border-top: 1px solid #1e293b;
    padding-top: 12px;
    max-width: 400px;
    margin: 0 auto;
}

.gm-copyright {
    font-size: 11px;
    color: #64748b;
    line-height: 1.4;
}

.gm-copyright strong { color: #eab308; }

/* Call Button - High Visibility */
.gm-call-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 24px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8); /* Royal Blue Gradient */
    color: #fff !important;
    font-size: 14px;
    font-weight: 800;
    border-radius: 30px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4); }
    50%      { box-shadow: 0 4px 25px rgba(37, 99, 235, 0.7); }
}

/* Hidden SEO Text */
.gm-seo-hidden {
    font-size: 9px;
    color: #334155;
    margin-top: 15px;
    line-height: 1.5;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    user-select: none;
}

/* Desktop Adjustment */
@media screen and (min-width: 600px) {
    .gm-pill-bottom {
        flex-direction: row;
        justify-content: space-between;
        width: 100%;
        max-width: 500px;
    }
    .gm-copyright { text-align: left; }
    .gm-call-btn { margin: 0; }
}

/* Replace .gm-seo-hidden with this */
.gm-trending-tags {
    margin-top: 15px;
    padding: 10px;
    font-size: 11px;
    color: #888; /* Subtle gray so it doesn't distract */
    text-align: center;
    line-height: 1.8;
}
.gm-trending-tags span {
    display: inline-block;
    margin: 0 5px;
    color: #b0b0b0;
}