/* ==================== PORTAL CSS - RIPTIDE THEME ==================== */
/* Community Portal - Matching index.html styling */

/* Base Reset & Variables */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Matching index.html colors */
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-tertiary: #1a1a26;
    --bg-glass: rgba(18, 18, 26, 0.8);
    --purple-primary: #8b5cf6;
    --purple-secondary: #a855f7;
    --pink-primary: #ec4899;
    --pink-secondary: #f472b6;
    --gradient-main: linear-gradient(135deg, #8b5cf6 0%, #ec4899 50%, #f472b6 100%);
    --gradient-hover: linear-gradient(135deg, #7c3aed 0%, #db2777 50%, #ec4899 100%);
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --border-color: rgba(139, 92, 246, 0.2);
    --shadow-glow: 0 0 30px rgba(139, 92, 246, 0.3);
    --shadow-pink: 0 0 30px rgba(236, 72, 153, 0.3);
    --border-radius: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* Portal-specific variables (keeping compatibility) */
    --primary: #8b5cf6;
    --primary-light: #a78bfa;
    --primary-dark: #7c3aed;
    --secondary: #6366f1;
    --accent: #ec4899;
    --success: #22c55e;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #06b6d4;

    /* Dark Theme */
    --dark-bg: #0a0a0f;
    --card-bg: #12121a;
    --card-bg-hover: #1a1a26;
    --card-bg-alt: #0d0d14;

    /* Text Colors */
    --light-text: #ffffff;
    --muted-text: #a1a1aa;
    --subtle-text: #71717a;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.5);

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s ease;
    --transition-slow: 0.4s ease;

    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
}

/* Body - Matching index.html */
body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    font-size: 14px;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Animated Background - Matching index.html */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: var(--bg-primary);
}

.animated-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 20%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(236, 72, 153, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 60%, rgba(168, 85, 247, 0.05) 0%, transparent 50%);
    animation: backgroundFloat 20s ease-in-out infinite;
}

@keyframes backgroundFloat {
    0%, 100% { opacity: 1; transform: scale(1) rotate(0deg); }
    50% { opacity: 0.8; transform: scale(1.1) rotate(180deg); }
}

a {
    color: var(--primary-light);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary);
}

/* ==================== HEADER - Matching index.html ==================== */
.portal-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.header-top {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.portal-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.portal-logo img {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    box-shadow: var(--shadow-glow);
}

.portal-logo span {
    font-size: 1.8rem;
    font-weight: 800;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 2px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-link-home {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link-home:hover {
    color: var(--text-primary);
    background: rgba(139, 92, 246, 0.1);
}

.social-links {
    display: flex;
    gap: 8px;
    margin-right: 16px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(139, 92, 246, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(139, 92, 246, 0.2);
    color: var(--primary-light);
    font-size: 16px;
    transition: all var(--transition-normal);
}

.social-link:hover {
    background: rgba(139, 92, 246, 0.25);
    border-color: var(--primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.35);
}

.header-btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-btn-login {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.header-btn-login:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
    box-shadow: var(--shadow-glow);
}

.header-btn-register {
    background: var(--gradient-main);
    color: white;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

.header-btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.6);
}

/* Notification Bell */
.notification-bell {
    position: relative;
    padding: 8px 12px;
    cursor: pointer;
    color: var(--muted-text);
    transition: color var(--transition-fast);
    font-size: 1.125rem;
}

.notification-bell:hover {
    color: var(--light-text);
}

.notification-badge {
    position: absolute;
    top: 2px;
    right: 4px;
    background: var(--danger);
    color: white;
    font-size: 0.6875rem;
    font-weight: 600;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

.notifications-panel {
    position: absolute;
    top: 100%;
    right: 60px;
    width: 360px;
    max-height: 480px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    overflow: hidden;
}

.notifications-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--darker-bg);
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
    color: var(--light-text);
}

.mark-all-read-btn {
    background: transparent;
    border: none;
    color: var(--accent);
    font-size: 0.75rem;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    transition: background var(--transition-fast);
}

.mark-all-read-btn:hover {
    background: rgba(99, 102, 241, 0.1);
}

.notifications-list {
    max-height: 400px;
    overflow-y: auto;
}

.notifications-empty {
    padding: 32px 16px;
    text-align: center;
    color: var(--muted-text);
    font-size: 0.875rem;
}

.notification-item {
    display: flex;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background var(--transition-fast);
}

.notification-item:hover {
    background: var(--hover-bg);
}

.notification-item.unread {
    background: rgba(99, 102, 241, 0.05);
}

.notification-item.unread::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--accent);
}

.notification-item {
    position: relative;
}

.notification-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.notification-icon.mention {
    background: var(--accent);
}

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

.notification-message {
    font-size: 0.875rem;
    color: var(--light-text);
    line-height: 1.4;
    margin-bottom: 4px;
}

.notification-time {
    font-size: 0.75rem;
    color: var(--muted-text);
}

/* User Dropdown */
.user-dropdown {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px;
    border-radius: var(--radius-md);
    cursor: pointer;
    color: var(--light-text);
    transition: background var(--transition-fast);
    position: relative;
}

.user-dropdown:hover {
    background: rgba(255, 255, 255, 0.05);
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    color: white;
    overflow: hidden;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    min-width: 200px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--transition-fast);
    z-index: 1001;
}

.user-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: var(--muted-text);
    font-size: 0.875rem;
    transition: all var(--transition-fast);
    cursor: pointer;
}

.dropdown-item:first-child {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.dropdown-item:last-child {
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--light-text);
}

.dropdown-item i {
    width: 16px;
    text-align: center;
}

.dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 4px 0;
}

/* ==================== NAVIGATION ==================== */
.nav-bar {
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow-x: auto;
}

.nav-tabs {
    display: flex;
    gap: 8px;
}

.nav-tab {
    padding: 10px 18px;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 8px;
    border: 1px solid transparent;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.nav-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-main);
    transition: var(--transition);
    z-index: -1;
}

.nav-tab:hover {
    color: var(--text-primary);
    transform: translateY(-2px);
}

.nav-tab:hover::before {
    left: 0;
}

.nav-tab.active {
    color: white;
    background: var(--gradient-main);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

.nav-tab.active::before {
    display: none;
}

.nav-tab i {
    font-size: 0.9rem;
}

.nav-badge {
    background: var(--danger);
    color: white;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 100px;
    min-width: 18px;
    text-align: center;
}

/* ==================== PORTAL BANNER ==================== */
.portal-banner {
    display: none;
    position: relative;
    overflow: hidden;
    background: var(--bg-secondary);
    margin-top: 130px; /* Account for fixed header */
}

.portal-banner.active {
    display: block;
}

.banner-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    transition: transform 0.5s ease;
}

.portal-banner:hover .banner-bg {
    transform: scale(1.02);
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(236, 72, 153, 0.1) 0%, transparent 50%);
}

.banner-content {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 80px 24px;
    text-align: center;
    z-index: 1;
}

