/* --- Global Variables & Basic Styles --- */
:root {
    --bg-main: #000000;
    --bg-secondary: #0a0a0a;
    --bg-header: #000000;
    --border-color: #222222;
    --text-main: #ffffff;
    --text-secondary: #888888;
    --accent-red: #ef4444; /* Admin, Banned */
    --accent-cyan: #aaaaaa; /* Support - gray */
    --accent-purple: #ffffff; /* Main accent - white */
    --accent-pink: #cccccc; /* Secondary - light gray */
    --link-color: #ffffff; /* White for links */
    --member-color: #e5e7eb; /* Default member color */
    --gradient-primary: linear-gradient(135deg, #333333 0%, #1a1a1a 100%);
    --gradient-secondary: linear-gradient(135deg, #222222 0%, #111111 100%);
}

body {
    margin: 0;
    background: #000000;
    background-image: none;
    background-attachment: fixed;
    color: var(--text-main);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 14px;
    line-height: 1.6;
}

a {
    color: var(--link-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #cccccc;
    text-decoration: none;
}

/* --- Navigation Wrapper --- */
.nav-wrapper {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 20px;
    transition: padding 0.3s ease;
    box-sizing: border-box;
}

/* --- Navigation Bar (top-nav) --- */
.top-nav {
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 0 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 50px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 60%;
    max-width: 900px;
    min-width: 600px;
    border-radius: 25px;
    position: relative;
    overflow: visible;
    margin: 0 auto;
}

.top-nav::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.2) 50%, 
        transparent);
    z-index: 1;
}

.nav-left, .nav-right {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 1;
}

.nav-left a, .nav-right > a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 12px;
    display: flex !important;
    align-items: center;
    gap: 6px;
    position: relative;
    visibility: visible !important;
    opacity: 1 !important;
}

.nav-left a i, .nav-right > a i {
    font-size: 14px;
}

.nav-left a:hover, .nav-right > a:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-1px);
}

.nav-left a.active {
    color: #000000;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

/* IRFIVE Golden Button with Glow */
.irfive-golden-btn {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 50%, #FFD700 100%) !important;
    color: #000000 !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    position: relative !important;
    overflow: hidden !important;
    box-shadow: 
        0 0 20px rgba(255, 215, 0, 0.6),
        0 0 40px rgba(255, 215, 0, 0.4),
        0 0 60px rgba(255, 215, 0, 0.2),
        inset 0 0 20px rgba(255, 255, 255, 0.2) !important;
    animation: goldenGlow 2s ease-in-out infinite alternate !important;
    border: 2px solid rgba(255, 215, 0, 0.8) !important;
}

.irfive-golden-btn::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 70%
    );
    transform: rotate(45deg);
    animation: shimmer 3s infinite;
}

.irfive-golden-btn:hover {
    transform: translateY(-2px) scale(1.05) !important;
    box-shadow: 
        0 0 30px rgba(255, 215, 0, 0.8),
        0 0 60px rgba(255, 215, 0, 0.6),
        0 0 90px rgba(255, 215, 0, 0.4),
        inset 0 0 30px rgba(255, 255, 255, 0.3) !important;
    animation: goldenGlowPulse 1s ease-in-out infinite alternate !important;
}

.irfive-golden-btn:active {
    transform: translateY(0) scale(0.98) !important;
}

@keyframes goldenGlow {
    0% {
        box-shadow: 
            0 0 20px rgba(255, 215, 0, 0.6),
            0 0 40px rgba(255, 215, 0, 0.4),
            0 0 60px rgba(255, 215, 0, 0.2),
            inset 0 0 20px rgba(255, 255, 255, 0.2);
    }
    100% {
        box-shadow: 
            0 0 30px rgba(255, 215, 0, 0.8),
            0 0 60px rgba(255, 215, 0, 0.6),
            0 0 90px rgba(255, 215, 0, 0.4),
            inset 0 0 30px rgba(255, 255, 255, 0.3);
    }
}

@keyframes goldenGlowPulse {
    0% {
        box-shadow: 
            0 0 30px rgba(255, 215, 0, 0.8),
            0 0 60px rgba(255, 215, 0, 0.6),
            0 0 90px rgba(255, 215, 0, 0.4),
            inset 0 0 30px rgba(255, 255, 255, 0.3);
    }
    100% {
        box-shadow: 
            0 0 40px rgba(255, 215, 0, 1),
            0 0 80px rgba(255, 215, 0, 0.8),
            0 0 120px rgba(255, 215, 0, 0.6),
            inset 0 0 40px rgba(255, 255, 255, 0.4);
    }
}

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

/* License Panel Button */
.license-panel-btn {
    background: #333333 !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3) !important;
    transition: all 0.3s ease !important;
}

.license-panel-btn:hover {
    background: #444444 !important;
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.1) !important;
    transform: translateY(-1px) !important;
}

/* IRFIVE Toggle Button */
.irfive-toggle-btn {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    padding: 8px 12px !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
    font-size: 14px !important;
}

.irfive-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: #ffffff !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2) !important;
}

/* Navigation Responsive */
@media (max-width: 1400px) {
    .top-nav {
        width: 70%;
        max-width: 800px;
    }
}

@media (max-width: 1024px) {
    .top-nav {
        width: 85%;
        max-width: 700px;
        min-width: 500px;
    }
}

@media (max-width: 768px) {
    .top-nav {
        width: 95%;
        max-width: 600px;
        min-width: auto;
        padding: 0 20px;
    }
    
    .nav-left, .nav-right {
        gap: 6px;
    }
    
    .nav-left a, .nav-right > a {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .nav-wrapper {
        padding: 8px 10px;
    }
}

@media (max-width: 480px) {
    .top-nav {
        width: 98%;
        padding: 0 16px;
    }
    
    /* Only hide text in mobile, not the whole link */
    /* Remove this rule that was hiding links */
}

.user-menu {
    position: relative;
    z-index: 2000;
}

.user-menu-toggle {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 12px;
    position: relative;
    z-index: 2001;
}

.user-menu-toggle:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.08);
}

.user-menu-toggle img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.user-menu-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 15px);
    right: 0;
    background: rgba(0, 0, 0, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    width: 240px;
    z-index: 2002;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1);
    padding-top: 12px;
    padding-bottom: 12px;
    animation: dropdownFadeIn 0.3s ease;
}

.user-menu-dropdown.active {
    display: block;
}

@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Removed hover - using click only for better UX */

.dropdown-header {
    padding: 12px 18px 16px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.03);
}

.dropdown-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.dropdown-user-info {
    flex: 1;
}

.dropdown-user-info span {
    display: block;
    line-height: 1.4;
}

.dropdown-user-info span:first-child {
    font-weight: 600;
    color: var(--text-main);
    font-size: 15px;
}

.dropdown-user-info span:last-child {
    font-size: 12px;
    margin-top: 2px;
}

.dropdown-links {
    padding: 6px 0;
}

.dropdown-links a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    color: var(--text-secondary);
    text-transform: none;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.dropdown-links a i {
    width: 18px;
    text-align: center;
    font-size: 16px;
}

