:root {
    --bg-primary: #080808;
    --bg-secondary: #0c0c0c;
    --bg-card: #121212;
    --bg-card-hover: #181818;
    --bg-card-alt: #1a1a1a;
    
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.85);
    --text-muted: rgba(255, 255, 255, 0.6);
    --text-tertiary: rgba(255, 255, 255, 0.4);
    
    --accent: #e50914;
    --accent-hover: #f40612;
    --accent-dark: #b30710;
    --accent-transparent: rgba(229, 9, 20, 0.15);
    --accent-glow: 0 0 20px rgba(229, 9, 20, 0.6);
    --accent-soft-glow: 0 0 15px rgba(229, 9, 20, 0.3);
    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-strong: rgba(255, 255, 255, 0.12);
    
    --shadow-subtle: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    --shadow-strong: 0 20px 40px -10px rgba(0, 0, 0, 0.8);
    --shadow-accent: 0 10px 25px -5px rgba(229, 9, 20, 0.35);
    
    --transition-fastest: 0.1s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-normal: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-slow: 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-bounce: 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    --transition-spring: 0.7s cubic-bezier(0.68, -0.6, 0.32, 1.6);
    
    --new-badge: #1DB954;
    --new-badge-hover: #1ed760;
    --new-badge-dark: #0d8a3a;
    --new-badge-glow: 0 0 15px rgba(29, 185, 84, 0.5);
    
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 16px;
    --border-radius-xl: 24px;
    --border-radius-full: 9999px;

}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDeep {
    0% { opacity: 0; transform: translateY(30px) scale(0.97); }
    70% { opacity: 0.9; transform: translateY(-3px) scale(1.01); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes fadeInScale {
    0% { opacity: 0; transform: scale(0.94); }
    70% { opacity: 0.95; transform: scale(1.02); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes pulseAccent {
    0% { box-shadow: 0 0 0 0 var(--accent-transparent); }
    70% { box-shadow: 0 0 0 14px rgba(229, 9, 20, 0); }
    100% { box-shadow: 0 0 0 0 rgba(229, 9, 20, 0); }
}

@keyframes pulseGreen {
    0% { box-shadow: 0 0 0 0 rgba(29, 185, 84, 0.4); }
    70% { box-shadow: 0 0 0 14px rgba(29, 185, 84, 0); }
    100% { box-shadow: 0 0 0 0 rgba(29, 185, 84, 0); }
}

@keyframes shine {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes shineStatic {
    0% { opacity: 0.3; }
    50% { opacity: 0.6; }
    100% { opacity: 0.3; }
}

@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(0); }
}

@keyframes floatShadow {
    0% { transform: translateY(0) scale(1); box-shadow: 0 20px 30px -15px rgba(0,0,0,0.5); }
    50% { transform: translateY(-8px) scale(1.02); box-shadow: 0 30px 50px -10px rgba(0,0,0,0.45); }
    100% { transform: translateY(0) scale(1); box-shadow: 0 20px 30px -15px rgba(0,0,0,0.5); }
}

@keyframes ripple {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(1.7); opacity: 0; }
}

@keyframes rotateGlow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes borderPulse {
    0% { border-color: rgba(229, 9, 20, 0.3); }
    50% { border-color: rgba(229, 9, 20, 0.8); }
    100% { border-color: rgba(229, 9, 20, 0.3); }
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes progressGrow {
    0% { width: 0; }
    100% { width: 100%; }
}

@keyframes elasticAppear {
    0% { transform: scale(0.7); opacity: 0; }
    70% { transform: scale(1.1); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes blinkTyping {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    right: 0;
    width: 100vw;
    height: 100vh;
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(229, 9, 20, 0.08) 0%, transparent 35%),
        radial-gradient(circle at 85% 30%, rgba(229, 9, 20, 0.05) 0%, transparent 40%),
        var(--pattern-noise);
    z-index: -1;
    pointer-events: none;
    opacity: 0.8;
}

::-webkit-scrollbar {
    width: 10px;
    background-color: var(--bg-primary);
}

::-webkit-scrollbar-track {
    background-color: var(--bg-secondary);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, var(--accent-dark), var(--accent-hover));
    border-radius: 10px;
    border: 2px solid var(--bg-secondary);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, var(--accent-hover), var(--accent));
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    box-shadow: 0 0 0 5px rgba(229, 9, 20, 0.1);
    transition: all var(--transition-fast);
}

.container {
    max-width: 1400px;
    padding: 2.5rem 1.5rem;
    margin: 0 auto;
    animation: fadeIn 0.8s ease forwards;
    position: relative;
}

.glassmorphism {
    background: rgba(18, 18, 18, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.forum-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 3.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
}

.forum-header::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, 
        transparent, 
        rgba(255, 255, 255, 0.05) 20%, 
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0.05) 80%,
        transparent);
}