.banner-title {
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.banner-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

@media (max-width: 768px) {
    .banner-content {
        padding: 40px 20px;
    }

    .banner-title {
        font-size: 1.75rem;
    }

    .banner-subtitle {
        font-size: 1rem;
    }
}

/* ==================== MAIN CONTAINER ==================== */
.main-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px 20px;
    padding-top: 180px; /* Account for fixed header + nav */
    min-height: 100vh;
}

/* ==================== PAGE VIEWS ==================== */
.page-view {
    display: none;
    animation: fadeIn 0.3s ease;
}

.page-view.active {
    display: block;
}

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

/* ==================== CARDS ==================== */
.content-card {
    background: var(--bg-secondary);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.content-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

.card-header {
    padding: 20px 24px;
    background: rgba(139, 92, 246, 0.05);
    border-bottom: 1px solid rgba(139, 92, 246, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-header h2 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--light-text);
    display: flex;
    align-items: center;
    gap: 12px;
}

.card-header h2 i {
    color: var(--primary-light);
    text-shadow: 0 0 15px rgba(139, 92, 246, 0.5);
}

.card-body {
    padding: 24px;
}

/* ==================== PAGE TITLE ==================== */
.page-title {
    text-align: center;
    margin-bottom: 3rem;
}

.page-title h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.page-title p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ==================== BREADCRUMBS ==================== */
.breadcrumbs {
    padding: 12px 0;
    margin-bottom: 16px;
    font-size: 0.875rem;
}

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

.breadcrumbs a:hover {
    color: var(--primary-light);
}

.breadcrumbs span {
    color: var(--subtle-text);
    margin: 0 8px;
}

.breadcrumbs .current {
    color: var(--light-text);
}

/* ==================== FORUM - CATEGORIES ==================== */
.node-list {
    display: flex;
    flex-direction: column;
}

.node-category {
    margin-bottom: 20px;
}

.node-item {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    transition: all var(--transition-fast);
    cursor: pointer;
}

.node-item:last-child {
    border-bottom: none;
}

.node-item:hover {
    background: rgba(255, 255, 255, 0.02);
}

.node-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    margin-right: 16px;
    flex-shrink: 0;
}

.node-main {
    flex: 1;
    min-width: 0;
}

.node-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--light-text);
    margin-bottom: 4px;
    transition: color var(--transition-fast);
}

.node-item:hover .node-title {
    color: var(--primary-light);
}

.node-description {
    font-size: 0.8125rem;
    color: var(--muted-text);
}

.node-stats {
    display: flex;
    gap: 30px;
    text-align: right;
    color: var(--muted-text);
    font-size: 0.8125rem;
}

.node-stat-value {
    font-weight: 600;
    color: var(--light-text);
    display: block;
}

/* ==================== FORUM - THREADS ==================== */
.thread-row {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border-color);
    transition: all var(--transition-fast);
}

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

.thread-row:hover {
    background: rgba(255, 255, 255, 0.02);
}

.thread-row.thread-pinned {
    background: rgba(251, 191, 36, 0.03);
    border-left: 3px solid var(--accent);
}

.thread-row.thread-pinned:hover {
    background: rgba(251, 191, 36, 0.06);
}

.thread-row.thread-announcement {
    background: linear-gradient(135deg, rgba(225, 29, 72, 0.08) 0%, rgba(251, 113, 133, 0.04) 100%);
    border-left: 3px solid var(--primary);
}

.thread-row.thread-announcement:hover {
    background: linear-gradient(135deg, rgba(225, 29, 72, 0.12) 0%, rgba(251, 113, 133, 0.06) 100%);
}

.thread-pin-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 8px;
    vertical-align: middle;
}

.thread-pin-badge.pinned {
    background: rgba(251, 191, 36, 0.15);
    color: var(--accent);
}

.thread-pin-badge.announcement {
    background: rgba(225, 29, 72, 0.15);
    color: var(--primary-light);
}

.thread-pin-badge i {
    font-size: 0.65rem;
}

.thread-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 14px;
    margin-right: 14px;
    flex-shrink: 0;
    cursor: pointer;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    overflow: hidden;
}

.thread-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 12px rgba(225, 29, 72, 0.3);
}

.thread-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thread-main {
    flex: 1;
    min-width: 0;
}

.thread-title-link {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--light-text);
    display: block;
    margin-bottom: 4px;
    cursor: pointer;
    transition: color var(--transition-fast);
}

.thread-title-link:hover {
    color: var(--primary-light);
}

.thread-meta {
    font-size: 0.75rem;
    color: var(--muted-text);
}

.thread-meta a {
    color: var(--primary);
    font-weight: 500;
}

.thread-meta a:hover {
    color: var(--primary-light);
    text-decoration: underline;
}

.thread-stats {
    display: flex;
    gap: 24px;
    text-align: center;
    font-size: 0.75rem;
    color: var(--muted-text);
    margin: 0 24px;
}

.thread-stats strong {
    display: block;
    font-size: 0.9375rem;
    color: var(--light-text);
    font-weight: 600;
}

.thread-latest {
    text-align: right;
    font-size: 0.75rem;
    color: var(--muted-text);
    min-width: 140px;
}

.thread-latest a {
    color: var(--light-text);
    font-weight: 500;
}

/* ==================== FORUM - POSTS ==================== */
.message {
    display: flex;
    border-bottom: 1px solid var(--border-color);
}

.message:last-child {
    border-bottom: none;
}

.message-user {
    width: 160px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.01);
    border-right: 1px solid var(--border-color);
    text-align: center;
    flex-shrink: 0;
}

.message-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 28px;
    margin: 0 auto 12px;
    cursor: pointer;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    overflow: hidden;
}

.message-avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(225, 29, 72, 0.3);
}

.message-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.message-username {
    font-weight: 600;
    color: var(--light-text);
    font-size: 0.9375rem;
    margin-bottom: 4px;
    cursor: pointer;
}

.message-username:hover {
    color: var(--primary-light);
}

.message-role {
    display: inline-block;
    background: var(--success);
    color: white;
    padding: 2px 10px;
    border-radius: 100px;
    font-size: 0.6875rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.message-role.admin { background: var(--danger); }
.message-role.moderator { background: var(--warning); }
.message-role.vip { background: var(--info); }

.message-stats {
    font-size: 0.75rem;
    color: var(--subtle-text);
}

.message-content {
    flex: 1;
    padding: 20px;
    min-width: 0;
}

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

.message-date {
    font-size: 0.75rem;
    color: var(--subtle-text);
}

.message-body {
    color: var(--muted-text);
    font-size: 0.9375rem;
    line-height: 1.7;
}

.message-body p {
    margin-bottom: 12px;
}

.message-body p:last-child {
    margin-bottom: 0;
}

.message-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

.like-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--muted-text);
    font-size: 0.8125rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.like-btn:hover {
    border-color: var(--danger);
    color: var(--danger);
}

.like-btn.liked {
    background: rgba(239, 68, 68, 0.1);
    border-color: var(--danger);
    color: var(--danger);
}

.like-btn i {
    font-size: 0.875rem;
}

/* Reaction System */
.reactions-display {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.reaction-count {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    color: var(--muted-text);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.reaction-count:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--light-text);
}