.dropdown-links a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-main);
    border-left-color: #ffffff;
    padding-left: 22px;
}

.notification-badge {
    background-color: var(--accent-red);
    color: #fff;
    font-size: 10px;
    font-weight: bold;
    border-radius: 50%;
    padding: 3px 6px;
    margin-left: 5px;
    position: relative;
    top: -5px;
}

/* --- Container & Sidebar Layout --- */
.container {
    max-width: 1200px;
    margin: 40px auto;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 20px;
    padding: 0 20px;
}

.main-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* --- Utility Classes --- */
.hidden {
    display: none !important;
}

/* --- Widget Styles --- */
.widget {
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.widget:hover {
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.widget-header {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.3px;
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.03);
    display: flex;
    align-items: center;
    gap: 8px;
}

.widget-header i {
    color: #ffffff;
}

.widget-content {
    padding: 18px;
}

.widget-content p {
    margin: 0 0 10px;
}

.widget-content p:last-child {
    margin-bottom: 0;
}

.widget-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget-content li {
    padding: 8px 0;
    border-bottom: 1px solid #1a1a1a;
    font-size: 13px;
}

.widget-content li:last-child {
    border-bottom: none;
}

.widget-content li a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
}

.widget-content li a:hover {
    color: #ffffff;
}

.widget-content li .post-time {
    display: block;
    color: var(--text-secondary);
    font-size: 11px;
    margin-top: 2px;
}

/* --- Shoutbox Widget --- */
.shoutbox-widget {
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    margin-bottom: 20px;
    overflow: hidden;
}

.shoutbox-header {
    background: rgba(255, 255, 255, 0.03);
    padding: 16px 20px;
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    color: var(--text-main);
}

.shoutbox-header i {
    color: #ffffff;
}

.shoutbox-messages {
    height: 300px;
    overflow-y: auto;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background-color: #000000;
    border-bottom: 1px solid var(--border-color);
}

.shout-message {
    display: flex;
    align-items: flex-start;
    font-size: 13px;
    line-height: 1.4;
    position: relative; /* For actions positioning */
}

.shout-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 8px;
    flex-shrink: 0;
}

.shout-username {
    font-weight: bold;
    margin-right: 5px;
}

.shout-text {
    color: var(--text-main);
    word-break: break-word;
    flex-grow: 1;
}
.shoutbox-muted-user {
    color: var(--text-secondary); /* Dim text for muted users */
    font-style: italic;
}

.shout-time {
    font-size: 11px;
    color: var(--text-secondary);
    margin-left: 10px;
    flex-shrink: 0;
    white-space: nowrap;
}

.shout-actions {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 8px;
    visibility: hidden; /* Hidden by default */
    opacity: 0;
    transition: visibility 0s, opacity 0.2s linear;
}

.shout-message:hover .shout-actions {
    visibility: visible;
    opacity: 1;
}

.shout-actions i {
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 14px;
}
.shout-actions i:hover {
    color: var(--text-main);
}
.shout-actions .fa-trash:hover {
    color: #ffffff;
}
.shout-actions .fa-volume-mute:hover {
    color: var(--accent-cyan);
}


.shoutbox-input-area {
    padding: 10px 15px;
    background-color: var(--bg-secondary);
}

.shoutbox-input-area form {
    display: flex;
    align-items: center;
    gap: 10px;
}

.shoutbox-input-area input[type="text"] {
    flex-grow: 1;
    padding: 10px;
    background-color: #000000;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    box-sizing: border-box;
}

.shoutbox-input-area button {
    background: #ffffff;
    color: #000000;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.shoutbox-input-area button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

.shoutbox-icons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.shoutbox-icons i {
    color: var(--text-secondary);
    font-size: 18px;
    cursor: pointer;
    transition: color 0.2s;
}

.shoutbox-icons i:hover {
    color: var(--text-main);
}
.shoutbox-guest-message {
    padding: 20px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
    border-top: 1px solid var(--border-color);
    background-color: #0a0a0a;
}
.shoutbox-guest-message a {
    color: #ffffff;
    font-weight: bold;
    text-decoration: none;
    transition: color 0.2s;
}
.shoutbox-guest-message a:hover {
    color: #DAA0FF;
    text-decoration: underline;
}
.shoutbox-banned-message {
    color: var(--accent-red);
    font-weight: bold;
}
.shoutbox-login-required {
    padding: 30px 20px;
    background: linear-gradient(135deg, rgba(229, 57, 53, 0.1), rgba(229, 57, 53, 0.05));
    border: 2px solid rgba(229, 57, 53, 0.3);
    border-radius: 8px;
    margin: 10px;
}
.shoutbox-login-required strong {
    color: var(--accent-red);
    font-size: 16px;
    display: block;
    margin-bottom: 8px;
}


/* --- Forum Category List on index.php --- */
.forum-category .category-header {
    background: rgba(255, 255, 255, 0.03);
    padding: 18px 20px;
    font-weight: 600;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.forum-category .category-header a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.forum-category .category-header a:hover {
    color: #ffffff;
    transform: translateX(3px);
}

.forum-category .category-header a i {
    color: #ffffff;
}

.forum-list {
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: none;
    margin-bottom: 20px;
    border-radius: 0 0 16px 16px;
}

.forum-row {
    display: grid;
    grid-template-columns: 40px 1fr 80px 180px 100px;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.2s;
    gap: 10px;
}

/* Admin Action Buttons for forum rows */
.forum-admin-actions {
    display: flex;
    gap: 5px;
    align-items: center;
    justify-content: flex-end;
}

.admin-action-btn-small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid;
}

.admin-action-btn-small.edit-btn {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    border-color: rgba(59, 130, 246, 0.3);
}

.admin-action-btn-small.edit-btn:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: #3b82f6;
}

.admin-action-btn-small.hide-btn {
    background: rgba(251, 191, 36, 0.1);
    color: #fbbf24;
    border-color: rgba(251, 191, 36, 0.3);
}

.admin-action-btn-small.hide-btn:hover {
    background: rgba(251, 191, 36, 0.2);
    border-color: #fbbf24;
}

.admin-action-btn-small.delete-btn {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.3);
}

.admin-action-btn-small.delete-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
}

.forum-row:last-child {
    border-bottom: none;
}

.forum-row:hover {
    background-color: #0a0a0a;
}

.forum-icon {
    font-size: 20px;
    text-align: center;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.forum-title a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
}

.forum-title a:hover {
    text-decoration: underline;
}