.forum-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 120px;
    height: 3px;
    background: linear-gradient(to right, var(--accent), transparent);
    border-radius: 3px;
    animation: shineStatic 3s infinite;
}

.forum-title {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(120deg, #ffffff, #b3b3b3, var(--accent), #ffffff);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
    letter-spacing: -0.03em;
    animation: shine 12s linear infinite;
    position: relative;
    width: fit-content;
}

.forum-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 70%;
    height: 2px;
    background: linear-gradient(to right, rgba(229, 9, 20, 0.8), transparent);
    border-radius: 2px;
}

.create-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: white;
    padding: 0.9rem 1.5rem;
    border-radius: var(--border-radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all var(--transition-bounce);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(229, 9, 20, 0.3);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    perspective: 800px;
}

.create-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: 0.6s;
}

.create-button::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(255, 255, 255, 0.15), transparent);
    border-radius: var(--border-radius-md);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.create-button:hover {
    transform: translateY(-5px) translateZ(10px);
    box-shadow: 0 12px 25px rgba(229, 9, 20, 0.5);
}

.create-button:hover::before {
    left: 100%;
}

.create-button:hover::after {
    opacity: 1;
}

.create-button:active {
    transform: translateY(-2px) scale(0.98);
    box-shadow: 0 5px 15px rgba(229, 9, 20, 0.4);
    transition: all 0.1s;
}

.create-button svg {
    transition: transform var(--transition-fast);
    filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.5));
}

.create-button:hover svg {
    transform: rotate(90deg) scale(1.2);
}

.topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2rem;
    perspective: 2000px;
    padding-bottom: 2rem;
    position: relative;
}

.topic-card {
    position: relative;
    background: linear-gradient(145deg, var(--bg-card), var(--bg-card-alt));
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    padding: 2.5rem 1.5rem 1.5rem 1.5rem;
    box-shadow: var(--shadow-subtle), 0 0 0 1px rgba(255, 255, 255, 0.03);
    transition: all var(--transition-spring);
    animation: fadeInDeep 0.8s forwards;
    animation-delay: calc(var(--index, 0) * 0.075s);
    opacity: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    border-left: 3px solid transparent;
    transform-style: preserve-3d;
    backface-visibility: hidden;
    isolation: isolate;
}

.topic-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 15% 15%, rgba(229, 9, 20, 0.08), transparent 50%),
        radial-gradient(circle at 85% 85%, rgba(220, 220, 220, 0.03), transparent 50%);
    pointer-events: none;
    opacity: 0;
    transition: opacity var(--transition-normal);
    z-index: -1;
}

.topic-card:hover {
    transform: translateY(-10px) rotateX(3deg) rotateY(-2deg) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1);
    border-left: 3px solid var(--accent);
    z-index: 5;
}

.topic-card:hover::before {
    opacity: 1;
}

.topic-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(255,255,255,0) 30%, rgba(255,255,255,0.05) 50%, rgba(255,255,255,0) 70%);
    transform: translateX(-100%);
    transition: all 0.8s ease;
    z-index: -1;
}

.topic-card:hover::after {
    transform: translateX(100%);
}

.topic-card.new {
    border-left: 3px solid var(--new-badge);
    box-shadow: 0 10px 25px rgba(29, 185, 84, 0.2);
    animation: pulseGreen 3s infinite;
}

.topic-card.new:hover {
    border-left: 3px solid var(--new-badge-hover);
    animation: none;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3), 0 10px 25px rgba(29, 185, 84, 0.2);
}

.topic-card::before {
    mask-image: var(--pattern-noise);
    -webkit-mask-image: var(--pattern-noise);
    mask-size: 100px 100px;
    -webkit-mask-size: 100px 100px;
}

.card-header {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
    margin-bottom: 1.2rem;
    width: 100%;
    padding-right: 3rem;
}

.avatar {
    width: 3.2rem;
    height: 3.2rem;
    min-width: 3.2rem;
    border-radius: 50%;
    overflow: hidden;
    transition: all var(--transition-spring);
    border: 2px solid var(--accent);
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1), var(--accent-soft-glow);
    transform: translateZ(0);
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--accent);
}

.topic-card:hover .avatar {
    transform: scale(1.12) translateZ(30px);
    border-color: var(--accent-hover);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.2), var(--accent-glow);
}

.avatar::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: conic-gradient(from 0deg at 50% 50%, var(--accent) 0%, transparent 60%, var(--accent) 100%);
    animation: rotateGlow 3s linear infinite;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.topic-card:hover .avatar::after {
    opacity: 0.5;
}

