* { margin: 0; padding: 0; box-sizing: border-box; }
        
        :root { 
            --transition: 0.2s ease; 
            --font-size: 1.0625rem;
        }

        [data-theme="light"] {
            --bg: #fafafa;
            --bg-secondary: #ffffff;
            --card: #ffffff;
            --card-hover: #f5f5f5;
            --border: #e5e5e5;
            --border-light: #f0f0f0;
            --text: #171717;
            --text-secondary: #525252;
            --muted: #a3a3a3;
            --accent: #e11d48;
            --accent-hover: #be123c;
            --accent-soft: rgba(225, 29, 72, 0.08);
            --success: #16a34a;
            --success-soft: rgba(22, 163, 74, 0.08);
            --warning: #ca8a04;
            --warning-soft: rgba(202, 138, 4, 0.08);
            --info: #2563eb;
            --info-soft: rgba(37, 99, 235, 0.08);
            --code-bg: #f5f5f5;
            --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
            --shadow: 0 4px 12px rgba(0,0,0,0.05);
            --shadow-lg: 0 12px 40px rgba(0,0,0,0.08);
        }

        [data-theme="dark"] {
            --bg: #0a0a0a;
            --bg-secondary: #141414;
            --card: #1c1c1c;
            --card-hover: #262626;
            --border: #2e2e2e;
            --border-light: #232323;
            --text: #fafafa;
            --text-secondary: #a3a3a3;
            --muted: #737373;
            --accent: #fb7185;
            --accent-hover: #f43f5e;
            --accent-soft: rgba(251, 113, 133, 0.12);
            --success: #4ade80;
            --success-soft: rgba(74, 222, 128, 0.12);
            --warning: #facc15;
            --warning-soft: rgba(250, 204, 21, 0.12);
            --info: #60a5fa;
            --info-soft: rgba(96, 165, 250, 0.12);
            --code-bg: #1c1c1c;
            --shadow-sm: 0 1px 2px rgba(0,0,0,0.2);
            --shadow: 0 4px 12px rgba(0,0,0,0.3);
            --shadow-lg: 0 12px 40px rgba(0,0,0,0.4);
        }

        body {
            font-family: 'Inter', -apple-system, sans-serif;
            background: var(--bg);
            color: var(--text);
            line-height: 1.7;
            transition: background var(--transition), color var(--transition);
            font-size: 15px;
        }

        /* Reading Progress Bar */
        .progress-bar {
            position: fixed;
            top: 0;
            left: 0;
            width: 0%;
            height: 3px;
            background: var(--accent);
            z-index: 1000;
            transition: width 0.1s ease;
        }

        /* Header */
        header {
            background: var(--bg-secondary);
            border-bottom: 1px solid var(--border);
            position: sticky;
            top: 0;
            z-index: 100;
        }

        .header-inner {
            max-width: 1280px;
            margin: 0 auto;
            padding: 0.875rem 2rem;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .header-left {
            display: flex;
            align-items: center;
            gap: 2rem;
        }

        .logo {
            font-size: 1.25rem;
            font-weight: 800;
            color: var(--text);
            text-decoration: none;
            display: flex;
            align-items: center;
            gap: 0.4rem;
        }
        .logo img
        {
            max-width: 125px;
        }
        .logo-dot {
            width: 8px;
            height: 8px;
            background: var(--accent);
            border-radius: 50%;
        }

        .back-link {
            display: flex;
            align-items: center;
            gap: 0.4rem;
            color: var(--muted);
            text-decoration: none;
            font-size: 0.875rem;
            font-weight: 500;
            transition: color var(--transition);
        }

        .back-link:hover { color: var(--text); }

        .header-right {
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .icon-btn {
            width: 38px;
            height: 38px;
            border-radius: 8px;
            background: transparent;
            border: 1px solid var(--border);
            color: var(--text-secondary);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all var(--transition);
        }

        .icon-btn:hover {
            background: var(--card-hover);
            color: var(--text);
        }

        .icon-btn svg { width: 18px; height: 18px; }

        .btn {
            padding: 0.6rem 1rem;
            border-radius: 8px;
            font-size: 0.875rem;
            font-weight: 600;
            cursor: pointer;
            transition: all var(--transition);
            text-decoration: none;
            border: none;
            display: inline-flex;
            align-items: center;
            gap: 0.4rem;
        }

        .btn-ghost {
            background: transparent;
            color: var(--text-secondary);
        }

        .btn-ghost:hover { color: var(--text); background: var(--card-hover); }

        .btn-primary {
            background: var(--accent);
            color: white;
        }

        .btn-primary:hover { background: var(--accent-hover); }

        .btn-outline {
            background: transparent;
            border: 1px solid var(--border);
            color: var(--text);
        }

        .btn-outline:hover { border-color: var(--text); }

        /* Main Layout */
        .main-container {
            max-width: 1280px;
            margin: 0 auto;
            padding: 3rem 2rem;
            display: grid;
            grid-template-columns: 1fr 320px;
            gap: 4rem;
        }

        /* Article */
        .article {
            max-width: 720px;
        }

        .article-category {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.4rem 0.875rem;
            background: var(--accent-soft);
            color: var(--accent);
            border-radius: 100px;
            font-size: 0.8rem;
            font-weight: 600;
            margin-bottom: 1.25rem;
        }
        .article-category a
        {
            color: var(--accent) !important;
            text-decoration: none !important;
        }
        .article-title {
            font-size: 2.5rem;
            font-weight: 800;
            line-height: 1.2;
            letter-spacing: -0.03em;
            margin-bottom: 1rem;
        }

        .article-subtitle {
            font-size: 1.25rem;
            color: var(--text-secondary);
            line-height: 1.6;
            margin-bottom: 1.5rem;
        }

        /* Article Meta with Reading Controls */
        .article-meta-bar {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 1rem 0;
            border-top: 1px solid var(--border);
            border-bottom: 1px solid var(--border);
            margin-bottom: 2rem;
        }

        .article-author {
            display: flex;
            align-items: center;
            gap: 0.875rem;
        }

        .author-avatar {
            width: 48px;
            height: 48px;
            border-radius: 50%;
            background: linear-gradient(135deg, #667eea, #764ba2);
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            color: white;
            font-size: 1rem;
        }

        .author-info {
            display: flex;
            flex-direction: column;
            row-gap: 5px;
        }

        .author-name {
            font-weight: 600;
            font-size: 0.95rem;
            text-transform: capitalize;
        }

        .article-details {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            font-size: 0.85rem;
            color: var(--muted);
        }

        .article-details span:not(:last-child)::after {
            content: "•";
            margin-left: 0.5rem;
        }

        .reading-controls {
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .font-size-controls {
            display: flex;
            align-items: center;
            background: var(--card-hover);
            border-radius: 6px;
            overflow: hidden;
        }

        .font-btn {
            width: 32px;
            height: 32px;
            border: none;
            background: transparent;
            color: var(--text-secondary);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 600;
            transition: all var(--transition);
        }

        .font-btn:hover {
            background: var(--border);
            color: var(--text);
        }

        /* Article Content */
        .article-content {
            font-size: var(--font-size);
            line-height: 1.8;
        }

        .article-content h2 {
            font-size: 1.625rem;
            font-weight: 700;
            margin: 2.5rem 0 1rem;
            letter-spacing: -0.01em;
        }

        .article-content h3 {
            font-size: 1.25rem;
            font-weight: 600;
            margin: 2rem 0 0.75rem;
        }

        .article-content p {
            margin-bottom: 1.5rem;
            color: var(--text);
        }

        .article-content ul, .article-content ol {
            margin: 1rem 0 1.5rem 1.5rem;
        }

        .article-content li {
            margin-bottom: 0.5rem;
        }

        .article-content a {
            color: var(--accent);
            text-decoration: none;
        }

        .article-content a:hover {
            text-decoration: underline;
        }

        /* Code Blocks */
        .code-block {
            position: relative;
            margin: 1.5rem 0;
        }

        .code-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0.5rem 1rem;
            background: var(--border);
            border-radius: 10px 10px 0 0;
            font-size: 0.75rem;
            font-weight: 600;
            color: var(--text-secondary);
        }

        .copy-btn {
            display: flex;
            align-items: center;
            gap: 0.35rem;
            padding: 0.35rem 0.65rem;
            background: var(--bg-secondary);
            border: none;
            border-radius: 4px;
            color: var(--text-secondary);
            font-size: 0.75rem;
            font-weight: 500;
            cursor: pointer;
            transition: all var(--transition);
        }

        .copy-btn:hover {
            background: var(--accent);
            color: white;
        }

        .copy-btn.copied {
            background: var(--success);
            color: white;
        }

        .article-content pre {
            background: var(--code-bg);
            padding: 1.25rem;
            border-radius: 0 0 10px 10px;
            overflow-x: auto;
            font-family: 'Fira Code', monospace;
            font-size: 0.875rem;
            line-height: 1.6;
            margin: 0;
        }

        .article-content code {
            font-family: 'Fira Code', monospace;
        }

        .article-content p code {
            background: var(--code-bg);
            padding: 0.15rem 0.4rem;
            border-radius: 4px;
            font-size: 0.9em;
        }

        /* Callouts */
        .callout {
            display: flex;
            gap: 1rem;
            padding: 1.25rem;
            border-radius: 10px;
            margin: 1.5rem 0;
        }

        .callout-icon {
            font-size: 1.25rem;
            flex-shrink: 0;
        }

        .callout-content {
            flex: 1;
        }

        .callout-title {
            font-weight: 600;
            margin-bottom: 0.35rem;
        }

        .callout-text {
            font-size: 0.95rem;
            margin: 0;
            line-height: 1.6;
        }

        .callout-info {
            background: var(--info-soft);
            border-left: 3px solid var(--info);
        }

        .callout-info .callout-title { color: var(--info); }

        .callout-warning {
            background: var(--warning-soft);
            border-left: 3px solid var(--warning);
        }

        .callout-warning .callout-title { color: var(--warning); }

        /* Reactions */
        .reactions-bar {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 1.25rem 0;
            border-top: 1px solid var(--border);
            border-bottom: 1px solid var(--border);
            margin: 2rem 0;
        }

        .reactions {
            display: flex;
            gap: 0.5rem;
        }

        .reaction-btn {
            display: flex;
            align-items: center;
            gap: 0.4rem;
            padding: 0.5rem 0.875rem;
            background: var(--card-hover);
            border: 1px solid var(--border);
            border-radius: 100px;
            font-size: 0.875rem;
            cursor: pointer;
            transition: all var(--transition);
            color: var(--text-secondary);
        }

        .reaction-btn:hover {
            border-color: var(--accent);
            background: var(--accent-soft);
        }

        .reaction-btn.active {
            border-color: var(--accent);
            background: var(--accent-soft);
            color: var(--accent);
        }

        .reaction-btn .emoji {
            font-size: 1rem;
        }

        .share-actions {
            display: flex;
            gap: 0.5rem;
        }

        .share-btn {
            width: 38px;
            height: 38px;
            border-radius: 8px;
            border: 1px solid var(--border);
            background: transparent;
            color: var(--text-secondary);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1rem;
            transition: all var(--transition);
        }

        .share-btn:hover {
            border-color: var(--accent);
            color: var(--accent);
            background: var(--accent-soft);
        }

        .share-btn.copied {
            background: var(--success);
            border-color: var(--success);
            color: white;
        }

        /* Tags */
        .article-tags
        {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
            margin: 2rem 0;
        }

        .tag, .article-tags a
        {
            padding: 0.4rem 0.875rem;
            background: var(--card-hover);
            border-radius: 100px;
            font-size: 0.85rem;
            color: var(--text-secondary);
            text-decoration: none;
            transition: all var(--transition);
        }

        .tag:hover, .article-tags a:hover
        {
            background: var(--accent);
            color: white;
        }

        /* Post Navigation */
        .post-nav {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 1rem;
            margin: 2rem 0;
        }

        .post-nav-item {
            padding: 1.25rem;
            background: var(--card);
            border: 1px solid var(--border);
            border-radius: 12px;
            text-decoration: none;
            transition: all var(--transition);
        }

        .post-nav-item:hover {
            border-color: var(--accent);
            box-shadow: var(--shadow);
        }

        .post-nav-label {
            display: flex;
            align-items: center;
            gap: 0.35rem;
            font-size: 0.75rem;
            font-weight: 600;
            color: var(--muted);
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin-bottom: 0.5rem;
        }

        .post-nav-title {
            font-weight: 600;
            font-size: 0.95rem;
            color: var(--text);
            line-height: 1.4;
        }

        .post-nav-item:hover .post-nav-title {
            color: var(--accent);
        }

        .post-nav-next {
            text-align: right;
        }

        .post-nav-next .post-nav-label {
            justify-content: flex-end;
        }

        /* Author Box */
        .author-box {
            display: flex;
            gap: 1.25rem;
            padding: 1.5rem;
            background: var(--card);
            border: 1px solid var(--border);
            border-radius: 12px;
            margin: 2rem 0;
        }

        .author-box-avatar {
            width: 72px;
            height: 72px;
            border-radius: 50%;
            background: linear-gradient(135deg, #667eea, #764ba2);
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            color: white;
            font-size: 1.5rem;
            flex-shrink: 0;
        }

        .author-box-info {
            flex: 1;
        }

        .author-box-name {
            font-weight: 700;
            font-size: 1.1rem;
            margin-bottom: 0.5rem;
        }

        .author-box-role {
            font-size: 0.875rem;
            color: var(--muted);
            margin-bottom: 0.5rem;
        }

        .author-box-bio {
            font-size: 0.9rem;
            color: var(--text-secondary);
            line-height: 1.6;
            margin-bottom: 1rem;
        }

        .author-box-actions {
            display: flex;
            gap: 0.5rem;
        }

        /* Comments */
        .comments-section {
            margin-top: 3rem;
            display: flex;
            flex-wrap: wrap;
            flex-direction: column;
            row-gap: 1.5rem;
        }

        .comments-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .comments-title {
            font-size: 1.25rem;
            font-weight: 700;
        }

        .comments-count {
            color: var(--muted);
            font-weight: 400;
        }

        .login-cta {
            text-align: center;
            padding: 2rem;
            background: var(--card);
            border: 1px solid var(--border);
            border-radius: 12px;
            margin-bottom: 2rem;
        }

        .login-cta-icon {
            font-size: 2.5rem;
            margin-bottom: 0.75rem;
        }

        .login-cta h4 {
            font-size: 1.1rem;
            margin-bottom: 0.5rem;
        }

        .login-cta p {
            color: var(--text-secondary);
            font-size: 0.9rem;
            margin-bottom: 1.25rem;
        }

        .login-cta-btns {
            display: flex;
            gap: 0.75rem;
            justify-content: center;
        }

        .comment-form {
            background: var(--card);
            border: 1px solid var(--border);
            border-radius: 12px;
            padding: 1.25rem;
            display: flex;
            flex-wrap: wrap;
            row-gap: 1rem;
            flex-direction: column;
        }

        .comment-form textarea {
            width: 100%;
            padding: 1rem;
            background: var(--bg);
            border: 1px solid var(--border);
            border-radius: 8px;
            font-family: inherit;
            font-size: 0.95rem;
            resize: vertical;
            min-height: 100px;
            color: var(--text);
        }

        .comment-form textarea:focus {
            outline: none;
            border-color: var(--accent);
        }

        .comment-form input[type="text"], .comment-form input[type="email"]
        {
            width: 100%;
            padding: 1rem;
            background: var(--bg);
            border: 1px solid var(--border);
            outline: none;
            border-radius: 8px;
            font-family: inherit;
            font-size: 0.95rem;
            resize: vertical;
            min-height: 50px;
            color: var(--text);
        }
        .comment-form input[type="text"]:focus, .comment-form input[type="email"]:focus
        {
            outline: none;
            border-color: var(--accent);
        }
        .comment-form p.form-submit input.submit
        {
            padding: 0.6rem 1rem;
            border-radius: 8px;
            font-size: 0.875rem;
            font-weight: 600;
            cursor: pointer;
            transition: all var(--transition);
            text-decoration: none;
            border: none;
            display: inline-flex;
            align-items: center;
            gap: 0.4rem;
            background: var(--accent);
            color: white;
        }
        .comment-form p.form-submit input.submit:hover
        {
            background: #000;
        }
        .comment-form-actions {
            display: flex;
            justify-content: flex-end;
            gap: 0.75rem;
        }
        .comment-form-wrapper h3
        {
            padding-bottom: 15px;
        }
        .comments-list {
            display: flex;
            flex-direction: column;
            gap: 1.25rem;
        }

        .comment {
            padding: 1.25rem;
            background: var(--card);
            border: 1px solid var(--border);
            border-radius: 12px;
        }

        .comment-header {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            margin-bottom: 0.75rem;
        }

        .comment-avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 600;
            color: white;
            font-size: 0.85rem;
        }

        .comment-author {
            font-weight: 600;
            font-size: 0.95rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            margin-bottom: 3px;
        }

        .author-badge {
            padding: 0.15rem 0.5rem;
            background: var(--accent);
            color: white;
            border-radius: 4px;
            font-size: 0.65rem;
            font-weight: 700;
            text-transform: uppercase;
        }

        .comment-time {
            font-size: 0.8rem;
            color: var(--muted);
        }

        .comment-body {
            font-size: 0.95rem;
            line-height: 1.6;
            color: var(--text-secondary);
        }

        .comment-actions {
            display: flex;
            gap: 1rem;
            margin-top: 0.75rem;
        }
        .comment-actions a.comment-reply-link
        {
            color: #15295f;
            text-decoration: none;
        }
        .comment-action {
            font-size: 0.8rem;
            color: var(--muted);
            cursor: pointer;
            transition: color var(--transition);
        }

        .comment-action:hover { color: var(--accent); }

        .comment-respond h3.comment-reply-title
        {
            padding-bottom: 15px;
        }
        .article-content .counter-hierarchy
        {
            display: none !important;
        }
        .sidebar-section .counter-hierarchy
        {
            background: transparent !important;
            border: 0 !important;
            border-radius: 0 !important;
            box-shadow: none !important;
            margin: 0 !important;
            padding: 0 !important;
        }
        .sidebar-section .counter-hierarchy .ez-toc-title-container
        {
            display: none !important;
        }
        .sidebar-section .counter-hierarchy ul li
        {
            margin-bottom: 0.5rem !important;
        }
        .sidebar-section .counter-hierarchy ul li:last-child
        {
            margin-bottom: 0 !important;
        }
        .sidebar-section .counter-hierarchy ul li a
        {
            display: block !important;
            padding: 0.5rem 0.75rem !important;
            color: var(--text-secondary) !important;
            text-decoration: none !important;
            font-size: 0.875rem !important;
            border-radius: 6px !important;
            transition: all var(--transition) !important;
            border-left: 2px solid transparent !important;
        }
        .sidebar-section .counter-hierarchy ul li a:hover
        {
            background: var(--accent-soft) !important;
            color: var(--accent) !important;
            border-left-color: var(--accent) !important;
        }
        .comment.depth-1 { margin-left: 0; }
        .comment.depth-2 { margin-left: 20px; }
        .comment.depth-3 { margin-left: 40px; }
        .comment.depth-4 { margin-left: 60px; }
        .comment.depth-5 { margin-left: 80px; }
        /* Sidebar */
        .sidebar {
            display: flex;
            flex-direction: column;
            gap: 1.5rem;
            position: sticky;
            top: 100px;
            height: fit-content;
        }

        .sidebar-section {
            background: var(--card);
            border: 1px solid var(--border);
            border-radius: 12px;
            padding: 1.25rem;
        }

        .sidebar-title {
            font-size: 0.75rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            color: var(--muted);
            margin-bottom: 1rem;
            padding-bottom: 0.75rem;
            border-bottom: 1px solid var(--border);
        }

        /* Author Card */
        .author-card {
            text-align: center;
        }

        .author-card .author-avatar {
            width: 72px;
            height: 72px;
            margin: 0 auto 1rem;
            font-size: 1.5rem;
        }

        .author-card .author-name {
            font-size: 1.1rem;
            font-weight: 700;
            margin-bottom: 0.25rem;
        }

        .author-card .author-handle {
            font-size: 0.85rem;
            color: var(--muted);
            margin-bottom: 0.75rem;
        }

        .author-card .author-bio {
            font-size: 0.9rem;
            color: var(--text-secondary);
            line-height: 1.6;
            margin-bottom: 1rem;
        }

        .author-stats {
            display: flex;
            justify-content: center;
            gap: 2rem;
            margin-bottom: 1rem;
            padding: 1rem 0;
            border-top: 1px solid var(--border);
            border-bottom: 1px solid var(--border);
        }

        .author-stats .stat { text-align: center; }
        .author-stats .stat-value { font-weight: 700; font-size: 1.1rem; }
        .author-stats .stat-label { font-size: 0.75rem; color: var(--muted); }

        /* TOC */
        .toc-list {
            list-style: none;
        }

        .toc-list li {
            margin-bottom: 0.5rem;
        }

        .toc-list a {
            display: block;
            padding: 0.5rem 0.75rem;
            color: var(--text-secondary);
            text-decoration: none;
            font-size: 0.875rem;
            border-radius: 6px;
            transition: all var(--transition);
            border-left: 2px solid transparent;
        }

        .toc-list a:hover {
            background: var(--card-hover);
            color: var(--text);
        }

        .toc-list a.active {
            background: var(--accent-soft);
            color: var(--accent);
            border-left-color: var(--accent);
        }

        /* Related */
        .related-list {
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }

        .related-item {
            display: flex;
            gap: 0.75rem;
            padding: 0.75rem;
            margin: -0.75rem;
            border-radius: 8px;
            cursor: pointer;
            transition: all var(--transition);
        }

        .related-item:hover {
            background: var(--card-hover);
        }

        .related-icon {
            width: 40px;
            height: 40px;
            background: var(--card-hover);
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.1rem;
            flex-shrink: 0;
        }
        .related-icon img
        {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        .related-title {
            font-weight: 600;
            font-size: 0.9rem;
            line-height: 1.4;
            color: var(--text);
        }

        .related-item:hover .related-title { color: var(--accent); }

        .related-meta {
            font-size: 0.75rem;
            color: var(--muted);
            margin-top: 0.15rem;
        }

        /* Modal */
        .modal-overlay {
            position: fixed;
            inset: 0;
            background: rgba(0,0,0,0.5);
            backdrop-filter: blur(4px);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 1000;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
        }

        .modal-overlay.show {
            opacity: 1;
            visibility: visible;
        }

        .modal {
            background: var(--bg-secondary);
            border-radius: 16px;
            width: 100%;
            max-width: 400px;
            padding: 2rem;
            transform: scale(0.95);
            transition: transform 0.3s ease;
        }

        .modal-overlay.show .modal {
            transform: scale(1);
        }

        .modal-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 1.5rem;
        }

        .modal-title {
            font-size: 1.25rem;
            font-weight: 700;
        }

        .modal-close {
            width: 32px;
            height: 32px;
            border: none;
            background: var(--card-hover);
            border-radius: 8px;
            cursor: pointer;
            font-size: 1.25rem;
            color: var(--muted);
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .modal-close:hover {
            background: var(--border);
            color: var(--text);
        }

        .social-btns {
            display: flex;
            flex-direction: column;
            gap: 0.75rem;
            margin-bottom: 1.5rem;
        }

        .social-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.75rem;
            padding: 0.875rem;
            background: var(--card-hover);
            border: 1px solid var(--border);
            border-radius: 10px;
            font-size: 0.95rem;
            font-weight: 500;
            cursor: pointer;
            color: var(--text);
            transition: all var(--transition);
        }

        .social-btn:hover {
            border-color: var(--text);
        }

        .divider {
            text-align: center;
            color: var(--muted);
            font-size: 0.85rem;
            margin: 1.5rem 0;
            position: relative;
        }

        .divider::before, .divider::after {
            content: "";
            position: absolute;
            top: 50%;
            width: calc(50% - 1.5rem);
            height: 1px;
            background: var(--border);
        }

        .divider::before { left: 0; }
        .divider::after { right: 0; }

        .form-group {
            margin-bottom: 1rem;
        }

        .form-group label {
            display: block;
            font-size: 0.875rem;
            font-weight: 500;
            margin-bottom: 0.5rem;
        }

        .form-group input {
            width: 100%;
            padding: 0.75rem 1rem;
            background: var(--bg);
            border: 1px solid var(--border);
            border-radius: 8px;
            font-size: 0.95rem;
            color: var(--text);
        }

        .form-group input:focus {
            outline: none;
            border-color: var(--accent);
        }

        .modal-footer {
            text-align: center;
            margin-top: 1.5rem;
            font-size: 0.9rem;
            color: var(--text-secondary);
        }

        .modal-footer a {
            color: var(--accent);
            text-decoration: none;
            font-weight: 600;
        }

        /* Responsive */
        @media (max-width: 1024px) {
            .main-container {
                grid-template-columns: 1fr;
            }
            .sidebar {
                position: static;
                display: grid;
                grid-template-columns: repeat(2, 1fr);
                gap: 1rem;
            }
            .author-card { grid-column: span 2; }
        }

        @media (max-width: 768px) {
            .header-inner { padding: 0.75rem 1rem; }
            .main-container { padding: 1.5rem 1rem; }
            .article-title { font-size: 1.75rem; }
            .article-subtitle { font-size: 1rem; }
            .article-meta-bar { flex-direction: column; gap: 1rem; align-items: flex-start; }
            .reading-controls { width: 100%; justify-content: flex-end; }
            .sidebar { grid-template-columns: 1fr; }
            .author-card { grid-column: span 1; }
            .post-nav { grid-template-columns: 1fr; }
            .reactions-bar { flex-direction: column; gap: 1rem; align-items: flex-start; }
            .share-actions { width: 100%; justify-content: flex-start; }
        }