:root {
    --bg-color: #0a0a0a;
    --card-bg: #141414;
    --primary: #ff3e3e; /* Red for anarchy */
    --secondary: #9d00ff; /* Purple for mystique */
    --text-color: #e0e0e0;
    --text-muted: #a0a0a0;
    --accent-glow: 0 0 10px rgba(255, 62, 62, 0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: #080808; /* Gloomy dark background */
    color: var(--text-color);
    font-family: 'Roboto Mono', monospace;
    line-height: 1.6;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Dynamic Cracks */
.crack {
    position: fixed;
    pointer-events: none;
    z-index: -1;
    opacity: 0;
    transition: opacity 1s ease-in;
}

.crack.healing {
    opacity: 0;
    transition: opacity 3s ease-out;
}

.crack.active {
    opacity: 0.7;
}

/* body::before removed to fix gray overlay issue */

/* Logo Shader Effect */
.logo {
    position: relative;
    overflow: hidden;
    color: #fff;
    text-shadow: 2px 2px var(--primary);
}

.logo::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { left: -100%; }
    20% { left: 100%; }
    100% { left: 100%; }
}

h1, h2, h3, h4, .logo {
    font-family: 'Russo One', sans-serif;
    text-transform: uppercase;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

/* Top Bar */
.top-bar {
    background: #050505;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
    position: relative;
    z-index: 1001;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
}

.server-status {
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.online-dot {
    width: 8px;
    height: 8px;
    background: #00ff00;
    border-radius: 50%;
    box-shadow: 0 0 5px #00ff00;
}

.top-links {
    display: flex;
    gap: 1.5rem;
}

.top-links a {
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between; /* Space between logo and menu */
    align-items: center;
    padding: 1.5rem 5%;
    background: rgba(10, 10, 10, 0.6);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
    font-size: 1.8rem;
    color: var(--primary);
    text-shadow: var(--accent-glow);
    cursor: pointer;
    /* Removed absolute positioning to fix visibility issues */
    margin-right: auto; /* Push everything else to the right if needed, or just let flex handle it */
}

.nav-menu {
    display: flex;
    gap: 2rem;
    z-index: 1;
}

.nav-link {
    font-size: 1rem;
    color: var(--text-color);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary);
    transition: width 0.3s;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--primary);
}

.menu-toggle {
    display: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    justify-content: center;
    align-items: center;
}

.crack-icon {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: var(--text-color);
    stroke-width: 5;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.5));
}

.menu-toggle:hover .crack-icon {
    stroke: var(--primary);
    filter: drop-shadow(0 0 5px var(--primary));
    transform: scale(1.1);
}

.menu-toggle.active .crack-icon {
    stroke: var(--primary);
    filter: drop-shadow(0 0 8px var(--primary));
    animation: crackPulse 1.5s infinite;
}

@keyframes crackPulse {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.1); }
    100% { opacity: 1; transform: scale(1); }
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent; /* Background handled by body now */
    z-index: -1;
    display: none; /* Hide old hero background to avoid conflict */
}

@keyframes bgPulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.05); }
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: #fff;
    position: relative;
    letter-spacing: 5px;
}

/* Glitch Effect - Text Shadow Version (Transparent) */
.glitch {
    position: relative;
    color: white;
    font-size: 4rem;
    font-weight: bold;
    text-transform: uppercase;
    text-shadow: 
        2px 2px 0px var(--primary), 
        -2px -2px 0px var(--secondary);
    animation: glitch-skew 1s infinite linear alternate-reverse;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent; /* Transparent to show background */
}

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 var(--primary);
    clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
    animation: glitch-anim-1 2.5s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -2px 0 var(--secondary);
    clip-path: polygon(0 55%, 100% 55%, 100% 100%, 0 100%);
    animation: glitch-anim-2 3s infinite linear alternate-reverse;
}