.topic-card.new .avatar {
    border-color: var(--new-badge);
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1), 0 0 15px rgba(29, 185, 84, 0.3);
}

.topic-card.new:hover .avatar {
    border-color: var(--new-badge-hover);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.2), var(--new-badge-glow);
}

.topic-card.new .avatar::after {
    background: conic-gradient(from 0deg at 50% 50%, var(--new-badge) 0%, transparent 60%, var(--new-badge) 100%);
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.avatar i {
    font-size: 1.5rem;
    color: white;
}

.topic-card:hover .avatar i {
    transform: scale(1.15);
    transition: transform var(--transition-slow);
}

.topic-card:hover .avatar img {
    transform: scale(1.15) rotate(3deg);
}

.card-header-content {
    flex: 1;
    min-width: 0;
    width: 100%;
    position: relative;
}

.topic-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    color: var(--text-primary);
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    width: 100%;
    position: relative;
    display: inline-block;
    transform: translateZ(0);
    transition: all var(--transition-normal);
}

.topic-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, var(--accent), transparent);
    transition: width var(--transition-slow);
    border-radius: 2px;
}

.topic-card:hover .topic-title {
    transform: translateZ(10px);
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.topic-card:hover .topic-title::after {
    width: 80%;
}

.topic-title a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-normal);
    background-image: linear-gradient(transparent 70%, rgba(229, 9, 20, 0.1) 0);
    background-size: 0 100%;
    background-repeat: no-repeat;
    transition: background-size 0.4s ease;
}

.topic-title a:hover {
    color: var(--accent);
    background-size: 100% 100%;
}

.topic-subtitle {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--accent);
    margin-bottom: 0.6rem;
    transition: all var(--transition-normal);
    transform: translateZ(0);
}

.topic-card:hover .topic-subtitle {
    color: var(--accent-hover);
    transform: translateZ(8px);
}

.topic-subtitle a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
}

.topic-description {
    margin-top: 1.2rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    flex-grow: 1;
    overflow-y: auto;
    max-height: 150px;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) var(--bg-secondary);
    transition: color var(--transition-normal), transform var(--transition-normal);
    transform: translateZ(0);
    position: relative;
    padding-right: 5px;
}

.topic-card:hover .topic-description {
    color: var(--text-primary);
    transform: translateZ(5px);
}

.topic-description::-webkit-scrollbar {
    width: 4px;
}

.topic-description::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    margin: 5px;
}

.topic-description::-webkit-scrollbar-thumb {
    background-color: var(--accent);
    border-radius: 10px;
}

.topic-description::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 5px;
    height: 40px;
    background: linear-gradient(to top, var(--bg-card), transparent);
    pointer-events: none;
    opacity: 0.8;
    border-bottom-left-radius: var(--border-radius-md);
    border-bottom-right-radius: var(--border-radius-md);
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    transition: all var(--transition-normal);
    transform: translateZ(0);
}

.topic-card:hover .card-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    transform: translateZ(15px);
}

.timestamp {
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: color var(--transition-normal);
    padding: 5px 12px;
    background: rgba(0, 0, 0, 0.15);
    border-radius: var(--border-radius-full);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

.topic-card:hover .timestamp {
    color: var(--text-secondary);
    background: rgba(0, 0, 0, 0.25);
}

.comments {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.badge {
    background: rgba(229, 9, 20, 0.1);
    color: var(--text-primary);
    padding: 0.4rem 0.9rem;
    border-radius: var(--border-radius-full);
    font-size: 0.85rem;
    border: 1px solid rgba(229, 9, 20, 0.2);
    transition: all var(--transition-bounce);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 5px;
}

.badge::before {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--accent);
    animation: pulseAccent 2s infinite;
}

.topic-card:hover .badge {
    background: rgba(229, 9, 20, 0.15);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 15px rgba(229, 9, 20, 0.2);
    border-color: rgba(229, 9, 20, 0.3);
}

.icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    transition: all var(--transition-bounce);
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.icon-button::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(229, 9, 20, 0.3), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.icon-button:hover {
    background-color: var(--accent);
    color: white;
    transform: scale(1.15);
    box-shadow: 0 0 0 5px rgba(229, 9, 20, 0.1), var(--accent-soft-glow);
    border-color: rgba(255, 255, 255, 0.15);
}

.icon-button:hover::before {
    opacity: 1;
}

.icon-button svg {
    position: relative;
    z-index: 1;
    transition: transform var(--transition-fastest);
}

.icon-button:hover svg {
    transform: scale(1.1);
}

.progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(to right, var(--accent), transparent);
    width: 0;
    transition: width 0.9s cubic-bezier(0.19, 1, 0.22, 1);
    z-index: 2;
}

