/**
 * FiveM Community Forum - Main Stylesheet
 * Created by Nilsson Development
 * https://nilssondevelopment.se
 */

/* ========== Variables ========== */
:root {
    --primary: #7289DA;
    --primary-dark: #5b6eae;
    --secondary: #43B581;
    --danger: #F04747;
    --warning: #FAA61A;
    --info: #00BCD4;

    --bg-dark: #0a0a0f;
    --bg-dark-rgb: 10, 10, 15;
    --bg-card: rgba(18, 18, 26, 0.88);
    --bg-card-hover: rgba(26, 26, 37, 0.92);
    --bg-input: rgba(13, 13, 20, 0.85);

    --text-primary: #e8e8f0;
    --text-secondary: #9a9ab0;
    --text-muted: #6a6a80;

    --border: rgba(46, 46, 62, 0.6);
    --border-light: rgba(62, 62, 78, 0.5);

    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 8px 32px rgba(0,0,0,0.5);
    --shadow-lg: 0 16px 48px rgba(0,0,0,0.6);

    --nav-height: 64px;
    --max-width: 1400px;

    --transition: all 0.25s ease;
}

/* ========== Reset & Base ========== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
}

/* Bakgrund med overlay - tydlig bakgrund utan blur */
.bg-overlay {
    position: fixed;
    inset: 0;
    background: rgba(var(--bg-dark-rgb), 0.55);
    z-index: -1;
}

body[style*="background-image"] {
    background-size: cover !important;
    background-position: center !important;
    background-attachment: fixed !important;
}

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

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

img {
    max-width: 100%;
    height: auto;
}

/* ========== Nilsson Development Watermark ========== */
.nd-watermark-fixed {
    position: fixed;
    bottom: 8px;
    right: 8px;
    z-index: 9999;
    opacity: 0.15;
    pointer-events: none;
    font-size: 10px;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.nd-watermark-fixed span::after {
    content: '';
    display: block;
    width: 100%;
    height: 1px;
    background: var(--primary);
    margin-top: 2px;
}

/* ========== Navigation ========== */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    z-index: 1000;
    max-width: 100%;
}

.nav-brand a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.1rem;
}

.nav-brand img.nav-logo {
    height: 36px;
    width: auto;
}

.nav-brand i {
    font-size: 1.5rem;
    color: var(--primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-links a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
    background: var(--bg-card);
}

.nav-links a.nav-discord {
    background: #5865F2;
    color: #fff;
}

.nav-links a.nav-discord:hover {
    background: #4752C4;
}

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

.user-menu-dropdown {
    position: relative;
}

.user-menu-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.85rem;
    transition: var(--transition);
}

.user-menu-btn:hover {
    background: var(--bg-card-hover);
}

.user-avatar-small {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

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

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

.user-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    border-radius: var(--radius-sm);
}

.user-menu a:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

.user-menu-divider {
    height: 1px;
    background: var(--border);
    margin: 6px 0;
}

.user-menu .logout-link {
    color: var(--danger);
}

.notif-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: var(--danger);
    color: #fff;
    font-size: 0.6rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.3rem;
    cursor: pointer;
}

/* ========== Main Content ========== */
.main-content {
    padding-top: calc(var(--nav-height) + 24px);
    padding-bottom: 40px;
    max-width: var(--max-width);
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
    flex: 1;
    width: 100%;
}

/* ========== Buttons ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    line-height: 1.4;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(114, 137, 218, 0.3);
}

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

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

.btn-discord {
    background: #5865F2;
    color: #fff;
}

.btn-discord:hover {
    background: #4752C4;
    color: #fff;
}

.btn-success {
    background: var(--secondary);
    color: #fff;
}

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

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

.btn-admin {
    background: var(--danger);
    color: #fff;
}

.btn-small {
    padding: 6px 12px;
    font-size: 0.8rem;
}

.btn-large {
    padding: 14px 32px;
    font-size: 1rem;
}

/* ========== Forms ========== */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="url"],
.form-group input[type="number"],
.form-group input[type="file"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.9rem;
    transition: var(--transition);
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(114, 137, 218, 0.15);
}

