/* ViralHub Frontend CSS — v1.0.0 */

/* ================================================================
   1. TOKENS & RESET
   ================================================================ */
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --primary-bg: rgba(99, 102, 241, 0.08);

    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;

    --gray-50:  #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;

    --bg:        #f8fafc;
    --bg-card:   #ffffff;
    --bg-sidebar: #f1f5f9;
    --border:    #e2e8f0;
    --text:      #1e293b;
    --text-muted: #64748b;
    --text-light: #94a3b8;

    --header-h: 64px;
    --radius:   12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
    --shadow:    0 4px 16px rgba(0,0,0,.08), 0 2px 4px rgba(0,0,0,.04);
    --shadow-lg: 0 20px 40px rgba(0,0,0,.12), 0 8px 16px rgba(0,0,0,.06);

    --transition: 0.2s ease;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Sora', 'Inter', sans-serif;
}

[data-theme="dark"] {
    --bg:        #0f172a;
    --bg-card:   #1e293b;
    --bg-sidebar: #162032;
    --border:    #334155;
    --text:      #f1f5f9;
    --text-muted: #94a3b8;
    --text-light: #64748b;
    --primary-bg: rgba(99, 102, 241, 0.15);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
    transition: background var(--transition), color var(--transition);
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--primary); }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ================================================================
   2. LAYOUT UTILITIES
   ================================================================ */
.container-xl {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 768px) {
    .container-xl { padding: 0 1.5rem; }
}

@media (min-width: 1280px) {
    .container-xl { padding: 0 2rem; }
}

.vh-layout {
    display: grid;
    gap: 2rem;
    padding: 2rem 0;
}

.vh-layout--sidebar {
    grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
    .vh-layout--sidebar {
        grid-template-columns: 1fr 320px;
    }
}

.vh-layout__main {}
.vh-layout__sidebar {}

/* ================================================================
   3. PRELOADER
   ================================================================ */
.vh-preloader {
    position: fixed;
    inset: 0;
    background: var(--bg);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.vh-preloader.is-hidden {
    opacity: 0;
    visibility: hidden;
}

.vh-preloader__spinner {
    width: 44px;
    height: 44px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ================================================================
   4. HEADER
   ================================================================ */
.vh-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    height: var(--header-h);
    transition: box-shadow var(--transition), background var(--transition);
}

.vh-header.is-scrolled {
    box-shadow: var(--shadow);
}

.vh-header__inner {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.vh-header__logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.vh-header__logo-text {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 800;
    font-family: var(--font-display);
    color: var(--primary);
    letter-spacing: -0.03em;
}

.vh-header__logo-text i {
    font-size: 1.4rem;
}

.vh-header__logo img {
    height: 36px;
    width: auto;
}

/* Nav */
.vh-header__nav {
    flex: 1;
    display: none;
}

/* Mobile nav close header — hidden on desktop */
.vh-nav-close {
    display: none;
}

@media (min-width: 1024px) {
    .vh-header__nav {
        display: flex;
        align-items: center;
    }
}

.vh-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
}

.vh-nav__item {
    position: relative;
}

.vh-nav__link {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.875rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: all var(--transition);
    white-space: nowrap;
}

.vh-nav__link:hover,
.vh-nav__link.is-active {
    color: var(--primary);
    background: var(--primary-bg);
}

.vh-nav__link i {
    font-size: 0.95rem;
}

/* Dropdown */
.vh-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
    z-index: 100;
}

.vh-nav__item--has-dropdown:hover .vh-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.vh-dropdown__inner {
    padding: 0.5rem;
}

.vh-dropdown__item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.875rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    color: var(--text);
    transition: all var(--transition);
}

.vh-dropdown__item:hover {
    background: var(--primary-bg);
    color: var(--primary);
}

/* Header Actions */
.vh-header__actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    margin-left: auto;
}

.vh-btn-icon {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    transition: all var(--transition);
    font-size: 1.05rem;
    flex-shrink: 0;
}

.vh-btn-icon:hover {
    color: var(--primary);
    background: var(--primary-bg);
}

/* User Menu */
.vh-user-menu {
    position: relative;
}

.vh-user-menu__trigger {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem 0.375rem 0.375rem;
    background: var(--bg-sidebar);
    border-radius: 99px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text);
    transition: all var(--transition);
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

/* Allow clicks to pass through children to the button */
.vh-user-menu__trigger > * {
    pointer-events: none;
}

.vh-user-menu__trigger:hover {
    background: var(--primary-bg);
    color: var(--primary);
}

.vh-user-menu__name {
    display: none;
}

@media (min-width: 768px) {
    .vh-user-menu__name { display: block; }
}

.vh-user-menu__dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
    z-index: 500;
}

.vh-user-menu.is-open .vh-user-menu__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.vh-user-menu__item,
.vh-user-menu__item button {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.6rem 0.875rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    color: var(--text);
    transition: all var(--transition);
    background: none;
    border: none;
    font-family: inherit;
    cursor: pointer;
    text-align: left;
}

.vh-user-menu__item:hover {
    background: var(--primary-bg);
    color: var(--primary);
}

.vh-user-menu__item--admin {
    color: var(--primary);
    font-weight: 600;
}

.vh-user-menu__item--logout {
    color: var(--danger);
}

.vh-user-menu__item--logout:hover {
    background: rgba(239,68,68,.08);
    color: var(--danger);
}

.vh-user-menu__divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 0.25rem 0;
}

/* Search Bar */
.vh-search-bar {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 0;
    transform-origin: top;
    transform: scaleY(0);
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.25s ease;
}

.vh-search-bar.is-open {
    transform: scaleY(1);
    opacity: 1;
    max-height: 80px;
}

.vh-search-form {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--bg-sidebar);
    border-radius: var(--radius);
    padding: 0 1rem;
    border: 2px solid transparent;
    transition: all var(--transition);
}

.vh-search-form:focus-within {
    border-color: var(--primary);
    background: var(--bg-card);
}

.vh-search-form__icon {
    color: var(--text-muted);
    font-size: 1rem;
    flex-shrink: 0;
}

.vh-search-form__input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    padding: 0.75rem 0;
    font-size: 1rem;
    color: var(--text);
    font-family: var(--font);
}

.vh-search-form__input::placeholder {
    color: var(--text-light);
}

/* Hamburger */
.vh-hamburger {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 0;
    flex-shrink: 0;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
    border-radius: var(--radius-sm);
}

.vh-hamburger span {
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all var(--transition);
    display: block;
}

@media (min-width: 1024px) {
    .vh-hamburger { display: none; }
}

/* Nav Backdrop — starts below header so header stacking context stays on top */
.vh-nav-backdrop {
    display: none;
    position: fixed;
    top: var(--header-h);
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}
.vh-nav-backdrop.is-open {
    display: block;
}
body.nav-open {
    overflow: hidden;
}

/* Mobile-only / desktop-only visibility helpers */
.vh-show-mobile { display: none !important; }
.vh-mobile-auth { display: none; }
.vh-mobile-nav-search { display: none; }

@media (max-width: 1023px) {
    /* Center logo absolutely on mobile */
    .vh-header__inner {
        position: relative;
    }
    .vh-header__logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        pointer-events: none;
    }
    .vh-header__logo a,
    .vh-header__logo .vh-header__logo-text {
        pointer-events: auto;
    }

    .vh-hide-mobile { display: none !important; }
    .vh-show-mobile { display: flex !important; }

    /* Submit button — icon only on mobile */
    .vh-header__actions .vh-btn--primary span {
        display: none;
    }
    .vh-header__actions .vh-btn--primary {
        width: 36px;
        height: 36px;
        padding: 0;
        border-radius: var(--radius-sm);
        justify-content: center;
        font-size: 1.1rem;
    }

    /* Hide search & theme toggles from header on mobile — too many icons */
    #searchToggle,
    #themeToggle {
        display: none !important;
    }

    /* Reduce header actions gap on mobile */
    .vh-header__actions {
        gap: 0.25rem;
    }

    .vh-mobile-auth {
        display: block;
        position: relative;
    }
    .vh-mobile-auth__menu {
        display: none;
        position: absolute;
        top: calc(100% + 8px);
        right: 0;
        background: var(--bg-card);
        border: 1px solid var(--border);
        border-radius: var(--radius);
        box-shadow: var(--shadow-lg);
        min-width: 160px;
        z-index: 500;
        overflow: hidden;
    }
    .vh-mobile-auth__menu.is-open {
        display: block;
    }
    .vh-mobile-auth__item {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.75rem 1rem;
        color: var(--text);
        font-size: 0.9rem;
        text-decoration: none;
    }
    .vh-mobile-auth__item:hover {
        background: var(--bg-hover);
    }

    /* User menu dropdown — fixed position on mobile so stacking context never clips it */
    .vh-user-menu__dropdown {
        position: fixed;
        top: calc(var(--header-h) + 4px);
        right: 0.5rem;
        left: auto;
        z-index: 9999;
    }

    /* Push main content up so bottom bar doesn't cover it */
    .vh-main {
        padding-bottom: 72px;
    }

    /* Hide submit button from header — bottom bar has it */
    .vh-header__actions .vh-btn--primary {
        display: none !important;
    }
}

/* ================================================================
   MOBILE BOTTOM NAVIGATION BAR
   ================================================================ */
.vh-bottom-bar {
    display: none;
}

@media (max-width: 1023px) {
    .vh-bottom-bar {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 900;
        background: var(--bg-card);
        border-top: 1.5px solid var(--border);
        height: 60px;
        align-items: center;
        justify-content: space-around;
        padding: 0 0.25rem;
        padding-bottom: env(safe-area-inset-bottom);
        box-shadow: 0 -4px 20px rgba(0,0,0,.08);
    }

    .vh-bottom-bar__item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        flex: 1;
        height: 100%;
        color: var(--text-muted);
        font-size: 0.6rem;
        font-weight: 500;
        text-decoration: none;
        transition: color 0.15s ease;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
        letter-spacing: 0.02em;
        text-transform: uppercase;
    }

    .vh-bottom-bar__item i {
        font-size: 1.35rem;
        line-height: 1;
        display: block;
    }

    .vh-bottom-bar__item.is-active {
        color: var(--primary);
    }

    .vh-bottom-bar__item.is-active i {
        color: var(--primary);
    }

    /* Center "+" post button — elevated pill */
    .vh-bottom-bar__item--post {
        background: var(--primary);
        color: #fff !important;
        width: 50px;
        height: 50px;
        border-radius: 50%;
        flex: none;
        box-shadow: 0 4px 16px rgba(99,102,241,.45);
        margin-bottom: 8px;
        transition: transform 0.15s ease, box-shadow 0.15s ease;
    }

    .vh-bottom-bar__item--post i {
        font-size: 1.5rem;
        color: #fff;
    }

    .vh-bottom-bar__item--post:active {
        transform: scale(0.92);
        box-shadow: 0 2px 8px rgba(99,102,241,.3);
    }

    /* Avatar in bottom bar */
    .vh-bottom-bar__avatar {
        width: 26px;
        height: 26px;
        border-radius: 50%;
        object-fit: cover;
        border: 2px solid var(--border);
        display: block;
    }

    .vh-bottom-bar__item.is-active .vh-bottom-bar__avatar {
        border-color: var(--primary);
    }

    /* Footer needs bottom padding too */
    .vh-footer {
        padding-bottom: 72px;
    }
}

/* ================================================================
   5. AD ZONES
   ================================================================ */
.vh-ad-zone {
    text-align: center;
    padding: 0.5rem 0;
    overflow: hidden;
    max-width: 100%;
}
.vh-ad-zone > * {
    max-width: 100%;
    height: auto;
}
.vh-ad-zone--header {
    background: var(--bg-sidebar);
    border-bottom: 1px solid var(--border);
    padding: 0.5rem 0;
    overflow: hidden;
}

.vh-ad-zone--sidebar {
    padding: 0;
    overflow: hidden;
}

.vh-ad-zone--infeed {
    margin: 1.5rem 0;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px dashed var(--border);
}

/* Hide desktop leaderboard zones on small screens */
@media (max-width: 600px) {
    .vh-ad-zone--header,
    .vh-ad-zone--infeed {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .vh-ad-zone--header ins,
    .vh-ad-zone--infeed ins {
        min-width: unset !important;
        width: 100% !important;
    }
}

/* ================================================================
   6. HERO SECTION
   ================================================================ */
.vh-hero {
    padding: 1.5rem 0;
    background: var(--bg);
}

.vh-hero__grid {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .vh-hero__grid {
        grid-template-columns: 1fr 340px;
    }
}

@media (min-width: 1024px) {
    .vh-hero__grid {
        grid-template-columns: 1fr 400px;
    }
}

.vh-hero__main {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: block;
    min-height: 320px;
    cursor: pointer;
}

@media (min-width: 768px) {
    .vh-hero__main {
        min-height: 400px;
    }
}

.vh-hero__media {
    position: absolute;
    inset: 0;
}

.vh-hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.vh-hero__main:hover .vh-hero__media img {
    transform: scale(1.04);
}

.vh-hero__media-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: rgba(255,255,255,.4);
}

.vh-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.85) 0%, rgba(0,0,0,.2) 50%, transparent 100%);
}

.vh-hero__content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem 1.5rem 1.5rem;
    z-index: 1;
}

.vh-hero__title {
    font-size: 1.4rem;
    font-weight: 800;
    font-family: var(--font-display);
    color: #fff;
    line-height: 1.3;
    margin: 0.5rem 0;
    text-shadow: 0 2px 8px rgba(0,0,0,.3);
}

@media (min-width: 768px) {
    .vh-hero__title { font-size: 1.75rem; }
}