.forum-title span {
    display: block;
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.forum-stats {
    text-align: center;
    font-size: 13px;
    color: var(--text-secondary);
}

.forum-stats strong {
    color: var(--text-main);
    display: block;
    font-size: 16px;
}

.forum-last-post {
    font-size: 13px;
    line-height: 1.4;
    text-align: right;
}

.forum-last-post a {
    text-decoration: none;
}

.forum-last-post span {
    color: var(--text-secondary);
}
/* Styling for General/Talk link in index.php (when no topics) */
.no-topics .category-link-text-small {
    font-weight: 700; /* Bold */
    color: var(--text-main); /* White */
    text-transform: uppercase; /* Uppercase */
    font-size: 12px; /* Smaller font size */
    letter-spacing: 0.5px; /* Letter spacing */
    display: inline; /* Keep it inline within the text */
    padding: 0; /* Remove padding */
}
.no-topics .category-link-text-small:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Styling for General/Talk category header on index.php */
.forum-category .category-header-general-link {
    font-weight: 700; /* Bold */
    color: var(--text-main); /* White */
    text-transform: uppercase; /* Uppercase */
    font-size: 16px; /* Larger font size */
    letter-spacing: 0.5px; /* Letter spacing */
    display: flex; /* Use flex to align icon and text */
    align-items: center;
    gap: 10px; /* Space between icon and text */
    text-decoration: none;
}
.forum-category .category-header-general-link:hover {
    color: #ffffff;
    text-decoration: none;
}
.forum-category .category-header-general-link i {
    font-size: 20px; /* Icon size */
    color: var(--text-main); /* Icon color */
}


/* --- Category Page (view_category.php) Styles --- */
.category-page-container {
    max-width: 950px;
    margin: 40px auto;
    padding: 0 20px;
}

.breadcrumbs {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.breadcrumbs a {
    color: var(--text-secondary);
    text-decoration: none;
}

.breadcrumbs a:hover {
    color: var(--text-main);
}

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

.category-header-controls h2 {
    margin: 0;
    font-size: 28px;
}

.post-thread-button {
    background: #ffffff;
    color: #000000;
    padding: 12px 24px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 16px rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.post-thread-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(255, 255, 255, 0.3);
}

.topic-list {
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
}

.topic-row {
    display: grid;
    grid-template-columns: 40px 1fr 180px 180px;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.2s;
}

.topic-row:last-child {
    border-bottom: none;
}

.topic-row:hover {
    background-color: #0a0a0a;
}

.topic-icon {
    font-size: 20px;
    text-align: center;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.topic-info {
    padding-right: 15px;
}

.topic-title {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    padding: 2px 0;
}

.topic-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #ffffff;
    transition: width 0.3s ease;
}

.topic-title:hover {
    color: #ffffff;
    transform: translateX(3px);
}

.topic-title:hover::after {
    width: 100%;
}

.topic-meta {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 5px;
}

.topic-meta a {
    text-decoration: none;
}

.topic-stats {
    text-align: right;
    font-size: 13px;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.topic-stats strong {
    color: var(--text-main);
    font-size: 14px;
}

.topic-last-post {
    font-size: 13px;
    line-height: 1.4;
    text-align: right;
}

.topic-last-post a {
    text-decoration: none;
}

.topic-last-post span {
    color: var(--text-secondary);
}

.no-topics {
    padding: 20px;
    text-align: center;
    color: var(--text-secondary);
}

.no-topics a {
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
}

/* --- Create Topic Page (create_topic.php) Styles --- */
.create-topic-container {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
}

.create-topic-container h1 {
    font-size: 28px;
    margin-bottom: 25px;
}

.create-topic-form {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    padding: 30px;
}

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

.create-topic-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-main);
}

.create-topic-form input[type="text"],
.create-topic-form textarea {
    width: 100%;
    padding: 12px;
    background-color: #000000;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    box-sizing: border-box;
}

.create-topic-form textarea {
    min-height: 150px;
    resize: vertical;
}

.create-topic-form button {
    background-color: #ffffff;
    color: #000000;
    padding: 12px 25px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
    float: right;
    margin-top: 10px;
}

.create-topic-form .checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
}

.create-topic-form .checkbox-group input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.create-topic-form .checkbox-group label {
    margin: 0;
    font-weight: normal;
}

/* --- View Topic Page (view_topic.php) Styles (Updated & Inline Reply) --- */
.topic-container {
    max-width: 950px;
    margin: 40px auto;
    padding: 0 20px;
}

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

.topic-header-main h1 {
    font-size: 28px;
    margin: 0;
}

.post {
    display: flex;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.post:hover {
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.post-author {
    flex: 0 0 180px;
    padding: 20px;
    text-align: center;
    border-right: 1px solid var(--border-color);
}

.post-author img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
}

.post-author .username {
    font-weight: bold;
    text-decoration: none;
    font-size: 16px;
    display: block;
}

.post-author .role-title {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.post-author .post-count {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 10px;
}

.post-content {
    flex-grow: 1;
    padding: 20px;
}

.post-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.post-header .post-number a {
    color: var(--text-secondary);
    text-decoration: none;
}

.post-body {
    line-height: 1.7;
    min-height: 100px;
}

.post-footer {
    margin-top: 20px;
    text-align: right;
}

.post-footer a {
    color: var(--text-secondary);
    text-decoration: none;
    margin-left: 15px;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.post-footer a:hover {
    color: var(--text-main);
}

.reply-box {
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 24px;
    margin-top: 30px;
}

.reply-box textarea {
    width: 100%;
    background-color: #000000;
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 12px;
    border-radius: 4px;
    box-sizing: border-box;
    min-height: 120px;
    resize: vertical;
    margin-bottom: 10px;
}

.reply-box button {
    background: #ffffff;
    color: #000000;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    float: right;
    border: none;
    box-shadow: 0 4px 16px rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.reply-box button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(255, 255, 255, 0.3);
}

.reply-box::after {
    content: "";
    display: table;
    clear: both;
}

.no-reply-message {
    background-color: #0a0a0a;
    border: 1px solid #444;
    padding: 15px;
    border-radius: 4px;
    text-align: center;
    color: var(--text-secondary);
    margin-top: 30px;
}

/* --- Message Box Styles --- */
.message {
    padding: 12px;
    margin-bottom: 20px;
    border-radius: 4px;
    text-align: center;
    font-weight: 500;
}

.message.success {
    background-color: #2E7D32;
    color: #fff;
}

.message.error {
    background-color: #C62828;
    color: #fff;
}
.message.warning {
    background-color: #ffc107;
    color: #333;
}


/* --- Profile Page (profile.php) Styles --- */
.profile-container {
    max-width: 900px;
    margin: 40px auto;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    padding: 30px;
}

.profile-header {
    display: flex;
    align-items: center;
    padding-bottom: 25px;
    margin-bottom: 25px;
    border-bottom: 1px solid var(--border-color);
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 30px;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.profile-info {
    flex-grow: 1;
}

.profile-username {
    font-size: 32px;
    margin: 0 0 5px 0;
    line-height: 1.2;
}

.profile-role {
    font-size: 16px;
    color: var(--text-secondary);
    margin: 0 0 10px 0;
}

.profile-joined,
.profile-posts {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 5px 0;
}

.edit-profile-button {
    background-color: #ffffff;
    color: #fff;
    padding: 8px 15px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    font-size: 13px;
    margin-top: 15px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.2s;
}

.edit-profile-button:hover {
    background-color: #cccccc;
}

.profile-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.profile-section {
    background-color: #000000;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.profile-section .section-header {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.5px;
}

.profile-section .section-content {
    padding: 20px;
}

.profile-section .section-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.profile-section .section-content li {
    padding: 10px 0;
    border-bottom: 1px solid #1a1a1a;
    font-size: 14px;
}

.profile-section .section-content li:last-child {
    border-bottom: none;
}

.profile-section .section-content li a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
}

.profile-section .section-content li a:hover {
    color: #ffffff;
}

.profile-section .section-content p {
    color: var(--text-secondary);
    font-style: italic;
}

/* Styles for login/register forms */
.login-container, .register-container {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    width: 400px;
    padding: 40px;
    border-radius: 5px;
    text-align: center;
    margin: 50px auto;
}
.register-container {
    width: 450px;
}

.login-container h1, .register-container h1 {
    font-size: 28px;
    margin-top: 0;
    margin-bottom: 30px;
    color: #ffffff;
}
.login-container .form-group, .register-container .form-group {
    margin-bottom: 20px;
    text-align: left;
}
.login-container .form-group label, .register-container .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-secondary);
}
.login-container .form-group input[type="text"],
.login-container .form-group input[type="password"],
.register-container .form-group input[type="text"],
.register-container .form-group input[type="email"],
.register-container .form-group input[type="password"],
.register-container .form-group select {
    width: 100%;
    padding: 12px;
    background-color: #000000;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    box-sizing: border-box;
}

.login-button, .register-button {
    background-color: #ffffff;
    color: #000000;
    border: none;
    padding: 12px 25px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    margin-top: 20px;
}
.login-button:hover, .register-button:hover {
    background-color: #cccccc;
}
.login-container .form-footer, .register-container .form-footer {
    margin-top: 25px;
    font-size: 13px;
    color: var(--text-secondary);
}
.login-container .form-footer a, .register-container .form-footer a {
    color: #ffffff;
    text-decoration: none;
}
.login-container .form-footer a:hover, .register-container .form-footer a:hover {
    text-decoration: underline;
}

/* Styles for Edit Profile Page */
.edit-profile-form {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    padding: 30px;
}
.edit-profile-form .form-group {
    margin-bottom: 20px;
}
.edit-profile-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-main);
}
.edit-profile-form input[type="text"],
.edit-profile-form input[type="email"],
.edit-profile-form input[type="password"],
.edit-profile-form input[type="file"] {
    width: 100%;
    padding: 12px;
    background-color: #000000;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    box-sizing: border-box;
}
.edit-profile-form input[type="file"] {
    padding: 8px 12px;
}
.edit-profile-form small {
    display: block;
    margin-top: 5px;
    color: var(--text-secondary);
    font-size: 12px;
}
.edit-profile-form .profile-avatar-group {
    text-align: center;
    margin-bottom: 30px;
}
.edit-profile-form .current-profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 15px auto;
    border: 2px solid rgba(255, 255, 255, 0.3);
}
.submit-profile-button {
    background-color: #ffffff;
    color: #000000;
    padding: 12px 25px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
    width: auto;
    float: right;
    margin-top: 10px;
}
.submit-profile-button:hover {
    background-color: #cccccc;
}