.topic-card:hover .progress-bar {
    width: 100%;
}

.topic-card.new .progress-bar {
    background: linear-gradient(to right, var(--new-badge), transparent);
}

.status-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    background: linear-gradient(135deg, var(--new-badge), var(--new-badge-hover));
    color: white;
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: var(--border-radius-full);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    letter-spacing: 0.02em;
    box-shadow: 0 4px 12px rgba(29, 185, 84, 0.3);
    transition: all var(--transition-bounce);
    transform-style: preserve-3d;
}

.status-badge::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(to right, var(--new-badge), transparent, var(--new-badge));
    background-size: 200% 100%;
    border-radius: var(--border-radius-full);
    z-index: -1;
    animation: gradientShift 3s ease infinite;
    opacity: 0.3;
}

.status-badge:hover {
    transform: translateY(-3px) scale(1.05) translateZ(10px);
    box-shadow: 0 0 0 5px rgba(29, 185, 84, 0.1), var(--new-badge-glow);
}

.status-badge svg {
    filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.5));
    transform: translateZ(2px);
}

@media (max-width: 640px) {
    .status-badge {
        padding: 0.35rem 0.7rem;
        font-size: 0.65rem;
    }
    
    .status-badge span {
        display: none;
    }
    
    .avatar {
        width: 44px;
        height: 44px;
    }
    
    .topic-title {
        font-size: 1.2rem;
    }
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    perspective: 1200px;
}

.modal-container {
    background: linear-gradient(145deg, var(--bg-card), #1c1c1c);
    border-radius: var(--border-radius-lg);
    width: 100%;
    max-width: 650px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2.5rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.05);
    animation: fadeInScale 0.5s forwards;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
}

.modal-container:hover {
    transform: translateZ(10px);
}

.modal-container::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 15% 15%, rgba(229, 9, 20, 0.08), transparent 50%),
        radial-gradient(circle at 85% 85%, rgba(220, 220, 220, 0.03), transparent 50%);
    pointer-events: none;
    border-radius: var(--border-radius-lg);
    z-index: -1;
}

.modal-container::-webkit-scrollbar {
    width: 8px;
}

.modal-container::-webkit-scrollbar-track {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    margin: 5px;
}

.modal-container::-webkit-scrollbar-thumb {
    background-color: var(--accent);
    border-radius: 10px;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding-bottom: 1.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
}

.modal-header::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, 
        transparent, 
        rgba(255, 255, 255, 0.05) 20%, 
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0.05) 80%,
        transparent);
}

.modal-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, var(--accent), transparent);
    border-radius: 3px;
    animation: shineStatic 3s infinite;
}

.modal-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
    position: relative;
    padding-left: 18px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.modal-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 70%;
    background: linear-gradient(to bottom, var(--accent), var(--accent-dark));
    border-radius: 4px;
    box-shadow: var(--accent-soft-glow);
}

.close-button {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-bounce);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
}

.close-button::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(229, 9, 20, 0.3), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.close-button:hover {
    color: white;
    transform: rotate(90deg) scale(1.1);
    background-color: var(--accent);
    box-shadow: var(--accent-soft-glow);
}

.close-button:hover::before {
    opacity: 1;
}

.close-button svg {
    width: 24px;
    height: 24px;
    position: relative;
    z-index: 1;
}

.form-group {
    margin-bottom: 2rem;
    position: relative;
    transition: all var(--transition-normal);
}

.form-group:hover {
    transform: translateZ(5px);
}

.form-label {
    display: block;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.03em;
    transition: all var(--transition-fast);
    position: relative;
    padding-left: 12px;
}

.form-label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 70%;
    background: linear-gradient(to bottom, var(--accent), var(--accent-dark));
    border-radius: 4px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.form-group:hover .form-label {
    color: var(--text-primary);
    transform: translateY(-2px);
}

.form-group:hover .form-label::before {
    opacity: 1;
}

.form-input, 
.form-textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-md);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all var(--transition-normal);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
}

.form-input:hover,
.form-textarea:hover {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1), 0 0 0 4px rgba(229, 9, 20, 0.05);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1), 0 0 0 4px rgba(229, 9, 20, 0.1);
    background-color: rgba(0, 0, 0, 0.3);
}

.form-textarea {
    min-height: 150px;
    resize: vertical;
    line-height: 1.6;
}

.form-submit {
    width: 100%;
    padding: 1.1rem;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: white;
    border: none;
    border-radius: var(--border-radius-md);
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-bounce);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(229, 9, 20, 0.3);
    transform-style: preserve-3d;
    perspective: 800px;
    letter-spacing: 0.02em;
}