.vh-hero__meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: rgba(255,255,255,.8);
    font-size: 0.85rem;
}

.vh-hero__meta span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.vh-hero__type-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.3rem 0.75rem;
    border-radius: 99px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    z-index: 2;
}

.vh-hero__secondary {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.vh-hero__item {
    display: flex;
    gap: 0.75rem;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border);
    transition: all var(--transition);
    cursor: pointer;
}

.vh-hero__item:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
    transform: translateX(3px);
}

.vh-hero__item-media {
    width: 110px;
    flex-shrink: 0;
    overflow: hidden;
}

.vh-hero__item-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.vh-hero__item:hover .vh-hero__item-media img {
    transform: scale(1.05);
}

.vh-hero__item-placeholder {
    width: 100%;
    height: 100%;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: rgba(255,255,255,.5);
}

.vh-hero__item-content {
    flex: 1;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 0.35rem;
}

.vh-hero__item-content h3 {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ================================================================
   7. CATEGORY BAR
   ================================================================ */
.vh-category-bar {
    position: sticky;
    top: var(--header-h);
    z-index: 99;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 0;
    transition: background var(--transition);
}

.vh-category-scroll {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.vh-category-scroll::-webkit-scrollbar { display: none; }

.vh-category-chip {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.875rem;
    border-radius: 99px;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    color: var(--text-muted);
    border: 1.5px solid var(--border);
    background: var(--bg-card);
    transition: all var(--transition);
    flex-shrink: 0;
}

.vh-category-chip:hover {
    border-color: var(--cat-color, var(--primary));
    color: var(--cat-color, var(--primary));
    background: rgba(var(--cat-color, 99, 102, 241), 0.05);
}

.vh-category-chip.is-active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.vh-category-chip__count {
    background: rgba(0,0,0,.15);
    color: inherit;
    font-size: 0.75rem;
    padding: 0.1rem 0.4rem;
    border-radius: 99px;
}

/* ── Category Page Header ────────────────────────────────────── */
.vh-category-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.75rem 2rem;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1.5px solid var(--border);
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
    border-left: 5px solid var(--cat-color, var(--primary));
}

.vh-category-header__icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius);
    background: var(--cat-color, var(--primary));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.75rem;
    color: #fff;
    box-shadow: 0 4px 16px color-mix(in srgb, var(--cat-color, var(--primary)) 40%, transparent);
}

.vh-category-header__info h1 {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 0 .3rem;
    color: var(--text);
}

.vh-category-header__info p {
    font-size: .9rem;
    color: var(--text-muted);
    margin: 0 0 .5rem;
}

.vh-category-header__info span {
    display: inline-block;
    font-size: .78rem;
    font-weight: 600;
    color: var(--cat-color, var(--primary));
    background: color-mix(in srgb, var(--cat-color, var(--primary)) 12%, transparent);
    padding: .2rem .65rem;
    border-radius: 99px;
}

@media (max-width: 600px) {
    .vh-category-header {
        padding: 1.25rem;
        gap: 1rem;
    }
    .vh-category-header__icon {
        width: 48px;
        height: 48px;
        font-size: 1.35rem;
    }
    .vh-category-header__info h1 {
        font-size: 1.2rem;
    }
}

/* ================================================================
   8. TABS
   ================================================================ */
.vh-tabs {
    display: flex;
    gap: 0.25rem;
    border-bottom: 2px solid var(--border);
    margin-bottom: 1.5rem;
}

.vh-tab {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all var(--transition);
}

.vh-tab:hover {
    color: var(--primary);
}

.vh-tab.is-active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

/* ================================================================
   9. POST CARDS
   ================================================================ */
.vh-posts-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .vh-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {
    .vh-posts-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.vh-post-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}

.vh-post-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-color: var(--primary);
}

.vh-post-card__media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    display: block;
    background: var(--bg-sidebar);
}

.vh-post-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.vh-post-card:hover .vh-post-card__media img {
    transform: scale(1.05);
}

.vh-post-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: rgba(255,255,255,.4);
}

.vh-post-card__type {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.25rem 0.625rem;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    backdrop-filter: blur(8px);
}

.vh-post-card__featured {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    padding: 0.25rem 0.625rem;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 600;
    background: #f59e0b;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.vh-post-card__body {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.vh-post-card__category {
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.vh-post-card__title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
    font-family: var(--font-display);
}

.vh-post-card__title a {
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color var(--transition);
}

.vh-post-card__title a:hover {
    color: var(--primary);
}

.vh-post-card__excerpt {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.vh-post-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
}

.vh-post-card__author {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    min-width: 0;
    flex: 1;
    overflow: hidden;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text);
    min-width: 0;
}

.vh-post-card__author span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 130px;
}

.vh-post-card__stats {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.vh-post-card__stat {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.vh-post-card__time {
    font-size: 0.8rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* ================================================================
   10. TYPE BADGES
   ================================================================ */
.badge-video    { background: rgba(239,68,68,.9);  color: #fff; }
.badge-image    { background: rgba(16,185,129,.9); color: #fff; }
.badge-gif      { background: rgba(245,158,11,.9); color: #fff; }
.badge-poll     { background: rgba(99,102,241,.9); color: #fff; }
.badge-list     { background: rgba(59,130,246,.9); color: #fff; }
.badge-article  { background: rgba(100,116,139,.8); color: #fff; }

/* ================================================================
   11. BADGES
   ================================================================ */
.vh-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.625rem;
    border-radius: 99px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
}

.vh-badge--sm {
    padding: 0.2rem 0.5rem;
    font-size: 0.75rem;
}

.vh-badge--trending {
    background: linear-gradient(135deg, #ef4444, #f97316);
}

/* ================================================================
   12. AVATAR
   ================================================================ */
.vh-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid var(--border);
}

.vh-avatar--sm {
    width: 32px;
    height: 32px;
}

.vh-avatar--xs {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.vh-verified-icon {
    color: var(--primary);
    font-size: 0.9em;
    vertical-align: middle;
}

.vh-verified-icon--sm {
    font-size: 0.75em;
    flex-shrink: 0;
}

/* ================================================================
   13. BUTTONS
   ================================================================ */
.vh-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    transition: all var(--transition);
    white-space: nowrap;
    cursor: pointer;
    border: 1.5px solid transparent;
    font-family: var(--font);
    text-decoration: none;
}

.vh-btn--primary {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.vh-btn--primary:hover {
    background: var(--primary-dark);
    color: #fff;
    border-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99,102,241,.3);
}

.vh-btn--ghost {
    background: transparent;
    color: var(--text);
    border-color: var(--border);
}

.vh-btn--ghost:hover {
    background: var(--bg-sidebar);
    color: var(--primary);
    border-color: var(--primary);
}

.vh-btn--sm {
    padding: 0.4rem 0.875rem;
    font-size: 0.85rem;
}

.vh-btn--lg {
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
}

.vh-btn--full {
    width: 100%;
}

/* ================================================================
   14. WIDGETS (Sidebar)
   ================================================================ */
.vh-widget {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    margin-bottom: 1.25rem;
}

.vh-widget__title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--primary);
}

.vh-widget__title i {
    color: var(--primary);
}

.vh-widget--newsletter {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-color: var(--primary);
    text-align: center;
    color: #fff;
}

.vh-widget--newsletter .vh-widget__icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    opacity: 0.9;
}

.vh-widget--newsletter h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.vh-widget--newsletter p {
    font-size: 0.875rem;
    opacity: 0.9;
    margin-bottom: 1rem;
}

/* Tags Cloud */
.vh-tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.vh-tag-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.3rem 0.75rem;
    background: var(--bg-sidebar);
    border: 1px solid var(--border);
    border-radius: 99px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: all var(--transition);
}

.vh-tag-chip:hover {
    background: var(--primary-bg);
    border-color: var(--primary);
    color: var(--primary);
}

.vh-tag-chip span {
    background: var(--border);
    color: var(--text-muted);
    font-size: 0.7rem;
    padding: 0.1rem 0.35rem;
    border-radius: 99px;
}

/* Authors List */
.vh-authors-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.vh-author-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.vh-author-item:hover {
    background: var(--bg-sidebar);
}

.vh-author-item__info {
    flex: 1;
    min-width: 0;
}

.vh-author-item__name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.vh-author-item__meta {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.vh-author-item__score {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    flex-shrink: 0;
}

/* Newsletter Forms */
.vh-newsletter-form,
.vh-newsletter-widget-form {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.vh-newsletter-form__input,
.vh-newsletter-widget-form input {
    flex: 1;
    min-width: 180px;
    padding: 0.625rem 1rem;
    border-radius: var(--radius-sm);
    border: 1.5px solid rgba(255,255,255,.3);
    background: rgba(255,255,255,.15);
    color: #fff;
    font-family: var(--font);
    font-size: 0.875rem;
    outline: none;
    transition: all var(--transition);
}

.vh-newsletter-form__input::placeholder,
.vh-newsletter-widget-form input::placeholder {
    color: rgba(255,255,255,.6);
}

.vh-newsletter-form__input:focus,
.vh-newsletter-widget-form input:focus {
    border-color: rgba(255,255,255,.8);
    background: rgba(255,255,255,.2);
}

/* Footer newsletter form (not on gradient bg) */
.vh-footer__col .vh-newsletter-form input {
    background: var(--bg-sidebar);
    border-color: var(--border);
    color: var(--text);
}

.vh-footer__col .vh-newsletter-form input::placeholder {
    color: var(--text-muted);
}

.vh-newsletter-msg,
.vh-success-msg {
    color: rgba(255,255,255,.9);
    font-size: 0.85rem;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* ================================================================
   15. PAGINATION
   ================================================================ */
.vh-pagination {
    padding: 2rem 0;
    display: flex;
    justify-content: center;
}

.vh-pagination-nav {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.vh-page-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text);
    border: 1.5px solid var(--border);
    background: var(--bg-card);
    transition: all var(--transition);
}

.vh-page-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-bg);
}

.vh-page-btn--active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.vh-page-btn--disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.vh-page-btn--dots {
    border: none;
    background: none;
    color: var(--text-muted);
}

/* ================================================================
   16. POST DETAIL PAGE
   ================================================================ */
.vh-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.vh-breadcrumb a:hover {
    color: var(--primary);
}

.vh-breadcrumb i {
    font-size: 0.7rem;
}

.vh-post {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.vh-post__header {
    padding: 2rem 2rem 0;
}

@media (max-width: 768px) {
    .vh-post__header { padding: 1.25rem 1.25rem 0; }
}

.vh-post__meta-top {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.vh-post__title {
    font-size: 1.75rem;
    font-weight: 800;
    font-family: var(--font-display);
    line-height: 1.3;
    color: var(--text);
    margin-bottom: 1.25rem;
}

@media (min-width: 768px) {
    .vh-post__title { font-size: 2.25rem; }
}

.vh-post__author-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border);
}

.vh-post__author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.vh-post__author-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.vh-post__author-role {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.vh-post__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-left: auto;
}

.vh-post__stats span {
    font-size: 0.875rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.vh-post__featured-image {
    margin: 1.5rem 2rem;
    border-radius: var(--radius);
    overflow: hidden;
}

@media (max-width: 768px) {
    .vh-post__featured-image { margin: 1rem; }
}

.vh-post__featured-image img {
    width: 100%;
    height: auto;
}

.vh-post__video {
    margin: 1.5rem 2rem;
}

@media (max-width: 768px) {
    .vh-post__video { margin: 1rem; }
}

.vh-video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    border-radius: var(--radius);
    overflow: hidden;
}

.vh-video-wrapper iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.vh-post__content {
    padding: 0 2rem 1.5rem;
}

@media (max-width: 768px) {
    .vh-post__content { padding: 0 1.25rem 1.25rem; }
}

/* Prose styles */
.vh-prose {
    max-width: 100%;
    line-height: 1.8;
    font-size: 1.0625rem;
    color: var(--text);
}

.vh-prose h2, .vh-prose h3, .vh-prose h4 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.3;
    margin: 1.75em 0 0.75em;
    color: var(--text);
}

.vh-prose h2 { font-size: 1.5rem; }
.vh-prose h3 { font-size: 1.25rem; }
.vh-prose h4 { font-size: 1.1rem; }

.vh-prose p { margin-bottom: 1.25em; }

.vh-prose a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.vh-prose ul, .vh-prose ol {
    padding-left: 1.75em;
    margin-bottom: 1.25em;
}

.vh-prose li { margin-bottom: 0.4em; }

.vh-prose blockquote {
    border-left: 4px solid var(--primary);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background: var(--primary-bg);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic;
    color: var(--text-muted);
}

.vh-prose code {
    background: var(--bg-sidebar);
    padding: 0.15em 0.45em;
    border-radius: 4px;
    font-size: 0.9em;
    color: var(--danger);
    font-family: monospace;
}

.vh-prose pre {
    background: var(--gray-900);
    color: #e2e8f0;
    padding: 1.5rem;
    border-radius: var(--radius);
    overflow-x: auto;
    margin: 1.5rem 0;
    font-size: 0.9rem;
}

.vh-prose img {
    border-radius: var(--radius-sm);
    width: 100%;
    height: auto;
    margin: 1.5rem 0;
}

.vh-post__source {
    margin: 0 2rem 1rem;
    padding: 0.75rem 1rem;
    background: var(--bg-sidebar);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.vh-post__tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    padding: 0 2rem 1.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.vh-post__tags i {
    font-size: 1rem;
}

/* Vote + Actions */
.vh-post__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 2rem;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

@media (max-width: 768px) {
    .vh-post__actions { padding: 1rem 1.25rem; }
}

.vh-vote-bar {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1.5px solid var(--border);
    border-radius: 99px;
    overflow: hidden;
    flex-shrink: 0;
}

.vh-vote-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: all var(--transition);
    background: none;
}

.vh-vote-btn:hover,
.vh-vote-btn.is-active {
    color: #fff;
}

.vh-vote-btn--up:hover,
.vh-vote-btn--up.is-active {
    background: var(--success);
    color: #fff;
}

.vh-vote-btn--down:hover,
.vh-vote-btn--down.is-active {
    background: var(--danger);
    color: #fff;
}

.vh-vote-bar__score {
    padding: 0 0.75rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text);
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
}

.vh-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    border-radius: 99px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
    border: 1.5px solid var(--border);
    transition: all var(--transition);
    background: none;
    cursor: pointer;
    font-family: var(--font);
}

.vh-action-btn:hover,
.vh-action-btn.is-active {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-bg);
}

