:root {
    --bg-primary: #0a0a0b;
    --bg-secondary: #111113;
    --bg-tertiary: #18181b;
    --bg-card: rgba(24, 24, 27, 0.8);
    --bg-glass: rgba(24, 24, 27, 0.6);
    
    --accent-primary: #3b82f6;
    --accent-secondary: #1d4ed8;
    --accent-glow: rgba(59, 130, 246, 0.3);
    --accent-wave: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(29, 78, 216, 0.05) 100%);
    
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    
    --border-color: rgba(255, 255, 255, 0.08);
    --border-light: rgba(255, 255, 255, 0.12);
    
    --success: #22c55e;
    --warning: #eab308;
    --danger: #ef4444;
    --info: #3b82f6;
    
    --severity-critical: #dc2626;
    --severity-high: #ea580c;
    --severity-medium: #eab308;
    --severity-low: #22c55e;
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px rgba(59, 130, 246, 0.15);
    
    --blur-sm: blur(8px);
    --blur-md: blur(16px);
    --blur-lg: blur(24px);
    
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    --font-mono: 'SF Mono', 'Fira Code', 'JetBrains Mono', Consolas, monospace;
    
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s ease;
    --transition-slow: 0.4s ease;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

main {
    flex: 1 0 auto;
}

footer {
    flex-shrink: 0;
}

a {
    color: var(--accent-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--text-primary);
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.container-narrow {
    max-width: 800px;
}

.container-wide {
    max-width: 1400px;
}

header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(10, 10, 11, 0.85);
    backdrop-filter: var(--blur-md);
    -webkit-backdrop-filter: var(--blur-md);
    border-bottom: 1px solid var(--border-color);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.logo img {
    height: 36px;
    width: auto;
}

.logo-text {
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

nav a {
    color: var(--text-secondary);
    font-size: 0.9375rem;
    font-weight: 500;
    transition: color var(--transition-fast);
}

nav a:hover,
nav a.active {
    color: var(--text-primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-primary {
    background: var(--accent-primary);
    color: white;
}

.btn-primary:hover {
    background: var(--accent-secondary);
    box-shadow: var(--shadow-glow);
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-light);
}

.btn-secondary:hover {
    background: var(--bg-card);
    border-color: var(--accent-primary);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
}

.btn-ghost:hover {
    color: var(--text-primary);
    background: var(--bg-tertiary);
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 1rem;
}

.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: var(--radius-sm);
}

.hero {
    position: relative;
    padding: 120px 0;
    overflow: hidden;
    background: var(--bg-primary);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 20% 20%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(29, 78, 216, 0.06) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--bg-glass);
    border: 1px solid var(--border-light);
    border-radius: 100px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
    backdrop-filter: var(--blur-sm);
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.hero h1 .highlight {
    background: linear-gradient(135deg, var(--accent-primary) 0%, #60a5fa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.binary-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    pointer-events: none;
    opacity: 0.03;
}

.binary-column {
    position: absolute;
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--accent-primary);
    writing-mode: vertical-rl;
    animation: float 20s linear infinite;
}

@keyframes float {
    from { transform: translateY(-100%); }
    to { transform: translateY(100vh); }
}

.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    backdrop-filter: var(--blur-sm);
    transition: all var(--transition-normal);
}

.card:hover {
    border-color: var(--border-light);
    box-shadow: var(--shadow-md);
}

.card-glass {
    background: var(--bg-glass);
    backdrop-filter: var(--blur-md);
    -webkit-backdrop-filter: var(--blur-md);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.card-title {
    font-size: 1.125rem;
    font-weight: 600;
}

.grid {
    display: grid;
    gap: 24px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

.cve-widget {
    background: var(--bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    backdrop-filter: var(--blur-md);
}

.cve-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
}

.cve-header h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    font-weight: 600;
}

.cve-list {
    list-style: none;
}

.cve-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-color);
    transition: background var(--transition-fast);
}