@keyframes glitch-anim-1 {
    0% { clip-path: inset(20% 0 80% 0); transform: translate(-2px, 1px); }
    20% { clip-path: inset(60% 0 10% 0); transform: translate(2px, -1px); }
    40% { clip-path: inset(40% 0 50% 0); transform: translate(-2px, 2px); }
    60% { clip-path: inset(80% 0 5% 0); transform: translate(2px, -2px); }
    80% { clip-path: inset(10% 0 70% 0); transform: translate(-1px, 1px); }
    100% { clip-path: inset(30% 0 50% 0); transform: translate(1px, -1px); }
}

@keyframes glitch-anim-2 {
    0% { clip-path: inset(10% 0 60% 0); transform: translate(2px, -1px); }
    20% { clip-path: inset(30% 0 20% 0); transform: translate(-2px, 2px); }
    40% { clip-path: inset(70% 0 10% 0); transform: translate(2px, -2px); }
    60% { clip-path: inset(20% 0 50% 0); transform: translate(-2px, 1px); }
    80% { clip-path: inset(50% 0 30% 0); transform: translate(1px, -1px); }
    100% { clip-path: inset(0% 0 80% 0); transform: translate(-1px, 1px); }
}

@keyframes glitch-skew {
    0% { transform: skew(0deg); }
    10% { transform: skew(-2deg); }
    20% { transform: skew(2deg); }
    30% { transform: skew(0deg); }
    40% { transform: skew(-1deg); }
    50% { transform: skew(1deg); }
    60% { transform: skew(0deg); }
    100% { transform: skew(0deg); }
}

/* Admin Tabs */
.admin-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    padding: 0.5rem 1rem;
    position: relative;
    transition: 0.3s;
    font-family: 'Russo One', sans-serif;
    text-transform: uppercase;
}

.tab-btn:hover {
    color: #fff;
}

.tab-btn.active {
    color: var(--primary);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -17px; /* Align with border-bottom */
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary);
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

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

/* Badge Updates */
.badge-admin {
    background: rgba(220, 53, 69, 0.2);
    color: #ff6b6b;
    border: 1px solid rgba(220, 53, 69, 0.5);
}

.badge-user {
    background: rgba(40, 167, 69, 0.2);
    color: #51cf66;
    border: 1px solid rgba(40, 167, 69, 0.5);
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.server-ip-container {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--primary);
    padding: 1rem 2rem;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    border-radius: 5px;
    cursor: pointer;
    margin-bottom: 2rem;
    position: relative;
    transition: 0.3s;
    user-select: none;
}

.server-ip-container:hover {
    background: rgba(255, 62, 62, 0.1);
    box-shadow: 0 0 20px rgba(255, 62, 62, 0.3);
}

.server-ip-container span {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
}

.copy-tooltip {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #fff;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 0.8rem;
    opacity: 0;
    transition: 0.3s;
    pointer-events: none;
}

.copy-tooltip.show {
    opacity: 1;
    top: -50px;
}

.cta-button {
    display: inline-block;
    padding: 1rem 3rem;
    background: var(--primary);
    color: #fff;
    font-weight: bold;
    font-size: 1.2rem;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(255, 62, 62, 0.5);
    transition: 0.3s;
    text-transform: uppercase;
    font-family: 'Russo One', sans-serif;
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 30px rgba(255, 62, 62, 0.8);
    background: #ff5e5e;
}

/* Sections General */
section {
    padding: 80px 5%;
}

.container {
    width: 98%;
    max-width: 100%;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary);
    text-shadow: 0 0 10px rgba(255, 62, 62, 0.3);
}

/* Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.feature-card i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.feature-card p {
    color: var(--text-muted);
    line-height: 1.6;
}

/* Donate */
.donate {
    background: #0f0f0f;
}

.donate-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    align-items: center; /* Center cards vertically if heights differ */
}

.donate-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: 0.3s;
    display: flex;
    flex-direction: column;
}

.donate-card.popular {
    transform: scale(1.05);
    border-color: var(--secondary);
    box-shadow: 0 0 30px rgba(157, 0, 255, 0.2);
    z-index: 10;
}