.vh-share-menu {
    position: relative;
}

.vh-share-count {
    background: var(--bg-sidebar);
    padding: 0.1rem 0.4rem;
    border-radius: 99px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.vh-share-dropdown {
    position: absolute;
    bottom: calc(100% + 0.5rem);
    left: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    min-width: 180px;
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.2s ease;
    z-index: 10;
}

.vh-share-menu.is-open .vh-share-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.vh-share-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.6rem 0.875rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all var(--transition);
    border: none;
    background: none;
    cursor: pointer;
    font-family: var(--font);
    color: var(--text);
}

.vh-share-btn:hover { background: var(--bg-sidebar); }
.vh-share-btn--facebook:hover { background: rgba(24,119,242,.1); color: #1877F2; }
.vh-share-btn--twitter:hover  { background: rgba(0,0,0,.05); color: #000; }
.vh-share-btn--whatsapp:hover { background: rgba(37,211,102,.1); color: #25D366; }

/* Author Box */
.vh-author-box {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border);
}

@media (max-width: 768px) {
    .vh-author-box { padding: 1.25rem; flex-wrap: wrap; }
}

.vh-author-box__avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--border);
    flex-shrink: 0;
}

.vh-author-box__info {
    flex: 1;
    min-width: 0;
}

.vh-author-box__info h4 {
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.5rem;
}

.vh-author-box__info h4 a:hover {
    color: var(--primary);
}

.vh-author-box__info p {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 0.75rem;
}

.vh-author-box__stats {
    display: flex;
    gap: 1.25rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.vh-author-box__stats strong {
    color: var(--text);
    font-weight: 700;
}

/* Comments */
.vh-comments {
    padding: 2rem;
}

@media (max-width: 768px) {
    .vh-comments { padding: 1.25rem; }
}

.vh-comments__title {
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.vh-comment-form {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.vh-comment-form__input-wrap {
    flex: 1;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color var(--transition);
}

.vh-comment-form__input-wrap:focus-within {
    border-color: var(--primary);
}

.vh-comment-form__textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: none;
    outline: none;
    background: var(--bg-card);
    color: var(--text);
    font-family: var(--font);
    font-size: 0.9rem;
    line-height: 1.5;
    resize: vertical;
    min-height: 80px;
}

.vh-comment-form__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 1rem;
    background: var(--bg-sidebar);
    border-top: 1px solid var(--border);
}

.vh-comment-form__count {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.vh-comments__login-prompt {
    text-align: center;
    padding: 2rem;
    background: var(--bg-sidebar);
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

.vh-comments__login-prompt i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
    opacity: 0.5;
}

.vh-comments__login-prompt a {
    color: var(--primary);
    font-weight: 600;
}

.vh-comments-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.vh-comment {
    display: flex;
    gap: 0.75rem;
}

.vh-comment--reply {
    padding-left: 2.5rem;
    margin-top: 1rem;
}

.vh-comment__body {
    flex: 1;
    background: var(--bg-sidebar);
    border-radius: var(--radius);
    padding: 0.875rem 1rem;
}

.vh-comment__header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.vh-comment__author {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.vh-comment__author:hover { color: var(--primary); }

.vh-comment__time {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-left: auto;
}

.vh-comment__content {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text);
}

.vh-comment__actions {
    margin-top: 0.75rem;
    display: flex;
    gap: 0.75rem;
}

.vh-comment-reply-btn {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.3rem;
    transition: color var(--transition);
}

.vh-comment-reply-btn:hover { color: var(--primary); }

.vh-reply-form {
    margin-top: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.vh-reply-form textarea {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    color: var(--text);
    font-family: var(--font);
    font-size: 0.875rem;
    outline: none;
    resize: vertical;
}

.vh-reply-form textarea:focus {
    border-color: var(--primary);
}

.vh-comment-replies {
    margin-top: 0.75rem;
}

/* Related Posts */
.vh-related-list {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.vh-related-item {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    transition: all var(--transition);
}

.vh-related-item:hover {
    color: var(--primary);
}

.vh-related-item__thumb {
    width: 72px;
    height: 56px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg-sidebar);
}

.vh-related-item__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.vh-related-item:hover .vh-related-item__thumb img {
    transform: scale(1.05);
}

.vh-related-item__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: rgba(255,255,255,.4);
}

.vh-related-item__info h5 {
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text);
    margin-bottom: 0.3rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color var(--transition);
}

.vh-related-item:hover .vh-related-item__info h5 {
    color: var(--primary);
}

.vh-related-item__info span {
    font-size: 0.8rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* ================================================================
   17. AUTH PAGES
   ================================================================ */
.vh-auth-page {
    min-height: calc(100vh - var(--header-h) - 100px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.vh-auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    width: 100%;
    max-width: 460px;
    box-shadow: var(--shadow-lg);
}

.vh-auth-card__header {
    text-align: center;
    margin-bottom: 2rem;
}

.vh-auth-card__logo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 800;
    font-family: var(--font-display);
    color: var(--primary);
    margin-bottom: 1rem;
}

.vh-auth-card__header h1 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.35rem;
}

.vh-auth-card__header p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.vh-auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.vh-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.vh-form-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.vh-form-label__link {
    font-weight: 500;
    color: var(--primary);
    font-size: 0.8rem;
}

.vh-input-wrap {
    position: relative;
}

.vh-input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

.vh-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    color: var(--text);
    font-family: var(--font);
    font-size: 0.9rem;
    outline: none;
    transition: all var(--transition);
}

.vh-input--icon {
    padding-left: 2.75rem;
}

.vh-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99,102,241,.15);
}

.vh-input--error {
    border-color: var(--danger);
}

.vh-input--lg {
    padding: .875rem 1.1rem;
    font-size: 1rem;
}

/* Textarea */
.vh-textarea {
    width: 100%;
    padding: .875rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    color: var(--text);
    font-family: var(--font);
    font-size: .9rem;
    line-height: 1.65;
    outline: none;
    resize: vertical;
    transition: border-color var(--transition), box-shadow var(--transition);
    min-height: 120px;
}

.vh-textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99,102,241,.15);
}

.vh-textarea::placeholder { color: var(--text-muted); }

/* Custom select */
.vh-select {
    width: 100%;
    padding: .8rem 2.5rem .8rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    color: var(--text);
    font-family: var(--font);
    font-size: .9rem;
    outline: none;
    cursor: pointer;
    transition: border-color var(--transition), box-shadow var(--transition);
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%236b7280' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right .9rem center;
}

.vh-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99,102,241,.15);
}

[data-theme="dark"] .vh-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%239ca3af' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
}

/* Select with icon prefix */
.vh-select-wrap {
    position: relative;
}

.vh-select-icon {
    position: absolute;
    left: .875rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
    font-size: .9rem;
    pointer-events: none;
    z-index: 1;
}

.vh-select--icon {
    padding-left: 2.5rem;
}

.vh-input-toggle-pw {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.95rem;
}

.vh-input--icon-right {
    padding-right: 2.75rem;
}

.vh-input-icon-btn {
    position: absolute;
    right: 0.625rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 0.25rem;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color var(--transition);
    z-index: 2;
}

.vh-input-icon-btn:hover {
    color: var(--primary);
}

.vh-form-check {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.875rem;
    color: var(--text);
}

.vh-checkbox {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
    cursor: pointer;
}

.vh-auth-form__terms {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.5;
}

.vh-auth-form__terms a {
    color: var(--primary);
    font-weight: 500;
}

.vh-auth-card__footer {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.vh-auth-card__footer a {
    color: var(--primary);
    font-weight: 600;
}

/* ================================================================
   18. ALERTS
   ================================================================ */
.vh-alert {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    margin: 0.75rem auto;
    max-width: 800px;
    position: relative;
}

.vh-alert--success {
    background: rgba(16,185,129,.1);
    color: var(--success);
    border: 1px solid rgba(16,185,129,.2);
}

.vh-alert--error {
    background: rgba(239,68,68,.1);
    color: var(--danger);
    border: 1px solid rgba(239,68,68,.2);
}

.vh-alert__close {
    margin-left: auto;
    font-size: 1.2rem;
    line-height: 1;
    opacity: 0.7;
}

/* ================================================================
   19. FOOTER
   ================================================================ */
.vh-footer {
    background: #0f172a;
    border-top: none;
    margin-top: 4rem;
}

.vh-footer__top {
    padding: 3.5rem 0 2.5rem;
}

.vh-footer__grid {
    display: grid;
    gap: 2.5rem;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .vh-footer__grid {
        grid-template-columns: 2fr 1fr 1fr 2fr;
    }
}

.vh-footer__logo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.375rem;
    font-weight: 800;
    font-family: var(--font-display);
    color: #fff;
    margin-bottom: 0.875rem;
    text-decoration: none;
}

.vh-footer__logo i {
    color: #6366f1;
}

.vh-footer__brand p {
    font-size: 0.875rem;
    color: #94a3b8;
    margin-bottom: 1.25rem;
    line-height: 1.7;
    max-width: 260px;
}

.vh-footer__social {
    display: flex;
    gap: 0.625rem;
}

.vh-footer__social a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.1);
    color: #94a3b8;
    font-size: 0.9375rem;
    transition: all var(--transition);
    text-decoration: none;
}

.vh-footer__social a:hover {
    background: #6366f1;
    border-color: #6366f1;
    color: #fff;
    transform: translateY(-2px);
}

.vh-footer__col h4 {
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1.125rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.vh-footer__col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.vh-footer__col li a {
    font-size: 0.875rem;
    color: #94a3b8;
    transition: color var(--transition);
    text-decoration: none;
}

.vh-footer__col li a:hover {
    color: #fff;
}

/* Newsletter in footer */
.vh-newsletter-form {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
}

.vh-newsletter-form__input {
    flex: 1;
    min-width: 0;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: var(--radius-sm);
    padding: .6rem .875rem;
    font-size: .875rem;
    color: #fff;
    outline: none;
    transition: border-color var(--transition);
}

.vh-newsletter-form__input::placeholder {
    color: #64748b;
}

.vh-newsletter-form__input:focus {
    border-color: #6366f1;
}

.vh-newsletter-msg {
    font-size: .8125rem;
    color: #34d399;
    margin-top: .5rem;
}

.vh-footer__col p {
    font-size: .875rem;
    color: #94a3b8;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.vh-footer__bottom {
    padding: 1.25rem 0;
    border-top: 1px solid rgba(255,255,255,.08);
}

.vh-footer__bottom .container-xl {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem 1.5rem;
    align-items: center;
    justify-content: space-between;
}

.vh-footer__bottom p {
    font-size: 0.8125rem;
    color: #64748b;
}

.vh-footer__links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    list-style: none;
}

.vh-footer__links a {
    font-size: 0.8125rem;
    color: #64748b;
    transition: color var(--transition);
    text-decoration: none;
}

.vh-footer__links a:hover {
    color: #fff;
}

/* Footer newsletter button override */
.vh-footer .vh-btn--primary {
    padding: .6rem 1rem;
    font-size: .875rem;
    white-space: nowrap;
}

/* ================================================================
   20. EMPTY STATE
   ================================================================ */
.vh-empty {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
}

.vh-empty i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.3;
    display: block;
}

.vh-empty h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.vh-empty p {
    margin-bottom: 1.5rem;
}

/* ================================================================
   21. CATEGORIES PAGE
   ================================================================ */
.vh-categories-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(2, 1fr);
    padding: 2rem 0;
}

@media (min-width: 640px) {
    .vh-categories-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
    .vh-categories-grid { grid-template-columns: repeat(4, 1fr); }
}

.vh-category-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.vh-category-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    right: 0;
    height: 4px;
    background: var(--cat-color, var(--primary));
}

.vh-category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: var(--cat-color, var(--primary));
}

.vh-category-card__icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--cat-color, var(--primary));
    background: rgba(var(--cat-rgb, 99,102,241),.1);
    margin: 0 auto 1rem;
}

.vh-category-card__name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.vh-category-card__count {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.vh-category-card__body {
    flex: 1;
}

.vh-category-card__desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0.25rem 0 0.5rem;
    line-height: 1.5;
}

.vh-category-card__arrow {
    color: var(--cat-color, var(--primary));
    font-size: 1.125rem;
    opacity: 0;
    transition: opacity var(--transition), transform var(--transition);
}

.vh-category-card:hover .vh-category-card__arrow {
    opacity: 1;
    transform: translateX(4px);
}

/* ================================================================
   22. PAGE HEADER
   ================================================================ */
.vh-page-head {
    padding: 2rem 0 1.5rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 2rem;
}

.vh-page-head__title {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 0.375rem;
}

.vh-page-head__sub {
    color: var(--text-muted);
    font-size: 0.9375rem;
}