/* Generic container and section styles (used by edit_topic.php, lua_codes.php, etc.) */
.tickets-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}
.tickets-container h1 {
    font-size: 28px;
    margin-bottom: 20px;
}
.ticket-section {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    margin-bottom: 25px;
}
.ticket-section .section-header {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.5px;
}
.ticket-section .section-content {
    padding: 20px;
}

/* Admin Users Page */
.users-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    font-size: 13px;
}
.users-table th,
.users-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}
.users-table th {
    background-color: #0a0a0a;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--text-secondary);
}
.users-table tbody tr:last-child td {
    border-bottom: none;
}
.users-table .status-active {
    color: #4CAF50;
    font-weight: 500;
}
.users-table .status-banned, .users-table .status-shoutbox-muted {
    color: var(--accent-red);
    font-weight: 500;
}
.users-table .banned-user-row td {
    background-color: #251212; /* Slightly redder background for banned users */
    color: #888;
    font-style: italic;
}
.users-table .shoutbox-banned-user-row td {
    background-color: #1a1a25; /* Slightly bluer background for shoutbox muted users */
    color: #888;
    font-style: italic;
}
.users-table .action-button-small {
    background-color: #ffffff;
    color: #000000;
    padding: 6px 12px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: background-color 0.2s;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.users-table .action-button-small:hover {
    background-color: #cccccc;
}
.users-table .user-actions-dropdown {
    position: relative;
    display: inline-block;
}
.users-table .user-actions-dropdown .dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--bg-secondary);
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.5);
    z-index: 1;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    top: 100%; /* Position below the button */
    left: 0;
    padding: 5px 0;
}
.users-table .user-actions-dropdown .dropdown-content .inline-form {
    display: block; /* Make forms take full width of dropdown */
}
.users-table .user-actions-dropdown .dropdown-content select,
.users-table .user-actions-dropdown .dropdown-content button {
    width: 100%;
    padding: 8px 15px;
    border: none;
    background: none;
    color: var(--text-main);
    text-align: left;
    cursor: pointer;
    font-size: 13px;
    transition: background-color 0.2s;
}
.users-table .user-actions-dropdown .dropdown-content select:hover,
.users-table .user-actions-dropdown .dropdown-content button:hover {
    background-color: #0a0a0a;
    color: var(--link-color);
}
.users-table .user-actions-dropdown:hover .dropdown-content {
    display: block;
}
.users-table .action-link {
    background: none; /* Make button look like a link */
    color: var(--link-color);
    padding: 8px 15px;
    border: none;
    cursor: pointer;
    font-size: 13px;
    text-align: left;
    width: 100%;
    display: block;
    transition: background-color 0.2s;
}
.users-table .action-link:hover {
    background-color: #0a0a0a;
    color: #ffffff;
}
.users-table .action-link.status-active {
    color: #4CAF50;
}
.users-table .action-link.status-active:hover {
    background-color: #0a0a0a;
    color: #76ff7a;
}


/* Banned Page */
.banned-page-body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: var(--bg-main);
}
.banned-container {
    background-color: var(--bg-secondary);
    border: 1px solid var(--accent-red);
    border-radius: 8px;
    padding: 50px;
    text-align: center;
    max-width: 600px;
    box-shadow: 0 0 20px rgba(229, 57, 53, 0.4);
}
.banned-icon {
    font-size: 80px;
    color: var(--accent-red);
    margin-bottom: 20px;
}
.banned-container h1 {
    color: var(--accent-red);
    font-size: 3em;
    margin-bottom: 20px;
    text-transform: uppercase;
}
.banned-container p {
    font-size: 1.1em;
    color: var(--text-main);
    margin-bottom: 15px;
}
.banned-container p strong {
    color: #ffffff;
}
.banned-container .logout-button {
    background-color: var(--accent-red);
    color: #fff;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    margin-top: 30px;
    display: inline-block;
    transition: background-color 0.2s;
}
.banned-container .logout-button:hover {
    background-color: #B71C1C;
}


/* Mute Modal Styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.6); /* Black w/ opacity */
    padding-top: 60px;
}