.donate-card:hover {
    transform: translateY(-10px) scale(1.02);
}

.donate-card.popular:hover {
    transform: translateY(-10px) scale(1.07);
}

.badge {
    position: absolute;
    top: 20px;
    right: -35px;
    background: var(--secondary);
    color: white;
    padding: 5px 40px;
    transform: rotate(45deg);
    font-weight: bold;
    font-size: 0.9rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.card-header {
    background: rgba(255, 255, 255, 0.03);
    padding: 2rem;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.card-header h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.price {
    font-size: 1.5rem;
    color: var(--primary);
    font-weight: bold;
}

.perks {
    padding: 2rem;
    flex-grow: 1;
}

.perks li {
    margin-bottom: 1rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 10px;
}

.perks li i {
    color: var(--primary);
}

.perks li i.fa-times {
    color: #555;
}

.buy-btn {
    width: 80%;
    margin: 0 auto 2rem;
    padding: 1rem;
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
    text-transform: uppercase;
    font-family: 'Russo One', sans-serif;
}

.buy-btn:hover {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 0 15px rgba(255, 62, 62, 0.5);
}

/* Forum Preview */
.forum-topics {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin: 0 auto;
}

.center-btn {
    text-align: center;
    margin-top: 3rem;
}

.secondary-btn {
    display: inline-block;
    padding: 1.1rem 2.2rem;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    transition: 0.3s;
    font-family: 'Russo One', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1.05rem;
    box-shadow: 0 0 12px rgba(255, 62, 62, 0.15);
    margin: 0.5rem 0;
}

.secondary-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(255, 62, 62, 0.25);
}

/* Footer */
footer {
    background: #050505;
    padding: 3rem 5%;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: auto;
}

.social-links {
    margin-bottom: 2rem;
}

.social-links a {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin: 0 1rem;
    transition: 0.3s;
}

.social-links a:hover {
    color: var(--primary);
    transform: scale(1.2);
}

footer p {
    color: #555;
    font-size: 0.9rem;
}

/* Admin Charts */
.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.chart-container {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 1.5rem;
    position: relative;
    height: 400px; /* Fixed height to prevent infinite loop */
}

.chart-container h3 {
    margin-bottom: 1rem;
    color: var(--text-muted);
    font-size: 1.2rem;
    text-align: center;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(10, 10, 10, 0.95);
        width: 100%;
        height: 100vh; /* Make sure it covers screen */
        text-align: center;
        transition: 0.3s;
        padding-top: 2rem;
        backdrop-filter: blur(10px);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 2rem 0;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }
}
    