.form-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: 0.6s;
}

.form-submit::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(255, 255, 255, 0.15), transparent);
    border-radius: var(--border-radius-md);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.form-submit:hover {
    transform: translateZ(10px) translateY(-5px);
    box-shadow: 0 15px 30px rgba(229, 9, 20, 0.4);
}

.form-submit:hover::before {
    left: 100%;
}

.form-submit:hover::after {
    opacity: 1;
}

.form-submit:active {
    transform: translateZ(5px) translateY(-2px);
    box-shadow: 0 8px 20px rgba(229, 9, 20, 0.4);
    transition: all 0.1s;
}

.form-submit:disabled {
    background: linear-gradient(135deg, #555, #444);
    cursor: not-allowed;
    transform: none !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.form-submit:disabled::after,
.form-submit:disabled::before {
    display: none;
}

.form-submit:disabled::after {
    content: '';
    display: inline-block;
    width: 1.2rem;
    height: 1.2rem;
    border: 2px solid white;
    border-top-color: transparent;
    border-radius: 50%;
    margin-left: 0.8rem;
    animation: spin 1s linear infinite;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.back-to-top {
    position: fixed;
    bottom: 2.5rem;
    right: 2.5rem;
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: var(--shadow-accent);
    transition: all var(--transition-bounce);
    z-index: 10;
    border: none;
    animation: floatShadow 3s ease-in-out infinite;
    transform-style: preserve-3d;
}

.back-to-top::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.2), transparent 50%);
    border-radius: 50%;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.back-to-top::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--accent);
    opacity: 0.5;
    animation: ripple 1.5s ease-out infinite;
}

.back-to-top:hover {
    transform: translateY(-5px) scale(1.1) translateZ(10px);
    box-shadow: 0 15px 30px rgba(229, 9, 20, 0.5);
    animation: none;
}

.back-to-top:hover::before {
    opacity: 1;
}

.back-to-top svg {
    font-size: 1.4rem;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.3));
    transition: transform var(--transition-normal);
}

.back-to-top:hover svg {
    transform: translateY(-3px);
}

@media (max-width: 1200px) {
    .topics-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    }
}

@media (max-width: 768px) {
    .topics-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    
    .forum-title {
        font-size: 2.6rem;
    }
    
    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 2rem;
        right: 2rem;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 1.5rem 1rem;
    }
    
    .topics-grid {
        grid-template-columns: 1fr;
    }
    
    .forum-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.2rem;
    }
    
    .forum-title {
        font-size: 2.2rem;
    }
    
    .topic-card {
        padding: 2.5rem 1.25rem 1.5rem 1.25rem;
    }
    
    .back-to-top {
        width: 40px;
        height: 40px;
        bottom: 1.5rem;
        right: 1.5rem;
    }
    
    .create-button {
        width: 100%;
    }
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    position: relative;
    z-index: 1;
    padding: 0.6rem 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--border-radius-md);
    width: fit-content;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transform: translateZ(0);
    transition: all var(--transition-normal);
}

.breadcrumb:hover {
    background: rgba(0, 0, 0, 0.3);
    transform: translateZ(5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 255, 255, 0.1);
}

.breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-normal);
    position: relative;
}

.breadcrumb a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--accent);
    transition: width var(--transition-normal);
}

.breadcrumb a:hover {
    color: var(--text-primary);
}

.breadcrumb a:hover::after {
    width: 100%;
}

.breadcrumb-separator {
    color: var(--text-tertiary);
}

.discussion-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    animation: fadeInDeep 0.8s ease forwards;
}

.discussion-sidebar {
    animation: fadeInDeep 0.8s ease forwards;
    animation-delay: 0.3s;
    opacity: 0;
}

.discussion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.discussion-header::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, 
        transparent, 
        rgba(255, 255, 255, 0.05) 20%, 
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0.05) 80%,
        transparent);
}

.discussion-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100px;
    height: 3px;
    background: linear-gradient(to right, var(--accent), transparent);
    border-radius: 3px;
    animation: shineStatic 3s infinite;
}

.discussion-title {
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
    margin: 0;
    background: linear-gradient(120deg, #ffffff, #b3b3b3, var(--accent), #ffffff);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    animation: shine 12s linear infinite;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
    transform-style: preserve-3d;
    transform: translateZ(0);
    transition: transform var(--transition-normal);
}

.discussion-title:hover {
    transform: translateZ(10px);
}

.btn-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.85rem 1.6rem;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--border-radius-md);
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: white;
    transition: all var(--transition-bounce);
    box-shadow: 0 4px 15px rgba(229, 9, 20, 0.3);
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
    transform-style: preserve-3d;
    perspective: 800px;
}