.modal-content {
    background-color: var(--bg-secondary);
    margin: 5% auto; /* 15% from the top and centered */
    padding: 30px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    width: 80%; /* Could be more or less, depending on screen size */
    max-width: 400px;
    position: relative;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19);
    animation-name: animatetop;
    animation-duration: 0.4s
}

/* Add Animation */
@keyframes animatetop {
    from {top: -300px; opacity: 0}
    to {top: 0; opacity: 1}
}

.close-button {
    color: var(--text-secondary);
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close-button:hover,
.close-button:focus {
    color: var(--text-main);
    text-decoration: none;
    cursor: pointer;
}

.modal-content h2 {
    color: #ffffff;
    margin-top: 0;
    margin-bottom: 20px;
    text-align: center;
    font-size: 24px;
}
.modal-content .form-group {
    margin-bottom: 15px;
    text-align: left;
}
.modal-content label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-main);
}
.modal-content select {
    width: 100%;
    padding: 10px;
    background-color: #000000;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    box-sizing: border-box;
}
.modal-content .generate-button {
    margin-top: 20px;
    width: 100%;
}
.modal-content .message {
    margin-top: 15px;
    font-size: 13px;
}

/* Modal Header Styles */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h2 {
    margin: 0;
    color: var(--accent-purple);
    font-size: 20px;
}

.close {
    color: var(--text-secondary);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}

.close:hover,
.close:focus {
    color: var(--text-main);
}

/* Modal Body Styles */
.modal-body {
    padding: 0;
}

/* Modal Actions Styles */
.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
}

/* Input Field Styles for Modal */
.modal-content input[type="text"],
.modal-content input[type="email"],
.modal-content input[type="password"] {
    width: 100%;
    padding: 10px;
    background-color: #000000;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.modal-content input[type="text"]:focus,
.modal-content input[type="email"]:focus,
.modal-content input[type="password"]:focus {
    outline: none;
    border-color: var(--accent-purple);
}

/* Page Actions Styles */
.page-actions {
    margin-top: 15px;
}

/* --- Invitations Page Styles --- */
.card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.card h2 {
    color: var(--accent-purple);
    margin-bottom: 20px;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-main);
    font-weight: 500;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background-color: var(--bg-main);
    color: var(--text-main);
    font-size: 14px;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #ffffff;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
}