.reaction-count.active {
    background: rgba(225, 29, 72, 0.15);
    color: var(--primary-light);
}

.reaction-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--muted-text);
    font-size: 0.8125rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.reaction-btn:hover {
    border-color: var(--primary);
    color: var(--primary-light);
}

.reaction-btn.add-reaction {
    padding: 4px 8px;
    font-size: 0.75rem;
    border: none;
    background: transparent;
}

.reaction-btn.add-reaction:hover {
    background: rgba(255, 255, 255, 0.05);
}

.reaction-picker {
    display: flex;
    gap: 4px;
    padding: 8px 12px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    animation: fadeInUp 0.15s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reaction-option {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.reaction-option:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.2);
}

.reaction-emoji {
    font-size: 1.25rem;
}

.quote-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--muted-text);
    font-size: 0.8125rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.quote-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.quote-btn i {
    font-size: 0.75rem;
}

/* Reply Actions */
.reply-actions {
    display: flex;
    gap: 4px;
    margin-left: auto;
}

.reply-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--muted-text);
    font-size: 0.75rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.reply-action-btn:hover {
    background: var(--hover-bg);
    border-color: var(--accent);
    color: var(--accent);
}

.reply-action-btn.reply-delete-btn:hover {
    border-color: var(--danger);
    color: var(--danger);
    background: rgba(239, 68, 68, 0.1);
}

.reply-edited-info {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    padding-top: 8px;
    font-size: 0.75rem;
    color: var(--subtle-text);
    font-style: italic;
}

.reply-edited-info i {
    font-size: 0.6875rem;
}

.edited-by-link {
    color: var(--accent);
    cursor: pointer;
    transition: color var(--transition-fast);
}

.edited-by-link:hover {
    color: var(--primary);
    text-decoration: underline;
}

.reply-edited-info:hover {
    color: var(--muted-text);
}

/* Edit History */
.edit-history-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.edit-history-item {
    padding: 16px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.edit-history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

.edit-history-date {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--light-text);
}

.edit-history-editor {
    font-size: 0.75rem;
    color: var(--muted-text);
}

.edit-history-title {
    font-size: 0.8125rem;
    color: var(--accent);
    margin-bottom: 8px;
}

.edit-history-content {
    font-size: 0.8125rem;
    color: var(--muted-text);
    padding: 12px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-sm);
    white-space: pre-wrap;
    word-break: break-word;
    max-height: 200px;
    overflow-y: auto;
}

.edit-history-reason {
    margin-top: 8px;
    font-size: 0.75rem;
    color: var(--info);
    font-style: italic;
}

/* Mention links */
.mention-link {
    color: var(--accent);
    font-weight: 500;
    cursor: pointer;
    transition: color var(--transition-fast);
}

.mention-link:hover {
    color: var(--primary);
    text-decoration: underline;
}

.thread-locked-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    background: rgba(234, 179, 8, 0.1);
    border: 1px solid rgba(234, 179, 8, 0.2);
    border-radius: var(--radius-md);
    color: var(--warning);
    font-size: 0.875rem;
    margin-bottom: 16px;
}

.thread-locked-notice i {
    font-size: 1rem;
}

/* BBCode Styles */
.bb-bold { font-weight: 700; }
.bb-italic { font-style: italic; }
.bb-underline { text-decoration: underline; }
.bb-strike { text-decoration: line-through; }

.bb-code {
    background: var(--card-bg-alt);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-family: 'Space Mono', monospace;
    font-size: 0.8125rem;
    overflow-x: auto;
    display: block;
    margin: 12px 0;
}

.bb-quote {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(139, 92, 246, 0.04) 100%);
    border-left: 4px solid var(--primary);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 14px 18px;
    margin: 16px 0;
    position: relative;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.bb-quote::before {
    content: '\201C';
    position: absolute;
    top: 6px;
    right: 14px;
    font-size: 3rem;
    font-family: Georgia, serif;
    color: var(--primary);
    opacity: 0.2;
    line-height: 1;
}

.bb-quote-author {
    font-style: normal;
    font-weight: 600;
    font-size: 0.8125rem;
    color: var(--primary);
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
    display: flex;
    align-items: center;
    gap: 8px;
}

.bb-quote-author i {
    font-size: 0.75rem;
    opacity: 0.8;
}

.bb-quote-content {
    color: var(--muted-text);
    font-style: italic;
    line-height: 1.6;
    padding-right: 30px;
}

/* Reply to Reply */
.reply-to-btn {
    background: transparent;
    border: none;
    color: var(--muted-text);
    cursor: pointer;
    font-size: 0.8125rem;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.reply-to-btn:hover {
    background: rgba(139, 92, 246, 0.1);
    color: var(--primary);
}

.replying-to-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8125rem;
    color: var(--primary);
    padding: 6px 10px;
    background: rgba(139, 92, 246, 0.1);
    border-left: 3px solid var(--primary);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    margin-bottom: 8px;
}

.replying-to-indicator i {
    font-size: 0.75rem;
}

.replying-to-name {
    font-weight: 600;
    color: var(--accent);
}

.replying-to-box {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: var(--primary);
    padding: 10px 14px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.12) 0%, rgba(139, 92, 246, 0.05) 100%);
    border-left: 4px solid var(--primary);
    border-radius: 0 var(--radius) var(--radius) 0;
    margin-bottom: 12px;
}

.replying-to-box i {
    font-size: 0.875rem;
}

.replying-to-box strong {
    color: var(--accent);
}

.cancel-reply-to {
    background: transparent;
    border: none;
    color: var(--muted-text);
    cursor: pointer;
    padding: 4px 8px;
    margin-left: auto;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.cancel-reply-to:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--danger);
}

.bb-spoiler {
    background: var(--dark-bg);
    color: var(--dark-bg);
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.bb-spoiler:hover,
.bb-spoiler.revealed {
    color: var(--light-text);
}

.bb-img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin: 8px 0;
    display: block;
}

.bb-youtube {
    position: relative;
    width: 100%;
    max-width: 560px;
    margin: 12px 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: #000;
}

.bb-youtube iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: var(--radius-md);
}

/* ==================== CHAT ==================== */
.chat-container {
    display: flex;
    flex-direction: column;
    height: 600px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-message {
    display: flex;
    gap: 12px;
    padding: 12px;
    border-radius: var(--radius-md);
    transition: background var(--transition-fast);
}

.chat-message:hover {
    background: rgba(255, 255, 255, 0.02);
}

.chat-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 14px;
    flex-shrink: 0;
    cursor: pointer;
    overflow: hidden;
}

.chat-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.chat-header {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 4px;
}

.chat-username {
    font-weight: 600;
    color: var(--light-text);
    font-size: 0.875rem;
    cursor: pointer;
}

.chat-username:hover {
    color: var(--primary-light);
}

.chat-time {
    font-size: 0.6875rem;
    color: var(--subtle-text);
}

.chat-text {
    color: var(--muted-text);
    font-size: 0.875rem;
    line-height: 1.5;
    word-break: break-word;
}

