html:not([data-theme="light"]) { background: #070913; }
body.article-content {
    background: var(--bg-canvas, #070913);
    color: var(--text-main, #e2e8f0);
    margin: 0 auto;
    padding: 28px 36px 64px;
    max-width: 960px;
    box-sizing: border-box;
    min-height: 100vh;
    line-height: 1.78;
}
.article-content a:not([class]) {
    color: #38bdf8;
    text-decoration: none;
    font-weight: 600;
}
.article-content a:not([class]):hover {
    color: #7dd3fc;
}
.article-content mark,
.article-content .text-highlight {
    background: linear-gradient(120deg, #fde68a 0%, #fbbf24 100%);
    color: #0f172a !important;
    font-weight: 600;
    border-radius: .28em;
    padding: .08em .35em;
}
.article-content .text-gradient {
    background: linear-gradient(135deg, #60a5fa 0%, #38bdf8 55%, #34d399 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}
.article-content .text-accent { color: #38bdf8 !important; font-weight: 700; }
.article-content .text-success { color: #34d399 !important; font-weight: 700; }
.article-content .text-warning { color: #fbbf24 !important; font-weight: 700; }
.article-content kbd,
.article-content .kbd-inline {
    display: inline-block;
    background: #1e293b;
    color: #f8fafc;
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-bottom-width: 2px;
    border-radius: 6px;
    padding: .08em .45em;
    font-family: var(--font-mono), monospace;
    font-size: .84em;
    font-weight: 600;
}
.article-content .text-align-center { text-align: center; }
.article-content .text-align-right { text-align: right; }
.article-content .text-align-left { text-align: left; }
.article-content .post-callout { clear: both; }
.article-content blockquote {
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    border-left: 4px solid #38bdf8;
    background: #102036;
    color: #e2e8f0;
    border-radius: 0 12px 12px 0;
}
.article-content pre {
    white-space: pre;
    overflow: auto;
    max-width: 100%;
}
/* Inside TinyMCE editor (.mce-content-body), render <pre> as a macOS Luxury Code Card! */
body.mce-content-body pre {
    position: relative;
    margin: 1.85rem 0 !important;
    padding: 3.1rem 1.25rem 1.15rem !important;
    background: #090d16 !important;
    border: 1px solid rgba(59, 130, 246, 0.4) !important;
    border-radius: 14px !important;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.55) !important;
    color: #e2e8f0 !important;
    font-family: "JetBrains Mono", Consolas, monospace !important;
    font-size: 0.9rem !important;
    line-height: 1.68 !important;
}
body.mce-content-body pre::before {
    content: "● ● ●   KHỐI CODE MACOS (TỰ ĐỘNG TÔ MÀU & NÚT COPY NGOÀI WEB)";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 0.55rem 1rem;
    background: #0d1424;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: #38bdf8;
    font-family: "Be Vietnam Pro", system-ui, sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}
body.mce-content-body pre[class*="language-php"]::before { content: "● ● ●   PHP — KHỐI CODE MACOS"; }
body.mce-content-body pre[class*="language-javascript"]::before,
body.mce-content-body pre[class*="language-js"]::before { content: "● ● ●   JAVASCRIPT — KHỐI CODE MACOS"; }
body.mce-content-body pre[class*="language-css"]::before { content: "● ● ●   CSS — KHỐI CODE MACOS"; }
body.mce-content-body pre[class*="language-markup"]::before,
body.mce-content-body pre[class*="language-html"]::before,
body.mce-content-body pre[class*="language-xml"]::before { content: "● ● ●   HTML / XML — KHỐI CODE MACOS"; }
body.mce-content-body pre[class*="language-bash"]::before,
body.mce-content-body pre[class*="language-shell"]::before { content: "● ● ●   BASH / LINUX — KHỐI CODE MACOS"; }
body.mce-content-body pre[class*="language-sql"]::before { content: "● ● ●   SQL — KHỐI CODE MACOS"; }
body.mce-content-body pre[class*="language-json"]::before { content: "● ● ●   JSON — KHỐI CODE MACOS"; }
body.mce-content-body pre[class*="language-apache"]::before { content: "● ● ●   APACHE / .HTACCESS — KHỐI CODE MACOS"; }

.article-content :not(pre) > code {
    color: #38bdf8;
    background: rgba(37, 99, 235, 0.16);
    border: 1px solid rgba(59, 130, 246, 0.28);
    padding: .14em .42em;
    border-radius: 5px;
    font-family: "JetBrains Mono", Consolas, monospace;
    font-size: 0.88em;
}
.article-content .media-illustration-note { display: block; text-align: center; color: #94a3b8; margin: .5rem 0 1.5rem; }
.coffee-panel { margin-top: 2.5rem; padding: clamp(20px, 4vw, 36px); border: 1px solid rgba(56, 189, 248, 0.35); border-radius: 18px; text-align: center; background: linear-gradient(145deg, rgba(15, 23, 42, 0.92), rgba(12, 20, 40, 0.96)); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4); }
.coffee-panel h4 { color: #38bdf8; font-size: 1.3rem; font-weight: 800; margin: 0 0 .65rem; }
.coffee-panel > p { max-width: 560px; margin: 0 auto 1.5rem; color: #cbd5e1; font-size: 0.95rem; }
.coffee-card { display: flex; flex-direction: column; align-items: center; gap: 12px; width: min(100%, 340px); box-sizing: border-box; margin: 0 auto; padding: 20px; background: #ffffff; color: #0f172a; border-radius: 16px; box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35); }
.coffee-card img,
.article-content .coffee-card img { display: block; width: min(100%, 230px); height: auto; margin: 0 auto !important; border: 0 !important; border-radius: 8px; box-shadow: none !important; }
.coffee-bank { font-size: .9rem; font-weight: 700; line-height: 1.6; overflow-wrap: anywhere; color: #0f172a; }
.coffee-account { display: block; font-family: var(--font-mono), monospace; font-size: 1.15rem; color: #2563eb; font-weight: 800; }

/* Full-width luxury article tables on desktop, scrollable on small mobile */
.article-content table:not(.crayon-table) {
    display: table;
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    margin: 1.75rem 0;
    background: rgba(15, 23, 42, 0.78);
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 12px;
    overflow: hidden;
}
.article-content table:not(.crayon-table) th,
.article-content table:not(.crayon-table) td {
    padding: 0.78rem 1rem;
    border: 1px solid rgba(148, 163, 184, 0.18);
    text-align: left;
    vertical-align: top;
}
.article-content table:not(.crayon-table) th {
    background: rgba(30, 41, 59, 0.92);
    color: #ffffff;
    font-weight: 700;
}
.article-content table:not(.crayon-table) tr:nth-child(even) td {
    background: rgba(255, 255, 255, 0.02);
}
@media (max-width: 640px) {
    .article-content table:not(.crayon-table) {
        display: block;
        overflow-x: auto;
    }
}

/* Light Mode Overrides for Article Content (Rule 16: Zero Blind Text) */
[data-theme="light"] .article-content,
[data-theme="light"] body.article-content {
    background: #fdfdfc !important;
    color: #334155 !important;
}

[data-theme="light"] .article-content h1,
[data-theme="light"] .article-content h2 {
    color: #0f172a !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

[data-theme="light"] .article-content h3 {
    color: #1e40af !important;
}

[data-theme="light"] .article-content h4 {
    color: #0f172a !important;
}

[data-theme="light"] .article-content h5,
[data-theme="light"] .article-content h6 {
    color: #334155 !important;
}

[data-theme="light"] .article-content p,
[data-theme="light"] .article-content li {
    color: #334155 !important;
}

[data-theme="light"] .article-content strong,
[data-theme="light"] .article-content b {
    color: #0f172a !important;
}

[data-theme="light"] .article-content a:not([class]) {
    color: #2563eb !important;
}

[data-theme="light"] .article-content a:not([class]):hover {
    color: #1d4ed8 !important;
}

[data-theme="light"] .article-content blockquote {
    background: #f8fafc !important;
    border-left: 4px solid #2563eb !important;
    color: #334155 !important;
}

[data-theme="light"] .article-content table:not(.crayon-table) {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
}

[data-theme="light"] .article-content table:not(.crayon-table) th {
    background: #f1f5f9 !important;
    color: #0f172a !important;
    border: 1px solid #e2e8f0 !important;
}

[data-theme="light"] .article-content table:not(.crayon-table) td {
    border: 1px solid #e2e8f0 !important;
    color: #334155 !important;
}

[data-theme="light"] .article-content table:not(.crayon-table) tr:nth-child(even) td {
    background: #f8fafc !important;
}

[data-theme="light"] .article-content :not(pre) > code {
    color: #1d4ed8 !important;
    background: #eff6ff !important;
    border: 1px solid #bfdbfe !important;
}

[data-theme="light"] .article-content kbd,
[data-theme="light"] .article-content .kbd-inline {
    background: #f1f5f9 !important;
    color: #0f172a !important;
    border: 1px solid #cbd5e1 !important;
    border-bottom-width: 2px !important;
}

[data-theme="light"] .article-content .media-illustration-note {
    color: #64748b !important;
}

/* Callouts in Light Mode */
[data-theme="light"] .post-callout-success {
    background: #ecfdf5 !important;
    border-color: #a7f3d0 !important;
    color: #065f46 !important;
}
[data-theme="light"] .post-callout-success strong {
    color: #047857 !important;
}

[data-theme="light"] .post-callout-info {
    background: #eff6ff !important;
    border-color: #bfdbfe !important;
    color: #1e40af !important;
}
[data-theme="light"] .post-callout-info strong {
    color: #1d4ed8 !important;
}

[data-theme="light"] .post-callout-warning {
    background: #fffbeb !important;
    border-color: #fde68a !important;
    color: #92400e !important;
}
[data-theme="light"] .post-callout-warning strong {
    color: #b45309 !important;
}

/* Coffee / Buy Me a Coffee in Light Mode */
[data-theme="light"] .coffee-panel {
    background: #ffffff !important;
    border: 1px solid #bfdbfe !important;
    box-shadow: 0 10px 30px -5px rgba(37, 99, 235, 0.08) !important;
}
[data-theme="light"] .coffee-panel h4 {
    color: #1e40af !important;
}
[data-theme="light"] .coffee-panel > p {
    color: #475569 !important;
}
[data-theme="light"] .coffee-card {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04) !important;
    color: #0f172a !important;
}
[data-theme="light"] .coffee-bank {
    color: #0f172a !important;
}
[data-theme="light"] .coffee-account {
    color: #2563eb !important;
}