.cve-item:last-child {
    border-bottom: none;
}

.cve-item:hover {
    background: rgba(59, 130, 246, 0.05);
}

.cve-id {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent-primary);
    white-space: nowrap;
}

.cve-content {
    flex: 1;
    min-width: 0;
}

.cve-summary {
    font-size: 0.875rem;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.severity-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.severity-critical {
    background: rgba(220, 38, 38, 0.15);
    color: var(--severity-critical);
}

.severity-high {
    background: rgba(234, 88, 12, 0.15);
    color: var(--severity-high);
}

.severity-medium {
    background: rgba(234, 179, 8, 0.15);
    color: var(--severity-medium);
}

.severity-low {
    background: rgba(34, 197, 94, 0.15);
    color: var(--severity-low);
}

.article-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-normal);
}

.article-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.article-cover {
    position: relative;
    aspect-ratio: 16/9;
    background: var(--bg-tertiary);
    overflow: hidden;
}

.article-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.article-card:hover .article-cover img {
    transform: scale(1.05);
}

.article-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.article-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-title a {
    color: var(--text-primary);
}

.article-title a:hover {
    color: var(--accent-primary);
}

.article-excerpt {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.article-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.article-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    overflow: hidden;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
}

.author-name {
    font-size: 0.875rem;
    font-weight: 500;
}

.article-stats {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.stat {
    display: flex;
    align-items: center;
    gap: 4px;
}

.user-tag {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
}

.tag-gold {
    background: transparent;
    color: #fbbf24;
}

.tag-silver {
    background: transparent;
    color: #94a3b8;
}

.tag-verified {
    background: transparent;
    color: var(--accent-primary);
}

.tag-advanced {
    background: transparent;
    color: #ef4444;
}

.tag-binary-breaker {
    background: transparent;
    color: #8b5cf6;
}

.tag-malware-hunter {
    background: transparent;
    color: #06b6d4;
}

.user-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.user-tag .tag-emoji {
    width: 16px;
    height: 16px;
    vertical-align: middle;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-primary);
    transition: all var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--text-muted);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

.form-hint {
    margin-top: 8px;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.form-error {
    color: var(--danger);
}

.alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    margin-bottom: 20px;
}

.alert-success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: var(--success);
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--danger);
}

.alert-warning {
    background: rgba(234, 179, 8, 0.1);
    border: 1px solid rgba(234, 179, 8, 0.3);
    color: var(--warning);
}

.alert-info {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: var(--info);
}

.leaderboard {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.leader-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
}

.leader-card:hover {
    border-color: var(--border-light);
}

.leader-card.top-1 {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1), rgba(245, 158, 11, 0.05));
    border-color: rgba(251, 191, 36, 0.3);
}

.leader-card.top-2 {
    background: linear-gradient(135deg, rgba(148, 163, 184, 0.1), rgba(100, 116, 139, 0.05));
    border-color: rgba(148, 163, 184, 0.3);
}

.leader-card.top-3 {
    background: linear-gradient(135deg, rgba(180, 83, 9, 0.1), rgba(146, 64, 14, 0.05));
    border-color: rgba(180, 83, 9, 0.3);
}

.leader-rank {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 1.125rem;
}