.btn-back::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: 0.6s;
}

.btn-back::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(255, 255, 255, 0.15), transparent);
    border-radius: var(--border-radius-md);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.btn-back:hover {
    transform: translateY(-5px) translateZ(10px);
    box-shadow: 0 12px 25px rgba(229, 9, 20, 0.4);
}

.btn-back:hover::before {
    left: 100%;
}

.btn-back:hover::after {
    opacity: 1;
}

.btn-back:hover svg {
    transform: translateX(-8px);
}

.btn-back svg {
    transition: transform var(--transition-fast);
    filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.5));
}

.content-section {
    background: linear-gradient(145deg, var(--bg-card), var(--bg-card-hover));
    border-radius: var(--border-radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-subtle), 0 0 0 1px rgba(255, 255, 255, 0.03);
    transition: all var(--transition-spring);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.03);
    overflow: hidden;
    margin-bottom: 35px;
    transform-style: preserve-3d;
    transform: translateZ(0);
}

.content-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 15% 15%, rgba(229, 9, 20, 0.08), transparent 50%),
        radial-gradient(circle at 85% 85%, rgba(220, 220, 220, 0.03), transparent 50%);
    pointer-events: none;
    opacity: 0;
    transition: opacity var(--transition-normal);
    z-index: -1;
}

.content-section:hover {
    transform: translateY(-8px) translateZ(15px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.content-section:hover::before {
    opacity: 1;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.8rem;
    position: relative;
    display: inline-block;
    transform: translateZ(0);
    transition: transform var(--transition-normal);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(to right, var(--accent), transparent);
    border-radius: 3px;
    transition: width var(--transition-normal), box-shadow var(--transition-normal);
}

.content-section:hover .section-title {
    transform: translateZ(10px);
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.content-section:hover .section-title::after {
    width: 80px;
    box-shadow: var(--accent-soft-glow);
}

.section-content {
    color: var(--text-secondary);
    font-size: 1.15rem;
    line-height: 1.8;
    transition: all var(--transition-normal);
    transform: translateZ(0);
}

.content-section:hover .section-content {
    color: var(--text-primary);
    transform: translateZ(5px);
}

.post-link {
    display: flex;
    align-items: center;
    gap: 1.8rem;
    padding: 1.8rem;
    background: linear-gradient(145deg, var(--bg-card), var(--bg-card-hover));
    border-radius: var(--border-radius-lg);
    transition: all var(--transition-spring);
    box-shadow: var(--shadow-subtle), 0 0 0 1px rgba(255, 255, 255, 0.03);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.03);
    overflow: hidden;
    margin-bottom: 35px;
    transform-style: preserve-3d;
    transform: translateZ(0);
}

.post-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 15% 15%, rgba(229, 9, 20, 0.08), transparent 50%),
        radial-gradient(circle at 85% 85%, rgba(220, 220, 220, 0.03), transparent 50%);
    pointer-events: none;
    opacity: 0;
    transition: opacity var(--transition-normal);
    z-index: -1;
}

.post-link::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transform: translateX(-100%);
    transition: all 0.8s ease;
    z-index: -1;
}

.post-link:hover {
    transform: translateY(-10px) translateZ(15px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.post-link:hover::before {
    opacity: 1;
}

.post-link:hover::after {
    transform: translateX(100%);
}

.post-image {
    width: 5.5rem;
    min-width: 5.5rem;
    height: 8rem;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: all var(--transition-spring);
    position: relative;
    transform: translateZ(0);
}

.post-link:hover .post-image {
    transform: scale(1.1) translateZ(30px) rotate(2deg);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.post-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent 60%);
    opacity: 0.7;
    transition: opacity var(--transition-normal);
}

.post-link:hover .post-image::after {
    opacity: 0.4;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.post-link:hover .post-image img {
    transform: scale(1.15);
}

.post-info {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    flex: 1;
    transform: translateZ(0);
    transition: transform var(--transition-normal);
}

.post-link:hover .post-info {
    transform: translateZ(10px);
}

.post-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
    transition: all var(--transition-normal);
    position: relative;
    display: inline-block;
    transform: translateZ(0);
}

.post-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, var(--accent), transparent);
    transition: width var(--transition-slow), box-shadow var(--transition-normal);
    border-radius: 2px;
}

.post-link:hover .post-title {
    color: var(--accent);
    transform: translateZ(5px);
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.post-link:hover .post-title::after {
    width: 100%;
    box-shadow: var(--accent-soft-glow);
}

.post-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.2rem;
    color: var(--text-secondary);
    transform: translateZ(0);
    transition: transform var(--transition-normal);
}