.form-group small {
    color: var(--text-secondary);
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-primary {
    background-color: #ffffff;
    color: #000000;
}

.btn-primary:hover {
    background-color: #cccccc;
    transform: translateY(-1px);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}


.alert {
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    border-left: 4px solid;
}

.alert-success {
    background-color: rgba(76, 175, 80, 0.1);
    border-color: #4CAF50;
    color: #4CAF50;
}

.alert-error {
    background-color: rgba(244, 67, 54, 0.1);
    border-color: #F44336;
    color: #F44336;
}

.alert-warning {
    background-color: rgba(255, 152, 0, 0.1);
    border-color: #FF9800;
    color: #FF9800;
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.table th,
.table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.table th {
    background-color: var(--bg-header);
    color: var(--text-main);
    font-weight: 600;
}

.table tbody tr:hover {
    background-color: rgba(156, 39, 176, 0.05);
}

.table-responsive {
    overflow-x: auto;
}


.generated-codes {
    margin-top: 20px;
}

.code-item {
    padding: 15px;
    background-color: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    margin-bottom: 10px;
}

.code-item code {
    font-size: 16px;
    display: block;
    text-align: center;
}

.badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.badge-success {
    background-color: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
}

.badge-info {
    background-color: rgba(33, 150, 243, 0.2);
    color: #2196F3;
}

.badge-danger {
    background-color: rgba(244, 67, 54, 0.2);
    color: #F44336;
}

tr.success {
    background-color: rgba(76, 175, 80, 0.05);
}

tr.info {
    background-color: rgba(33, 150, 243, 0.05);
}

tr.danger {
    background-color: rgba(244, 67, 54, 0.05);
}

/* --- Admin Users Page Styles --- */
.page-header {
    margin-bottom: 30px;
}

.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    font-size: 14px;
    color: var(--text-secondary);
}

.breadcrumbs a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumbs a:hover {
    color: #cccccc;
}

.breadcrumbs .separator {
    color: var(--text-secondary);
}

.breadcrumbs .current {
    color: var(--text-main);
    font-weight: 500;
}

.page-description {
    color: var(--text-secondary);
    margin: 0;
    font-size: 16px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #000000;
    background: #ffffff;
}

.stat-icon.admin {
    background: #333333;
    color: #ffffff;
}

.stat-icon.support {
    background: #444444;
    color: #ffffff;
}

.stat-icon.banned {
    background: #333333;
    color: #ffffff;
}

.stat-content {
    flex: 1;
}

.stat-number {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

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

.card-header h2 {
    margin: 0;
    color: var(--text-main);
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-actions {
    display: flex;
    gap: 10px;
}

.card-content {
    padding: 0;
}

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

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #333333;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
}

.user-details {
    flex: 1;
}

.username {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 2px;
}

.user-email {
    font-size: 13px;
    color: var(--text-secondary);
}

.role-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.role-member {
    background: rgba(158, 158, 158, 0.2);
    color: #9E9E9E;
}

.role-support {
    background: rgba(0, 188, 212, 0.2);
    color: #00BCD4;
}

.role-dev {
    background: rgba(156, 39, 176, 0.2);
    color: #9C27B0;
}

.role-admin {
    background: rgba(229, 57, 53, 0.2);
    color: #E53935;
}

.location-form {
    display: inline-block;
    margin: 0;
}

.location-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    background: none;
    font-family: inherit;
}

.location-badge:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.location-in_iran {
    background: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.location-out_of_iran {
    background: rgba(255, 152, 0, 0.2);
    color: #FF9800;
    border: 1px solid rgba(255, 152, 0, 0.3);
}

.phone-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.phone-number {
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: var(--text-main);
}

.verified {
    color: #4CAF50;
    font-size: 14px;
}

.unverified {
    color: #F44336;
    font-size: 14px;
}

.no-phone {
    color: #9E9E9E;
    font-style: italic;
    font-size: 13px;
}

.join-date {
    font-size: 13px;
    color: var(--text-secondary);
}

.status-badges {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.active {
    background: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
}

.status-badge.banned {
    background: rgba(244, 67, 54, 0.2);
    color: #F44336;
}

.status-badge.muted {
    background: rgba(255, 152, 0, 0.2);
    color: #FF9800;
}

.actions-dropdown {
    position: relative;
    display: inline-block;
}

.actions-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 16px;
}

.actions-btn:hover {
    background: #ffffff;
    color: #000000;
    border-color: #ffffff;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.actions-btn:active {
    transform: scale(0.95);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.05);
    min-width: 350px;
    z-index: 1000;
    display: none;
    margin-top: 12px;
    opacity: 0;
    transform: translateY(-15px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    max-height: 600px;
    overflow-y: auto;
    backdrop-filter: blur(10px);
    animation: dropdownSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Custom scrollbar for dropdown */
.dropdown-menu::-webkit-scrollbar {
    width: 6px;
}

.dropdown-menu::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.dropdown-menu::-webkit-scrollbar-thumb {
    background: rgba(156, 39, 176, 0.3);
    border-radius: 3px;
}

.dropdown-menu::-webkit-scrollbar-thumb:hover {
    background: rgba(156, 39, 176, 0.5);
}

.dropdown-menu.show {
    display: block;
    opacity: 1;
    transform: translateY(0) scale(1);
}

.dropdown-menu.closing {
    animation: dropdownSlideOut 0.3s cubic-bezier(0.4, 0, 1, 1) forwards;
}

@keyframes dropdownSlideOut {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }
}

@keyframes dropdownSlideIn {
    0% {
        opacity: 0;
        transform: translateY(-20px) scale(0.9);
    }
    50% {
        opacity: 0.8;
        transform: translateY(-5px) scale(0.98);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.dropdown-section {
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.2);
    margin: 8px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dropdown-section:last-child {
    border-bottom: none;
    border-radius: 12px;
    margin-bottom: 8px;
}

.dropdown-section:first-child {
    border-radius: 12px;
    margin-top: 8px;
}

.dropdown-section:only-child {
    border-radius: 12px;
    margin: 8px;
}

.dropdown-section.danger {
    background: linear-gradient(135deg, rgba(244, 67, 54, 0.15), rgba(244, 67, 54, 0.08));
    border-left: 4px solid #F44336;
    border-color: rgba(244, 67, 54, 0.3);
}

.dropdown-section:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.dropdown-section h4 {
    margin: 0 0 18px 0;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.dropdown-section h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background: #ffffff;
    border-radius: 1px;
}

.dropdown-form {
    margin: 0;
}

.dropdown-form select {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.3);
    color: var(--text-main);
    font-size: 14px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.dropdown-form select:hover {
    border-color: rgba(156, 39, 176, 0.4);
    background: rgba(0, 0, 0, 0.4);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.dropdown-form select:focus {
    outline: none;
    border-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(156, 39, 176, 0.2);
    background: rgba(0, 0, 0, 0.4);
    transform: translateY(-1px);
}

.dropdown-form .btn {
    width: 100%;
    margin-bottom: 10px;
    padding: 14px 18px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dropdown-form .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;
}

.dropdown-form .btn:hover::before {
    left: 100%;
}

.dropdown-form .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.self-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #9E9E9E;
    font-style: italic;
    font-size: 13px;
    padding: 6px 12px;
    background: rgba(158, 158, 158, 0.1);
    border-radius: 20px;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.empty-state i {
    font-size: 4rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state h3 {
    margin: 0 0 10px 0;
    color: var(--text-main);
    font-size: 1.5rem;
}

.empty-state p {
    margin: 0;
    font-size: 1rem;
}

tr.banned {
    background: rgba(244, 67, 54, 0.05) !important;
    border-left: 4px solid #F44336;
}

tr.muted {
    background: rgba(255, 152, 0, 0.05) !important;
    border-left: 4px solid #FF9800;
}

/* Download Pages Styles */
.download-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.download-header h1 {
    color: var(--accent-purple);
    margin-bottom: 10px;
    font-size: 2.5rem;
}

.download-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.admin-actions {
    margin-bottom: 30px;
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    background: linear-gradient(135deg, var(--accent-purple), #8E24AA);
}

.stat-content {
    flex: 1;
}

.stat-number {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

.downloads-section, .files-section {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 20px;
}

.section-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-header);
    border-radius: 8px 8px 0 0;
}

.section-header h2 {
    margin: 0;
    color: var(--text-main);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.downloads-list, .files-list {
    padding: 20px;
}

.download-item, .file-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    background: var(--bg-main);
    transition: all 0.3s ease;
}

.download-item:hover, .file-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: var(--accent-purple);
}

.file-item.inactive {
    opacity: 0.6;
    border-color: #666;
}

.download-icon, .file-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--accent-purple);
    background: rgba(156, 39, 176, 0.1);
    flex-shrink: 0;
}

.download-info, .file-info {
    flex: 1;
    min-width: 0;
}

.download-info h3, .file-info h3 {
    margin: 0 0 8px 0;
    color: var(--text-main);
    font-size: 1.3rem;
    font-weight: 600;
}

.download-description, .file-description {
    color: var(--text-secondary);
    margin: 0 0 10px 0;
    line-height: 1.5;
}

.download-meta, .file-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 13px;
    color: var(--text-secondary);
}

.download-meta span, .file-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.file-size {
    color: var(--accent-cyan);
    font-weight: 500;
}

.file-type {
    color: var(--accent-purple);
    font-weight: 500;
}

.download-count {
    color: var(--text-main);
}

.upload-date {
    color: var(--text-secondary);
}

.uploaded-by {
    color: var(--text-secondary);
}

.download-actions, .file-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
}

.btn-sm {
    padding: 6px 10px;
    font-size: 12px;
}

.btn-primary {
    background: var(--accent-purple);
    color: white;
}

.btn-primary:hover {
    background: #8E24AA;
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--accent-cyan);
    color: white;
}

.btn-secondary:hover {
    background: #008C9E;
    transform: translateY(-1px);
}

.btn-success {
    background: #4CAF50;
    color: white;
}

.btn-success:hover {
    background: #45a049;
    transform: translateY(-1px);
}

.btn-warning {
    background: #FF9800;
    color: white;
}

.btn-warning:hover {
    background: #F57C00;
    transform: translateY(-1px);
}

.btn-danger {
    background: var(--accent-red);
    color: white;
}

.btn-danger:hover {
    background: #B71C1C;
    transform: translateY(-1px);
}

.status-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.active {
    background: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
}

.status-badge.inactive {
    background: rgba(158, 158, 158, 0.2);
    color: #9E9E9E;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.empty-state i {
    font-size: 4rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state h3 {
    margin: 0 0 10px 0;
    color: var(--text-main);
    font-size: 1.5rem;
}

.empty-state p {
    margin: 0;
    font-size: 1rem;
}

/* Upload Form Styles */
.upload-section {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 30px;
}

.section-content {
    padding: 30px;
}

.upload-form {
    max-width: 600px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-main);
}

.form-group input[type="text"],
.form-group textarea {
    width: 100%;
    padding: 12px;
    background-color: #000000;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    box-sizing: border-box;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.file-input-wrapper {
    position: relative;
}

.file-input {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.file-input-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    background: var(--bg-main);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.file-input-label:hover {
    border-color: var(--accent-purple);
    background: rgba(156, 39, 176, 0.05);
}

.file-input-label i {
    font-size: 2rem;
    color: var(--accent-purple);
    margin-bottom: 10px;
}

.file-input-label span {
    color: var(--text-secondary);
    font-size: 14px;
}

.form-group small {
    display: block;
    margin-top: 5px;
    color: var(--text-secondary);
    font-size: 12px;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .stat-card {
        padding: 15px;
        flex-direction: column;
        text-align: center;
    }
    
    .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .stat-number {
        font-size: 24px;
    }
    
    .card-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .user-info {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    .dropdown-menu {
        min-width: 250px;
        right: -50px;
    }
    
    .table-responsive {
        overflow-x: auto;
    }
    
    .download-item, .file-item {
        flex-direction: column;
        text-align: center;
    }
    
    .download-actions, .file-actions {
        justify-content: center;
    }
    
    .download-meta, .file-meta {
        justify-content: center;
    }
    
    .form-actions {
        flex-direction: column;
    }
}
/* Topic Delete Button */
.topic-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
}

.delete-topic-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    color: #ef4444;
    text-decoration: none;
    transition: all 0.3s ease;
}