.chat-guest-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(255, 193, 7, 0.1);
    border-top: 1px solid rgba(255, 193, 7, 0.2);
    color: #ffc107;
    font-size: 0.875rem;
}

.chat-guest-notice a {
    color: var(--primary);
    font-weight: 600;
}

.chat-guest-notice a:hover {
    text-decoration: underline;
}

.chat-input-container {
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 12px;
}

.chat-input {
    flex: 1;
}

/* ==================== MESSAGES (DMs) ==================== */
.conversations-list {
    display: flex;
    flex-direction: column;
}

.conversation-item {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.conversation-item:last-child {
    border-bottom: none;
}

.conversation-item:hover {
    background: rgba(255, 255, 255, 0.02);
}

.conversation-item.unread {
    background: rgba(225, 29, 72, 0.05);
}

.conversation-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 16px;
    margin-right: 14px;
    flex-shrink: 0;
    overflow: hidden;
}

.conversation-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.conversation-main {
    flex: 1;
    min-width: 0;
}

.conversation-name {
    font-weight: 600;
    color: var(--light-text);
    font-size: 0.9375rem;
    margin-bottom: 4px;
}

.conversation-preview {
    font-size: 0.8125rem;
    color: var(--muted-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.conversation-meta {
    text-align: right;
    font-size: 0.75rem;
    color: var(--subtle-text);
}

.conversation-unread-badge {
    background: var(--primary);
    color: white;
    padding: 2px 8px;
    border-radius: 100px;
    font-size: 0.6875rem;
    font-weight: 600;
    margin-top: 6px;
    display: inline-block;
}

/* ==================== MEMBERS ==================== */
.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    padding: 20px;
}

.member-card {
    display: flex;
    align-items: center;
    padding: 16px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.member-card:hover {
    background: rgba(255, 255, 255, 0.04);
    transform: translateY(-2px);
}

.member-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 16px;
    margin-right: 14px;
    flex-shrink: 0;
    overflow: hidden;
}

.member-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-info {
    flex: 1;
    min-width: 0;
}

.member-name {
    font-weight: 600;
    color: var(--light-text);
    font-size: 0.9375rem;
    margin-bottom: 2px;
}

.member-role {
    font-size: 0.75rem;
    color: var(--muted-text);
}

.member-status {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--success);
    margin-left: 12px;
}

/* ==================== SUPPORT TICKETS ==================== */
.ticket-list {
    display: flex;
    flex-direction: column;
}

.ticket-item {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.ticket-item:last-child {
    border-bottom: none;
}

.ticket-item:hover {
    background: rgba(255, 255, 255, 0.02);
}

.ticket-status {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 16px;
    flex-shrink: 0;
}

.ticket-status.open { background: var(--success); }
.ticket-status.pending { background: var(--warning); }
.ticket-status.closed { background: var(--subtle-text); }

.ticket-main {
    flex: 1;
    min-width: 0;
}

.ticket-subject {
    font-weight: 600;
    color: var(--light-text);
    font-size: 0.9375rem;
    margin-bottom: 4px;
}

.ticket-meta {
    font-size: 0.75rem;
    color: var(--muted-text);
}

.ticket-badge {
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
}

.ticket-badge.open { background: rgba(34, 197, 94, 0.15); color: var(--success); }
.ticket-badge.pending { background: rgba(234, 179, 8, 0.15); color: var(--warning); }
.ticket-badge.closed { background: rgba(113, 113, 122, 0.15); color: var(--subtle-text); }

/* ==================== PROFILE ==================== */
.profile-header {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 32px;
    background: linear-gradient(135deg, rgba(225, 29, 72, 0.1) 0%, transparent 100%);
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 48px;
    flex-shrink: 0;
    cursor: pointer;
    transition: all var(--transition-normal);
    overflow: hidden;
    border: 4px solid var(--card-bg);
}

.profile-avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 32px rgba(225, 29, 72, 0.3);
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-info {
    flex: 1;
}

.profile-name {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--light-text);
    margin-bottom: 4px;
}

.profile-username {
    font-size: 1rem;
    color: var(--muted-text);
    margin-bottom: 12px;
}

.profile-role {
    display: inline-block;
    background: var(--success);
    color: white;
    padding: 4px 14px;
    border-radius: 100px;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.profile-stats {
    display: flex;
    gap: 32px;
    margin-top: 16px;
}

.profile-stat {
    text-align: center;
}

.profile-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.profile-stat-label {
    font-size: 0.75rem;
    color: var(--muted-text);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.profile-section {
    margin-bottom: 24px;
}

.profile-section h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--light-text);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.profile-section h3 i {
    color: var(--primary);
}

/* ==================== FORMS ==================== */
.form-row {
    margin-bottom: 20px;
}

.form-row label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--light-text);
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 0.9375rem;
    font-family: inherit;
    transition: var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--purple-primary);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}

.form-input::placeholder {
    color: var(--text-muted);
}

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

select.form-input {
    cursor: pointer;
}

/* ==================== BUTTONS ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 0.9375rem;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-main);
    color: white;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

.btn-primary::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: 0.5s;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.5);
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-secondary);
    box-shadow: var(--shadow-glow);
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-success:hover {
    background: #16a34a;
}

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

.btn-danger:hover {
    background: #dc2626;
}

.btn-warning {
    background: var(--warning);
    color: #000;
}

.btn-warning:hover {
    background: #ca8a04;
}

.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

.btn:disabled:hover {
    transform: none;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.8125rem;
}

.btn-block {
    width: 100%;
}

/* ==================== MODALS ==================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
    padding: 24px;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow: hidden;
    transform: scale(0.95) translateY(20px);
    transition: transform var(--transition-normal);
    display: flex;
    flex-direction: column;
}

.modal-overlay.active .modal {
    transform: scale(1) translateY(0);
}

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

.modal-header h2 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--light-text);
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-header h2 i {
    color: var(--primary);
}

.modal-close {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    background: transparent;
    border: none;
    color: var(--muted-text);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--light-text);
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.01);
}

/* Dialog choice options */
.choice-option {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 14px 18px !important;
    font-size: 0.95rem;
    transition: all var(--transition-fast);
}

.choice-option:hover {
    background: var(--primary) !important;
    color: white !important;
    transform: translateX(4px);
}

.choice-option:last-child {
    margin-bottom: 0 !important;
}

/* ==================== ALERTS ==================== */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    color: var(--success);
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: var(--danger);
}

.alert-warning {
    background: rgba(234, 179, 8, 0.1);
    border: 1px solid rgba(234, 179, 8, 0.2);
    color: var(--warning);
}

.alert-info {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: var(--info);
}