/* ================================================================
   23. USER PROFILE PAGE
   ================================================================ */
.vh-profile-page { min-height: 100vh; }

.vh-profile-cover {
    min-height: 200px;
    background-size: cover;
    background-position: center;
    padding: 2rem 0 0;
    position: relative;
}

.vh-profile-cover--default {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 60%, #1e293b 100%);
}

.vh-profile-cover--default .vh-profile-name,
.vh-profile-cover--default .vh-profile-username,
.vh-profile-cover--default .vh-profile-bio {
    text-shadow: 0 1px 6px rgba(0,0,0,.35);
}

.vh-profile-identity {
    display: flex;
    align-items: flex-end;
    gap: 1.25rem;
    padding-bottom: 1.5rem;
    flex-wrap: wrap;
}

.vh-profile-avatar {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--bg-card);
    flex-shrink: 0;
}

.vh-profile-meta {
    flex: 1;
    min-width: 0;
    padding-bottom: 0.5rem;
}

.vh-profile-name {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 0.375rem;
    flex-wrap: wrap;
}

.vh-profile-cover--default .vh-profile-name {
    color: #fff;
}

.vh-profile-username {
    font-size: 0.9375rem;
    color: var(--text-muted);
    display: block;
    margin-bottom: 0.375rem;
}

.vh-profile-cover--default .vh-profile-username {
    color: rgba(255,255,255,.85);
}

.vh-profile-bio {
    font-size: 0.875rem;
    color: var(--text-muted);
    max-width: 480px;
    line-height: 1.5;
}

.vh-profile-cover--default .vh-profile-bio {
    color: rgba(255,255,255,.9);
}

.vh-profile-actions {
    padding-bottom: 0.5rem;
}

/* Buttons inside profile banner must always be white/transparent */
.vh-profile-cover .vh-btn--ghost {
    color: #fff;
    border-color: rgba(255,255,255,.55);
    background: rgba(255,255,255,.08);
}
.vh-profile-cover .vh-btn--ghost:hover {
    color: #fff;
    border-color: rgba(255,255,255,.9);
    background: rgba(255,255,255,.18);
}
.vh-profile-cover .vh-btn--primary {
    background: rgba(255,255,255,.18);
    border-color: rgba(255,255,255,.55);
    color: #fff;
}
.vh-profile-cover .vh-btn--primary:hover {
    background: rgba(255,255,255,.28);
    border-color: rgba(255,255,255,.9);
}

.vh-verified-icon {
    color: var(--primary);
    font-size: 1rem;
}

.vh-profile-stats-bar {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
}

.vh-profile-stats {
    display: flex;
    gap: 0;
}

.vh-profile-stat {
    padding: 1rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-right: 1px solid var(--border);
    min-width: 100px;
}

.vh-profile-stat__value {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text);
}

.vh-profile-stat__label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 0.125rem;
}

.vh-profile-detail {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    padding: 0.375rem 0;
}

.vh-profile-detail a { color: var(--primary); }

/* ================================================================
   24. SUBMIT POST PAGE
   ================================================================ */
/* ================================================================
   SUBMIT POST PAGE
   ================================================================ */

/* Hero banner */
.vh-submit-hero {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 60%, #ec4899 100%);
    padding: 2.5rem 0;
    margin-bottom: 0;
}

.vh-submit-hero__inner {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.vh-submit-hero__icon {
    width: 56px;
    height: 56px;
    background: rgba(255,255,255,.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.625rem;
    color: #fff;
    flex-shrink: 0;
}

.vh-submit-hero__title {
    font-size: 1.75rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 .25rem;
    font-family: var(--font-display);
}

.vh-submit-hero__sub {
    color: rgba(255,255,255,.8);
    font-size: .9375rem;
    margin: 0;
}

/* Page wrapper */
.vh-submit-wrap {
    padding: 2rem 0 3rem;
}

/* Two-column layout */
.vh-submit-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 1.75rem;
    align-items: start;
}

.vh-submit-main,
.vh-submit-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* Card */
.vh-scard {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.vh-scard__header {
    display: flex;
    align-items: center;
    gap: .625rem;
    margin-bottom: 1.25rem;
    padding-bottom: .875rem;
    border-bottom: 1px solid var(--border);
}

.vh-scard__header i {
    font-size: 1rem;
    color: var(--primary);
}

.vh-scard__header h3 {
    font-size: .9375rem;
    font-weight: 700;
    color: var(--text);
    margin: 0;
}

/* Publish card */
.vh-scard--publish {
    background: linear-gradient(135deg, rgba(99,102,241,.06) 0%, rgba(139,92,246,.06) 100%);
    border-color: rgba(99,102,241,.2);
    text-align: center;
}

.vh-publish-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .375rem;
    font-size: .8rem;
    color: var(--text-muted);
    margin: .75rem 0 0;
}

/* Guidelines card */
.vh-scard--guide {
    background: linear-gradient(135deg, rgba(16,185,129,.04) 0%, rgba(59,130,246,.04) 100%);
    border-color: rgba(16,185,129,.15);
}

.vh-guide-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: .625rem;
}

.vh-guide-list li {
    display: flex;
    align-items: flex-start;
    gap: .5rem;
    font-size: .8375rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.vh-guide-list li i {
    color: #10b981;
    font-size: .9rem;
    flex-shrink: 0;
    margin-top: .1rem;
}

/* Type tile selector */
.vh-type-grid {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
}

.vh-type-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
    padding: 1rem 1.25rem;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
    min-width: 80px;
    flex: 1;
    background: var(--bg);
}

.vh-type-tile input { display: none; }

.vh-type-tile__icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: var(--bg-sidebar);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.375rem;
    color: var(--text-muted);
    transition: all var(--transition);
}

.vh-type-tile__label {
    font-size: .8125rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: color var(--transition);
}

.vh-type-tile:hover,
.vh-type-tile.is-active {
    border-color: var(--tc, var(--primary));
    background: var(--bg-card);
}

.vh-type-tile:hover .vh-type-tile__icon,
.vh-type-tile.is-active .vh-type-tile__icon {
    background: var(--tc, var(--primary));
    color: #fff;
}

.vh-type-tile:hover .vh-type-tile__label,
.vh-type-tile.is-active .vh-type-tile__label {
    color: var(--tc, var(--primary));
}

/* Textarea tall */
.vh-textarea--tall {
    min-height: 260px;
}

/* Dropzone */
.vh-dropzone {
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 2.5rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition);
    background: var(--bg);
}

.vh-dropzone:hover,
.vh-dropzone.is-dragging {
    border-color: var(--primary);
    background: var(--primary-bg);
}

.vh-dropzone__icon {
    width: 56px;
    height: 56px;
    background: var(--primary-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto .875rem;
    font-size: 1.5rem;
    color: var(--primary);
    transition: all var(--transition);
}

.vh-dropzone:hover .vh-dropzone__icon,
.vh-dropzone.is-dragging .vh-dropzone__icon {
    background: var(--primary);
    color: #fff;
}

.vh-dropzone__text {
    font-size: .9375rem;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 .25rem;
}

.vh-dropzone__hint {
    font-size: .8125rem;
    color: var(--text-muted);
}

.vh-dropzone__preview {
    max-width: 100%;
    max-height: 200px;
    border-radius: var(--radius-sm);
    margin: 0 auto;
    display: block;
}

/* Tag cloud */
.vh-tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: .375rem;
}

.vh-tag-pill {
    font-size: .75rem;
    font-weight: 500;
    padding: .3rem .75rem;
    cursor: pointer;
    background: var(--bg-sidebar);
    border: 1px solid var(--border);
    border-radius: 100px;
    color: var(--text-muted);
    transition: all var(--transition);
}

.vh-tag-pill:hover {
    background: var(--primary-bg);
    border-color: var(--primary);
    color: var(--primary);
}

/* Form helpers */
.vh-form-hint {
    font-size: .775rem;
    color: var(--text-muted);
    margin-top: .375rem;
}

.vh-form-label__opt {
    font-size: .8rem;
    color: var(--text-muted);
    font-weight: 400;
}

/* Responsive */
@media (max-width: 900px) {
    .vh-submit-layout {
        grid-template-columns: 1fr;
    }
    .vh-submit-sidebar {
        order: -1;
    }
}

@media (max-width: 640px) {
    .vh-submit-hero { padding: 1.75rem 0; }
    .vh-submit-hero__title { font-size: 1.375rem; }
    .vh-type-grid { gap: .5rem; }
    .vh-type-tile { min-width: 60px; padding: .75rem .875rem; }
    .vh-type-tile__icon { width: 36px; height: 36px; font-size: 1.125rem; }
}

/* Form grid */
.vh-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.vh-tag-chip--sm {
    font-size: 0.75rem;
    padding: 0.25rem 0.625rem;
    cursor: pointer;
    background: none;
    border: 1px solid var(--border);
    border-radius: 100px;
    color: var(--text-muted);
    transition: all var(--transition);
}

.vh-tag-chip--sm:hover {
    border-color: var(--primary);
    color: var(--primary);
}

@media (max-width: 639px) {
    .vh-form-grid { grid-template-columns: 1fr; }
}

.vh-sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
    transition: color var(--transition);
}

.vh-sidebar-link:last-child { border-bottom: none; }
.vh-sidebar-link:hover { color: var(--primary); }

.vh-sidebar-link i { width: 1rem; text-align: center; }

/* ================================================================
   25. RESPONSIVE / MOBILE
   ================================================================ */
@media (max-width: 1023px) {
    /* Mobile nav overlay */
    .vh-header__nav {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 80%;
        max-width: 300px;
        z-index: 500;
        background: var(--bg-card);
        flex-direction: column;
        padding: 1.5rem;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        overflow-y: auto;
    }

    .vh-header__nav.is-open {
        display: flex;
        transform: translateX(0);
    }

    .vh-nav-close {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding-bottom: 1.25rem;
        margin-bottom: 0.75rem;
        border-bottom: 1px solid var(--border);
        flex-shrink: 0;
    }

    .vh-nav-close__btn {
        background: none;
        border: none;
        font-size: 1.25rem;
        color: var(--text);
        cursor: pointer;
        padding: 0.25rem;
        line-height: 1;
    }

    /* Mobile nav search form */
    .vh-mobile-nav-search {
        display: flex;
        /* hidden by default rule below, shown only here on mobile */
        align-items: center;
        gap: 0.5rem;
        background: var(--bg-sidebar);
        border-radius: var(--radius-sm);
        padding: 0.6rem 0.875rem;
        margin-bottom: 0.75rem;
    }
    .vh-mobile-nav-search i {
        color: var(--text-muted);
        font-size: 0.9rem;
        flex-shrink: 0;
    }
    .vh-mobile-nav-search input {
        flex: 1;
        background: none;
        border: none;
        outline: none;
        font-size: 0.9rem;
        color: var(--text);
        font-family: inherit;
    }
    .vh-mobile-nav-search input::placeholder {
        color: var(--text-muted);
    }

    .vh-nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .vh-nav__link {
        width: 100%;
        font-size: 1rem;
        padding: 0.75rem 1rem;
    }

    .vh-dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: 1px solid var(--border);
        margin-top: 0.5rem;
    }

    .vh-nav__item--has-dropdown .vh-dropdown {
        display: none;
    }

    .vh-hero__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .vh-post__title { font-size: 1.5rem; }
    .vh-posts-grid { grid-template-columns: 1fr; }
    .vh-hero__main { min-height: 240px; }
    .vh-auth-card { padding: 1.75rem 1.25rem; }
    .vh-footer__grid { grid-template-columns: 1fr; }
}

/* ================================================================
   SETTINGS / EDIT PROFILE PAGE
   ================================================================ */
.vh-settings-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 0 3rem;
}

.vh-settings-header {
    margin-bottom: 2rem;
}

.vh-settings-header__title {
    font-size: 1.625rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 .375rem;
    display: flex;
    align-items: center;
    gap: .5rem;
}

.vh-settings-header__sub {
    color: var(--text-muted);
    font-size: .9375rem;
    margin: 0;
}

.vh-settings-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 1.75rem;
    align-items: start;
}

.vh-settings-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.vh-settings-main {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.vh-settings-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    box-shadow: var(--shadow-sm);
}

.vh-settings-card__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 1.25rem;
    padding-bottom: .875rem;
    border-bottom: 1px solid var(--border);
}

/* Avatar upload area */
.vh-settings-avatar-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .75rem;
    padding: .5rem 0;
}

.vh-settings-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--border);
    box-shadow: var(--shadow-sm);
}

/* Input with @ prefix */
.vh-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.vh-input-prefix {
    position: absolute;
    left: .875rem;
    color: var(--text-muted);
    font-size: .9375rem;
    font-weight: 500;
    pointer-events: none;
    z-index: 1;
    line-height: 1;
}

.vh-input--prefix {
    padding-left: 2rem;
}

/* Required field asterisk */
.vh-required {
    color: var(--danger);
    font-size: .875rem;
}

/* Form grid: 2-col */
.vh-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Input with icon button on right */

.vh-input--icon-right {
    padding-right: 2.75rem;
}

/* Sidebar quick links */
.vh-sidebar-link {
    display: flex;
    align-items: center;
    gap: .625rem;
    padding: .625rem .75rem;
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: .9rem;
    text-decoration: none;
    transition: background var(--transition), color var(--transition);
    margin-bottom: .25rem;
}

.vh-sidebar-link:hover {
    background: var(--primary-bg);
    color: var(--primary);
}

.vh-sidebar-link i {
    font-size: 1rem;
    color: var(--text-muted);
    transition: color var(--transition);
}