.top-1 .leader-rank { background: linear-gradient(135deg, #fbbf24, #f59e0b); color: #000; }
.top-2 .leader-rank { background: linear-gradient(135deg, #94a3b8, #64748b); color: #fff; }
.top-3 .leader-rank { background: linear-gradient(135deg, #b45309, #92400e); color: #fff; }

.leader-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--border-color);
}

.leader-info {
    flex: 1;
}

.leader-name {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.leader-stats {
    display: flex;
    gap: 20px;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

footer {
    padding: 48px 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.footer-links a:hover {
    color: var(--text-primary);
}

.copyright {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.dashboard-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: calc(100vh - 72px);
}

.sidebar {
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    padding: 24px;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.9375rem;
    transition: all var(--transition-fast);
}

.sidebar-link:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.sidebar-link.active {
    background: var(--accent-primary);
    color: white;
}

.dashboard-content {
    padding: 32px;
}

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
}

.page-title {
    font-size: 1.75rem;
    font-weight: 700;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.editor-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 24px;
    min-height: calc(100vh - 200px);
}

.editor-main {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
}

.editor-canvas {
    background: #1a1a1c;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    min-height: 500px;
    padding: 24px;
}

.editor-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.block-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.block-btn:hover {
    border-color: var(--accent-primary);
    color: var(--text-primary);
}

.code-block {
    background: #0d0d0e;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.code-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-color);
}

.code-lang {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
}

.code-content {
    padding: 16px;
    overflow-x: auto;
}

.code-content pre {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.code-content code {
    font-family: inherit;
}

.tabs {
    display: flex;
    gap: 4px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 24px;
}

.tab {
    padding: 12px 20px;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.tab:hover {
    color: var(--text-primary);
}

.tab.active {
    color: var(--accent-primary);
    border-bottom-color: var(--accent-primary);
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: var(--blur-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow: auto;
    transform: scale(0.95);
    transition: transform var(--transition-normal);
}

.modal-overlay.active .modal {
    transform: scale(1);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
}

.modal-title {
    font-size: 1.125rem;
    font-weight: 600;
}

.modal-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.modal-close:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.table th {
    font-weight: 600;
    font-size: 0.8125rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.table tr:hover td {
    background: var(--bg-tertiary);
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 32px;
}

.pagination a,
.pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.pagination a:hover {
    border-color: var(--accent-primary);
    color: var(--text-primary);
}

.pagination .active {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state-icon svg {
    color: var(--text-muted);
}

.feature-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(59, 130, 246, 0.05));
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 16px;
    color: var(--accent-primary);
}

.verified-icon,
.pending-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}

.btn-github {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: #24292e;
    color: #fff;
    border: 1px solid #444;
    padding: 12px 24px;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.btn-github:hover {
    background: #2f363d;
    color: #fff;
    border-color: #666;
}

.btn-github svg {
    flex-shrink: 0;
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 24px 0;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-color);
}

.divider span {
    padding: 0 16px;
}

.editor-title-input {
    font-size: 1.75rem !important;
    font-weight: 600;
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
}

.editor-title-input:focus {
    outline: none;
    box-shadow: none !important;
}

.header-image-upload {
    position: relative;
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-lg);
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    overflow: hidden;
}

.header-image-upload:hover {
    border-color: var(--accent-primary);
    background: rgba(var(--accent-primary-rgb), 0.05);
}

.header-image-upload.drag-over {
    border-color: var(--accent-primary);
    background: rgba(var(--accent-primary-rgb), 0.1);
}

.upload-placeholder {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
}

.upload-placeholder svg {
    margin-bottom: 16px;
    opacity: 0.5;
}

.upload-placeholder p {
    margin: 4px 0;
}

.header-preview {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.header-remove {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 8px !important;
    border-radius: 50% !important;
}

.upload-loading {
    text-align: center;
    padding: 40px;
}

.upload-loading .spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--border-color);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

.editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-bottom: none;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.toolbar-group {
    display: flex;
    align-items: center;
    gap: 2px;
}

.toolbar-divider {
    width: 1px;
    height: 24px;
    background: var(--border-color);
    margin: 0 8px;
}

.toolbar-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.toolbar-btn:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.toolbar-btn.active {
    background: var(--accent-primary);
    color: #fff;
}

.toolbar-select {
    padding: 4px 8px;
    font-size: 0.8125rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    cursor: pointer;
}

.editor-canvas-wrapper {
    position: relative;
}

.editor-canvas {
    min-height: 400px;
    padding: 24px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    outline: none;
    line-height: 1.8;
}

.editor-canvas:focus {
    border-color: var(--accent-primary);
}

.editor-canvas h1, .editor-canvas h2, .editor-canvas h3, .editor-canvas h4 {
    margin: 24px 0 12px;
}

.editor-canvas p {
    margin: 12px 0;
}

.editor-canvas blockquote {
    margin: 16px 0;
    padding: 16px 24px;
    border-left: 4px solid var(--accent-primary);
    background: var(--bg-tertiary);
    font-style: italic;
}

.editor-canvas .code-block {
    margin: 16px 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #1a1a2e;
}

.editor-canvas .code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 16px;
    background: rgba(255,255,255,0.05);
    font-size: 0.75rem;
}

.editor-canvas .code-lang {
    color: var(--accent-primary);
    text-transform: uppercase;
    font-weight: 600;
}

.editor-canvas .copy-code {
    padding: 4px 8px;
    font-size: 0.75rem;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    cursor: pointer;
}

.editor-canvas .copy-code:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.editor-canvas pre {
    margin: 0;
    padding: 16px;
    overflow-x: auto;
}

.editor-canvas code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875rem;
}

.editor-canvas .editor-table {
    width: 100%;
    margin: 16px 0;
    border-collapse: collapse;
}

.editor-canvas .editor-table th,
.editor-canvas .editor-table td {
    padding: 12px;
    border: 1px solid var(--border-color);
    text-align: left;
}

.editor-canvas .editor-table th {
    background: var(--bg-tertiary);
    font-weight: 600;
}

.editor-canvas .editor-image {
    margin: 16px 0;
    text-align: center;
}

.editor-canvas .editor-image img {
    max-width: 100%;
    border-radius: var(--radius-md);
}

.editor-canvas .editor-image figcaption {
    margin-top: 8px;
    font-size: 0.875rem;
    color: var(--text-muted);
    font-style: italic;
}

.editor-canvas video {
    max-width: 100%;
    border-radius: var(--radius-md);
}

.editor-canvas hr {
    margin: 24px 0;
    border: none;
    border-top: 1px solid var(--border-color);
}

.editor-drop-overlay {
    position: absolute;
    inset: 0;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(var(--accent-primary-rgb), 0.1);
    border: 2px dashed var(--accent-primary);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    z-index: 10;
    pointer-events: none;
}

.editor-drop-overlay.active {
    display: flex;
}

.editor-drop-overlay svg {
    color: var(--accent-primary);
    margin-bottom: 8px;
}

.editor-drop-overlay p {
    color: var(--accent-primary);
    font-weight: 500;
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-published {
    background: var(--success);
    color: #fff;
}

.status-draft {
    background: var(--warning);
    color: #000;
}

.status-new {
    background: var(--bg-tertiary);
    color: var(--text-muted);
}

.word-count {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.quick-insert-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.quick-insert-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 8px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.quick-insert-btn:hover {
    background: var(--bg-hover);
    color: var(--accent-primary);
    border-color: var(--accent-primary);
}

.quick-insert-btn span {
    font-size: 0.75rem;
}

.tips-list {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.tips-list li {
    padding: 6px 0;
    padding-left: 16px;
    position: relative;
}

.tips-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-primary);
}

.notification {
    position: fixed;
    bottom: 24px;
    right: 24px;
    padding: 16px 24px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
}

.notification.show {
    transform: translateY(0);
    opacity: 1;
}

.notification-success {
    border-color: var(--success);
    background: rgba(16, 185, 129, 0.1);
}

.spinner-sm {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spin 0.75s linear infinite;
    vertical-align: middle;
    margin-right: 8px;
}

.remove-tag {
    margin-left: 6px;
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    opacity: 0.7;
}

.remove-tag:hover {
    opacity: 1;
}

.research-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 1024px) {
    .research-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .research-grid {
        grid-template-columns: 1fr;
    }
}

.research-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-fast);
    display: flex;
    flex-direction: column;
}

.research-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.research-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.research-cover {
    position: relative;
    height: 180px;
    overflow: hidden;
    background: var(--bg-tertiary);
}

.research-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.research-card:hover .research-cover img {
    transform: scale(1.05);
}

.research-cover-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-secondary));
    color: var(--text-muted);
}