/* ==================== TOASTS ==================== */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toast {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    min-width: 300px;
    max-width: 400px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.toast.hiding {
    animation: slideOut 0.3s ease forwards;
}

@keyframes slideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

.toast-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.toast.success .toast-icon { background: var(--success); color: white; }
.toast.error .toast-icon { background: var(--danger); color: white; }
.toast.warning .toast-icon { background: var(--warning); color: white; }
.toast.info .toast-icon { background: var(--info); color: white; }

.toast-message {
    flex: 1;
    font-size: 0.875rem;
    color: var(--light-text);
}

/* Badge Award Toast */
.toast-badge {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: linear-gradient(135deg, var(--card-bg) 0%, var(--card-bg-alt) 100%);
    border: 2px solid var(--primary);
    border-radius: var(--radius-lg);
    padding: 24px 32px;
    min-width: 280px;
    box-shadow: 0 0 60px rgba(225, 29, 72, 0.3), var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 10000;
    opacity: 0;
    transition: all 0.3s ease;
}

.toast-badge.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.toast-badge-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
    animation: badgePulse 1s ease infinite;
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.toast-badge-content {
    flex: 1;
}

.toast-badge-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 4px;
}

.toast-badge-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--light-text);
}

/* ==================== LOADING ==================== */
.loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px;
    color: var(--muted-text);
    gap: 16px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* ==================== EMPTY STATES ==================== */
.empty-state {
    text-align: center;
    padding: 48px 24px;
    color: var(--muted-text);
}

.empty-state i {
    font-size: 48px;
    color: var(--subtle-text);
    margin-bottom: 16px;
}

.empty-state h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--light-text);
    margin-bottom: 8px;
}

.empty-state p {
    font-size: 0.875rem;
    margin-bottom: 20px;
}

/* ==================== BBCODE TOOLBAR ==================== */
.bbcode-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-bottom: none;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.bbcode-toolbar + .form-input {
    border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.bbcode-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--muted-text);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.bbcode-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--light-text);
    border-color: var(--border-hover);
}

.bbcode-divider {
    width: 1px;
    height: 24px;
    background: var(--border-color);
    margin: 4px 4px;
}

/* ==================== FRIENDS ==================== */
.friends-section {
    margin-bottom: 24px;
}

.friend-request {
    display: flex;
    align-items: center;
    padding: 16px;
    background: rgba(225, 29, 72, 0.05);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
}

.friend-request:last-child {
    margin-bottom: 0;
}

.friend-request-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    margin-right: 14px;
    overflow: hidden;
}

.friend-request-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.friend-request-info {
    flex: 1;
}

.friend-request-name {
    font-weight: 600;
    color: var(--light-text);
}

.friend-request-time {
    font-size: 0.75rem;
    color: var(--muted-text);
}

.friend-request-actions {
    display: flex;
    gap: 8px;
}

/* ==================== SUBSCRIPTIONS ==================== */
.subscriptions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.subscription-card {
    position: relative;
    background: var(--card-bg-alt);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-fast);
}

.subscription-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.subscription-card.owned {
    border-color: var(--success);
}

.subscription-card.locked {
    cursor: pointer;
}

.subscription-card.locked:hover {
    border-color: var(--primary);
}

.subscription-image {
    width: 100%;
    height: 120px;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.02);
}

.subscription-image-placeholder {
    width: 100%;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    font-size: 2.5rem;
}

.subscription-info {
    padding: 16px;
}

.subscription-name {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 4px;
}

.subscription-description {
    font-size: 0.8125rem;
    color: var(--muted-text);
    margin-bottom: 12px;
    line-height: 1.4;
}

.subscription-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.subscription-status.owned {
    background: rgba(34, 197, 94, 0.15);
    color: var(--success);
}

.subscription-status.locked {
    background: rgba(255, 255, 255, 0.05);
    color: var(--muted-text);
}

.subscription-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.subscription-card.locked:hover .subscription-overlay {
    opacity: 1;
}

.subscription-overlay-text {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--primary);
    border-radius: var(--radius-md);
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
}

/* ==================== HWID SECTION ==================== */
.hwid-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
}

.hwid-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

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

.hwid-label {
    font-size: 0.875rem;
    color: var(--muted-text);
}

.hwid-value {
    font-family: 'Space Mono', monospace;
    font-size: 0.8125rem;
    color: var(--light-text);
    background: var(--card-bg-alt);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
}

/* ==================== AUTH FORMS ==================== */
.auth-container {
    max-width: 440px;
    margin: 60px auto;
}

.auth-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.auth-header {
    padding: 40px 32px 0;
    text-align: center;
}

.auth-header h1 {
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 12px;
}

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

.auth-body {
    padding: 32px;
}

.auth-footer {
    padding: 20px 32px;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid var(--border-color);
    text-align: center;
    font-size: 0.875rem;
    color: var(--muted-text);
}

.auth-footer a {
    color: var(--primary-light);
    font-weight: 500;
}

/* ==================== SCROLLBAR ==================== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* ==================== SELECTION ==================== */
::selection {
    background: rgba(225, 29, 72, 0.3);
    color: var(--light-text);
}

/* ==================== FOCUS ==================== */
:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
    .header-top {
        padding: 12px 16px;
    }

    .social-links {
        display: none;
    }

    .nav-container {
        padding: 0 16px;
    }

    .nav-tab {
        padding: 12px 14px;
        font-size: 0.8125rem;
    }

    .nav-tab span {
        display: none;
    }

    .main-wrapper {
        padding: 16px;
    }

    .page-title h1 {
        font-size: 1.5rem;
    }

    .node-stats {
        display: none;
    }

    .thread-stats {
        display: none;
    }

    .thread-latest {
        display: none;
    }

    .message {
        flex-direction: column;
    }

    .message-user {
        width: 100%;
        padding: 16px;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        display: flex;
        align-items: center;
        gap: 16px;
        text-align: left;
    }

    .message-avatar {
        width: 48px;
        height: 48px;
        font-size: 18px;
        margin: 0;
    }

    .profile-header {
        flex-direction: column;
        text-align: center;
        padding: 24px;
    }

    .profile-avatar {
        width: 100px;
        height: 100px;
        font-size: 40px;
    }

    .profile-stats {
        justify-content: center;
    }

    .members-grid {
        grid-template-columns: 1fr;
    }

    .modal {
        margin: 16px;
        max-height: calc(100vh - 32px);
    }

    .toast-container {
        left: 16px;
        right: 16px;
        bottom: 16px;
    }

    .toast {
        min-width: auto;
    }

    .chat-container {
        height: 500px;
    }
}

@media (max-width: 480px) {
    .header-btn span {
        display: none;
    }

    .header-btn {
        padding: 10px;
    }

    .user-dropdown span {
        display: none;
    }

    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .card-header .btn {
        width: 100%;
    }
}

/* ==================== MODERATION UI ==================== */

/* Thread moderation toolbar */
.thread-mod-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(var(--warning-rgb, 245, 158, 11), 0.1);
    border: 1px solid rgba(var(--warning-rgb, 245, 158, 11), 0.2);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
}

.mod-toolbar-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--warning);
    text-transform: uppercase;
    margin-right: 8px;
}

.mod-btn {
    padding: 6px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--card-bg);
    color: var(--text);
    font-size: 0.8125rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.mod-btn:hover {
    background: var(--card-hover);
    border-color: var(--primary);
}

.mod-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.mod-btn i {
    font-size: 0.75rem;
}