.vh-sidebar-link:hover i {
    color: var(--primary);
}

/* Responsive settings */
@media (max-width: 900px) {
    .vh-settings-layout {
        grid-template-columns: 1fr;
    }

    .vh-settings-sidebar {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .vh-settings-sidebar .vh-settings-card {
        flex: 1;
        min-width: 220px;
    }
}

@media (max-width: 640px) {
    .vh-settings-page {
        padding: 1.25rem 0 2rem;
    }

    .vh-form-grid {
        grid-template-columns: 1fr;
    }

    .vh-settings-sidebar {
        flex-direction: column;
    }

    .vh-settings-card {
        padding: 1.25rem;
    }
}

/* ================================================================
   POST SIDEBAR WIDGETS
   ================================================================ */

/* ── Author Bio ── */
.vh-widget--author {}

.vh-author-bio__top {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: .75rem;
}

.vh-author-bio__avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid var(--border);
}

.vh-author-bio__avatar--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
}

.vh-author-bio__info {
    display: flex;
    flex-direction: column;
    gap: .15rem;
    min-width: 0;
}

.vh-author-bio__name {
    font-size: .9rem;
    font-weight: 700;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: .3rem;
    text-decoration: none;
}

.vh-author-bio__name:hover { color: var(--primary); }

.vh-author-bio__handle {
    font-size: .78rem;
    color: var(--text-muted);
}

.vh-author-bio__text {
    font-size: .82rem;
    color: var(--text-secondary);
    line-height: 1.55;
    margin: 0 0 .75rem;
}

.vh-author-bio__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .5rem;
    padding: .75rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-bottom: .25rem;
    text-align: center;
}

.vh-author-bio__stat {
    display: flex;
    flex-direction: column;
    gap: .15rem;
}

.vh-author-bio__stat-val {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
}

.vh-author-bio__stat-label {
    font-size: .7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .04em;
}

/* ── Trending Now ── */
.vh-trending-list {
    display: flex;
    flex-direction: column;
}

.vh-trending-item {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    padding: .65rem 0;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    transition: all var(--transition);
}

.vh-trending-item:last-child { border-bottom: none; }

.vh-trending-item:hover .vh-trending-item__title { color: var(--primary); }

.vh-trending-item__num {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--primary);
    opacity: .35;
    min-width: 28px;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
}

.vh-trending-item:nth-child(1) .vh-trending-item__num,
.vh-trending-item:nth-child(2) .vh-trending-item__num,
.vh-trending-item:nth-child(3) .vh-trending-item__num {
    opacity: 1;
}

.vh-trending-item__body { flex: 1; min-width: 0; }

.vh-trending-item__title {
    font-size: .82rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.4;
    margin: 0 0 .3rem;
    transition: color var(--transition);
}

.vh-trending-item__meta {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .72rem;
    color: var(--text-muted);
}

.vh-badge--xs {
    font-size: .65rem;
    padding: .1rem .45rem;
    border-radius: 999px;
    color: #fff;
    font-weight: 600;
}

/* ── Popular Categories ── */
.vh-cat-widget-list {
    display: flex;
    flex-direction: column;
    gap: .1rem;
}

.vh-cat-widget-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
    color: #fff;
}

.vh-cat-widget-row {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: .5rem .4rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: background var(--transition);
}

.vh-cat-widget-row:hover {
    background: var(--bg);
}

.vh-cat-widget-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.vh-cat-widget-name {
    font-size: .85rem;
    font-weight: 500;
    color: var(--text);
    flex: 1;
}

.vh-cat-widget-row:hover .vh-cat-widget-name { color: var(--primary); }

.vh-cat-widget-count {
    font-size: .75rem;
    color: var(--text-muted);
    background: var(--bg);
    padding: .1rem .45rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    font-weight: 500;
}

/* ── Newsletter widget ── */
.vh-widget--newsletter {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%) !important;
    border: none !important;
}

.vh-newsletter-widget {
    text-align: center;
    padding: .25rem 0;
}

.vh-newsletter-widget__icon {
    font-size: 2rem;
    color: rgba(255,255,255,.9);
    margin-bottom: .5rem;
}

.vh-newsletter-widget__title {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 .35rem;
}

.vh-newsletter-widget__sub {
    font-size: .8rem;
    color: rgba(255,255,255,.8);
    margin: 0 0 .875rem;
    line-height: 1.5;
}

.vh-newsletter-widget__form {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.vh-newsletter-widget__form .vh-input {
    background: rgba(255,255,255,.15);
    border-color: rgba(255,255,255,.3);
    color: #fff;
    text-align: center;
}

.vh-newsletter-widget__form .vh-input::placeholder { color: rgba(255,255,255,.6); }

.vh-newsletter-widget__form .vh-input:focus {
    background: rgba(255,255,255,.25);
    border-color: #fff;
    box-shadow: none;
}

.vh-newsletter-widget__form .vh-btn--primary {
    background: #fff;
    color: #6366f1;
    border: none;
}

.vh-newsletter-widget__form .vh-btn--primary:hover {
    background: rgba(255,255,255,.9);
}

.vh-newsletter-widget__note {
    font-size: .72rem;
    color: rgba(255,255,255,.65);
    margin: .5rem 0 0;
}

/* ================================================================
   SEARCH PAGE
   ================================================================ */
.vh-search-page {
    padding: 2rem 0 3rem;
}
.vh-search-page__header {
    max-width: 680px;
    margin: 0 auto 2rem;
}
.vh-search-form--page {
    padding: 0 1.25rem;
    border-radius: var(--radius-lg);
    border-width: 2px;
}
.vh-search-form--page .vh-search-form__input {
    font-size: 1.1rem;
    padding: 1rem 0;
}
.vh-search-meta {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}
.vh-search-meta strong {
    color: var(--text);
}
.vh-search-section {
    margin-bottom: 2.5rem;
}
.vh-search-section__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border);
}
.vh-search-section__head h3 {
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text);
}
.vh-search-section__head h3 i {
    color: var(--primary);
}
.vh-search-section__more {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 500;
    text-decoration: none;
}
.vh-search-section__more:hover { text-decoration: underline; }

/* No-results empty state */
.vh-search-empty {
    text-align: center;
    padding: 3rem 1rem 2.5rem;
    max-width: 480px;
    margin: 0 auto;
}
.vh-search-empty__icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--bg-sidebar);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}
.vh-search-empty__icon i {
    font-size: 2rem;
    color: var(--text-light);
}
.vh-search-empty__title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
}
.vh-search-empty__title span {
    color: var(--primary);
}
.vh-search-empty__desc {
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}
.vh-search-empty__tips {
    list-style: none;
    padding: 0;
    margin: 0 0 2.5rem;
    display: inline-flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: left;
}
.vh-search-empty__tips li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}
.vh-search-empty__tips li i {
    color: var(--success, #22c55e);
    font-size: 1rem;
}

/* =====================================================
   Creator Earnings Page
   ===================================================== */

.vh-creator-page {
    padding: 2rem 0 3rem;
}

.vh-creator-page .vh-widget__title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.vh-widget--flush {
    padding: 0;
}
.vh-widget--flush .vh-widget__title {
    padding: 1rem 1.25rem 0.75rem;
}
.vh-widget__body {
    padding: 1rem 1.25rem;
}
.vh-widget--spaced {
    margin-top: 1.25rem;
    margin-bottom: 1.25rem;
}

/* ── Stat Row ─────────────────────────────────────── */
.vh-creator-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.vh-creator-stat {
    text-align: center;
    padding: 1.5rem 1rem;
    margin-bottom: 0;
}
.vh-creator-stat__value {
    font-size: 1.85rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 0.35rem;
    letter-spacing: -0.02em;
}
.vh-creator-stat__value--green  { color: #10b981; }
.vh-creator-stat__value--indigo { color: #6366f1; }
.vh-creator-stat__value--amber  { color: #f59e0b; }
.vh-creator-stat__value--pink   { color: #ec4899; }
.vh-creator-stat__label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ── Two-column Layout ────────────────────────────── */
.vh-creator-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 1.25rem;
    align-items: start;
}

/* ── Earnings Table ───────────────────────────────── */
.vh-creator-table {
    width: 100%;
    border-collapse: collapse;
}
.vh-creator-table th {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    padding: 0.6rem 1.25rem;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}
.vh-creator-table td {
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
    color: var(--text);
    vertical-align: middle;
}
.vh-creator-table tr:last-child td { border-bottom: none; }
.vh-creator-table .text-right { text-align: right; }
.vh-creator-table .text-muted  { color: var(--text-muted); }

.vh-creator-desc {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.vh-creator-type-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    flex-shrink: 0;
}
.vh-creator-type-icon--views    { background: rgba(99,102,241,.12); color: #6366f1; }
.vh-creator-type-icon--referral { background: rgba(16,185,129,.12); color: #10b981; }
.vh-creator-type-icon--bonus    { background: rgba(245,158,11,.12);  color: #f59e0b; }
.vh-creator-desc__text { font-size: 0.875rem; }
.vh-creator-amount { color: #10b981; font-weight: 700; white-space: nowrap; }

/* ── Empty State ──────────────────────────────────── */
.vh-creator-empty {
    text-align: center;
    padding: 2.5rem 1.25rem;
    color: var(--text-muted);
}
.vh-creator-empty--inline { padding: 1.25rem; }
.vh-creator-empty__icon {
    font-size: 2.5rem;
    color: var(--border);
    display: block;
    margin-bottom: 0.75rem;
}
.vh-creator-empty__title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.25rem;
}
.vh-creator-empty__sub {
    font-size: 0.85rem;
    color: var(--text-muted);
}
.vh-creator-payout__icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

/* ── Progress Bar ─────────────────────────────────── */
.vh-creator-progress-wrap {
    margin-top: 1rem;
}
.vh-creator-progress {
    height: 8px;
    background: var(--border);
    border-radius: 99px;
    overflow: hidden;
    margin-bottom: 0.4rem;
}
.vh-creator-progress__bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), #818cf8);
    border-radius: 99px;
    transition: width 0.6s ease;
    width: 0;
}
.vh-creator-progress__label {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-align: right;
}

/* ── How It Works Steps ───────────────────────────── */
.vh-creator-how {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}
.vh-creator-step {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}
.vh-creator-step__num {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--primary-bg);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}
.vh-creator-step__text {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ── Payout Form ──────────────────────────────────── */
.vh-creator-payout {
    margin-bottom: 1rem;
}
.vh-creator-payout__title {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.4rem;
}
.vh-creator-payout .vh-input {
    width: 100%;
}
.vh-creator-payout__sub {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 0.3rem;
}
.vh-creator-payout__error {
    display: block;
    font-size: 0.78rem;
    color: #ef4444;
    margin-top: 0.25rem;
}

/* ── Withdrawal History ───────────────────────────── */
.vh-withdrawal-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 0.9rem 1.25rem;
    border-bottom: 1px solid var(--border);
    gap: 0.75rem;
}
.vh-withdrawal-item:last-child { border-bottom: none; }
.vh-withdrawal-amount {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
}
.vh-withdrawal-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
}
.vh-withdrawal-notes {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-style: italic;
    margin-top: 0.2rem;
}

/* ── Status Badges ────────────────────────────────── */
.vh-status {
    display: inline-flex;
    align-items: center;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.25rem 0.65rem;
    border-radius: 99px;
    white-space: nowrap;
    flex-shrink: 0;
}
.vh-status--pending  { background: rgba(245,158,11,.12); color: #d97706; }
.vh-status--approved { background: rgba(99,102,241,.12);  color: #6366f1; }
.vh-status--paid     { background: rgba(16,185,129,.12);  color: #059669; }
.vh-status--rejected { background: rgba(239,68,68,.12);   color: #dc2626; }

/* ── Coming Soon State ────────────────────────────── */
.vh-creator-coming {
    text-align: center;
    padding: 4rem 2rem;
    max-width: 480px;
    margin: 2rem auto;
}
.vh-creator-coming__icon {
    font-size: 3rem;
    color: var(--primary);
    display: block;
    margin-bottom: 1rem;
}
.vh-creator-coming__title {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
}
.vh-creator-coming__text {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 900px) {
    .vh-creator-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    .vh-creator-layout {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 480px) {
    .vh-creator-stats {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }
    .vh-creator-stat__value { font-size: 1.4rem; }
}

/* =====================================================
   Pricing Page
   ===================================================== */

.vh-pricing-page {
    padding: 3rem 0 4rem;
}

/* ── Hero ─────────────────────────────────────────── */
.vh-pricing-hero {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem;
}
.vh-pricing-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary);
    background: var(--primary-bg);
    padding: 0.35rem 0.85rem;
    border-radius: 99px;
    margin-bottom: 1rem;
}
.vh-pricing-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 900;
    line-height: 1.15;
    color: var(--text);
    margin: 0 0 0.75rem;
    letter-spacing: -0.02em;
}
.vh-pricing-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0 0 1.75rem;
}

/* ── Billing Toggle ───────────────────────────────── */
.vh-billing-toggle {
    display: inline-flex;
    background: var(--bg-sidebar);
    border: 1px solid var(--border);
    border-radius: 99px;
    padding: 4px;
    gap: 4px;
}
.vh-billing-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1.25rem;
    border-radius: 99px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    min-height: 44px;
}
.vh-billing-btn--active {
    background: var(--bg-card);
    color: var(--text);
    box-shadow: 0 1px 4px rgba(0,0,0,.08);
}
.vh-billing-save-badge {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: #10b981;
    color: #fff;
    padding: 0.15rem 0.5rem;
    border-radius: 99px;
}

/* ── Plan Cards Grid ──────────────────────────────── */
.vh-pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
    margin-bottom: 3rem;
    align-items: start;
}

.vh-plan-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.15s;
}
.vh-plan-card:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,.08);
}
.vh-plan-card--popular {
    border-color: var(--primary);
    border-width: 2px;
    box-shadow: 0 4px 24px rgba(99,102,241,.15);
}
[data-theme=dark] .vh-plan-card--popular {
    box-shadow: 0 4px 24px rgba(99,102,241,.25);
}