.delete-topic-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: #ef4444;
    transform: scale(1.05);
}

.delete-topic-btn i {
    font-size: 14px;
}

/* General Posts Widget */
.general-posts-widget {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 20px;
    margin-bottom: 25px;
}

.general-posts-widget .widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.general-posts-widget .widget-header h2 {
    font-size: 20px;
    color: var(--text-primary);
    margin: 0;
}

.general-posts-widget .widget-header i {
    margin-right: 10px;
    color: #ffffff;
}

.view-all-btn {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.view-all-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #ffffff;
    transform: translateY(-2px);
}

.posts-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.post-item {
    display: flex;
    gap: 12px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.post-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateX(3px);
}

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

.post-content-area {
    flex: 1;
    min-width: 0;
}

.post-header-info {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 13px;
    flex-wrap: wrap;
}

.post-author {
    font-weight: 600;
}

.post-separator {
    color: rgba(255, 255, 255, 0.3);
}

.post-time {
    color: var(--text-secondary);
}

.post-topic-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-topic-link:hover {
    color: #ffffff;
}

.post-excerpt {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

/* Mini ChatBox in Sidebar */
.chatbox-sidebar-widget .widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbox-expand-btn {
    color: var(--text-secondary);
    font-size: 12px;
    transition: all 0.3s ease;
}

.chatbox-expand-btn:hover {
    color: #ffffff;
    transform: scale(1.1);
}

.chatbox-mini-messages {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 15px 0;
    max-height: 250px;
    overflow-y: auto;
}

.mini-shout {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    font-size: 13px;
}

.mini-shout-user {
    font-weight: 600;
    font-size: 12px;
}

.mini-shout-text {
    color: var(--text-secondary);
    line-height: 1.4;
}

.chatbox-full-link {
    display: block;
    text-align: center;
    padding: 12px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.chatbox-full-link:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #ffffff;
    transform: translateY(-2px);
}

.chatbox-full-link i {
    margin-right: 8px;
}

/* Image Preview in Posts */
.attachment-image-preview {
    margin-top: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
}

.preview-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    display: block;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.preview-image:hover {
    opacity: 0.85;
}

.image-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.03);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.image-filename {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.download-btn {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.download-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #ffffff;
    transform: translateY(-2px);
}

/* Shout Message Edit/Delete Buttons */
.shout-user-actions {
    display: inline-flex;
    gap: 8px;
    margin-left: 10px;
}

.shout-edit-btn, .shout-delete-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 11px;
    cursor: pointer;
    padding: 3px 6px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.shout-edit-btn:hover {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

.shout-delete-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

.shout-edited-indicator {
    font-size: 11px;
    color: var(--text-secondary);
    font-style: italic;
    margin-left: 6px;
}

/* Chat Boxes Styles */
.chat-boxes-container {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.chat-boxes-header {
    text-align: center;
    margin-bottom: 25px;
}

.chat-boxes-header h2 {
    font-size: 24px;
    color: #ffffff;
    margin-bottom: 8px;
}

.chat-boxes-header h2 i {
    margin-right: 10px;
}

.chat-boxes-header p {
    color: var(--text-secondary);
    font-size: 14px;
}

.chat-boxes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media (max-width: 1024px) {
    .chat-boxes-grid {
        grid-template-columns: 1fr;
    }
}

.chat-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    min-height: 200px;
}

.chat-box:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.chat-box[data-category="crack"] .chat-box-header {
    background: rgba(255, 255, 255, 0.03);
}

.chat-box[data-category="codes"] .chat-box-header {
    background: rgba(255, 255, 255, 0.03);
}

.chat-box[data-category="announce"] .chat-box-header {
    background: rgba(255, 255, 255, 0.03);
}

.chat-box-header {
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-box-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #ffffff;
}

.chat-box[data-category="crack"] .chat-box-icon {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.chat-box[data-category="codes"] .chat-box-icon {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.chat-box[data-category="announce"] .chat-box-icon {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.chat-box-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.chat-box-content {
    padding: 15px;
    min-height: 80px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.chat-latest {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.chat-title {
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.chat-title:hover {
    color: #cccccc;
}

.chat-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-secondary);
    flex-wrap: wrap;
}

.chat-author {
    font-weight: 500;
}

.chat-separator {
    color: rgba(255, 255, 255, 0.2);
}

.chat-replies i {
    font-size: 10px;
}

.chat-empty {
    text-align: center;
    padding: 20px;
    color: var(--text-secondary);
}

.chat-empty i {
    font-size: 32px;
    margin-bottom: 10px;
    opacity: 0.3;
}

.chat-empty p {
    font-size: 13px;
    margin: 0;
}

.chat-box-footer {
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: auto;
    flex-shrink: 0;
}

.chat-box-footer .view-all-btn,
.chat-box-footer .create-post-btn {
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.chat-box-footer .view-all-btn {
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.05);
}

.chat-box-footer .view-all-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.chat-box-footer .create-post-btn {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.chat-box-footer .create-post-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #ffffff;
}

.chat-box-footer .create-post-btn i {
    font-size: 10px;
}

/* Modern Enhancements */
body {
    background: #000000;
    background-image: none;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Container improvements */
.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 25px;
}

/* Main content area */
.main-content {
    flex: 1;
}

/* Sidebar improvements */
.sidebar {
    width: 340px;
    position: sticky;
    top: 20px;
    height: fit-content;
}

/* Widget enhancements */
.widget {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.widget:hover {
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.widget-header {
    background: rgba(255, 255, 255, 0.03);
    padding: 18px 20px;
    font-weight: 600;
    font-size: 15px;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    gap: 10px;
}

.widget-header i {
    color: #ffffff;
}

.widget-content {
    padding: 20px;
}

/* Forum category enhancements */
.forum-category {
    background: rgba(10, 10, 10, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.forum-category:hover {
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.category-header {
    background: rgba(255, 255, 255, 0.03);
    padding: 20px 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.category-header a {
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
}

.category-header a:hover {
    color: #E53935;
    transform: translateX(5px);
}

.category-header i {
    color: #E53935;
    font-size: 20px;
}

/* Forum rows */
.forum-row {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    gap: 20px;
    align-items: center;
    padding: 18px 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.forum-row:last-child {
    border-bottom: none;
}

.forum-row:hover {
    background: rgba(255, 255, 255, 0.03);
}

.forum-icon {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #E53935;
}

.forum-title a {
    font-size: 15px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.3s ease;
}

.forum-title a:hover {
    color: #E53935;
}

.forum-title span {
    display: block;
    margin-top: 5px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

.forum-stats {
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
}

.forum-stats strong {
    display: block;
    font-size: 18px;
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 3px;
}

.forum-last-post {
    text-align: right;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    min-width: 150px;
}

.forum-last-post a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.forum-last-post a:hover {
    color: #ffffff;
}

/* Navigation improvements */
.nav-left a, .nav-right > a {
    padding: 8px 14px;
    border-radius: 8px;
    transition: all 0.3s ease;
    border-bottom: none;
}

.nav-left a:hover, .nav-right > a:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-1px);
}

.nav-left a.active {
    background: #ffffff;
    color: #000000;
    box-shadow: 0 2px 10px rgba(255, 255, 255, 0.2);
    border-bottom: 2px solid #ffffff;
}

/* Smooth animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.forum-category, .widget {
    animation: fadeInUp 0.5s ease;
}

/* Loading states */
button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Better scrollbar for Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) rgba(255, 255, 255, 0.05);
}

/* Responsive improvements */
@media (max-width: 1200px) {
    .container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        position: relative;
        top: 0;
    }
}

@media (max-width: 768px) {
    .forum-row {
        grid-template-columns: auto 1fr;
        gap: 15px;
    }
    
    .forum-stats, .forum-last-post {
        display: none;
    }
    
    .chat-boxes-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Create First Post Button */
.create-first-post-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
    padding: 14px 28px;
    background: #ffffff;
    color: #000000;
    text-decoration: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.create-first-post-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;
}

.create-first-post-btn:hover::before {
    left: 100%;
}

.create-first-post-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.2) inset;
    background: #ffffff;
}

.create-first-post-btn:active {
    transform: translateY(-1px) scale(1);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.create-first-post-btn i {
    font-size: 18px;
    position: relative;
    z-index: 1;
}

.chat-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Fix profile dropdown z-index */
.user-menu {
    position: relative;
    z-index: 1000;
}

.dropdown {
    position: absolute;
    z-index: 1001 !important;
}

.dropdown-content {
    z-index: 1002 !important;
}

/* Ensure chatbox and sidebar don't overlap dropdowns */
.chatbox-sidebar-widget {
    z-index: 1;
}

.sidebar {
    z-index: 1;
}

/* Navigation should be higher than content */
.top-nav {
    position: relative;
    z-index: 100;
}

/* Modals should be highest */
.modal {
    z-index: 9999 !important;
}

/* ============================================
   GENERAL PUBLIC DISCUSSION CATEGORY
   ============================================ */
.general-category {
    background: rgba(10, 10, 10, 0.95);
    border-radius: 16px;
    padding: 0;
    margin: 30px 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.general-category:hover {
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 28px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 2px solid rgba(255, 255, 255, 0.08);
}

.category-title-wrapper {
    display: flex;
    align-items: center;
    gap: 18px;
}

.category-title-wrapper > i {
    font-size: 32px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    border: 2px solid rgba(255, 255, 255, 0.15);
}

.category-info h2 {
    margin: 0 0 6px 0;
    color: #ffffff;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.category-desc {
    margin: 0;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.create-topic-btn {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.create-topic-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
}

.forum-list {
    padding: 0;
}

.forum-row {
    display: grid;
    grid-template-columns: 60px 1fr 120px 180px;
    gap: 16px;
    align-items: center;
    padding: 20px 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.2s ease;
}

.forum-row:hover {
    background: rgba(255, 255, 255, 0.04);
}

.forum-row:last-child {
    border-bottom: none;
}

.forum-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.15);
}

.forum-icon i {
    font-size: 22px;
    color: #ffffff;
}

.forum-title {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.forum-title > a {
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.forum-title > a:hover {
    color: #ffffff;
}

.forum-title > span {
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
}

.forum-title > span a {
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s ease;
}

.forum-title > span a:hover {
    opacity: 0.8;
}

.forum-stats {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    text-align: center;
}

.forum-stats strong {
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
}

.forum-last-post {
    text-align: right;
    font-size: 13px;
}

.forum-last-post > a {
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.2s ease;
}

.forum-last-post > a:hover {
    opacity: 0.8;
}

.forum-last-post > span {
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
}

.no-topics {
    text-align: center;
    padding: 60px 28px;
}

.no-topics i {
    font-size: 64px;
    color: rgba(255, 255, 255, 0.2);
    margin-bottom: 16px;
}

.no-topics p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 16px;
    margin-bottom: 24px;
}

.start-discussion-btn {
    background: #ffffff;
    color: #000000;
    padding: 14px 32px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(255, 255, 255, 0.2);
}

.start-discussion-btn:hover {
    background: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(255, 255, 255, 0.3);
}

.login-prompt {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.login-prompt a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.login-prompt a:hover {
    color: #cccccc;
}

/* Responsive Design */
@media (max-width: 968px) {
    .forum-row {
        grid-template-columns: 50px 1fr 100px;
        gap: 12px;
    }
    
    .forum-last-post {
        display: none;
    }
    
    .category-header {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
    
    .create-topic-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .forum-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .forum-icon {
        display: none;
    }
    
    .forum-stats {
        text-align: left;
    }
}

/* ============================================
   PUBLIC DISCUSSION CTA BANNER
   ============================================ */
.public-discussion-banner {
    background: rgba(20, 20, 20, 0.95);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 0;
    margin-bottom: 32px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    backdrop-filter: blur(10px);
    animation: bannerPulse 3s ease-in-out infinite;
}

@keyframes bannerPulse {
    0%, 100% {
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    }
    50% {
        box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4);
    }
}

.public-discussion-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.1), 
        transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.banner-content {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 28px 32px;
    position: relative;
    z-index: 1;
}

.banner-icon {
    width: 72px;
    height: 72px;
    background: #333333;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
    border: 3px solid rgba(255, 255, 255, 0.2);
    animation: iconFloat 3s ease-in-out infinite;
}

@keyframes iconFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
}

.banner-icon i {
    font-size: 36px;
    color: #ffffff;
}

.banner-text {
    flex: 1;
}

.banner-text h2 {
    margin: 0 0 8px 0;
    color: #ffffff;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.banner-text p {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    font-weight: 500;
}

.banner-cta-btn {
    background: #ffffff;
    color: #000000;
    padding: 16px 32px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.2);
    white-space: nowrap;
}

.banner-cta-btn:hover {
    background: #cccccc;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

.banner-cta-btn.banner-login {
    background: #ffffff;
    color: #000000;
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.2);
}

.banner-cta-btn.banner-login:hover {
    background: #cccccc;
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
}

.banner-view-all {
    display: block;
    text-align: center;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.banner-view-all:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.banner-view-all i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.banner-view-all:hover i {
    transform: translateX(5px);
}

/* Responsive */
@media (max-width: 968px) {
    .banner-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .banner-text h2 {
        font-size: 24px;
    }
    
    .banner-text p {
        font-size: 14px;
    }
    
    .banner-cta-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .banner-icon {
        width: 60px;
        height: 60px;
    }
    
    .banner-icon i {
        font-size: 28px;
    }
    
    .banner-text h2 {
        font-size: 20px;
    }
    
    .banner-content {
        padding: 20px;
    }
}