.research-type-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    border-radius: 20px;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--accent-primary);
    letter-spacing: 0.5px;
}

.research-content {
    padding: 16px;
    flex: 1;
}

.research-title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.research-excerpt {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.research-footer {
    padding: 12px 16px;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.research-author {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.research-author .author-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: inherit;
    text-decoration: none;
    min-width: 0;
}

.research-author .author-link:hover .author-name {
    color: var(--accent-primary);
}

.research-author .author-name {
    font-size: 0.8125rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color var(--transition-fast);
}

.research-stats {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.research-stats .stat {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.research-stats .stat svg {
    opacity: 0.7;
}

.avatar-sm {
    width: 24px;
    height: 24px;
    font-size: 0.625rem;
}

.publisher-badge {
    display: inline-block;
    padding: 2px 8px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: #fff;
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 10px;
    margin-left: 4px;
}

.comment-actions {
    margin-top: 8px;
}

.btn-reply {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.8125rem;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.btn-reply:hover {
    background: var(--bg-tertiary);
    color: var(--accent-primary);
}

.reply-form-container {
    margin-top: 12px;
    padding: 12px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
}

.reply-form .form-textarea {
    margin-bottom: 8px;
}

.reply-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.replies {
    margin-top: 16px;
    padding-left: 20px;
    border-left: 2px solid var(--border-color);
}

.comment.reply {
    padding: 12px 0;
}

.comment.reply:first-child {
    padding-top: 0;
}

.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    transition: all var(--transition-fast);
}

.notification-item:hover {
    border-color: var(--accent-primary);
}

.notification-item.unread {
    background: rgba(var(--accent-primary-rgb), 0.05);
    border-color: var(--accent-primary);
}

.notification-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.notification-icon.icon-view {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.notification-icon.icon-like {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.notification-icon.icon-comment {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.notification-icon.icon-reply {
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-message {
    font-size: 0.9375rem;
    margin-bottom: 4px;
}

.notification-message a {
    font-weight: 600;
    color: var(--accent-primary);
}

.notification-meta {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: var(--danger);
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 700;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-notifications {
    position: relative;
}

.notification-unread-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 50%;
    flex-shrink: 0;
}

.sidebar-link.nav-notifications {
    position: relative;
}

.sidebar-link .notification-badge {
    position: static;
    margin-left: auto;
}

.btn-danger {
    background: var(--danger);
    color: #fff;
    border-color: var(--danger);
}

.btn-danger:hover {
    background: #dc2626;
    border-color: #dc2626;
}

.btn-delete:hover svg {
    stroke: #dc2626;
}

.empty-state h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.empty-state p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.article-content {
    font-size: 1.0625rem;
    line-height: 1.8;
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4 {
    margin: 2em 0 1em;
    font-weight: 600;
}

.article-content h1 { font-size: 2rem; }
.article-content h2 { font-size: 1.5rem; }
.article-content h3 { font-size: 1.25rem; }

.article-content p {
    margin-bottom: 1.5em;
}

.article-content ul,
.article-content ol {
    margin: 1.5em 0;
    padding-left: 2em;
}

.article-content li {
    margin-bottom: 0.5em;
}

.article-content blockquote {
    margin: 1.5em 0;
    padding: 1em 1.5em;
    border-left: 4px solid var(--accent-primary);
    background: var(--bg-tertiary);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-style: italic;
    color: var(--text-secondary);
}

.article-content pre {
    margin: 1.5em 0;
    padding: 1.5em;
    background: #0d0d0e;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow-x: auto;
}

.article-content code {
    font-family: var(--font-mono);
    font-size: 0.9em;
}

.article-content p code,
.article-content li code {
    padding: 2px 6px;
    background: var(--bg-tertiary);
    border-radius: 4px;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin: 1.5em 0;
}

.article-content a {
    color: var(--accent-primary);
    text-decoration: underline;
    text-decoration-color: rgba(59, 130, 246, 0.3);
    text-underline-offset: 2px;
}

.article-content a:hover {
    text-decoration-color: var(--accent-primary);
}

.comments-section {
    margin-top: 48px;
    padding-top: 48px;
    border-top: 1px solid var(--border-color);
}

.comment {
    display: flex;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
}

.comment:last-child {
    border-bottom: none;
}

.comment-avatar {
    flex-shrink: 0;
}

.comment-body {
    flex: 1;
}

.comment-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.comment-author {
    font-weight: 600;
}

.comment-date {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.comment-content {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

@media (max-width: 1024px) {
    .dashboard-layout {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        display: none;
    }
    
    .editor-layout {
        grid-template-columns: 1fr;
    }
    
    .editor-sidebar {
        order: -1;
        flex-direction: row;
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .header-inner {
        height: 64px;
    }
    
    nav {
        display: none;
    }
    
    .hero {
        padding: 80px 0;
    }
    
    .section {
        padding: 48px 0;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }
    
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

.mobile-menu-btn {
    display: none;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }
}

.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--border-color);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 4px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }
.gap-8 { gap: 32px; }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-sm { font-size: 0.875rem; }
.font-mono { font-family: var(--font-mono); }
.w-full { width: 100%; }
.hidden { display: none; }

.code-blocks-3d {
    position: absolute;
    top: 50%;
    right: 5%;
    transform: translateY(-50%) perspective(1000px);
    width: 420px;
    height: 500px;
    z-index: 2;
    pointer-events: none;
}

.code-block-3d {
    position: absolute;
    background: rgba(15, 15, 18, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0;
    font-family: var(--font-mono);
    font-size: 11px;
    line-height: 1.5;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    overflow: hidden;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.code-block-3d:hover {
    z-index: 10;
}

.code-block-3d .code-block-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.code-lang-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.code-lang-dot.asm { background: #ef4444; box-shadow: 0 0 8px #ef4444; }
.code-lang-dot.bin { background: #f97316; box-shadow: 0 0 8px #f97316; }
.code-lang-dot.cpp { background: #8b5cf6; box-shadow: 0 0 8px #8b5cf6; }

.code-block-3d pre {
    margin: 0;
    padding: 14px;
    overflow: hidden;
}

.code-block-3d code {
    color: #9ca3af;
}

.code-block-3d .kw { color: #ef4444; font-weight: 500; }
.code-block-3d .num { color: #f97316; }
.code-block-3d .fn { color: #60a5fa; }
.code-block-3d .str { color: #34d399; }
.code-block-3d .pp { color: #c084fc; }
.code-block-3d .bin-r { color: #ef4444; font-weight: 600; }
.code-block-3d .bin-g { color: #22c55e; font-weight: 600; }

.block-asm {
    top: 0;
    left: 0;
    width: 280px;
    transform: rotateY(-15deg) rotateX(5deg) translateZ(20px);
    animation: float-asm 6s ease-in-out infinite;
}

.block-binary {
    top: 120px;
    right: 0;
    width: 260px;
    transform: rotateY(10deg) rotateX(-5deg) translateZ(40px);
    animation: float-binary 7s ease-in-out infinite;
    animation-delay: -2s;
}

.block-cpp {
    bottom: 20px;
    left: 40px;
    width: 300px;
    transform: rotateY(-8deg) rotateX(8deg) translateZ(0);
    animation: float-cpp 8s ease-in-out infinite;
    animation-delay: -4s;
}

@keyframes float-asm {
    0%, 100% { transform: rotateY(-15deg) rotateX(5deg) translateZ(20px) translateY(0); }
    50% { transform: rotateY(-12deg) rotateX(3deg) translateZ(30px) translateY(-10px); }
}

@keyframes float-binary {
    0%, 100% { transform: rotateY(10deg) rotateX(-5deg) translateZ(40px) translateY(0); }
    50% { transform: rotateY(13deg) rotateX(-3deg) translateZ(50px) translateY(-15px); }
}

@keyframes float-cpp {
    0%, 100% { transform: rotateY(-8deg) rotateX(8deg) translateZ(0) translateY(0); }
    50% { transform: rotateY(-5deg) rotateX(5deg) translateZ(10px) translateY(-12px); }
}

.cracked-stamp {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-12deg);
    z-index: 20;
    animation: stamp-appear 0.5s ease-out 1s both;
}

.cracked-stamp span {
    display: block;
    padding: 12px 30px;
    background: transparent;
    border: 4px solid #ef4444;
    border-radius: 8px;
    font-family: var(--font-mono);
    font-size: 2rem;
    font-weight: 900;
    color: #ef4444;
    text-transform: uppercase;
    letter-spacing: 4px;
    text-shadow: 
        0 0 20px rgba(239, 68, 68, 0.8),
        0 0 40px rgba(239, 68, 68, 0.5),
        0 0 60px rgba(239, 68, 68, 0.3);
    box-shadow: 
        0 0 20px rgba(239, 68, 68, 0.4),
        inset 0 0 20px rgba(239, 68, 68, 0.1);
    animation: glow-pulse 2s ease-in-out infinite;
}

@keyframes stamp-appear {
    0% { 
        opacity: 0; 
        transform: translate(-50%, -50%) rotate(-12deg) scale(2);
    }
    70% {
        transform: translate(-50%, -50%) rotate(-12deg) scale(0.9);
    }
    100% { 
        opacity: 1; 
        transform: translate(-50%, -50%) rotate(-12deg) scale(1);
    }
}

@keyframes glow-pulse {
    0%, 100% { 
        text-shadow: 
            0 0 20px rgba(239, 68, 68, 0.8),
            0 0 40px rgba(239, 68, 68, 0.5),
            0 0 60px rgba(239, 68, 68, 0.3);
        box-shadow: 
            0 0 20px rgba(239, 68, 68, 0.4),
            inset 0 0 20px rgba(239, 68, 68, 0.1);
    }
    50% { 
        text-shadow: 
            0 0 30px rgba(239, 68, 68, 1),
            0 0 60px rgba(239, 68, 68, 0.7),
            0 0 90px rgba(239, 68, 68, 0.5);
        box-shadow: 
            0 0 30px rgba(239, 68, 68, 0.6),
            inset 0 0 30px rgba(239, 68, 68, 0.2);
    }
}

@media (max-width: 1200px) {
    .code-blocks-3d {
        display: none;
    }
}

.hero {
    position: relative;
    overflow: hidden;
}

.mobile-banner {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: white;
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.mobile-banner-text {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
    flex: 1;
}

.mobile-banner-text svg {
    flex-shrink: 0;
    opacity: 0.9;
}

.mobile-banner-close {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.mobile-banner-close:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .mobile-banner-text {
        font-size: 13px;
    }
    
    .mobile-banner-text span {
        line-height: 1.3;
    }
    
    header .nav-actions {
        display: none;
    }
    
    header nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .container {
        padding: 0 16px;
    }
    
    .section {
        padding: 40px 0;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero .subtitle {
        font-size: 1.1rem;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .article-content h1,
    .article-content h2,
    .article-content h3 {
        font-size: 1.5rem;
    }
    
    .article-content {
        font-size: 15px;
        line-height: 1.6;
    }
    
    .comment {
        padding: 16px;
    }
    
    .modal-content {
        margin: 20px;
        width: calc(100% - 40px);
        max-width: none;
    }
}

@media (max-width: 480px) {
    .mobile-banner {
        padding: 10px 0;
    }
    
    .mobile-banner-text {
        font-size: 12px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 0 12px;
    }
}