/* Badges */
.vh-plan-popular-badge,
.vh-plan-current-badge {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.3rem 0.85rem;
    border-radius: 99px;
    white-space: nowrap;
}
.vh-plan-popular-badge {
    background: var(--primary);
    color: #fff;
}
.vh-plan-current-badge {
    background: #10b981;
    color: #fff;
}

/* Plan Header */
.vh-plan-header {
    margin-bottom: 1.25rem;
}
.vh-badge-label {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--primary);
    background: var(--primary-bg);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}
.vh-plan-name {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text);
    margin: 0 0 0.35rem;
}
.vh-plan-description {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

/* Price */
.vh-plan-price-block {
    margin-bottom: 1.5rem;
}
.vh-plan-free-label {
    font-size: 2.25rem;
    font-weight: 900;
    color: var(--text);
    line-height: 1;
    margin-bottom: 0.25rem;
}
.vh-plan-free-note {
    font-size: 0.8rem;
    color: var(--text-muted);
}
.vh-plan-price-amount {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--text);
    line-height: 1;
    margin-bottom: 0.25rem;
    letter-spacing: -0.03em;
}
.vh-plan-price-period {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0;
}
.vh-plan-price-note {
    font-size: 0.78rem;
    color: var(--text-muted);
}
.vh-hidden { display: none !important; }

/* Features List */
.vh-plan-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.vh-plan-feature-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.875rem;
    color: var(--text);
}
.vh-feature-icon--yes { color: #10b981; font-size: 0.95rem; flex-shrink: 0; }
.vh-feature-icon--no  { color: var(--text-light); font-size: 0.95rem; flex-shrink: 0; }
.vh-feature-label--muted { color: var(--text-muted); }

/* CTAs */
.vh-plan-cta-disabled,
.vh-plan-cta-register,
.vh-plan-cta-free,
.vh-plan-cta-link {
    display: block;
    width: 100%;
    text-align: center;
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s;
    text-decoration: none;
    border: none;
    min-height: 44px;
}
.vh-plan-cta-disabled {
    background: var(--bg-sidebar);
    color: var(--text-muted);
    cursor: default;
    border: 1px solid var(--border);
}
.vh-plan-cta-register {
    background: var(--bg-sidebar);
    color: var(--text);
    border: 1.5px solid var(--border);
}
.vh-plan-cta-register:hover {
    background: var(--border);
    color: var(--text);
}
.vh-plan-cta-free {
    background: transparent;
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 600;
    padding-top: 0.9rem;
    border: 1px dashed var(--border);
}
.vh-plan-cta-link {
    background: var(--bg-sidebar);
    color: var(--text);
    border: 1.5px solid var(--border);
}
.vh-plan-cta-link:hover {
    background: var(--primary-bg);
    border-color: var(--primary);
    color: var(--primary);
}
.vh-plan-cta-link--popular {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
.vh-plan-cta-link--popular:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #fff;
}

/* ── Comparison Table ─────────────────────────────── */
.vh-compare-section {
    margin-bottom: 3rem;
}
.vh-compare-title {
    font-size: 1.35rem;
    font-weight: 800;
    text-align: center;
    color: var(--text);
    margin-bottom: 1.25rem;
}
.vh-compare-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.vh-compare-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.vh-compare-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 480px;
}
.vh-compare-table th {
    background: var(--bg-sidebar);
    padding: 0.85rem 1.25rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    text-align: left;
    border-bottom: 1px solid var(--border);
}
.vh-compare-table th:first-child {
    width: 40%;
}
.vh-compare-table td {
    padding: 0.75rem 1.25rem;
    font-size: 0.875rem;
    color: var(--text);
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}
.vh-compare-table tr:last-child td { border-bottom: none; }
.vh-compare-table tbody tr:hover { background: var(--bg-sidebar); }
.vh-compare-icon { font-size: 1rem; }
.vh-compare-icon--yes { color: #10b981; }
.vh-compare-icon--no  { color: var(--text-light); }
.vh-compare-badge {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary);
    background: var(--primary-bg);
    padding: 0.2rem 0.55rem;
    border-radius: 4px;
}

/* ── FAQ ──────────────────────────────────────────── */
.vh-faq-section {
    max-width: 680px;
    margin: 0 auto;
}
.vh-faq-title {
    font-size: 1.35rem;
    font-weight: 800;
    text-align: center;
    color: var(--text);
    margin-bottom: 1.25rem;
}
.vh-faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.vh-faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.vh-faq-item[open] {
    border-color: var(--primary);
}
.vh-faq-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    font-size: 0.925rem;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    list-style: none;
    user-select: none;
}
.vh-faq-summary::-webkit-details-marker { display: none; }
.vh-faq-chevron {
    color: var(--text-muted);
    font-size: 0.8rem;
    flex-shrink: 0;
    transition: transform 0.2s;
}
.vh-faq-item[open] .vh-faq-chevron {
    transform: rotate(180deg);
}
.vh-faq-answer {
    padding: 0 1.25rem 1rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.65;
    border-top: 1px solid var(--border);
    padding-top: 0.75rem;
}

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 640px) {
    .vh-pricing-grid {
        grid-template-columns: 1fr;
    }
    .vh-plan-card--popular {
        order: -1;
    }
}

/* =====================================================
   Pricing — explicit dark mode overrides
   ===================================================== */
[data-theme="dark"] .vh-billing-toggle {
    background: #162032;
    border-color: #334155;
}
[data-theme="dark"] .vh-billing-btn--active {
    background: #1e293b;
    color: #f1f5f9;
}
[data-theme="dark"] .vh-plan-card {
    background: #1e293b;
    border-color: #334155;
    color: #f1f5f9;
}
[data-theme="dark"] .vh-plan-card--popular {
    border-color: #6366f1;
}
[data-theme="dark"] .vh-plan-name,
[data-theme="dark"] .vh-plan-price-amount,
[data-theme="dark"] .vh-plan-free-label,
[data-theme="dark"] .vh-pricing-title,
[data-theme="dark"] .vh-compare-title,
[data-theme="dark"] .vh-faq-title,
[data-theme="dark"] .vh-faq-summary {
    color: #f1f5f9;
}
[data-theme="dark"] .vh-plan-description,
[data-theme="dark"] .vh-plan-price-note,
[data-theme="dark"] .vh-plan-free-note,
[data-theme="dark"] .vh-plan-price-period,
[data-theme="dark"] .vh-plan-feature-item,
[data-theme="dark"] .vh-pricing-subtitle {
    color: #94a3b8;
}
[data-theme="dark"] .vh-plan-cta-link {
    background: #162032;
    border-color: #334155;
    color: #f1f5f9;
}
[data-theme="dark"] .vh-plan-cta-link:hover {
    background: rgba(99,102,241,.15);
    border-color: #6366f1;
    color: #818cf8;
}
[data-theme="dark"] .vh-plan-cta-link--popular {
    background: #6366f1;
    border-color: #6366f1;
    color: #fff;
}
[data-theme="dark"] .vh-plan-cta-link--popular:hover {
    background: #4f46e5;
}
[data-theme="dark"] .vh-plan-cta-register {
    background: #162032;
    border-color: #334155;
    color: #f1f5f9;
}
[data-theme="dark"] .vh-plan-cta-disabled {
    background: #0f172a;
    border-color: #334155;
    color: #64748b;
}
[data-theme="dark"] .vh-plan-cta-free {
    color: #64748b;
    border-color: #334155;
}
[data-theme="dark"] .vh-compare-card {
    background: #1e293b;
    border-color: #334155;
}
[data-theme="dark"] .vh-compare-table th {
    background: #162032;
    color: #94a3b8;
    border-color: #334155;
}
[data-theme="dark"] .vh-compare-table td {
    color: #f1f5f9;
    border-color: #334155;
}
[data-theme="dark"] .vh-compare-table tbody tr:hover {
    background: #162032;
}
[data-theme="dark"] .vh-faq-item {
    background: #1e293b;
    border-color: #334155;
}
[data-theme="dark"] .vh-faq-item[open] {
    border-color: #6366f1;
}
[data-theme="dark"] .vh-faq-answer {
    color: #94a3b8;
    border-color: #334155;
}
[data-theme="dark"] .vh-faq-chevron {
    color: #64748b;
}


/* ── Content Stats widget (profile sidebar) ──────────────────────────── */
.vh-content-stats {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.vh-content-stat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 9px 0;
    border-bottom: 1px solid var(--border);
}
.vh-content-stat:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.vh-content-stat__info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .85rem;
    color: var(--text-muted);
    flex: 1;
    min-width: 0;
}
.vh-content-stat__info i {
    font-size: 1rem;
    flex-shrink: 0;
    width: 18px;
    text-align: center;
}
.vh-content-stat__value {
    font-size: .9375rem;
    font-weight: 700;
    color: var(--text);
    white-space: nowrap;
}
[data-theme="dark"] .vh-content-stat {
    border-color: #334155;
}


/* ── Error pages (404, 500, etc.) ────────────────────────────────────── */
.vh-error-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    padding: 3rem 1rem;
}
.vh-error-page__inner {
    text-align: center;
    max-width: 480px;
    width: 100%;
}
.vh-error-page__code {
    font-size: 7rem;
    font-weight: 900;
    line-height: 1;
    background: linear-gradient(135deg, var(--primary) 0%, #f43f5e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -4px;
    margin-bottom: .25rem;
}
.vh-error-page__emoji {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}
.vh-error-page__title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 .75rem;
}
.vh-error-page__desc {
    font-size: 1rem;
    color: var(--text-muted);
    margin: 0 0 2rem;
    line-height: 1.6;
}
.vh-error-page__btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .75rem 1.75rem;
    background: var(--primary);
    color: #fff;
    border-radius: 10px;
    font-weight: 600;
    font-size: .9375rem;
    text-decoration: none;
    transition: opacity .15s, transform .15s;
}
.vh-error-page__btn:hover {
    opacity: .88;
    transform: translateY(-1px);
    color: #fff;
    text-decoration: none;
}
.vh-error-page__back-wrap {
    margin-top: 1.25rem;
}
.vh-error-page__back-link {
    font-size: .875rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color .15s;
}
.vh-error-page__back-link:hover {
    color: var(--primary);
    text-decoration: none;
}
[data-theme="dark"] .vh-error-page__code {
    background: linear-gradient(135deg, #818cf8 0%, #f87171 100%);
    -webkit-background-clip: text;
    background-clip: text;
}


/* ── Checkout page ───────────────────────────────────────────────────── */
.vh-checkout-page {
    padding: 2rem 0 4rem;
}
.vh-checkout-inner {
    max-width: 900px;
    margin: 0 auto;
}
.vh-checkout-back {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .875rem;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 1.75rem;
    transition: color .15s;
}
.vh-checkout-back:hover { color: var(--primary); text-decoration: none; }

/* 2-col layout */
.vh-checkout-layout {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}
.vh-checkout-form-col {
    flex: 1 1 0;
    min-width: 0;
}
.vh-checkout-summary-col {
    width: 320px;
    flex-shrink: 0;
    position: sticky;
    top: 88px;
}
@media (max-width: 720px) {
    .vh-checkout-layout { flex-direction: column; }
    .vh-checkout-summary-col { width: 100%; position: static; }
}

/* Title */
.vh-checkout-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 1.5rem;
}

/* Error */
.vh-checkout-error {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .875rem 1rem;
    background: rgba(239,68,68,.08);
    border: 1px solid rgba(239,68,68,.3);
    border-radius: 10px;
    color: #ef4444;
    font-size: .875rem;
    margin-bottom: 1.25rem;
}

/* Section wrapper */
.vh-checkout-section { margin-bottom: 1.75rem; }
.vh-checkout-section-title {
    font-size: .8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--text-muted);
    margin: 0 0 .875rem;
}

/* Billing cycle cards */
.vh-cycle-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .875rem;
}
.vh-cycle-label { cursor: pointer; display: block; }
.vh-cycle-radio { display: none; }
.vh-cycle-card {
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 1rem 1.125rem;
    background: var(--bg-card);
    transition: border-color .15s, background .15s, box-shadow .15s;
    position: relative;
}
.vh-cycle-card:hover { border-color: var(--primary); }
.vh-cycle-card--active {
    border-color: var(--primary);
    background: rgba(99,102,241,.06);
    box-shadow: 0 0 0 3px rgba(99,102,241,.12);
}
.vh-cycle-save-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: #10b981;
    color: #fff;
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .06em;
    padding: 2px 9px;
    border-radius: 99px;
    white-space: nowrap;
}
.vh-cycle-card-name {
    font-size: .8125rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: .25rem;
}
.vh-cycle-card-price {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1.1;
}
.vh-cycle-card-period {
    font-size: .85rem;
    font-weight: 400;
    color: var(--text-muted);
}
.vh-cycle-card-note {
    font-size: .75rem;
    color: var(--text-muted);
    margin-top: .2rem;
}

/* Payment methods */
.vh-payment-methods { margin-bottom: 1.5rem; }
.vh-payment-list { display: flex; flex-direction: column; gap: .75rem; }
.vh-payment-list form,
.vh-payment-list > div { display: block; }