/* Forum Page Specifics */
.forum-header {
    background: linear-gradient(rgba(10, 10, 10, 0.9), rgba(10, 10, 10, 0.9)), url('https://images.unsplash.com/photo-1550745165-9bc0b252726f?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
    background-size: cover;
    background-position: center;
    padding: 150px 0 80px;
    text-align: center;
    border-bottom: 1px solid var(--primary);
}

.forum-header h1 {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
    text-shadow: 0 0 10px rgba(255, 62, 62, 0.5);
}

.search-bar {
    max-width: 600px;
    margin: 2rem auto 0;
    display: flex;
    gap: 10px;
}

.search-bar input {
    flex-grow: 1;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 5px;
    font-family: 'Roboto Mono', monospace;
}

.search-bar button {
    padding: 1rem 1.5rem;
    background: var(--secondary);
    border: none;
    color: #fff;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}

.search-bar button:hover {
    background: #b026ff;
}

.forum-category {
    margin-bottom: 3rem;
    animation: fadeInUp 0.5s ease forwards;
}

.category-header {
    background: var(--card-bg); /* Dark design color */
    border-bottom: 2px solid var(--primary); /* Accent border */
    padding: 1rem 1.5rem;
    border-radius: 5px 5px 0 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.category-header h2 {
    font-size: 1.2rem;
    margin: 0;
    color: var(--primary); /* Primary accent color */
}

.verified-badge {
    color: #00bfff; /* Light blue for verification */
    margin-left: 0.5rem;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
}

.forum-list {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 0 0 5px 5px;
}

.forum-row {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: 0.2s;
}

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

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

.forum-row .icon {
    font-size: 2rem;
    color: var(--text-muted);
    width: 60px;
    text-align: center;
}

.forum-row .info {
    flex-grow: 1;
    padding: 0 1.5rem;
}

.forum-row .info h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.forum-row .info h3 a:hover {
    color: var(--primary);
    text-decoration: underline;
}

.forum-row .info p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.forum-row .stats {
    display: flex;
    flex-direction: column;
    text-align: right;
    font-size: 0.8rem;
    color: var(--text-muted);
    min-width: 100px;
}

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

/* Mobile Responsiveness for Forum */
@media (max-width: 768px) {
    .forum-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .forum-row .icon {
        width: auto;
    }
    
    .forum-row .info {
        padding: 0;
    }
    
    .forum-row .stats {
        flex-direction: row;
        gap: 1rem;
        text-align: left;
    }
    
    .top-bar-content {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Utilities */
.text-center { text-align: center; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.w-100 { width: 100%; }
.text-muted { color: var(--text-muted); font-size: 0.9rem; }

/* Alerts */
.alert {
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 5px;
    position: relative;
    font-family: 'Roboto Mono', monospace;
    animation: fadeInUp 0.5s ease forwards;
}

.alert-danger {
    color: #fff;
    background-color: rgba(220, 53, 69, 0.9);
    border-color: #dc3545;
    box-shadow: 0 0 10px rgba(220, 53, 69, 0.3);
}

.alert-success {
    color: #fff;
    background-color: rgba(40, 167, 69, 0.9);
    border-color: #28a745;
    box-shadow: 0 0 10px rgba(40, 167, 69, 0.3);
}

.alert-info {
    color: #fff;
    background-color: rgba(23, 162, 184, 0.9);
    border-color: #17a2b8;
}

.close-alert {
    position: absolute;
    top: 0;
    right: 0;
    padding: 0.75rem 1.25rem;
    color: inherit;
    background: transparent;
    border: 0;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0.7;
    transition: 0.3s;
}

.close-alert:hover {
    opacity: 1;
    text-shadow: 0 0 5px rgba(255,255,255,0.5);
}

/* Auth Card (Global) */
.auth-card {
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    width: 100%;
    max-width: 400px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    margin: 0 auto;
}

/* Server Life Cards */
.topic-card {
    flex: 1 1 300px;
    max-width: 380px;
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 1.5rem;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.topic-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

.topic-header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.topic-tag {
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
    color: #fff;
    font-size: 0.8rem;
    text-transform: uppercase;
}

.topic-card h3 a {
    font-size: 1.3rem;
    color: #fff;
    font-weight: bold;
    text-decoration: none;
    display: block;
    margin: 0.5rem 0;
    transition: 0.3s;
}

.topic-card h3 a:hover {
    color: var(--primary);
    text-decoration: underline;
}

.topic-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    flex-grow: 1;
}

.topic-footer {
    display: flex;
    justify-content: center;
    gap: 20px;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1rem;
    margin-top: auto;
}

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

.author img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.1);
}

.author span {
    font-weight: bold;
    color: #fff;
    font-size: 0.9rem;
}

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

/* Role Badges */
.user-role { 
    font-size: 0.75rem; 
    padding: 4px 12px; 
    border-radius: 20px; 
    display: inline-flex; 
    align-items: center;
    gap: 5px;
    margin-top: 5px; 
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.role-admin, .role-owner { 
    background: linear-gradient(45deg, #ff3e3e, #800000); 
    color: #fff; 
    box-shadow: 0 0 10px rgba(255, 62, 62, 0.4);
    border: 1px solid #ff3e3e;
}

.role-moderator { 
    background: linear-gradient(45deg, #28a745, #1e7e34); 
    color: #fff; 
    box-shadow: 0 0 10px rgba(40, 167, 69, 0.4);
    border: 1px solid #28a745;
}

.role-helper { 
    background: linear-gradient(45deg, #17a2b8, #117a8b); 
    color: #fff; 
    box-shadow: 0 0 10px rgba(23, 162, 184, 0.4);
    border: 1px solid #17a2b8;
}

.role-vip, .role-premium { 
    background: linear-gradient(45deg, #ffc107, #d39e00); 
    color: #000; 
    box-shadow: 0 0 10px rgba(255, 193, 7, 0.4);
    border: 1px solid #ffc107;
}

.role-youtube { 
    background: linear-gradient(45deg, #ff0000, #990000); 
    color: #fff; 
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.4);
    border: 1px solid #ff0000;
}

.role-member, .role-player, .role-участник, .role-игрок { 
    background: rgba(255, 255, 255, 0.1); 
    color: #ccc; 
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.verified-badge {
    color: #00bfff;
    margin-left: 5px;
    font-size: 0.9em;
    filter: drop-shadow(0 0 5px rgba(0, 191, 255, 0.5));
}

/* Form Controls (Global) */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 0.8rem;
    border-radius: 5px;
    font-family: 'Roboto Mono', monospace;
    transition: 0.3s;
    resize: none; /* Disable resizing */
}

textarea.form-control {
    min-height: 400px; /* Make textareas large by default */
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(255, 62, 62, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

/* Mini Profile Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.mini-profile-card {
    background: #141414;
    width: 90%;
    max-width: 350px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
    overflow: hidden;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s;
}

.modal-overlay.active .mini-profile-card {
    transform: scale(1);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    z-index: 10;
    transition: 0.3s;
}

.close-modal:hover { color: #fff; }

.mini-profile-header {
    background: transparent; /* Removed gradient */
    padding: 2.5rem 2rem 1rem;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.mini-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 3px solid var(--card-bg);
    object-fit: cover;
    box-shadow: 0 0 0 2px var(--primary), 0 0 20px rgba(255, 62, 62, 0.3);
}

.mini-username {
    font-family: 'Russo One', sans-serif;
    font-size: 1.5rem;
    color: #fff;
}

.mini-profile-body {
    padding: 1rem 2rem 2rem;
    text-align: center;
}

.mini-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 1rem 0;
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.stat-value { font-weight: bold; font-size: 1.2rem; color: #fff; margin-bottom: 0.2rem; }
.stat-label { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }

/* Payment Modal */
.payment-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    text-align: left;
    padding: 1rem 0;
}

.payment-title {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    text-align: center;
    color: #fff;
    font-family: 'Russo One', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.payment-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.payment-item-info {
    background: rgba(20, 20, 20, 0.8);
    padding: 1.2rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 62, 62, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.payment-item-name {
    font-weight: bold;
    color: #fff;
    font-size: 1.1rem;
}

.payment-item-price {
    color: var(--primary);
    font-weight: bold;
    font-size: 1.2rem;
    font-family: 'Russo One', sans-serif;
}

/* Autofill Fix */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px #141414 inset !important;
    -webkit-text-fill-color: white !important;
    caret-color: white;
}

/* Post Content */
.post-content { 
    padding: 2rem; 
    flex-grow: 1; 
    font-size: 1.05rem;
    line-height: 1.6;
    background: rgba(0,0,0,0.1); /* Subtle darkening for content area */
    min-width: 0; /* Prevent flex overflow */
    word-wrap: break-word; /* Break long words */
    overflow-wrap: break-word;
    position: relative; /* For positioning actions if needed */
    min-height: 0;
    width: 100%;
}

.post-content img {
    max-width: 100%;
    height: auto;
}
.post-content blockquote {
    margin: 0.5rem 0;
    padding: 0.75rem 1rem;
    border-left: 3px solid var(--primary);
    background: rgba(255,255,255,0.04);
    color: #ddd;
    border-radius: 4px;
}

.user-mention {
    color: var(--primary);
    font-weight: 600;
}

.post-actions {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

.action-btn {
    font-size: 0.9rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: 0.3s;
    background: none;
    border: none;
    display: flex;
    align-items: center;
    gap: 5px;
}

.action-btn:hover {
    color: #fff;
}

.action-btn.delete:hover {
    color: #ff3e3e;
}

.action-btn.edit:hover {
    color: var(--primary);
}

/* Thread View Styles */
.thread-header h1 { color: var(--primary); font-family: 'Russo One', sans-serif; font-size: 2rem; margin-bottom: 0.5rem; }
.thread-meta { color: var(--text-muted); font-size: 0.9rem; }
.thread-meta span { margin-right: 15px; }

.post-container { 
    display: flex; 
    flex-direction: column; 
    gap: 1.5rem;
    width: 100%;
    max-width: 100%;
}

.post-card {
    display: flex;
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 5px;
    overflow: hidden;
    min-height: 180px;
    width: 100%;
}

.op-post { 
    border: 1px solid var(--primary); 
    box-shadow: 0 0 10px rgba(255, 62, 62, 0.1); 
    min-height: 240px;
}

.post-sidebar {
    width: 220px; /* Increased sidebar width */
    background: rgba(0, 0, 0, 0.2);
    padding: 2rem;
    text-align: center;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.user-avatar-container {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 15px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    transition: 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.user-avatar-container:hover {
    transform: scale(1.05);
    border-color: var(--primary);
}

.user-avatar-container.admin-avatar {
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(255, 62, 62, 0.4);
}

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

.user-link { text-decoration: none; display: flex; flex-direction: column; align-items: center; }
.user-link:hover .user-name { color: var(--primary); text-shadow: 0 0 10px rgba(255, 62, 62, 0.5); }

.user-name { font-weight: bold; font-size: 1.1rem; color: #fff; margin-bottom: 5px; word-break: break-word; transition: 0.3s; }

.user-stats {
    margin-top: 15px;
    width: 100%;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.stat-row {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.stat-row i { color: var(--primary); opacity: 0.7; }

.reply-section {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 5px;
    padding: 1.5rem;
    margin-top: 3rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    width: 100%;
    max-width: 100%;
}

.reply-section h3 {
    margin-bottom: 1.5rem;
    color: var(--primary);
    font-size: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 1rem;
}

.reply-section textarea.form-control {
    font-size: 1.2rem;
    line-height: 1.6;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-height: 500px; /* Ensure huge text area */
}

.reply-section textarea.form-control:focus {
    background: rgba(0, 0, 0, 0.3);
    border-color: var(--primary);
}

.post-date { 
    font-size: 0.9rem; 
    color: var(--text-muted); 
    margin-bottom: 1.5rem; 
    border-bottom: 1px solid rgba(255, 255, 255, 0.05); 
    padding-bottom: 10px; 
}

@media (max-width: 768px) {
    .post-card { flex-direction: column; }
    .post-sidebar { width: 100%; border-right: none; border-bottom: 1px solid rgba(255, 255, 255, 0.05); flex-direction: row; gap: 1rem; padding: 1rem; text-align: left; justify-content: flex-start; }
    .user-avatar-container { width: 50px; height: 50px; margin-bottom: 0; }
    .user-role { margin-top: 0; margin-left: auto; }
}

/* Admin UI Global */
.admin-card {
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 2.5rem;
    margin-bottom: 2rem;
    width: 100%;
}

.card-title {
    color: var(--primary);
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 1rem;
}

.table-responsive {
    margin-top: 1rem;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    color: #ddd;
    font-size: 1rem;
}

.admin-table th,
.admin-table td {
    padding: 1.25rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-table thead th {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

.admin-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.user-cell {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.admin-table .mini-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-icon {
    color: var(--text-muted);
    margin-right: 10px;
    transition: 0.3s;
    cursor: pointer;
}

.btn-icon:hover {
    color: #fff;
}

.full-width {
    width: 100%;
}

/* Donate Cards Refinements */
.donate-card {
    padding: 2rem;
    gap: 1.25rem;
    background-image: linear-gradient(145deg, rgba(255,255,255,0.03), rgba(0,0,0,0.15));
    box-shadow: 0 10px 30px rgba(0,0,0,0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out, box-shadow 0.3s;
}

.donate-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0.25;
}

.donate-card.in-view {
    opacity: 1;
    transform: translateY(0);
}

.donate-card .rank-badge,
.donate-card .price,
.donate-card .perks li,
.donate-card .buy-btn {
    opacity: 0;
    transform: translateY(12px);
}

.donate-card.in-view .rank-badge { animation: popIn 0.4s ease-out 0.1s forwards; }
.donate-card.in-view .price { animation: popIn 0.4s ease-out 0.2s forwards; }
.donate-card.in-view .perks li:nth-child(1) { animation: popIn 0.3s ease-out 0.3s forwards; }
.donate-card.in-view .perks li:nth-child(2) { animation: popIn 0.3s ease-out 0.35s forwards; }
.donate-card.in-view .perks li:nth-child(3) { animation: popIn 0.3s ease-out 0.4s forwards; }
.donate-card.in-view .perks li:nth-child(4) { animation: popIn 0.3s ease-out 0.45s forwards; }
.donate-card.in-view .buy-btn { animation: popIn 0.4s ease-out 0.55s forwards; }

@keyframes popIn {
    from { opacity: 0; transform: translateY(12px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.rank-badge {
    align-self: center;
    margin-top: 1rem;
    font-family: 'Russo One', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.5rem 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-weight: bold;
    box-shadow: 0 5px 20px rgba(0,0,0,0.35);
}

.rank-badge.vip {
    background: linear-gradient(45deg, #ffd700, #ffb300);
    color: #121212;
}

.rank-badge.premium {
    background: linear-gradient(45deg, var(--secondary), #5a00b8);
    color: #fff;
}

.rank-badge.elite {
    background: linear-gradient(45deg, var(--primary), #800000);
    color: #fff;
}

.donate-card .price {
    font-size: 1.8rem;
    font-weight: bold;
    color: #fff;
    text-align: center;
    margin: 0.5rem 0 0.5rem;
    text-shadow: 0 0 12px rgba(255, 62, 62, 0.15);
}

.donate-card .perks {
    padding: 0.25rem 0.75rem;
}

.donate-card .perks li {
    padding: 0.6rem 0.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.donate-card .perks li:last-child {
    border-bottom: none;
}

.donate-card .perks li i {
    color: var(--primary);
    opacity: 0.9;
    margin-right: 8px;
}

.donate-card.featured {
    border-color: var(--primary);
    box-shadow: 0 0 30px rgba(255, 62, 62, 0.2);
    transform: scale(1.03);
    outline: 1px solid rgba(255, 62, 62, 0.35);
}

.donate-card.featured:hover {
    transform: translateY(-10px) scale(1.05);
}

.donate-card .buy-btn {
    width: 90%;
    margin: 0.5rem auto 1.5rem;
    padding: 1rem 2rem;
    background: linear-gradient(90deg, var(--primary), #ff5e5e);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    text-transform: uppercase;
    box-shadow: 0 0 15px rgba(255, 62, 62, 0.4);
    background-size: 200% 200%;
    position: relative;
    overflow: hidden;
    animation: gradientShiftBtn 4s linear infinite;
}

.donate-card .buy-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 25px rgba(255, 62, 62, 0.6);
}

.donate-card .buy-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -30%;
    width: 30%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,0.25), rgba(255,255,255,0));
    transform: skewX(-20deg);
    animation: btnShine 3.5s ease-in-out infinite;
}

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

@keyframes btnShine {
    0% { left: -30%; }
    50% { left: 100%; }
    100% { left: 100%; }
}

.donate-card .particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.donate-card .particle {
    position: absolute;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(255, 62, 62, 0.4);
    opacity: 0.7;
    animation: particleFloat 4s ease-in-out infinite;
}

@keyframes particleFloat {
    0% { transform: translateY(10px) translateX(0); opacity: 0.7; }
    50% { transform: translateY(-10px) translateX(5px); opacity: 0.9; }
    100% { transform: translateY(10px) translateX(0); opacity: 0.7; }
}

.features {
    padding: 6rem 5%;
    background: radial-gradient(circle at 20% 20%, rgba(255, 62, 62, 0.08), transparent 60%), radial-gradient(circle at 80% 50%, rgba(157, 0, 255, 0.08), transparent 60%);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.features .feature-card {
    position: relative;
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.features .feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), transparent);
    opacity: 0.6;
}

.features .feature-card:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--primary);
    box-shadow: 0 15px 35px rgba(255, 62, 62, 0.2);
}

.features .feature-card i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
    text-shadow: 0 0 12px rgba(255, 62, 62, 0.25);
}

.features .feature-card h3 {
    color: #fff;
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
}

.features .feature-card p {
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 420px;
    margin: 0 auto;
}
/* Toggle Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
}
.switch input { display: none; }
.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background: #1f1f1f;
    border: 1px solid #444;
    border-radius: 999px;
    transition: 0.3s;
    box-shadow: inset 0 0 8px rgba(0,0,0,0.6);
}
.slider:before {
    content: "";
    position: absolute;
    height: 22px; width: 22px;
    left: 3px; top: 2px;
    background: linear-gradient(180deg, #2a2a2a, #000);
    border: 1px solid #555;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0,0,0,0.7);
    transition: 0.3s;
}
.switch input:checked + .slider {
    background: linear-gradient(90deg, var(--primary), #7a001f);
    border-color: var(--primary);
    box-shadow: 0 0 12px rgba(255,62,62,0.35);
}
.switch input:checked + .slider:before {
    transform: translateX(24px);
    background: #fff;
    border-color: #fff;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
}

/* Modal System */
.modal {
    display: none; 
    position: fixed; 
    z-index: 2000; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.8); 
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--card-bg);
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 90%;
    max-width: 500px;
    border-radius: 12px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.5);
    
    /* Center positioning */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    
    animation: modalPop 0.3s ease;
}

@keyframes modalPop {
    from { opacity: 0; transform: translate(-50%, -55%); }
    to { opacity: 1; transform: translate(-50%, -50%); }
}

.close {
    color: var(--text-muted);
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    right: 20px;
    top: 10px;
    cursor: pointer;
    transition: 0.2s;
}

.close:hover {
    color: #fff;
    text-decoration: none;
}

/* Reply Editor */
.reply-section {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 1.5rem;
}
.reply-section h3 {
    color: var(--primary);
    margin-bottom: 1rem;
}
.editor-toolbar {
    display: flex;
    gap: 8px;
    margin-bottom: 0.8rem;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 6px;
    padding: 6px;
    background: rgba(0,0,0,0.2);
}
.format-btn, .attach-btn {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    color: #ddd;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s;
}
.format-btn:hover, .attach-btn:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
    transform: translateY(-1px);
}
.attachment-preview {
    margin-top: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}
/* Narrow thread page */
.thread-page {
    max-width: 1000px;
    margin: 0 auto;
}
.reply-section .form-control {
    min-height: 160px;
    max-height: 300px;
    resize: vertical;
}

/* Standard Buttons (Bootstrap-like) */
.btn {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.9rem;
    font-weight: bold;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1.2;
    text-align: center;
}

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
}

.btn-danger {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 0 5px rgba(255, 62, 62, 0.3);
}

.btn-danger:hover {
    background: #ff5e5e;
    box-shadow: 0 0 15px rgba(255, 62, 62, 0.6);
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--secondary);
    color: #fff;
    box-shadow: 0 0 5px rgba(157, 0, 255, 0.3);
}

.btn-primary:hover {
    background: #b24dff;
    box-shadow: 0 0 15px rgba(157, 0, 255, 0.6);
    transform: translateY(-2px);
}

.btn-secondary {
    background: #333;
    color: #e0e0e0;
}

.btn-secondary:hover {
    background: #444;
    color: #fff;
}