.form-group small {
    display: block;
    margin-top: 4px;
    color: var(--text-muted);
    font-size: 0.75rem;
}

.form-group small a {
    color: var(--primary);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

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

/* ========== Alerts ========== */
.alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 0.9rem;
    border-left: 4px solid;
}

.alert-success {
    background: rgba(67, 181, 129, 0.1);
    border-color: var(--secondary);
    color: var(--secondary);
}

.alert-error {
    background: rgba(240, 71, 71, 0.1);
    border-color: var(--danger);
    color: var(--danger);
}

.alert-warning {
    background: rgba(250, 166, 26, 0.1);
    border-color: var(--warning);
    color: var(--warning);
}

/* ========== Breadcrumb ========== */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
    font-size: 0.85rem;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.breadcrumb a {
    color: var(--text-secondary);
}

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

.breadcrumb i {
    font-size: 0.6rem;
}

/* ========== Cards ========== */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    transition: var(--transition);
}

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

/* ========== Forum Overview ========== */
.forum-banner {
    position: relative;
    height: 300px;
    border-radius: var(--radius);
    background-size: cover;
    background-position: center;
    overflow: hidden;
    margin-bottom: 24px;
}

.forum-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10,10,15,0.9) 0%, rgba(10,10,15,0.6) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px;
}

.forum-banner-overlay h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 12px;
    background: linear-gradient(135deg, var(--text-primary), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.forum-banner-overlay p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 24px;
    max-width: 600px;
}

.forum-stats-bar {
    display: flex;
    justify-content: center;
    gap: 40px;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 24px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

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

.forum-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 24px;
}

/* ========== Categories ========== */
.categories-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.category-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0;
    transition: var(--transition);
    border-left: 4px solid var(--primary);
    overflow: hidden;
}

.category-card:hover {
    background: var(--bg-card-hover);
    transform: translateX(4px);
    border-color: var(--border-light);
}

.category-header-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
}

.category-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.category-info {
    flex: 1;
}

.category-info h2 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.category-info h2 a {
    color: var(--text-primary);
}

.category-info h2 a:hover {
    color: var(--primary);
}

.category-info p {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.category-counts {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: right;
}

.category-counts span {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ========== Sidebar ========== */
.forum-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
}

.sidebar-box h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 14px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-box h3 i {
    color: var(--primary);
}

.latest-threads {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.latest-thread-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}

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

.thread-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-top: 6px;
    flex-shrink: 0;
}

.thread-info {
    flex: 1;
}

.thread-info a {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 2px;
}

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

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

.discord-box {
    text-align: center;
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.1), rgba(88, 101, 242, 0.05));
    border-color: rgba(88, 101, 242, 0.2);
}

.discord-box p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 12px;
}

.admin-box {
    background: linear-gradient(135deg, rgba(240, 71, 71, 0.1), rgba(240, 71, 71, 0.05));
    border-color: rgba(240, 71, 71, 0.2);
}

/* ========== Category Section ========== */
.category-section .category-header {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 20px;
}

.category-section .category-header h1 {
    font-size: 1.4rem;
    font-weight: 700;
}

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

.thread-item {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    transition: var(--transition);
}

.thread-item:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-light);
}

.thread-item.pinned {
    border-left: 3px solid var(--primary);
}

.thread-item.locked {
    opacity: 0.7;
}

.thread-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 0.9rem;
    flex-shrink: 0;
}

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

.thread-main h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.thread-main h3 a {
    color: var(--text-primary);
}

.thread-main h3 a:hover {
    color: var(--primary);
}

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

.thread-stats {
    display: flex;
    gap: 16px;
    font-size: 0.8rem;
    color: var(--text-muted);
    flex-shrink: 0;
}

.thread-stats span {
    display: flex;
    align-items: center;
    gap: 4px;
}

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

.thread-last small {
    display: block;
}

/* ========== Thread Detail ========== */
.thread-section {
    max-width: 1000px;
    margin: 0 auto;
}