.vh-payment-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.125rem;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    text-align: left;
    transition: border-color .15s, box-shadow .15s, background .15s;
    color: var(--text);
    font-family: inherit;
}
.vh-payment-btn:hover {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99,102,241,.1);
}
.vh-payment-btn--active {
    border-color: var(--primary);
    background: rgba(99,102,241,.05);
}
.vh-payment-btn-inner {
    display: flex;
    align-items: center;
    gap: .875rem;
    flex: 1;
    min-width: 0;
}
.vh-payment-logo {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}
.vh-payment-logo--stripe  { background: rgba(99,102,241,.12); color: #6366f1; }
.vh-payment-logo--paypal  { background: rgba(0,112,186,.12);  color: #0070ba; }
.vh-payment-logo--razorpay { background: rgba(2,110,244,.12); color: #026ef4; }
.vh-payment-logo-text {
    font-size: .75rem;
    font-weight: 800;
}
.vh-payment-info-name {
    font-size: .9375rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: .1rem;
}
.vh-payment-info-sub {
    font-size: .78rem;
    color: var(--text-muted);
}
.vh-payment-arrow {
    font-size: 1rem;
    color: var(--text-muted);
    flex-shrink: 0;
    transition: transform .15s;
}
.vh-payment-btn:hover .vh-payment-arrow { transform: translateX(3px); color: var(--primary); }

.vh-payment-empty {
    display: flex;
    align-items: center;
    gap: .6rem;
    padding: 1rem 1.125rem;
    background: rgba(245,158,11,.07);
    border: 1px solid rgba(245,158,11,.25);
    border-radius: 10px;
    font-size: .875rem;
    color: var(--text-muted);
}
.vh-payment-empty-icon { color: #f59e0b; font-size: 1.1rem; }

.vh-payment-secure {
    display: flex;
    align-items: center;
    gap: .4rem;
    font-size: .78rem;
    color: var(--text-muted);
    margin-top: .875rem;
}
.vh-payment-secure-icon { color: #10b981; }

/* Order summary card */
.vh-order-summary {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
}
.vh-order-summary-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 1.25rem;
    padding-bottom: .875rem;
    border-bottom: 1px solid var(--border);
}
.vh-order-plan-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}
.vh-order-plan-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: .2rem;
}
.vh-order-plan-cycle {
    font-size: .8125rem;
    color: var(--text-muted);
}
.vh-order-plan-price {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary);
    white-space: nowrap;
}

/* Features list */
.vh-order-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem;
    display: flex;
    flex-direction: column;
    gap: .45rem;
    padding-top: .75rem;
    border-top: 1px solid var(--border);
}
.vh-order-features-label {
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--text-muted);
    margin-bottom: .2rem;
}
.vh-order-feature-item {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .8125rem;
    color: var(--text);
}
.vh-order-feature-icon { color: #10b981; font-size: .8rem; flex-shrink: 0; }

/* Totals */
.vh-order-subtotal-row,
.vh-order-total-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: .875rem;
    padding: .5rem 0;
    border-top: 1px solid var(--border);
    color: var(--text);
}
.vh-order-subtotal-label { color: var(--text-muted); }
.vh-order-total-row {
    font-size: 1rem;
    font-weight: 700;
}
.vh-order-cancel-note {
    font-size: .75rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: .875rem;
    padding-top: .875rem;
    border-top: 1px solid var(--border);
}

/* Dark mode adjustments */
[data-theme="dark"] .vh-cycle-card--active { background: rgba(99,102,241,.1); }
[data-theme="dark"] .vh-payment-btn--active { background: rgba(99,102,241,.08); }
[data-theme="dark"] .vh-order-summary { background: #1e293b; border-color: #334155; }


/* ── Payment Success page ────────────────────────────────────────────────── */
.vh-success-page {
    padding: 4rem 0 5rem;
    min-height: 60vh;
    display: flex;
    align-items: center;
}
.vh-success-inner {
    max-width: 560px;
    margin: 0 auto;
    text-align: center;
}

/* Icon */
.vh-success-icon-wrap {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(16,185,129,.12);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}
.vh-success-icon {
    font-size: 2.5rem;
    color: #10b981;
}

/* Heading */
.vh-success-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text);
    margin: 0 0 .75rem;
    letter-spacing: -.02em;
}
.vh-success-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    margin: 0 0 2rem;
    line-height: 1.6;
}

/* Plan card */
.vh-success-plan-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    text-align: left;
}
.vh-success-plan-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border);
}
.vh-success-plan-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: .2rem;
}
.vh-success-plan-label {
    font-size: .8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .04em;
}

/* Features list */
.vh-success-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: .6rem;
}
.vh-success-feature-item {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-size: .9rem;
    color: var(--text);
}
.vh-success-feature-icon {
    color: #10b981;
    font-size: .85rem;
    flex-shrink: 0;
}

/* Action buttons */
.vh-success-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .875rem;
    flex-wrap: wrap;
}

/* Dark mode */
[data-theme="dark"] .vh-success-plan-card {
    background: #1e293b;
    border-color: #334155;
}
[data-theme="dark"] .vh-success-icon-wrap {
    background: rgba(16,185,129,.15);
}


/* ── Profile plan badge ──────────────────────────────────────────────────── */
.vh-profile-badge {
    display: inline-flex;
    align-items: center;
    padding: .2rem .65rem;
    border-radius: 999px;
    font-size: .68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #fff;
    background: var(--badge-color, var(--primary));
    vertical-align: middle;
    line-height: 1;
    margin-left: .3rem;
}


/* ════════════════════════════════════════════════════════════════════════════
   Homepage Builder — Layout Sections
   ════════════════════════════════════════════════════════════════════════════ */

/* Section wrapper */
.vh-builder-sections { padding: 1.5rem 0 0; }
.vh-section { padding-bottom: 2rem; }
.vh-section__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .9rem; }
.vh-section__title { font-size: 1rem; font-weight: 700; color: var(--text); letter-spacing: -.01em; }
.vh-section__viewall { font-size: .78rem; font-weight: 600; color: var(--primary); }
.vh-section__viewall:hover { text-decoration: underline; }

