/* ViralForum 2026 — complete visual layer. Reference: supplied desktop screenshot. */
:root{--navy:#102e55;--navy2:#0b2444;--blue:#087ff2;--blue2:#168df6;--ink:#10284b;--muted:#7186a4;--line:#dfe8f2;--bg:#f5f9fd;--white:#fff;--green:#21a45b;--red:#ef3e4a;--shadow:0 1px 3px rgba(18,48,83,.07);--radius:8px}
*{box-sizing:border-box}html{font-size:14px}body{margin:0;background:var(--bg);color:var(--ink);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;-webkit-font-smoothing:antialiased}a{color:var(--blue);text-decoration:none}a:hover{color:#006bd0}button,input,textarea,select{font:inherit}button{cursor:pointer}img{max-width:100%}.vf-container{width:min(1460px,100%);margin:auto;padding:20px 28px}.vf-row{display:flex;align-items:center;gap:12px}.vf-site-header,.vf-header{height:68px;background:linear-gradient(110deg,var(--navy2),var(--navy));color:#fff}.vf-site-header-inner{height:68px;width:min(1460px,100%);margin:auto;padding:0 44px;display:grid;grid-template-columns:390px minmax(300px,1fr) auto;align-items:center;gap:24px}.vf-brand{display:flex;align-items:center;gap:10px;color:#fff;min-width:0}.vf-brand:hover{color:#fff}.vf-brand-mark,.vf-flame{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:#fff;color:#178df4;font-size:20px;font-weight:900;box-shadow:0 0 0 4px rgba(23,141,244,.12)}.vf-brand-name{font-size:26px;line-height:1;font-weight:800;letter-spacing:-1px}.vf-brand-name span,.vf-auth-brand strong span{color:#178df4}.vf-brand-tag{display:block;font-size:13px;color:#dbe8f8;margin-top:4px}.vf-header-search{height:38px;max-width:620px;width:100%;justify-self:center}.vf-header-search form{height:100%;display:flex!important;background:rgba(255,255,255,.13);border:1px solid rgba(255,255,255,.08);border-radius:22px;overflow:hidden}.vf-header-search input{min-width:0;flex:1;border:0;outline:0;background:transparent;color:#fff;padding:0 17px}.vf-header-search input::placeholder{color:#d2dfef}.vf-header-search button{width:50px;border:0;background:transparent;color:#fff;font-size:22px}.vf-header-actions{display:flex;align-items:center;gap:11px;white-space:nowrap}.vf-header-actions:after{content:'☰';font-size:25px;margin-left:12px}.vf-btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:38px;padding:0 18px;border-radius:20px;border:1px solid transparent;font-weight:700;font-size:13px;transition:.15s ease}.vf-btn-primary{background:var(--blue);color:#fff;border-color:var(--blue)}.vf-btn-primary:hover{background:#006ed9;color:#fff}.vf-btn-secondary{background:transparent;color:#fff;border-color:#138cf1}.vf-btn-secondary:hover{background:rgba(255,255,255,.08);color:#fff}.vf-header-points{color:#dceafa;font-size:12px}.vf-panel{background:#fff;border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);overflow:hidden}.vf-panel-head{min-height:45px;padding:0 13px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);font-size:15px;font-weight:800;color:var(--ink)}.vf-panel-head a{font-size:12px;font-weight:600}.vf-empty{padding:24px;text-align:center;color:var(--muted)}
/* Home */
.vf-home-wrap{width:min(1460px,100%);margin:auto;padding:18px 38px 30px}.vf-category-panel{margin-bottom:18px}.vf-category-list{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:11px;padding:12px 9px}.vf-cat{min-width:0;height:64px;border:1px solid var(--line);border-radius:8px;background:#fff;display:flex;align-items:center;gap:9px;padding:8px 10px;color:var(--ink)}.vf-cat:hover{border-color:#b8d8f7;box-shadow:0 2px 8px rgba(19,116,201,.08)}.vf-cat-icon{width:34px;height:34px;flex:0 0 34px;border-radius:8px;background:#1689f2;color:#fff;display:grid;place-items:center;font-size:17px;font-weight:800}.vf-cat:nth-child(2) .vf-cat-icon{background:#7357dd}.vf-cat:nth-child(3) .vf-cat-icon{background:#12a78b}.vf-cat:nth-child(4) .vf-cat-icon{background:#176ce1}.vf-cat:nth-child(5) .vf-cat-icon{background:#35a24f}.vf-cat:nth-child(6) .vf-cat-icon{background:#ed4551}.vf-cat:nth-child(7) .vf-cat-icon{background:#178df2}.vf-cat:nth-child(8) .vf-cat-icon{background:#1879db}.vf-cat-title{display:block;font-weight:800;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.vf-cat-count{display:block;color:#7890ae;font-size:10px;margin-top:3px}.vf-cat-arrow{margin-left:auto;color:#7c93ae;font-size:20px}.vf-home-grid{display:grid;grid-template-columns:327px minmax(0,1fr) 315px;gap:18px;align-items:start}.vf-side-section{margin-bottom:16px}.vf-popular-item{display:grid;grid-template-columns:54px minmax(0,1fr) auto;gap:10px;align-items:center;padding:10px 13px;border-bottom:1px solid #edf2f7;color:var(--ink)}.vf-popular-item:last-child{border-bottom:0}.vf-popular-thumb{width:54px;height:54px;border-radius:7px;overflow:hidden}.vf-popular-title{display:block;font-size:12px;line-height:1.35;font-weight:600}.vf-popular-meta{display:block;color:#7187a2;font-size:10px;margin-top:5px}.vf-popular-fire{font-size:11px;color:#f45122;font-weight:800}.vf-ad-stack{display:grid;gap:12px}.vf-ad-placeholder{height:230px;border-radius:6px;padding:18px;background:linear-gradient(145deg,#0e2755,#123d9b);color:#fff;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;position:relative;overflow:hidden}.vf-ad-placeholder:after{content:'↗';position:absolute;right:28px;bottom:22px;font-size:70px;color:rgba(255,255,255,.16);transform:rotate(-20deg)}.vf-ad-placeholder span{font-size:9px;opacity:.8;margin-bottom:14px}.vf-ad-placeholder strong{font-size:24px;line-height:1.08;max-width:230px}.vf-ad-placeholder:before{content:'Get Started  →';position:absolute;left:20px;bottom:22px;background:#ffd51b;color:#16345c;border-radius:6px;padding:9px 13px;font-size:11px;font-weight:800}.vf-ad-stack .vf-ad-placeholder:nth-child(2){background:linear-gradient(145deg,#eaf4fd,#cbdbea);color:#14365f}.vf-ad-stack .vf-ad-placeholder:nth-child(2):before{content:'Shop Now  →';background:#087ff2;color:#fff}.vf-ad-stack .vf-ad-placeholder:nth-child(3){background:linear-gradient(145deg,#073c32,#032b27)}.vf-ad-stack .vf-ad-placeholder:nth-child(3):before{content:'Get Started  →';background:#31d76e;color:#073b30}.vf-feed-head{height:44px;padding:0 13px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.vf-feed-head h2{font-size:15px;margin:0}.vf-feed-head a{font-size:12px}.vf-post{padding:14px 14px 13px;border-bottom:1px solid var(--line);background:#fff}.vf-post:last-child{border-bottom:0}.vf-post-head{display:flex;align-items:center;gap:8px}.vf-post-author{font-size:12px;font-weight:800}.vf-post-date{font-size:10px;color:#7890ae;margin-top:2px}.vf-post-forum{color:#6484a8}.vf-reaction-summary{margin-left:auto;display:flex;gap:4px;align-items:center}.vf-home-reaction{border:0;border-radius:50%;background:#f0f5fa;width:24px;height:24px;padding:0;display:grid;place-items:center;font-size:13px}.vf-home-reaction .cnt{display:none}.vf-post-body{display:grid;grid-template-columns:92px minmax(0,1fr);gap:14px;margin-top:8px}.vf-post-image{width:92px;height:72px;border-radius:7px;object-fit:cover}.vf-post-title{font-size:15px;line-height:1.3;margin:0 0 4px}.vf-post-title a{color:#122d52}.vf-post-title a:hover{color:#087ff2}.vf-post-excerpt{font-size:12px;line-height:1.55;color:#66809f;margin:0}.vf-post-actions{display:flex;align-items:center;gap:16px;margin-top:8px;color:#087ff2;font-size:11px}.vf-post-action{color:#087ff2}.vf-home-avatar{width:30px;height:30px;border-radius:50%;object-fit:cover}.vf-home-avatar-fallback{display:grid;place-items:center;background:#e6f1fc;color:#0b7de7;font-weight:800}.vf-thumb-fallback{display:grid;place-items:center;background:#eaf3fb;color:#087ff2;font-weight:800}
/* Forms/auth */
.vf-form{background:#fff;border:1px solid var(--line);border-radius:9px;padding:22px}.vf-form-clean{border:0;padding:0}.vf-form label{display:block;font-size:13px;font-weight:700;margin:0 0 7px}.vf-form input,.vf-form textarea,.vf-form select{width:100%;border:1px solid #cdd9e7;background:#fff;border-radius:6px;padding:11px 12px;color:var(--ink);outline:none;margin:0 0 15px}.vf-form input:focus,.vf-form textarea:focus,.vf-form select:focus{border-color:#56aaf3;box-shadow:0 0 0 3px rgba(8,127,242,.1)}.vf-errors,.vf-alert{border-radius:7px;padding:11px 13px;margin:14px 0}.vf-errors,.vf-alert-error{border:1px solid #ffc8cd;background:#fff4f5;color:#a92330}.vf-alert-success{border:1px solid #b8e6c9;background:#f0fff5;color:#18733a}.vf-errors ul{margin:0;padding-left:19px}.vf-similar{border:1px solid #c8e2fb;background:#f1f8ff;color:#1b4f7c;border-radius:7px;padding:11px 13px}.vf-auth-page{min-height:100vh;display:grid;place-items:center;background:linear-gradient(180deg,#eef5fc,#f8fbff)}.vf-auth-shell{width:min(460px,calc(100% - 28px))}.vf-auth-brand{display:flex;justify-content:center;align-items:center;gap:10px;color:var(--ink);font-size:28px;margin-bottom:18px}.vf-auth-brand .vf-flame{background:var(--blue);color:#fff}.vf-auth-card{background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:0 10px 35px rgba(26,64,101,.08);padding:30px}.vf-auth-card h1{margin:0 0 7px;font-size:24px}.vf-auth-sub{margin:0 0 22px;color:var(--muted);font-size:13px}.vf-auth-card h3{font-size:13px;margin:20px 0 10px;color:var(--ink)}.vf-two{display:grid;grid-template-columns:1fr 1fr;gap:12px}.vf-btn-wide{width:100%;margin-top:8px}
/* Existing inner pages/admin */
.vf-site-header, .vf-header {
  height: 68px;
  color: #fff;
  background: linear-gradient(110deg,#440b0b,#551010) !important;
}
/* ============================================================
   ViralForum 2026 — Dark Theme
   Activated by <html class="dark"> (see toggle script)
   ============================================================ */
html.dark {
    --navy:   #0a1a30;
    --navy2:  #071122;
    --blue:   #3b9dff;
    --blue2:  #5aaeff;
    --ink:    #dbe7f5;   /* primary text */
    --muted:  #8ea4c2;   /* secondary text */
    --line:   #22344c;   /* borders */
    --bg:     #0b1626;   /* page background */
    --white:  #101f33;   /* "white" panels become raised surfaces */
    --green:  #35c777;
    --red:    #ff5a67;
    --shadow: 0 1px 3px rgba(0, 0, 0, .45);
}

/* Page + text */
html.dark body {
    background: radial-gradient(1200px 600px at 50% -200px, #10233d 0%, var(--bg) 55%) fixed, var(--bg);
    color: var(--ink);
}
html.dark a { color: var(--blue2); }
html.dark a:hover { color: #8cc6ff; }

/* Panels / cards / surfaces */
html.dark .vf-panel,
html.dark .vf-form,
html.dark .vf-thread,
html.dark .vf-comment-section,
html.dark .vf-related,
html.dark .vf-editor-card,
html.dark .editor-card,
html.dark .vf-table,
html.dark .vf-stat,
html.dark .vf-auth-card,
html.dark .vf-post {
    background: #0f1e33;
    border-color: var(--line);
    box-shadow: 0 1px 2px rgba(0, 0, 0, .5);
}
html.dark .vf-panel-head,
html.dark .vf-feed-head { border-bottom-color: var(--line); color: var(--ink); }
html.dark .vf-post { border-bottom-color: var(--line); }

/* Category tiles */
html.dark .vf-cat {
    background: #0f1e33;
    border-color: var(--line);
    color: var(--ink);
}
html.dark .vf-cat:hover {
    border-color: #2e5a8a;
    box-shadow: 0 2px 10px rgba(59, 157, 255, .15);
}
html.dark .vf-cat-title { color: var(--ink); }
html.dark .vf-cat-count { color: var(--muted); }
html.dark .vf-cat-arrow { color: #6a83a3; }

/* Post list */
html.dark .vf-post-title a { color: #e8f1fb; }
html.dark .vf-post-title a:hover { color: var(--blue2); }
html.dark .vf-post-excerpt { color: #9db2cd; }
html.dark .vf-post-date  { color: var(--muted); }
html.dark .vf-post-forum { color: #7fa1c7; }
html.dark .vf-home-reaction { background: #16283f; }

/* Popular posts */
html.dark .vf-popular-item {
    color: var(--ink);
    border-bottom-color: #182b44;
}
html.dark .vf-popular-item:hover { background: #12233a; }
html.dark .vf-popular-meta { color: var(--muted); }
html.dark .vf-popular-thumb { background: #16283f; }

/* Members online / tag cloud */
html.dark .vf-members-online {
    background: #0f1e33;
    border-color: var(--line);
}
html.dark .vf-members-online-title { color: var(--ink); }
html.dark .vf-members-online-count { color: #b6c7dc; }
html.dark .vf-members-online-count b { color: #fff; }
html.dark .vf-online-avatars .vf-home-avatar {
    background: #16283f;
    color: #a9c3e2;
    border-color: var(--line);
}
html.dark .vf-tag {
    background: #16283f;
    border-color: #22344c;
    color: #d5e3f4;
}
html.dark .vf-tag small { color: #8ea4c2; }
html.dark .vf-tag:hover { background: #1c334f; }

/* Ads placeholders (keep the brand glow) */
html.dark .vf-footer-ad-cell {
    background: #0f1e33;
    border-color: #2a3f5a;
}
html.dark .vf-ad-placeholder {
    background: linear-gradient(145deg, #0c1b30, #123a7a);
}

/* Pagination */
html.dark .vf-post-pagination a,
html.dark .vf-post-pagination span {
    border-color: var(--line);
    color: var(--ink);
    background: #0f1e33;
}
html.dark .vf-post-pagination a:hover { background: #16283f; }
html.dark .vf-post-pagination .is-current {
    background: var(--blue);
    border-color: var(--blue);
    color: #fff;
}

/* Supermods / go-up / footer search / footer */
html.dark .vf-supermods-bar a,
html.dark .vf-supermods-bar span,
html.dark .vf-go-up a {
    background: #0f1e33;
    border-color: var(--line);
    color: var(--ink);
}
html.dark .vf-supermods-bar a:hover,
html.dark .vf-go-up a:hover { background: #16283f; }
html.dark .vf-footer-search input {
    background: #0f1e33;
    border-color: #2a3f5a;
    color: var(--ink);
}
html.dark .vf-footer-search input::placeholder { color: #6f86a6; }
html.dark .vf-footer-search button {
    background: #16283f;
    border-color: var(--blue);
    color: var(--ink);
}
html.dark .vf-footer-search button:hover { background: #1d3552; }
html.dark .vf-site-footer { color: #b6c7dc; }
html.dark .vf-site-footer a { color: var(--blue2); }

/* Forms */
html.dark .vf-form input,
html.dark .vf-form textarea,
html.dark .vf-form select {
    background: #0b1626;
    border-color: #2a3f5a;
    color: var(--ink);
}
html.dark .vf-form input:focus,
html.dark .vf-form textarea:focus,
html.dark .vf-form select:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(59, 157, 255, .2);
}
html.dark .vf-form label { color: var(--ink); }
html.dark .vf-similar {
    background: #0e2036;
    border-color: #1f4266;
    color: #a9c3e2;
}
html.dark .vf-alert-error, html.dark .vf-errors {
    background: #2a1218;
    border-color: #6b2530;
    color: #ffb8c0;
}
html.dark .vf-alert-success {
    background: #0e2a1c;
    border-color: #1f5c3a;
    color: #9be7b8;
}

/* Tables */
html.dark .vf-table th { background: #0d1c30; color: #b6c7dc; }
html.dark .vf-table td { border-bottom-color: var(--line); }

/* Auth screens */
html.dark .vf-auth-page { background: linear-gradient(180deg, #071122, #0b1626); }

/* Threads / comments */
html.dark .vf-comment { border-top-color: var(--line); }
html.dark .vf-react,
html.dark .vf-share-btn {
    background: #0f1e33;
    border-color: var(--line);
    color: #b6c7dc;
}
html.dark .vf-react.active {
    background: #123a66;
    border-color: var(--blue);
}

/* Header: keep the branded gradient but darker */
html.dark .vf-site-header,
html.dark .vf-header {
    background: linear-gradient(110deg, #140404, #2a0808) !important;
    border-bottom: 1px solid #2a1010;
}
html.dark .vf-brand-mark,
html.dark .vf-flame { background: #fff; color: #178df4; }

/* Toggle button nicety in both themes */
#vf-theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .18) !important;
    color: #fff;
    font-size: 1.05rem;
    transition: transform .15s ease, background .15s ease;
}
#vf-theme-toggle:hover {
    background: rgba(255, 255, 255, .22);
    transform: rotate(-15deg) scale(1.05);
}
.vf-thread,.vf-comment-section,.vf-related,.vf-editor-card,.editor-card{background:#fff;border:1px solid var(--line);border-radius:9px;padding:20px;margin-bottom:16px}.vf-thread h1{font-size:26px;line-height:1.25;margin:0 0 8px}.vf-thread-content{font-size:15px;line-height:1.8;margin-top:18px}.vf-reactions,.vf-share{display:flex;gap:7px;align-items:center;flex-wrap:wrap;margin-top:16px}.vf-react,.vf-share-btn{border:1px solid var(--line);background:#fff;border-radius:18px;padding:6px 11px;color:#31506f}.vf-react.active{border-color:#75b7ee;background:#eaf5ff}.vf-comment{list-style:none;border-top:1px solid #edf2f7;padding:14px 0}.vf-comment-head{display:flex;gap:9px;align-items:center}.vf-comment-body{margin:7px 0}.vf-comments{padding-left:0}.vf-comments.depth-2,.vf-comments.depth-3,.vf-comments.depth-4{padding-left:25px}.vf-meta{color:var(--muted);font-size:12px}.vf-table{width:100%;border-collapse:collapse;background:#fff;border:1px solid var(--line);border-radius:8px;overflow:hidden}.vf-table th,.vf-table td{padding:10px 12px;border-bottom:1px solid #edf2f7;text-align:left}.vf-table th{background:#f7faff;font-size:12px}.vf-table td{font-size:13px}.vf-stat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.vf-stat{background:#fff;border:1px solid var(--line);border-radius:8px;padding:15px}.vf-stat strong{display:block;font-size:22px}.vf-stat span{color:var(--muted);font-size:11px}.vf-sidebar-ad img,.vf-ad-stack img{display:block;width:100%;border-radius:6px}.vf-mobile-only{display:none}
@media(max-width:1200px){.vf-site-header-inner{grid-template-columns:300px minmax(250px,1fr) auto;padding:0 22px}.vf-home-grid{grid-template-columns:265px minmax(0,1fr) 260px}.vf-category-list{grid-template-columns:repeat(4,1fr)}}
@media(max-width:900px){.vf-site-header,.vf-header,.vf-site-header-inner{height:60px}.vf-site-header-inner{grid-template-columns:1fr auto;padding:0 12px}.vf-header-search{display:none}.vf-brand-name{font-size:21px}.vf-brand-tag{display:none}.vf-brand-mark{width:32px;height:32px}.vf-header-actions:after{display:none}.vf-header-actions{gap:5px}.vf-header-actions .vf-btn{min-height:34px;padding:0 11px;font-size:12px}.vf-header-points{display:none}.vf-home-wrap{padding:10px}.vf-home-grid{display:block}.vf-home-sidebar-left,.vf-home-sidebar-right{display:none}.vf-category-list{grid-template-columns:repeat(2,1fr);gap:7px;padding:8px}.vf-cat{height:58px}.vf-post-body{grid-template-columns:82px 1fr}.vf-post-image{width:82px;height:65px}.vf-stat-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:560px){.vf-container{padding:12px 9px}.vf-category-list{grid-template-columns:1fr 1fr}.vf-cat{padding:7px}.vf-cat-title{font-size:11px}.vf-cat-count{font-size:9px}.vf-cat-icon{width:30px;height:30px;flex-basis:30px}.vf-post{padding:13px 10px}.vf-post-body{grid-template-columns:1fr}.vf-post-image{width:100%;height:145px}.vf-reaction-summary{display:none}.vf-post-title{font-size:14px}.vf-post-excerpt{font-size:11px}.vf-two{grid-template-columns:1fr}.vf-auth-card{padding:22px}.vf-stat-grid{grid-template-columns:1fr 1fr}.vf-btn{padding:0 13px}}
.vf-editor-card{width:min(920px,100%);margin:0 auto}.vf-editor-card h1{font-size:25px;margin:8px 0 5px}.vf-counter{text-align:right;margin-top:-9px;margin-bottom:12px}.vf-counter.is-low{color:var(--red)}.vf-form-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:8px}.vf-editor-card .vf-btn-secondary{color:#45627f;border-color:var(--line);background:#fff}.vf-editor-card .vf-btn-secondary:hover{background:#f5f9fd;color:#23476d}