.post-link:hover .post-meta {
    transform: translateZ(8px);
}

.rating-circle {
    position: relative;
    width: 3.2rem;
    height: 3.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fbbf24;
    font-weight: 700;
    font-size: 1rem;
    transition: all var(--transition-spring);
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.3));
}

.post-link:hover .rating-circle {
    transform: scale(1.15) rotate(5deg);
    filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.4));
}

.rating-circle svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
    transition: transform var(--transition-slow);
}

.post-link:hover .rating-circle svg {
    transform: rotate(270deg);
}

.rating-circle circle {
    transition: stroke-dasharray 1.5s ease, stroke 0.5s ease;
}

.post-link:hover .rating-circle circle {
    stroke: var(--accent);
    filter: drop-shadow(0 0 5px var(--accent));
}

.type-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: var(--border-radius-full);
    transition: all var(--transition-bounce);
    box-shadow: 0 3px 10px rgba(229, 9, 20, 0.3);
    position: relative;
    overflow: hidden;
}

.type-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.6s;
}

.post-link:hover .type-badge {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 15px rgba(229, 9, 20, 0.4);
}

.post-link:hover .type-badge::before {
    left: 100%;
}

.type-badge::after {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: white;
    margin-right: 6px;
    filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.8));
}

.popular-topics {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}

.topic-item {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
    padding: 1.5rem;
    background: linear-gradient(145deg, var(--bg-card), var(--bg-card-hover));
    border-radius: var(--border-radius-md);
    transition: all var(--transition-spring);
    border-left: 3px solid transparent;
    box-shadow: var(--shadow-subtle), 0 0 0 1px rgba(255, 255, 255, 0.03);
    animation: fadeInDeep 0.6s forwards;
    animation-delay: calc(var(--index, 0) * 0.1s);
    opacity: 0;
    transform-style: preserve-3d;
    transform: translateZ(0);
}

.topic-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 15% 15%, rgba(229, 9, 20, 0.08), transparent 50%),
        radial-gradient(circle at 85% 85%, rgba(220, 220, 220, 0.03), transparent 50%);
    pointer-events: none;
    opacity: 0;
    transition: opacity var(--transition-normal);
    z-index: -1;
    border-radius: var(--border-radius-md);
}

.topic-item:hover {
    transform: translateY(-8px) translateZ(10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.08);
    border-left: 3px solid var(--accent);
}

.topic-item:hover::before {
    opacity: 1;
}

.topic-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transform: translateX(-100%);
    transition: all 0.8s ease;
    z-index: -1;
}

.topic-item:hover::after {
    transform: translateX(100%);
}

.topic-item.new {
    border-left: 3px solid var(--new-badge);
    box-shadow: 0 5px 20px rgba(29, 185, 84, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.03);
    animation: pulseGreen 3s infinite, fadeInDeep 0.6s forwards;
    animation-delay: 0s, calc(var(--index, 0) * 0.1s);
}

.topic-item.new:hover {
    border-left: 3px solid var(--new-badge-hover);
    animation: none;
    animation-delay: 0s;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2), 0 10px 25px rgba(29, 185, 84, 0.15);
}

.topic-icon {
    width: 3.2rem;
    height: 3.2rem;
    min-width: 3.2rem;
    border-radius: 50%;
    overflow: hidden;
    transition: all var(--transition-spring);
    border: 2px solid var(--accent);
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1), var(--accent-soft-glow);
    transform: translateZ(0);
    position: relative;
    isolation: isolate;
}

.topic-item:hover .topic-icon {
    transform: scale(1.15) translateZ(15px);
    border-color: var(--accent-hover);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.2), var(--accent-glow);
}

.topic-icon::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: conic-gradient(from 0deg at 50% 50%, var(--accent) 0%, transparent 60%, var(--accent) 100%);
    animation: rotateGlow 3s linear infinite;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.topic-item:hover .topic-icon::after {
    opacity: 0.5;
}

.topic-item.new .topic-icon {
    border-color: var(--new-badge);
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1), 0 0 15px rgba(29, 185, 84, 0.3);
}

.topic-item.new:hover .topic-icon {
    border-color: var(--new-badge-hover);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.2), var(--new-badge-glow);
}

.topic-item.new .topic-icon::after {
    background: conic-gradient(from 0deg at 50% 50%, var(--new-badge) 0%, transparent 60%, var(--new-badge) 100%);
}

.topic-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.topic-item:hover .topic-icon img {
    transform: scale(1.15) rotate(3deg);
}

.topic-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    transform: translateZ(0);
    transition: transform var(--transition-normal);
}

.topic-item:hover .topic-content {
    transform: translateZ(5px);
}