.thread-post {
    display: grid;
    grid-template-columns: 180px 1fr;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 16px;
    overflow: hidden;
}

.thread-main-post {
    border-left: 3px solid var(--primary);
}

.post-sidebar {
    padding: 20px;
    background: rgba(255,255,255,0.02);
    border-right: 1px solid var(--border);
    text-align: center;
}

.post-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 12px;
    border: 3px solid var(--border);
}

.post-user strong {
    display: block;
    font-size: 0.9rem;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.post-meta {
    margin-top: 8px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.post-content {
    padding: 20px;
}

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

.post-header h1 {
    font-size: 1.4rem;
    font-weight: 700;
    flex: 1;
}

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

.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
}

.badge-pinned {
    background: rgba(114, 137, 218, 0.15);
    color: var(--primary);
}

.badge-locked {
    background: rgba(240, 71, 71, 0.15);
    color: var(--danger);
}

.post-body {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--text-primary);
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: anywhere;
    word-break: break-word;
}

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

.replies-header {
    margin: 24px 0 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.replies-header h2 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.thread-reply {
    grid-template-columns: 140px 1fr;
}

.thread-reply .post-sidebar {
    padding: 16px;
}

.thread-reply .post-avatar {
    width: 60px;
    height: 60px;
}

.reply-form-container {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    margin-top: 20px;
}

.reply-form-container h3 {
    margin-bottom: 16px;
    font-size: 1rem;
}

.reply-form textarea {
    width: 100%;
    padding: 14px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.9rem;
    resize: vertical;
    min-height: 120px;
    margin-bottom: 12px;
}

.reply-form textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.login-prompt {
    text-align: center;
    padding: 30px;
}

.login-prompt a {
    color: var(--primary);
    font-weight: 600;
}

/* ========== Profiles ========== */
.profile-section {
    max-width: 900px;
    margin: 0 auto;
}

.profile-banner {
    height: 200px;
    border-radius: var(--radius) var(--radius) 0 0;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    background-size: cover;
    background-position: center;
    position: relative;
}

.profile-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 40%, var(--bg-card));
}

.profile-header {
    display: flex;
    align-items: flex-end;
    gap: 20px;
    padding: 0 24px;
    margin-top: -50px;
    position: relative;
    margin-bottom: 24px;
}

.profile-avatar-large {
    position: relative;
    flex-shrink: 0;
}

.profile-avatar-large img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--bg-card);
    background: var(--bg-card);
}

.verified-badge {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 28px;
    height: 28px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.8rem;
    border: 3px solid var(--bg-card);
}

.profile-info {
    flex: 1;
    padding-bottom: 8px;
}

.profile-info h1 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.profile-bio {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 8px 0;
}

.profile-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.profile-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.profile-discord-roles {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.discord-role {
    padding: 3px 10px;
    background: rgba(114, 137, 218, 0.1);
    border: 1px solid rgba(114, 137, 218, 0.2);
    border-radius: 20px;
    font-size: 0.75rem;
    color: var(--primary);
}

.profile-stats-bar {
    display: flex;
    gap: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 24px;
}

.profile-stat {
    flex: 1;
    padding: 16px;
    text-align: center;
    border-right: 1px solid var(--border);
}

.profile-stat:last-child {
    border-right: none;
}

.profile-stat strong {
    display: block;
    font-size: 1.4rem;
    color: var(--primary);
}

.profile-stat span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.profile-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 20px;
}

.profile-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 16px;
}

.profile-card h2,
.profile-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.profile-card h2 i,
.profile-card h3 i {
    color: var(--primary);
}