/* ── Overlay Card ────────────────────────────────────────────────────────── */
.vh-card-overlay { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--card); display: block; text-decoration: none; }
.vh-card-overlay img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.vh-card-overlay:hover img { transform: scale(1.04); }
.vh-card-overlay__placeholder { width: 100%; height: 100%; min-height: 200px; display: flex; align-items: center; justify-content: center; font-size: 2rem; color: rgba(255,255,255,.5); }
.vh-card-overlay__gradient { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.82) 0%, rgba(0,0,0,.28) 55%, transparent 100%); }
.vh-card-overlay__body { position: absolute; bottom: 0; left: 0; right: 0; padding: 1rem 1.1rem; }
.vh-card-overlay__title { font-size: .95rem; font-weight: 700; color: #fff; line-height: 1.35; margin: .3rem 0 .25rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vh-card-overlay--lg .vh-card-overlay__title { font-size: 1.3rem; -webkit-line-clamp: 3; }
.vh-card-overlay__meta { display: flex; gap: .65rem; font-size: .7rem; color: rgba(255,255,255,.72); }

/* ── Compact Card (horizontal) ───────────────────────────────────────────── */
.vh-card-compact { display: flex; gap: .7rem; align-items: center; background: var(--card); border-radius: var(--radius); border: 1px solid var(--border); padding: .6rem; text-decoration: none; transition: box-shadow .2s; }
.vh-card-compact:hover { box-shadow: 0 4px 16px rgba(0,0,0,.08); }
.vh-card-compact__thumb { width: 70px; height: 62px; border-radius: calc(var(--radius) - 4px); object-fit: cover; flex-shrink: 0; background: var(--bg); }
.vh-card-compact__thumb--icon { display: flex; align-items: center; justify-content: center; font-size: 1.2rem; color: rgba(255,255,255,.6); }
.vh-card-compact__thumb--sq { width: 56px; height: 56px; }
.vh-card-compact__body { flex: 1; min-width: 0; }
.vh-card-compact__cat { font-size: .62rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--primary); display: block; margin-bottom: .15rem; }
.vh-card-compact__title { font-size: .8rem; font-weight: 600; color: var(--text); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vh-card-compact__date { font-size: .66rem; color: var(--text-muted); margin-top: .2rem; display: block; }
.vh-card-compact--col { flex-direction: column; align-items: flex-start; }
.vh-card-compact--col .vh-card-compact__thumb { width: 100%; height: 110px; }

/* ── Text-only Card ──────────────────────────────────────────────────────── */
.vh-card-text { background: var(--card); border-radius: var(--radius); border: 1px solid var(--border); padding: .7rem .85rem; text-decoration: none; display: block; transition: box-shadow .2s; }
.vh-card-text:hover { box-shadow: 0 4px 16px rgba(0,0,0,.08); }
.vh-card-text__cat { font-size: .62rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--primary); margin-bottom: .25rem; }
.vh-card-text__title { font-size: .83rem; font-weight: 600; color: var(--text); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vh-card-text__meta { font-size: .66rem; color: var(--text-muted); margin-top: .35rem; display: flex; gap: .5rem; }

/* ── Layout: Magazine Split (1 big + small list) ─────────────────────────── */
.vh-split { display: grid; gap: 1rem; }
.vh-split__main { min-height: 360px; }
.vh-split__list { display: flex; flex-direction: column; gap: .6rem; }
@media (min-width: 768px) { .vh-split { grid-template-columns: 3fr 2fr; } }

/* ── Layout: Dual Hero ───────────────────────────────────────────────────── */
.vh-dual { display: flex; flex-direction: column; gap: 1rem; }
.vh-dual__top { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.vh-dual__top .vh-card-overlay { min-height: 240px; }
.vh-dual__bottom { display: grid; gap: .75rem; grid-template-columns: repeat(2,1fr); }
@media (min-width: 640px) {
    .vh-dual__top { grid-template-columns: 1fr 1fr; }
    .vh-dual__top .vh-card-overlay { min-height: 280px; }
    .vh-dual__bottom { grid-template-columns: repeat(3,1fr); }
}

/* ── Layout: Newsroom Tri ────────────────────────────────────────────────── */
.vh-tri { display: grid; gap: 1rem; }
.vh-tri__center { min-height: 400px; }
.vh-tri__list { display: flex; flex-direction: column; gap: .6rem; }
@media (min-width: 900px) { .vh-tri { grid-template-columns: 1fr 2fr 1fr; align-items: start; } }

/* ── Layout: Zigzag Rows ─────────────────────────────────────────────────── */
.vh-zigzag { display: flex; flex-direction: column; gap: 2rem; }
.vh-zigzag__row { display: grid; gap: 1.5rem; align-items: center; grid-template-columns: 1fr; }
.vh-zigzag__media { border-radius: var(--radius); overflow: hidden; }
.vh-zigzag__media img, .vh-zigzag__media-placeholder { width: 100%; height: 280px; object-fit: cover; display: flex; align-items: center; justify-content: center; font-size: 3rem; color: rgba(255,255,255,.5); }
.vh-zigzag__title { font-size: 1.3rem; font-weight: 700; color: var(--text); line-height: 1.3; margin: .5rem 0; }
.vh-zigzag__excerpt { font-size: .88rem; color: var(--text-muted); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.vh-zigzag__meta { font-size: .74rem; color: var(--text-muted); display: flex; gap: .75rem; margin-top: .5rem; }
.vh-zigzag__link { display: inline-block; margin-top: .75rem; font-size: .82rem; font-weight: 600; color: var(--primary); }
@media (min-width: 768px) {
    .vh-zigzag__row { grid-template-columns: 1fr 1fr; }
    .vh-zigzag__row:nth-child(even) .vh-zigzag__media { order: 2; }
}

/* ── Layout: Simple Grid ─────────────────────────────────────────────────── */
.vh-section-grid { display: grid; gap: 1rem; grid-template-columns: repeat(2,1fr); }
.vh-section-grid .vh-card-overlay { min-height: 180px; }
@media (min-width: 640px)  { .vh-section-grid { grid-template-columns: repeat(3,1fr); } }
@media (min-width: 1024px) { .vh-section-grid { grid-template-columns: repeat(4,1fr); } }


/* ── Layout: Two + Grid (left: big+3small | right: big+3small) ───────────── */
.vh-ttg { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.vh-ttg__half { display: flex; flex-direction: column; gap: .75rem; }
.vh-ttg__big { min-height: 300px; }
@media (min-width: 640px) { .vh-ttg__big { min-height: 340px; } }
@media (max-width: 639px) { .vh-ttg { grid-template-columns: 1fr; } }

/* Sub-grid: 3 small cards below each big card */
.vh-ttg__sub { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }

/* Small card */
.vh-ttg__small { display: flex; flex-direction: column; background: var(--card); border-radius: var(--radius); border: 1px solid var(--border); text-decoration: none; overflow: hidden; transition: box-shadow .2s, transform .15s; }
.vh-ttg__small:hover { box-shadow: 0 4px 16px rgba(0,0,0,.1); transform: translateY(-2px); }
.vh-ttg__small-thumb { width: 100%; height: 100px; overflow: hidden; flex-shrink: 0; }
.vh-ttg__small-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.vh-ttg__small:hover .vh-ttg__small-thumb img { transform: scale(1.06); }
.vh-ttg__small-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; color: rgba(255,255,255,.5); }
.vh-ttg__small-body { padding: .55rem .65rem .65rem; flex: 1; display: flex; flex-direction: column; }
.vh-ttg__small-cat { font-size: .58rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--primary); margin-bottom: .15rem; }
.vh-ttg__small-title { font-size: .76rem; font-weight: 600; color: var(--text); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; flex: 1; }
.vh-ttg__small-date { font-size: .62rem; color: var(--text-muted); margin-top: .25rem; }

/* ── Layout: Big Story (full-width single hero) ─────────────────────────── */
.vh-big-story { display:block; min-height:420px; width:100%; border-radius:var(--radius); }
@media(min-width:768px) { .vh-big-story { min-height:500px; } }

/* ── Layout: Compact List (numbered thumbnail list) ─────────────────────── */
.vh-clist { display:flex; flex-direction:column; gap:.5rem; }
.vh-clist__item { display:flex; align-items:center; gap:.75rem; padding:.6rem .75rem; background:var(--card); border:1px solid var(--border); border-radius:var(--radius); text-decoration:none; transition:box-shadow .2s; }
.vh-clist__item:hover { box-shadow:0 3px 14px rgba(0,0,0,.08); }
.vh-clist__num { font-size:1.1rem; font-weight:800; color:var(--primary); opacity:.35; min-width:1.6rem; text-align:center; flex-shrink:0; }
.vh-clist__thumb { width:60px; height:52px; border-radius:calc(var(--radius) - 4px); object-fit:cover; flex-shrink:0; background:var(--bg); }
.vh-clist__thumb--icon { display:flex; align-items:center; justify-content:center; font-size:1rem; color:rgba(255,255,255,.6); }
.vh-clist__body { flex:1; min-width:0; }
.vh-clist__cat { font-size:.6rem; font-weight:700; text-transform:uppercase; letter-spacing:.04em; color:var(--primary); display:block; margin-bottom:.12rem; }
.vh-clist__title { font-size:.83rem; font-weight:600; color:var(--text); line-height:1.35; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.vh-clist__meta { font-size:.64rem; color:var(--text-muted); margin-top:.18rem; display:block; }

/* ── Layout: 4 Column Grid ───────────────────────────────────────────────── */
.vh-four-col { display:grid; gap:1rem; grid-template-columns:repeat(2,1fr); }
.vh-four-col .vh-card-overlay { min-height:180px; }
@media(min-width:640px) { .vh-four-col { grid-template-columns:repeat(4,1fr); } }

/* ── Layout: Side Hero (wide left + compact stack right) ─────────────────── */
.vh-side-hero { display:grid; gap:1rem; }
.vh-side-hero__main { min-height:380px; }
.vh-side-hero__stack { display:flex; flex-direction:column; gap:.65rem; }
@media(min-width:900px) { .vh-side-hero { grid-template-columns:3fr 2fr; align-items:start; } }
@media(min-width:900px) { .vh-side-hero__main { min-height:420px; } }

/* ── Reply form: hidden by default (vh-reply-report-fix) ────────────────── */
.vh-reply-form { display:none; }
.vh-reply-form--open { display:flex; }

/* ── Report modal overlay ────────────────────────────────────────────────── */
.vh-report-modal { display:none; position:fixed; inset:0; background:rgba(0,0,0,.55); z-index:9999; align-items:center; justify-content:center; padding:1rem; }
.vh-report-modal.is-open { display:flex; }
.vh-report-modal__box { background:var(--bg-card,#fff); border-radius:14px; width:100%; max-width:460px; box-shadow:0 20px 60px rgba(0,0,0,.2); overflow:hidden; }
.vh-report-modal__head { display:flex; align-items:center; justify-content:space-between; padding:1rem 1.25rem; border-bottom:1px solid var(--border); }
.vh-report-modal__title { font-size:.95rem; font-weight:700; color:var(--text); display:flex; align-items:center; gap:.4rem; margin:0; }
.vh-report-modal__flag { color:#ef4444; }
.vh-report-modal__close { background:none; border:none; font-size:1.25rem; color:var(--text-muted); cursor:pointer; padding:.2rem .5rem; border-radius:6px; line-height:1; }
.vh-report-modal__close:hover { background:var(--bg); color:var(--text); }
.vh-report-modal__desc { font-size:.85rem; color:var(--text-muted); padding:.9rem 1.25rem .25rem; margin:0; }
.vh-report-modal__options { display:flex; flex-direction:column; gap:.35rem; padding:.5rem 1.25rem; }
.vh-report-modal__label { display:flex; align-items:center; gap:.5rem; font-size:.85rem; color:var(--text); cursor:pointer; padding:.3rem .5rem; border-radius:6px; transition:background .15s; }
.vh-report-modal__label:hover { background:var(--bg); }
.vh-report-modal__radio { accent-color:var(--primary); width:15px; height:15px; flex-shrink:0; }
.vh-report-modal__textarea { display:block; width:calc(100% - 2.5rem); margin:.5rem 1.25rem 0; border:1px solid var(--border); border-radius:8px; padding:.6rem .8rem; font-size:.83rem; color:var(--text); background:var(--bg); resize:vertical; min-height:60px; font-family:inherit; }
.vh-report-modal__textarea:focus { outline:none; border-color:var(--primary); }
.vh-report-modal__actions { display:flex; align-items:center; justify-content:flex-end; gap:.6rem; padding:1rem 1.25rem; border-top:1px solid var(--border); margin-top:.75rem; }
.vh-report-modal__cancel { background:none; border:1px solid var(--border); color:var(--text-muted); padding:.45rem 1rem; border-radius:8px; font-size:.83rem; cursor:pointer; font-weight:500; }
.vh-report-modal__cancel:hover { border-color:var(--text-muted); color:var(--text); }
.vh-report-modal__submit { background:var(--primary); color:#fff; border:none; padding:.45rem 1.1rem; border-radius:8px; font-size:.83rem; cursor:pointer; font-weight:600; }
.vh-report-modal__submit:hover { opacity:.88; }
/* end vh-reply-report-fix */


/* ── Profile sidebar: follower avatars + top topics (vh-follower-grid) ─────── */
.vh-follower-grid { display:flex; flex-wrap:wrap; gap:.45rem; padding:.1rem 0; }
.vh-follower-avatar { display:inline-flex; width:38px; height:38px; border-radius:50%; overflow:hidden; text-decoration:none; flex-shrink:0; border:2px solid var(--border); transition:border-color .15s, transform .15s; }
.vh-follower-avatar:hover { border-color:var(--primary); transform:scale(1.08); }
.vh-follower-avatar__img { width:100%; height:100%; object-fit:cover; display:block; }
.vh-follower-avatar__initials { width:100%; height:100%; display:flex; align-items:center; justify-content:center; font-size:.7rem; font-weight:700; color:#fff; background:var(--primary); border-radius:50%; line-height:1; }

.vh-top-topic { display:flex; align-items:center; justify-content:space-between; padding:.38rem 0; gap:.5rem; border-bottom:1px solid var(--border); }
.vh-top-topic:last-child { border-bottom:none; }
.vh-top-topic__name { font-size:.85rem; color:var(--text); text-decoration:none; font-weight:500; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; flex:1; }
.vh-top-topic__name:hover { color:var(--primary); }
.vh-top-topic__count { font-size:.72rem; font-weight:600; color:var(--primary); background:color-mix(in srgb, var(--primary) 12%, transparent); padding:.18rem .5rem; border-radius:99px; white-space:nowrap; flex-shrink:0; }

.vh-content-stat { display:flex; align-items:center; gap:.5rem; padding:.35rem 0; font-size:.85rem; color:var(--text-muted); }
.vh-content-stat i { font-size:.9rem; color:var(--primary); width:16px; text-align:center; flex-shrink:0; }
.vh-content-stat__value { font-weight:600; color:var(--text); }

.vh-profile-badge { display:inline-flex; align-items:center; gap:.3rem; font-size:.72rem; font-weight:600; padding:.25rem .65rem; border-radius:99px; background:color-mix(in srgb, var(--primary) 12%, transparent); color:var(--primary); }

.vh-sidebar-link { display:flex; align-items:center; gap:.5rem; padding:.45rem .5rem; font-size:.85rem; color:var(--text-muted); text-decoration:none; border-radius:7px; transition:background .15s, color .15s; }
.vh-sidebar-link:hover { background:var(--bg); color:var(--text); }
.vh-sidebar-link i { font-size:.9rem; width:16px; text-align:center; flex-shrink:0; }

@media (max-width: 768px) {
    .vh-follower-avatar { width:34px; height:34px; }
}
/* end vh-follower-grid */


/* ── Comment vote button (vh-comment-vote-btn) ─────────────────────────── */
.vh-comment-vote-btn { display:inline-flex; align-items:center; gap:.3rem; background:none; border:none; cursor:pointer; font-size:.8rem; color:var(--text-muted); padding:.2rem .45rem; border-radius:6px; transition:color .15s, background .15s; line-height:1; }
.vh-comment-vote-btn:hover { color:var(--primary); background:color-mix(in srgb, var(--primary) 8%, transparent); }
.vh-comment-vote-btn.is-active { color:var(--primary); }
.vh-comment-vote-btn.is-active i { color:var(--primary); }
.vh-comment-vote-btn i { font-size:.85rem; }
.vh-comment-vote-count { font-weight:600; min-width:.8rem; }
.vh-comment-vote-static { display:inline-flex; align-items:center; gap:.3rem; font-size:.8rem; color:var(--text-muted); }
.vh-comment__actions--reply { margin-top:.3rem; }
/* end vh-comment-vote-btn */


/* ── Zigzag media link fix ─────────────────────────────────────────────── */
a.vh-zigzag__media { display:block; text-decoration:none; overflow:hidden; }
a.vh-zigzag__media img { transition:transform .3s; }
a.vh-zigzag__media:hover img { transform:scale(1.04); }
.vh-zigzag__title a { color:inherit; text-decoration:none; }
.vh-zigzag__title a:hover { color:var(--primary); }
/* end zigzag-media-link */


/* ── Notification bell UI (vh-notif-*) ──────────────────────────────────── */
.vh-notif-bell { position:relative; display:inline-block; }
#notifToggle { position:relative; }
.vh-notif-badge { display:none; position:absolute; top:-2px; right:-2px; background:#ef4444; color:#fff; border-radius:50%; font-size:.6rem; min-width:16px; height:16px; line-height:16px; text-align:center; padding:0 4px; font-weight:700; pointer-events:none; }
.vh-notif-dropdown { display:none; position:absolute; right:0; top:calc(100% + 8px); width:340px; background:var(--bg-card); border:1px solid var(--border); border-radius:var(--radius-lg); box-shadow:0 8px 32px rgba(0,0,0,.15); z-index:999; overflow:hidden; }
.vh-notif-head { padding:12px 16px; border-bottom:1px solid var(--border); display:flex; justify-content:space-between; align-items:center; }
.vh-notif-head__title { font-weight:600; font-size:.95rem; color:var(--text); }
.vh-notif-head__btn { font-size:.75rem; background:none; border:none; color:var(--primary); cursor:pointer; padding:0; }
.vh-notif-list { max-height:360px; overflow-y:auto; }
.vh-notif-empty { text-align:center; padding:32px 16px; color:var(--text-muted); }
.vh-notif-empty i { font-size:2rem; display:block; margin-bottom:8px; }

/* Notification items (JS-rendered) */
.vh-notif-item { padding:12px 16px; border-bottom:1px solid var(--border); cursor:pointer; display:flex; gap:10px; align-items:flex-start; transition:background .2s; }
.vh-notif-item:hover { background:var(--bg); }
.vh-notif-item--unread { background:rgba(99,102,241,.04); }
.vh-notif-item__icon { flex-shrink:0; width:36px; height:36px; border-radius:50%; display:flex; align-items:center; justify-content:center; }
.vh-notif-item__icon i { font-size:.9rem; }
.vh-notif-item__body { flex:1; min-width:0; }
.vh-notif-item__msg { margin:0; font-size:.85rem; color:var(--text); line-height:1.4; }
.vh-notif-item__time { font-size:.75rem; color:var(--text-muted); display:block; margin-top:2px; }
.vh-notif-item__dot { width:8px; height:8px; border-radius:50%; background:#6366f1; flex-shrink:0; margin-top:4px; }

/* Mobile auth */
.vh-person-icon-lg { font-size:1.35rem; }

/* Pending post alert */
.vh-alert--pending { background:rgba(99,102,241,.08); border:1px solid rgba(99,102,241,.25); border-radius:12px; padding:1rem 1.25rem; display:flex; align-items:flex-start; gap:.75rem; margin-bottom:.5rem; }
.vh-alert__pending-icon { color:#6366f1; font-size:1.1rem; margin-top:.1rem; flex-shrink:0; }
.vh-alert__body { flex:1; }
.vh-alert__pending-title { font-weight:600; margin:0 0 .2rem; color:#6366f1; }
.vh-alert__pending-text { margin:0; font-size:.875rem; color:var(--text-muted); }
.vh-alert__close { background:none; border:none; cursor:pointer; color:var(--text-muted); font-size:1.1rem; line-height:1; padding:0; }

/* Popup ad */
.vh-popup-ad { display:none; position:fixed; inset:0; background:rgba(0,0,0,.6); z-index:9999; align-items:center; justify-content:center; padding:1rem; }
.vh-popup-ad__inner { position:relative; max-width:480px; width:100%; }
.vh-popup-ad__close { position:absolute; top:-12px; right:-12px; width:32px; height:32px; border-radius:50%; background:#fff; border:none; cursor:pointer; font-size:1.1rem; font-weight:700; line-height:1; box-shadow:0 2px 8px rgba(0,0,0,.2); z-index:1; display:flex; align-items:center; justify-content:center; }

@media (max-width:480px) {
    .vh-notif-dropdown { width:calc(100vw - 2rem); right:-1rem; }
}
/* end notif-inline-fix */