.topic-item-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    transition: all var(--transition-normal);
    position: relative;
    display: inline-block;
}

.topic-item-title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 1px;
    background: linear-gradient(to right, var(--accent), transparent);
    transition: width var(--transition-slow);
    border-radius: 2px;
}

.topic-item:hover .topic-item-title {
    color: var(--accent);
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.topic-item:hover .topic-item-title::after {
    width: 100%;
}

.topic-item.new .topic-item-title::after {
    background: linear-gradient(to right, var(--new-badge), transparent);
}

.topic-item.new:hover .topic-item-title {
    color: var(--new-badge);
}

.topic-item-meta {
    font-size: 0.85rem;
    color: var(--text-tertiary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: color var(--transition-normal);
}

.topic-item:hover .topic-item-meta {
    color: var(--text-secondary);
}

.topic-item-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-top: 0.25rem;
    transition: color var(--transition-normal);
}

.topic-item:hover .topic-item-description {
    color: var(--text-primary);
}

.status-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.4rem 0.8rem;
    background: linear-gradient(135deg, var(--new-badge), var(--new-badge-hover));
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: var(--border-radius-full);
    box-shadow: 0 3px 10px rgba(29, 185, 84, 0.3);
    transition: all var(--transition-bounce);
    z-index: 2;
    transform: translateZ(0);
}

.status-badge::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(to right, var(--new-badge), transparent, var(--new-badge));
    background-size: 200% 100%;
    border-radius: var(--border-radius-full);
    z-index: -1;
    animation: gradientShift 3s ease infinite;
    opacity: 0.3;
}

.status-badge:hover {
    transform: translateY(-3px) scale(1.05) translateZ(10px);
    box-shadow: 0 0 0 5px rgba(29, 185, 84, 0.1), var(--new-badge-glow);
}

.status-badge svg {
    filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.5));
}

.sidebar {
    background: linear-gradient(145deg, var(--bg-card), var(--bg-card-hover));
    border-radius: var(--border-radius-lg);
    padding: 2.5rem;
    height: fit-content;
    box-shadow: var(--shadow-subtle), 0 0 0 1px rgba(255, 255, 255, 0.03);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.03);
    opacity: 0;
    animation: fadeInDeep 0.8s ease forwards;
    animation-delay: 0.2s;
    transform-style: preserve-3d;
    transform: translateZ(0);
    transition: all var(--transition-spring);
}

.sidebar:hover {
    transform: translateZ(10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.sidebar::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 15% 85%, rgba(229, 9, 20, 0.08), transparent 50%),
        radial-gradient(circle at 85% 15%, rgba(220, 220, 220, 0.03), transparent 50%);
    pointer-events: none;
    z-index: -1;
}

.comments-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.comments-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(to right, var(--accent), transparent);
    border-radius: 3px;
    transition: width var(--transition-normal), box-shadow var(--transition-normal);
}

.sidebar:hover .comments-title::after {
    width: 60px;
    box-shadow: var(--accent-soft-glow);
}

.btn-reply {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.4rem;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--border-radius-md);
    background: linear-gradient(135deg, #3182ce, #2c5282);
    color: white;
    transition: all var(--transition-bounce);
    box-shadow: 0 4px 15px rgba(49, 130, 206, 0.3);
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
    transform-style: preserve-3d;
    transform: translateZ(0);
}

.btn-reply::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: 0.6s;
}

.btn-reply::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(255, 255, 255, 0.15), transparent);
    border-radius: var(--border-radius-md);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.btn-reply:hover {
    transform: translateY(-5px) translateZ(10px);
    box-shadow: 0 12px 25px rgba(49, 130, 206, 0.4);
}

.btn-reply:hover::before {
    left: 100%;
}

.btn-reply:hover::after {
    opacity: 1;
}

.btn-reply svg {
    filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.5));
    transition: transform var(--transition-fast);
}

.btn-reply:hover svg {
    transform: scale(1.1);
}

.glassmorphism {
    background: rgba(25, 25, 25, 0.4);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

@media (max-width: 1024px) {
    .container {
        flex-direction: column;
    }
    
    .discussion-wrapper, .discussion-sidebar {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .discussion-title {
        font-size: 2.2rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .post-link {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .post-image {
        width: 100%;
        height: 220px;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 1.5rem 1rem;
    }
    
    .discussion-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.2rem;
    }
    
    .discussion-title {
        font-size: 1.8rem;
    }
    
    .btn-back span {
        display: none;
    }
    
    .content-section, .sidebar {
        padding: 1.5rem;
    }
    
    .topic-item {
        flex-direction: column;
    }
    
    .topic-icon {
        width: 2.5rem;
        height: 2.5rem;
    }
}