.character-info h3 {
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.character-info p {
    margin-bottom: 6px;
    color: var(--text-secondary);
}

.backstory {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.backstory p {
    margin-top: 6px;
    line-height: 1.6;
}

.profile-threads {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.profile-thread-item {
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

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

.profile-thread-item a {
    display: block;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.profile-thread-item small {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.profile-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}

.gallery-thumb img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.gallery-thumb img:hover {
    transform: scale(1.05);
}

/* Profiles List */
.profiles-list-section {
    max-width: 1200px;
    margin: 0 auto;
}

.profiles-list-section h1 {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.section-desc {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.profiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.profile-card-small {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    transition: var(--transition);
}

.profile-card-small:hover {
    background: var(--bg-card-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.profile-card-small a {
    color: inherit;
    display: block;
}

.profile-card-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 12px;
    border: 3px solid var(--border);
    transition: var(--transition);
}

.profile-card-small:hover .profile-card-avatar {
    border-color: var(--primary);
}

.profile-card-small h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.character-name {
    font-size: 0.8rem;
    color: var(--primary);
    margin-bottom: 8px;
}

.faction-badge {
    display: inline-block;
    padding: 2px 10px;
    background: var(--bg-dark);
    border-radius: 20px;
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.role-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
}

.role-user { background: rgba(106, 106, 128, 0.2); color: var(--text-muted); }
.role-moderator { background: rgba(250, 166, 26, 0.2); color: var(--warning); }
.role-admin { background: rgba(240, 71, 71, 0.2); color: var(--danger); }
.role-owner { background: linear-gradient(135deg, rgba(240, 71, 71, 0.3), rgba(250, 166, 26, 0.3)); color: #ff6b6b; }

.user-role {
    display: inline-block;
    padding: 1px 8px;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ========== Applications ========== */
.applications-section {
    max-width: 1000px;
    margin: 0 auto;
}

.applications-section h1 {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.apply-types-grid {
    display: grid;
    gap: 16px;
    margin: 24px 0;
}

.apply-type-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius);
    padding: 20px;
    transition: var(--transition);
}

.apply-type-card:hover {
    background: var(--bg-card-hover);
    transform: translateX(4px);
}

.apply-type-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.apply-type-info {
    flex: 1;
}

.apply-type-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.apply-type-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.login-prompt-box {
    text-align: center;
    padding: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.login-prompt-box a {
    color: var(--primary);
    font-weight: 600;
}

.my-applications {
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.my-applications h2 {
    font-size: 1.2rem;
    margin-bottom: 16px;
}

.applications-table-wrapper {
    overflow-x: auto;
}

.applications-table {
    width: 100%;
    border-collapse: collapse;
}

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

.applications-table th {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.applications-table tr:hover td {
    background: rgba(255,255,255,0.02);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-pending { background: rgba(250, 166, 26, 0.15); color: var(--warning); }
.status-approved { background: rgba(67, 181, 129, 0.15); color: var(--secondary); }
.status-denied { background: rgba(240, 71, 71, 0.15); color: var(--danger); }
.status-withdrawn { background: rgba(106, 106, 128, 0.15); color: var(--text-muted); }

.type-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    color: #fff;
    font-weight: 500;
}

.admin-applications {
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.status-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.status-tabs a {
    padding: 8px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
}

.status-tabs a:hover,
.status-tabs a.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* Application Detail */
.application-detail-section {
    max-width: 800px;
    margin: 0 auto;
}

.application-detail-header {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 20px;
}

.application-type-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.application-detail-info {
    flex: 1;
}

.application-detail-info h1 {
    font-size: 1.2rem;
    font-weight: 600;
}

.applicant-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    margin-bottom: 20px;
}

.applicant-card img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}

.application-fields {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.field-group {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px;
}

.field-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.field-value {
    color: var(--text-primary);
    line-height: 1.6;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.admin-notes {
    margin-top: 20px;
    padding: 16px;
    background: rgba(250, 166, 26, 0.05);
    border: 1px solid rgba(250, 166, 26, 0.2);
    border-radius: var(--radius-sm);
}

.admin-notes h4 {
    margin-bottom: 8px;
    color: var(--warning);
}

.admin-notes small {
    color: var(--text-muted);
}

.application-review-form {
    margin-top: 24px;
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.application-review-form h3 {
    margin-bottom: 16px;
}

.radio-group {
    display: flex;
    gap: 16px;
}

.radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.radio-label input {
    display: none;
}

.radio-label span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: var(--transition);
}

.radio-approve {
    background: rgba(67, 181, 129, 0.1);
    color: var(--secondary);
}

.radio-label input:checked + .radio-approve {
    background: var(--secondary);
    color: #fff;
}

.radio-deny {
    background: rgba(240, 71, 71, 0.1);
    color: var(--danger);
}

.radio-label input:checked + .radio-deny {
    background: var(--danger);
    color: #fff;
}

/* ========== Gallery ========== */
.gallery-section {
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.gallery-header h1 {
    font-size: 1.8rem;
}

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

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 12px;
}

.gallery-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border);
}

.gallery-item.pending {
    opacity: 0.7;
}

.gallery-item a {
    display: block;
    width: 100%;
    height: 100%;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px 12px 12px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: #fff;
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-title {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
}

.gallery-author {
    display: block;
    font-size: 0.75rem;
    opacity: 0.8;
}

.gallery-pending-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    background: rgba(250, 166, 26, 0.9);
    color: #000;
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
    font-weight: 600;
}

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

.empty-gallery i {
    font-size: 4rem;
    margin-bottom: 16px;
    display: block;
}

/* Gallery Detail */
.gallery-detail-section {
    max-width: 1000px;
    margin: 0 auto;
}

.gallery-image-full {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 20px;
}

.gallery-image-full img {
    width: 100%;
    max-height: 700px;
    object-fit: contain;
    display: block;
}

.gallery-image-info {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 20px;
}

.image-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.image-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.image-author img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.image-stats {
    display: flex;
    gap: 16px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.image-stats span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.image-description {
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.image-description h2 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.image-description p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.image-admin-actions {
    margin-top: 16px;
    display: flex;
    gap: 8px;
}

.gallery-comments {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
}

.gallery-comments h3 {
    margin-bottom: 16px;
    font-size: 1rem;
}

.gallery-comment {
    display: flex;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

.gallery-comment:last-child {
    border-bottom: none;
}

.gallery-comment img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.comment-body {
    flex: 1;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.comment-header strong {
    font-size: 0.9rem;
}

.comment-header small {
    color: var(--text-muted);
    font-size: 0.75rem;
}

.comment-body p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

.comment-form {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.comment-form textarea {
    flex: 1;
    padding: 10px 14px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.9rem;
    resize: vertical;
    min-height: 60px;
}

.comment-form textarea:focus {
    outline: none;
    border-color: var(--primary);
}

/* ========== Modal ========== */
.modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

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

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    transform: scale(0.95);
    transition: var(--transition);
}

.modal.active .modal-content {
    transform: scale(1);
}

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

.modal-header h2 {
    font-size: 1.2rem;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 4px;
}

.modal-close:hover {
    color: var(--danger);
}

/* ========== Pagination ========== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 24px;
}

.pagination a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
}

.pagination a:hover,
.pagination a.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* ========== Table ========== */
.table-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    vertical-align: middle;
    margin-right: 6px;
}

.no-data {
    color: var(--text-muted);
    text-align: center;
    padding: 40px;
}

.inline-form {
    display: inline;
}

.inline-form select {
    padding: 4px 8px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.8rem;
}

/* ========== Edit Profile ========== */
.edit-profile-section {
    max-width: 700px;
    margin: 0 auto;
}

.edit-profile-section h1 {
    font-size: 1.6rem;
    margin-bottom: 24px;
}

.edit-profile-section h2 {
    font-size: 1.1rem;
    margin: 24px 0 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
    color: var(--primary);
}

/* ========== Footer ========== */
.main-footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 32px 24px 20px;
}

.footer-content {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
    font-weight: 700;
}

.footer-brand img.footer-logo {
    height: 28px;
    width: auto;
}

.footer-brand i {
    font-size: 1.3rem;
    color: var(--primary);
}

.footer-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-links a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    max-width: var(--max-width);
    margin: 0 auto;
    text-align: center;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.footer-powered {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.footer-powered .nd-link {
    color: var(--primary);
    font-weight: 600;
}

.footer-powered .nd-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.footer-legal {
    color: var(--text-muted);
    font-size: 0.75rem;
    margin-top: 4px;
}

/* ========== Responsive ========== */
@media (max-width: 1024px) {
    .forum-layout,
    .profile-layout {
        grid-template-columns: 1fr;
    }
    
    .forum-sidebar {
        order: -1;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: var(--bg-dark);
        flex-direction: column;
        padding: 16px;
        gap: 4px;
        border-bottom: 1px solid var(--border);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: var(--transition);
    }
    
    .nav-links.mobile-open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    .nav-links a {
        width: 100%;
        padding: 12px 16px;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .main-content {
        padding-left: 16px;
        padding-right: 16px;
    }
    
    .thread-post {
        grid-template-columns: 1fr;
    }
    
    .post-sidebar {
        border-right: none;
        border-bottom: 1px solid var(--border);
        display: flex;
        align-items: center;
        gap: 12px;
        text-align: left;
        padding: 12px 16px;
    }
    
    .post-avatar {
        width: 48px;
        height: 48px;
        margin-bottom: 0;
    }
    
    .thread-reply .post-sidebar {
        padding: 10px 16px;
    }
    
    .thread-reply .post-avatar {
        width: 40px;
        height: 40px;
    }
    
    .forum-banner-overlay h1 {
        font-size: 1.6rem;
    }
    
    .profile-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .profile-stats-bar {
        flex-direction: column;
    }
    
    .profile-stat {
        border-right: none;
        border-bottom: 1px solid var(--border);
    }
    
    .profiles-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .thread-item {
        flex-wrap: wrap;
    }
    
    .thread-stats,
    .thread-last {
        width: 100%;
        justify-content: flex-start;
        margin-top: 8px;
    }
}

@media (max-width: 480px) {
    .apply-type-card {
        flex-direction: column;
        text-align: center;
    }
    
    .category-section .category-header {
        flex-direction: column;
        text-align: center;
    }
    
    .forum-stats-bar {
        flex-direction: column;
        gap: 16px;
    }
    
    .radio-group {
        flex-direction: column;
    }
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ========== Empty Forum ========== */
.empty-forum {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 80px 40px;
    text-align: center;
}

.empty-forum i {
    font-size: 3rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-forum h2 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.empty-forum p {
    color: var(--text-secondary);
    margin-bottom: 24px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* ========== Footer (Sticky) ========== */
.main-footer {
    background: rgba(10, 10, 15, 0.98);
    border-top: 1px solid var(--border);
    padding: 20px 24px;
    margin-top: auto;
}

.footer-content {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    font-weight: 600;
}

.footer-brand img.footer-logo {
    height: 28px;
    width: auto;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.85rem;
    transition: var(--transition);
}

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

.footer-bottom {
    max-width: var(--max-width);
    margin: 0 auto;
    text-align: center;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.footer-powered {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.nd-link {
    color: var(--primary);
    font-weight: 600;
}

.footer-legal {
    font-size: 0.75rem;
    color: var(--text-muted);
    opacity: 0.6;
}

/* ========== Premium Tweaks ========== */
/* Glassmorphism on cards */
.category-card,
.thread-item,
.sidebar-box,
.reply-form-container,
.gallery-item,
.apply-type-card {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Glow on hover for category cards */
.category-card:hover {
    box-shadow: 0 0 30px rgba(114, 137, 218, 0.08);
}

/* Smooth page transitions */
section {
    animation: fadeIn 0.4s ease;
}

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

/* Better scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

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

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

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ========== Notifications ========== */
.notifications-section {
    max-width: 800px;
    margin: 0 auto;
}

.notifications-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 20px;
}

.notification-item {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 20px;
    transition: var(--transition);
}

.notification-item.unread {
    border-left: 3px solid var(--primary);
    background: rgba(114, 137, 218, 0.05);
}

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

.notification-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: rgba(114, 137, 218, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

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

.notification-body h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.notification-body p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: 4px;
}

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

.notification-item.unread .notification-body h3 {
    color: var(--primary);
}

/* ========== Selection ========== */
::selection {
    background: rgba(114, 137, 218, 0.3);
    color: var(--text-primary);
}