/* Thread status notices */
.thread-locked-notice,
.thread-pinned-notice {
    padding: 10px 16px;
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.thread-locked-notice {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: var(--danger);
}

.thread-pinned-notice {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: var(--success);
}

.thread-announcement-notice {
    background: linear-gradient(135deg, rgba(225, 29, 72, 0.15) 0%, rgba(251, 113, 133, 0.1) 100%);
    border: 1px solid rgba(225, 29, 72, 0.3);
    color: var(--primary);
    font-size: 0.9375rem;
}

.thread-announcement-notice i {
    color: var(--primary);
    margin-right: 4px;
}

/* Pin type dropdown */
.mod-btn-group {
    display: flex;
    gap: 4px;
    align-items: center;
}

.mod-pin-select {
    padding: 6px 8px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--card-bg);
    color: var(--light-text);
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
}

.mod-pin-select:hover {
    border-color: var(--primary);
}

.mod-pin-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(225, 29, 72, 0.2);
}

/* Thread Watchers */
.thread-watchers {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: rgba(139, 92, 246, 0.08);
    border: 1px solid rgba(139, 92, 246, 0.15);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    font-size: 0.875rem;
}

.watchers-label {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    font-weight: 500;
    white-space: nowrap;
}

.watchers-label i {
    font-size: 0.875rem;
}

.watchers-avatars {
    display: flex;
    align-items: center;
    gap: 0;
    flex-wrap: wrap;
}

.watcher-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6875rem;
    font-weight: 600;
    border: 2px solid var(--card-bg);
    margin-left: -8px;
    cursor: pointer;
    transition: transform var(--transition-fast), z-index var(--transition-fast), box-shadow var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.watcher-avatar:first-child {
    margin-left: 0;
}

.watcher-avatar:hover {
    transform: scale(1.15);
    z-index: 10;
    box-shadow: 0 0 0 2px var(--primary);
}

.watcher-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.watcher-avatar img[src=""],
.watcher-avatar img:not([src]) {
    display: none;
}

.watchers-more {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--bg-secondary);
    color: var(--muted-text);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.625rem;
    font-weight: 600;
    border: 2px solid var(--card-bg);
    margin-left: -8px;
}

/* Admin toolbar */
.admin-toolbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 16px;
    padding: 12px;
    background: rgba(var(--primary-rgb, 99, 102, 241), 0.05);
    border-radius: var(--radius-md);
}

/* Category admin actions */
.node-admin-actions {
    display: flex;
    gap: 8px;
    margin-left: auto;
    padding-left: 16px;
}

.admin-action-btn {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--card-bg);
    color: var(--muted-text);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-action-btn:hover {
    background: var(--danger);
    border-color: var(--danger);
    color: white;
}

.admin-action-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.admin-action-btn:disabled:hover {
    background: var(--card-bg);
    border-color: var(--border);
    color: var(--muted-text);
}

/* Chat moderation */
.chat-message {
    position: relative;
}

.chat-mod-actions {
    display: none;
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    gap: 4px;
}

.chat-message:hover .chat-mod-actions {
    display: flex;
}

.chat-mod-btn {
    width: 24px;
    height: 24px;
    border-radius: var(--radius-sm);
    border: none;
    background: rgba(0, 0, 0, 0.3);
    color: var(--muted-text);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.625rem;
}

.chat-mod-btn:hover {
    background: var(--danger);
    color: white;
}

.chat-report-btn {
    width: 20px;
    height: 20px;
    border-radius: var(--radius-sm);
    border: none;
    background: transparent;
    color: var(--subtle-text);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    opacity: 0;
    margin-left: 4px;
}

.chat-message:hover .chat-report-btn {
    opacity: 1;
}

.chat-report-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    color: var(--danger);
}

.chat-message-muted {
    opacity: 0.5;
}

.chat-muted-badge {
    color: var(--danger);
    font-size: 0.6875rem;
    margin-left: 6px;
}

/* Muted users list */
.muted-user-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 8px;
}

.muted-user-name {
    font-weight: 600;
    min-width: 120px;
}

.muted-user-reason {
    flex: 1;
    color: var(--muted-text);
    font-size: 0.8125rem;
}

.muted-user-date {
    color: var(--muted-text);
    font-size: 0.75rem;
    margin-right: 12px;
}

/* Ticket staff controls */
.ticket-staff-controls {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    padding: 16px;
    background: rgba(var(--primary-rgb, 99, 102, 241), 0.05);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
}

.ticket-staff-controls .form-row {
    margin-bottom: 0;
    flex: 1;
    min-width: 150px;
}

.ticket-staff-controls label {
    font-size: 0.6875rem;
    text-transform: uppercase;
    color: var(--muted-text);
    margin-bottom: 4px;
}

.ticket-staff-controls select {
    padding: 8px 12px;
    font-size: 0.8125rem;
}

/* Button small variant */
.btn-sm {
    padding: 6px 12px;
    font-size: 0.75rem;
}

/* ==================== FORUM SIDEBAR ==================== */
.forum-layout {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.forum-main {
    flex: 1;
    min-width: 0;
}

.forum-sidebar {
    width: 300px;
    flex-shrink: 0;
}

.sidebar-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.sidebar-header {
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--border-color);
}

.sidebar-header h3 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--light-text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-header h3 i {
    color: var(--primary);
    font-size: 0.8125rem;
}

.sidebar-body {
    padding: 12px;
    max-height: 400px;
    overflow-y: auto;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.activity-item {
    display: flex;
    gap: 10px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.activity-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(3px);
}

.activity-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.75rem;
}

.activity-icon.thread-icon {
    background: rgba(139, 92, 246, 0.15);
    color: #8b5cf6;
}

.activity-icon.reply-icon {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}

.activity-icon.member-icon {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
}

.activity-icon.badge-icon {
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
}

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

.activity-title {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--light-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.activity-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.6875rem;
    color: var(--muted-text);
}

.activity-author {
    color: var(--accent);
}

.activity-time {
    opacity: 0.7;
}

.activity-empty {
    text-align: center;
    padding: 24px 16px;
    color: var(--muted-text);
    font-size: 0.8125rem;
}

/* Responsive sidebar */
@media (max-width: 1024px) {
    .forum-layout {
        flex-direction: column;
    }

    .forum-sidebar {
        width: 100%;
        order: -1;
    }

    .sidebar-body {
        max-height: 200px;
    }
}

/* ==================== OAUTH BUTTONS ==================== */
.oauth-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 8px;
}

.btn-oauth {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--card-bg);
    color: var(--light-text);
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    --provider-color: #666;
}

.btn-oauth:hover {
    background: var(--provider-color);
    border-color: var(--provider-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transform: translateY(-1px);
}

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

.btn-oauth i {
    font-size: 1.125rem;
    width: 20px;
    text-align: center;
}

/* Auth Divider */
.auth-divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
    gap: 16px;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.auth-divider span {
    color: var(--muted-text);
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

/* OAuth Status in Profile */
.oauth-status-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.oauth-status-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--card-bg-alt);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.oauth-status-item.oauth-linked {
    border-color: rgba(34, 197, 94, 0.3);
    background: rgba(34, 197, 94, 0.05);
}

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

.oauth-provider-info i {
    font-size: 1.25rem;
    width: 24px;
    text-align: center;
}

.oauth-provider-info span {
    font-weight: 500;
    color: var(--light-text);
}

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

.oauth-linked-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: rgba(34, 197, 94, 0.15);
    color: var(--success);
    border-radius: var(--radius-sm);
    font-size: 0.8125rem;
    font-weight: 500;
}

.oauth-linked-badge i {
    font-size: 0.75rem;
}

.oauth-warning {
    margin-top: 16px;
    padding: 12px;
    background: rgba(234, 179, 8, 0.1);
    border: 1px solid rgba(234, 179, 8, 0.3);
    border-radius: var(--radius-md);
    color: var(--warning);
    font-size: 0.875rem;
}

.oauth-warning i {
    margin-right: 8px;
}

/* ==================== SEARCH ==================== */
.nav-search {
    margin-left: auto;
    padding-left: 20px;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 12px;
    color: var(--muted-text);
    font-size: 0.875rem;
    pointer-events: none;
}

.search-input {
    width: 200px;
    padding: 8px 36px 8px 36px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--light-text);
    font-size: 0.875rem;
    font-family: inherit;
    transition: all var(--transition-fast);
}

.search-input:focus {
    outline: none;
    width: 280px;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
}

.search-input::placeholder {
    color: var(--muted-text);
}

.search-clear-btn {
    position: absolute;
    right: 8px;
    background: transparent;
    border: none;
    color: var(--muted-text);
    cursor: pointer;
    padding: 4px;
    font-size: 0.75rem;
    transition: color var(--transition-fast);
}

.search-clear-btn:hover {
    color: var(--light-text);
}

/* Search filters */
.search-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.search-filter-btn {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--muted-text);
    font-size: 0.875rem;
    font-family: inherit;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.search-filter-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--border-hover);
}

.search-filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.filter-count {
    font-size: 0.75rem;
    opacity: 0.8;
}

/* Search results */
.search-section {
    margin-bottom: 24px;
}

.search-section:last-child {
    margin-bottom: 0;
}

.search-section-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--muted-text);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-section-title i {
    color: var(--primary);
}

.search-result-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

.search-result-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 14px;
    flex-shrink: 0;
    overflow: hidden;
}

.search-result-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.search-result-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    flex-shrink: 0;
}

.search-result-content {
    flex: 1;
    min-width: 0;
}

.search-result-title {
    font-weight: 600;
    color: var(--light-text);
    font-size: 0.9375rem;
    margin-bottom: 4px;
    transition: color var(--transition-fast);
}

.search-result-item:hover .search-result-title {
    color: var(--primary-light);
}

.search-result-snippet {
    font-size: 0.875rem;
    color: var(--muted-text);
    line-height: 1.5;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.search-result-meta {
    font-size: 0.75rem;
    color: var(--subtle-text);
}

.search-highlight {
    background: rgba(225, 29, 72, 0.3);
    color: var(--primary-light);
    padding: 1px 2px;
    border-radius: 2px;
}

/* Responsive search */
@media (max-width: 768px) {
    .nav-search {
        display: none;
    }

    .search-input {
        width: 100%;
    }

    .search-input:focus {
        width: 100%;
    }
}

/* ==================== BADGES ==================== */
.badges-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.badges-empty {
    color: var(--muted-text);
    font-size: 0.875rem;
    padding: 20px 0;
    text-align: center;
    width: 100%;
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    flex: 1 1 calc(50% - 6px);
    min-width: 200px;
}

.badge-item:hover {
    border-color: var(--badge-color, var(--primary));
    background: rgba(255, 255, 255, 0.04);
}

.badge-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--badge-color, var(--primary)) 0%, color-mix(in srgb, var(--badge-color, var(--primary)) 70%, black) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.badge-info {
    flex: 1;
    min-width: 0;
}

.badge-name {
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--light-text);
    margin-bottom: 2px;
}

.badge-description {
    font-size: 0.8125rem;
    color: var(--muted-text);
    line-height: 1.4;
}

.badge-date {
    font-size: 0.75rem;
    color: var(--subtle-text);
    margin-top: 4px;
}

/* Compact badges (for user card) */
.badge-compact {
    width: 32px;
    height: 32px;
    padding: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--badge-color, var(--primary)) 0%, color-mix(in srgb, var(--badge-color, var(--primary)) 70%, black) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.875rem;
    flex: 0 0 auto;
    min-width: auto;
    cursor: help;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.badge-compact:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.user-card-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

/* Responsive badges */
@media (max-width: 768px) {
    .badge-item {
        flex: 1 1 100%;
    }
}

/* ==================== POLL STYLES ==================== */

/* Poll Toggle in Create Thread Modal */
.poll-section {
    border-top: 1px solid var(--border-color);
    padding-top: 16px;
    margin-top: 8px;
}

.poll-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.toggle-switch {
    position: relative;
    width: 44px;
    height: 24px;
    cursor: pointer;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--card-bg-alt);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    transition: var(--transition-fast);
}

.toggle-slider::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    left: 2px;
    bottom: 2px;
    background: var(--muted-text);
    border-radius: 50%;
    transition: var(--transition-fast);
}

.toggle-switch input:checked + .toggle-slider {
    background: var(--primary);
    border-color: var(--primary);
}

.toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(20px);
    background: white;
}

.poll-toggle-label {
    color: var(--light-text);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.poll-toggle-label i {
    color: var(--primary);
}

/* Poll Options in Modal */
.poll-option-row {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.poll-option-row .poll-option-input {
    flex: 1;
}

.poll-option-remove {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--muted-text);
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.poll-option-remove:hover {
    background: var(--danger);
    border-color: var(--danger);
    color: white;
}

.poll-settings {
    margin-top: 12px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--light-text);
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
}

/* Poll Display in Thread */
.poll-container {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    margin: 16px 0;
}

.poll-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.poll-header i {
    color: var(--primary);
    font-size: 1.2rem;
}

.poll-question {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--light-text);
}

.poll-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

/* Poll Option - Voting View */
.poll-option-vote {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--card-bg-alt);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition-fast);
}

.poll-option-vote:hover {
    border-color: var(--primary);
    background: rgba(225, 29, 72, 0.05);
}

.poll-vote-input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

/* Poll Option - Results View */
.poll-option-result {
    position: relative;
    padding: 12px 16px;
    background: var(--card-bg-alt);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.poll-option-result.poll-option-selected {
    border-color: var(--primary);
}

.poll-option-bar {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(225, 29, 72, 0.2), rgba(225, 29, 72, 0.1));
    transition: width 0.5s ease;
}

.poll-option-content {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1;
}

.poll-option-text {
    color: var(--light-text);
    font-weight: 500;
}

.poll-option-stats {
    color: var(--muted-text);
    font-size: 0.9rem;
}

.poll-option-check {
    position: absolute;
    right: 16px;
    color: var(--primary);
    z-index: 1;
}

/* Poll Footer */
.poll-footer {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

.poll-total {
    color: var(--muted-text);
    font-size: 0.9rem;
}

.poll-multi-hint {
    color: var(--subtle-text);
    font-size: 0.85rem;
    font-style: italic;
}

.poll-vote-btn {
    margin-left: auto;
}

/* Responsive Poll */
@media (max-width: 768px) {
    .poll-container {
        padding: 16px;
    }

    .poll-option-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .poll-footer {
        flex-wrap: wrap;
    }
}

/* ==================== REPORT STYLES ==================== */

/* Report Button */
.report-btn {
    background: transparent;
    border: none;
    color: var(--muted-text);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
    font-size: 0.85rem;
}

.report-btn:hover {
    color: var(--danger);
    background: rgba(239, 68, 68, 0.1);
}

/* Report Modal */
#reportModal .form-input {
    margin-bottom: 0;
}

#reportModal select.form-input {
    cursor: pointer;
}

#reportModal textarea.form-input {
    resize: vertical;
    min-height: 80px;
}

/* Report Alert */
#reportAlert:not(:empty) {
    padding: 12px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    font-size: 0.875rem;
}

#reportAlert.error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

#reportAlert.success {
    background: rgba(34, 197, 94, 0.1);
    color: var(--success);
    border: 1px solid rgba(34, 197, 94, 0.3);
}

/* ==================== REPORTS MANAGEMENT ==================== */

/* Reports Filter Buttons */
.reports-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.report-filter-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--card-bg-alt);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--muted-text);
    cursor: pointer;
    transition: var(--transition-fast);
    font-size: 0.875rem;
}

.report-filter-btn:hover {
    border-color: var(--primary);
    color: var(--light-text);
}

.report-filter-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.report-filter-btn .report-count {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
}

.report-filter-btn.active .report-count {
    background: rgba(255, 255, 255, 0.3);
}

/* Reports List */
.reports-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 16px;
}

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

.reports-empty i {
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: 0.5;
}

.reports-empty p {
    font-size: 1rem;
}

/* Report Item */
.report-item {
    background: var(--card-bg-alt);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    transition: var(--transition-fast);
}

.report-item:hover {
    border-color: var(--border-hover);
}

.report-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 8px;
}

.report-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.report-type {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--light-text);
    font-weight: 500;
    text-transform: capitalize;
}

.report-type i {
    color: var(--primary);
}

.report-reason {
    background: var(--card-bg);
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    color: var(--muted-text);
}

.report-status {
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.report-status.status-pending {
    background: rgba(234, 179, 8, 0.2);
    color: var(--warning);
}

.report-status.status-reviewed {
    background: rgba(59, 130, 246, 0.2);
    color: var(--info);
}

.report-status.status-resolved {
    background: rgba(34, 197, 94, 0.2);
    color: var(--success);
}

.report-status.status-dismissed {
    background: rgba(161, 161, 170, 0.2);
    color: var(--muted-text);
}

.report-date {
    color: var(--subtle-text);
    font-size: 0.8rem;
}

.report-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.9rem;
}

.report-body > div {
    color: var(--muted-text);
}

.report-body strong {
    color: var(--light-text);
}

.report-view-link {
    margin-left: 12px;
    color: var(--primary);
    font-size: 0.8rem;
}

.report-view-link:hover {
    text-decoration: underline;
}

.report-details {
    background: var(--card-bg);
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--primary);
}

.report-resolution {
    background: rgba(34, 197, 94, 0.1);
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--success);
}

.report-actions {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
    flex-wrap: wrap;
}

/* Responsive Reports */
@media (max-width: 768px) {
    .reports-filters {
        justify-content: center;
    }

    .report-header {
        flex-direction: column;
    }

    .report-actions {
        flex-direction: column;
    }

    .report-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ==================== ALL BADGES PAGE ==================== */

.all-badges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    padding: 20px;
}

.all-badge-item {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: var(--card-bg-alt);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
}

.all-badge-item:hover {
    border-color: var(--badge-color);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.1);
}

.all-badge-item.badge-earned {
    border-color: var(--badge-color);
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.05) 0%, transparent 100%);
}

.all-badge-item.badge-locked {
    opacity: 0.6;
}

.all-badge-item.badge-locked:hover {
    opacity: 0.8;
}

.all-badge-icon {
    position: relative;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--badge-color) 0%, color-mix(in srgb, var(--badge-color) 70%, black) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.all-badge-icon > i {
    font-size: 1.25rem;
    color: white;
}

.badge-checkmark,
.badge-lock {
    position: absolute;
    bottom: -4px;
    right: -4px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.55rem;
}

.badge-checkmark {
    background: var(--success);
    color: white;
}

.badge-lock {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--muted-text);
}

.all-badge-info {
    flex: 1;
    min-width: 0;
}

.all-badge-name {
    font-weight: 600;
    color: var(--light-text);
    margin-bottom: 4px;
}

.all-badge-description {
    font-size: 0.875rem;
    color: var(--muted-text);
    margin-bottom: 6px;
}

.all-badge-criteria {
    font-size: 0.8rem;
    color: var(--subtle-text);
    display: flex;
    align-items: center;
    gap: 6px;
}

.all-badge-criteria i {
    color: var(--info);
}

/* Badges empty state */
.badges-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--muted-text);
}

.badges-empty i {
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: 0.5;
}

.badges-empty p {
    font-size: 1rem;
}

/* Responsive badges */
@media (max-width: 600px) {
    .all-badges-grid {
        grid-template-columns: 1fr;
    }
}

/* ==================== HIGHLIGHT ANIMATION ==================== */

.highlight-reported {
    animation: highlightPulse 3s ease-out;
}

@keyframes highlightPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(225, 29, 72, 0.7);
        background-color: rgba(225, 29, 72, 0.15);
    }
    20% {
        box-shadow: 0 0 20px 5px rgba(225, 29, 72, 0.5);
        background-color: rgba(225, 29, 72, 0.15);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(225, 29, 72, 0);
        background-color: transparent;
    }
}

/* ==================== REDUCED MOTION ==================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ==================== BLOCKED USERS ==================== */

.blocked-users-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.blocked-user-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    background: var(--card-bg-alt);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
}

.blocked-user-item:hover {
    border-color: var(--border-hover);
}

.blocked-user-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--danger);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    flex-shrink: 0;
    overflow: hidden;
}

.blocked-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blocked-user-info {
    flex: 1;
    min-width: 0;
}

.blocked-user-name {
    font-weight: 600;
    color: var(--light-text);
    margin-bottom: 2px;
}

.blocked-user-username {
    font-size: 0.8125rem;
    color: var(--muted-text);
}

.empty-state-small {
    text-align: center;
    padding: 24px;
    color: var(--muted-text);
}

.empty-state-small i {
    font-size: 2rem;
    margin-bottom: 12px;
    opacity: 0.5;
}

.empty-state-small p {
    font-size: 0.875rem;
}

/* Warning button variant for block toggle */
.btn-warning {
    background: var(--warning);
    color: #000;
    border: none;
}

.btn-warning:hover {
    background: #ca8a04;
}
