/* Volunteers Delight Meditation Tracker CSS V1.0.0 with Bootstrap Sidebar & Security Features */

:root {
    --vd-primary: #D97706;
    --vd-primary-hover: #B45309;
    --vd-secondary: #059669;
    --vd-accent: #F59E0B;
    --vd-teal: #0D9488;
    --vd-coral: #E11D48;
    --vd-bg-dark: #0F172A;
    --vd-card-bg: rgba(255, 255, 255, 0.95);
    --vd-text-main: #1E293B;
    --vd-text-muted: #64748B;
    --vd-border-radius: 16px;
    --vd-shadow: 0 10px 30px -5px rgba(217, 119, 6, 0.12), 0 4px 12px -2px rgba(0, 0, 0, 0.05);
}

/* Theme Classes */
.theme-golden_lotus {
    --vd-primary: #D97706;
    --vd-primary-hover: #B45309;
    --vd-secondary: #059669;
    --vd-accent: #F59E0B;
}

.theme-forest_zen {
    --vd-primary: #059669;
    --vd-primary-hover: #047857;
    --vd-secondary: #10B981;
    --vd-accent: #D97706;
}

.theme-cosmic_calm {
    --vd-primary: #4F46E5;
    --vd-primary-hover: #3730A3;
    --vd-secondary: #06B6D4;
    --vd-accent: #EC4899;
}

.theme-royal_purple {
    --vd-primary: #7C3AED;
    --vd-primary-hover: #6D28D9;
    --vd-secondary: #10B981;
    --vd-accent: #F43F5E;
}

/* FULL-WIDTH RESPONSIVE THEME OVERRIDES (Fixes narrow containers in Newspaper / tagDiv Composer & WP themes) */
.vd-app-container {
    font-family: 'Sarabun', 'Outfit', sans-serif;
    color: var(--vd-text-main);
    width: 100% !important;
    max-width: 1200px !important;
    margin: 20px auto !important;
    padding: 10px !important;
    box-sizing: border-box !important;
    display: block !important;
}

/* Breakout rule for theme content wrappers */
.td-main-content, .td-pb-row, .td-page-content, .td-post-content,
.entry-content, .post-content, .page-content, .site-main {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* BOOTSTRAP 5 STYLE SIDEBAR & MAIN VIEWPORT LAYOUT */
.vd-app-layout-wrapper {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 20px;
    align-items: start;
}

@media (max-width: 868px) {
    .vd-app-layout-wrapper {
        grid-template-columns: 1fr;
    }
}

.vd-sidebar-nav {
    background: #FFF;
    border: 1px solid #E2E8F0;
    border-radius: var(--vd-border-radius);
    padding: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    position: sticky;
    top: 20px;
}

.vd-sidebar-menu-header {
    font-weight: 700;
    font-size: 0.95rem;
    color: #1E293B;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #F1F5F9;
}

.vd-nav-pills {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.vd-nav-pill {
    width: 100%;
    text-align: left;
    background: transparent;
    border: 1px solid transparent;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.92rem;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    font-family: 'Sarabun', sans-serif;
}

.vd-nav-pill .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    color: #64748B;
    transition: color 0.2s ease;
}

.vd-nav-pill:hover {
    background: #F8FAFC;
    color: var(--vd-primary);
}

.vd-nav-pill:hover .dashicons {
    color: var(--vd-primary);
}

.vd-nav-pill.active {
    background: var(--vd-primary);
    color: #FFF;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.25);
}

.vd-nav-pill.active .dashicons {
    color: #FFF;
}

.vd-main-content-viewport {
    width: 100%;
    min-width: 0;
}

.vd-viewport-sec {
    width: 100%;
}

/* Official Logo & Avatar Styling */
.vd-avatar-container {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: #FFF;
    padding: 3px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Thai Lotus SVG Emblem Container */
.vd-thai-lotus-svg-container {
    margin: 0 auto 6px auto;
    width: 80px;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vd-lotus-svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 4px 10px rgba(217, 119, 6, 0.35));
    animation: vd-pulse-gold 3s infinite ease-in-out;
}

@keyframes vd-pulse-gold {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 4px 10px rgba(217, 119, 6, 0.35)); }
    50% { transform: scale(1.05); filter: drop-shadow(0 6px 16px rgba(245, 158, 11, 0.5)); }
}

/* Theme Switcher Bar */
.vd-theme-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 16px;
    background: #FFF;
    padding: 10px 18px;
    border-radius: 12px;
    border: 1px solid #E2E8F0;
    flex-wrap: wrap;
}

.vd-theme-title { font-weight: 800; font-size: 0.88rem; color: #1E293B; letter-spacing: 0.5px; }

.vd-theme-btn {
    border: 1px solid #CBD5E1;
    background: #F8FAFC;
    padding: 5px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.vd-theme-btn.active, .vd-theme-btn:hover {
    background: var(--vd-primary);
    color: #FFF;
    border-color: var(--vd-primary);
}

/* Glassmorphic Cards */
.vd-card {
    background: var(--vd-card-bg);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: var(--vd-border-radius);
    padding: 24px;
    box-shadow: var(--vd-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.vd-card h3 {
    margin-top: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #0F172A;
    display: flex;
    align-items: center;
    gap: 8px;
}

.vd-card-sub {
    font-size: 0.875rem;
    color: var(--vd-text-muted);
    margin-top: -8px;
    margin-bottom: 16px;
}

/* Header Card & User Profile */
.vd-header-card {
    background: linear-gradient(135deg, var(--vd-primary) 0%, #1E293B 100%);
    color: #FFFFFF;
    border: none;
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
}

.vd-user-profile {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.vd-user-rank-tag {
    margin: 4px 0 0 0;
    font-size: 0.9rem;
    color: #FDE68A;
}

.vd-user-badges-summary {
    display: flex;
    gap: 8px;
    margin-top: 6px;
    flex-wrap: wrap;
}

.vd-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.vd-badge-level { background: rgba(255, 255, 255, 0.25); color: #FFF; }
.vd-badge-streak { background: #F59E0B; color: #FFF; }
.vd-badge-minutes { background: #10B981; color: #FFF; }

/* XP Bar */
.vd-xp-container {
    background: rgba(0, 0, 0, 0.2);
    padding: 12px 16px;
    border-radius: 12px;
}

.vd-xp-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    margin-bottom: 6px;
}

.vd-xp-bar-bg {
    background: rgba(255, 255, 255, 0.2);
    height: 10px;
    border-radius: 5px;
    overflow: hidden;
}

.vd-xp-bar-fill {
    background: linear-gradient(90deg, #10B981, #34D399);
    height: 100%;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* THAI CULTURAL MEMBER CERTIFICATE WITH THAI CORNER PATTERNS */
.vd-official-cert-card {
    background: linear-gradient(180deg, #FFFBEB 0%, #FFF 100%);
    border: 2px solid #F59E0B;
    padding: 18px;
    box-shadow: 0 10px 25px rgba(217, 119, 6, 0.15);
    position: relative;
}

.vd-cert-border {
    border: 3px double #D97706;
    border-radius: 14px;
    padding: 35px 25px;
    text-align: center;
    background: radial-gradient(circle at center, rgba(254, 243, 199, 0.35) 0%, rgba(255, 255, 255, 0) 75%);
    position: relative;
}

/* Thai Corner Ornaments */
.vd-cert-corner {
    position: absolute;
    font-size: 1.6rem;
    color: #D97706;
    line-height: 1;
    z-index: 2;
}

.vd-corner-tl { top: 8px; left: 10px; }
.vd-corner-tr { top: 8px; right: 10px; }
.vd-corner-bl { bottom: 8px; left: 10px; }
.vd-corner-br { bottom: 8px; right: 10px; }

.vd-cert-header h2 {
    margin: 8px 0 0 0;
    font-size: 1.75rem;
    color: #92400E;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.vd-cert-org {
    margin: 6px 0 12px 0;
    font-size: 0.95rem;
    color: #B45309;
}

.vd-cert-divider {
    color: #D97706;
    font-size: 1.1rem;
    letter-spacing: 6px;
    margin-bottom: 25px;
}

.vd-cert-body {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.vd-cert-statement {
    font-size: 1.1rem;
    color: #78350F;
    margin-bottom: 16px;
    text-align: center;
}

/* 100% PERFECT MATHEMATICAL CENTERING FOR MEMBER NAME */
.vd-cert-name-container {
    width: 100% !important;
    margin: 18px auto 25px auto !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
}

.vd-cert-name {
    font-size: 2.3rem !important;
    color: #78350F !important;
    font-weight: 800 !important;
    text-align: center !important;
    margin: 0 0 12px 0 !important;
    padding: 0 !important;
    display: block !important;
    width: 100% !important;
    letter-spacing: 1px;
    line-height: 1.3;
}

.vd-cert-name-underline {
    width: 450px !important;
    max-width: 85% !important;
    height: 3px !important;
    background: linear-gradient(90deg, transparent, #F59E0B, #D97706, #F59E0B, transparent) !important;
    margin: 0 auto !important;
    border-radius: 2px !important;
}

.vd-cert-rank {
    font-size: 1.15rem;
    color: #B45309;
    margin: 18px 0 22px 0;
    text-align: center;
}

.vd-cert-desc {
    max-width: 650px;
    margin: 0 auto 30px auto;
    font-size: 1rem;
    color: #451A03;
    line-height: 1.8;
    text-align: center;
}

.vd-cert-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px dashed #F59E0B;
    padding-top: 20px;
    margin-top: 10px;
    font-size: 0.9rem;
    color: #92400E;
}

/* LOCKED MONTHLY CERTIFICATE PROGRESS STYLING */
.vd-cert-locked-container {
    padding: 35px 25px;
    text-align: center;
    background: #FFFBEB;
    border: 2px dashed #F59E0B;
    border-radius: 14px;
}

.vd-lock-icon {
    font-size: 3.2rem;
    margin-bottom: 10px;
}

.vd-cert-locked-container h3 {
    margin: 0 0 8px 0;
    font-size: 1.4rem;
    color: #78350F;
    justify-content: center;
}

.vd-lock-desc {
    font-size: 0.95rem;
    color: #92400E;
    max-width: 650px;
    margin: 0 auto 20px auto;
    line-height: 1.6;
}

.vd-lock-progress-wrap {
    max-width: 500px;
    margin: 0 auto 20px auto;
    background: #FFF;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid #FDE68A;
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.08);
}

.vd-lock-progress-text {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #78350F;
    margin-bottom: 8px;
    font-weight: 600;
}

.vd-lock-progress-bar {
    background: #FEF3C7;
    height: 14px;
    border-radius: 7px;
    overflow: hidden;
    border: 1px solid #FCD34D;
}

.vd-lock-progress-fill {
    background: linear-gradient(90deg, #F59E0B, #D97706);
    height: 100%;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.vd-lock-notice {
    background: #FFF;
    border: 1px solid #A7F3D0;
    color: #065F46;
    padding: 12px 18px;
    border-radius: 10px;
    font-size: 0.9rem;
    max-width: 600px;
    margin: 0 auto;
    display: inline-block;
}

/* Community Daily Goal Banner */
.vd-community-banner {
    background: linear-gradient(135deg, #ECFDF5 0%, #D1FAE5 100%);
    border: 1px solid #A7F3D0;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
}

.vd-comm-icon { font-size: 2.2rem; }
.vd-comm-details h4 { margin: 0; color: #065F46; font-size: 1.1rem; }
.vd-comm-details p { margin: 4px 0 0 0; color: #047857; font-size: 0.95rem; }

/* Grids */
.vd-grid-2col { display: grid; grid-template-columns: 1.1fr 1fr; gap: 20px; }
@media (max-width: 768px) { .vd-grid-2col { grid-template-columns: 1fr; } }
.vd-col { display: flex; flex-direction: column; gap: 20px; }

/* Virtual Garden Viewport */
.vd-garden-card { text-align: center; background: linear-gradient(180deg, #F0FDF4 0%, #FFFFFF 100%); }
.vd-garden-viewport { height: 180px; background: linear-gradient(180deg, #E0F2FE 0%, #BAE6FD 70%, #86EFAC 100%); border-radius: 16px; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; box-shadow: inset 0 2px 6px rgba(0,0,0,0.1); }
.vd-garden-plant { font-size: 5rem; margin-bottom: 10px; animation: vd-bounce 3s infinite ease-in-out; transition: all 0.5s ease; }

@keyframes vd-bounce {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-6px) scale(1.03); }
}

.vd-garden-ground { height: 25px; width: 100%; background: #4ADE80; border-top: 3px solid #22C55E; }
.vd-garden-stage-tag { display: inline-block; margin-top: 15px; padding: 6px 16px; background: #DCFCE7; color: #15803D; font-weight: 700; border-radius: 20px; font-size: 0.9rem; }

/* Meditation Timer Display */
.vd-timer-display { font-size: 3.5rem; font-weight: 800; text-align: center; color: var(--vd-primary); font-family: 'Outfit', monospace; margin: 15px 0; letter-spacing: 2px; }
.vd-timer-presets { display: flex; justify-content: center; gap: 8px; margin-bottom: 20px; }
.vd-btn-preset { border: 1px solid #E2E8F0; background: #F8FAFC; padding: 6px 14px; border-radius: 8px; cursor: pointer; font-weight: 600; transition: all 0.2s ease; }
.vd-btn-preset.active, .vd-btn-preset:hover { background: var(--vd-primary); color: #FFF; border-color: var(--vd-primary); }
.vd-timer-controls { display: flex; justify-content: center; gap: 12px; }

/* Tabs */
.vd-tabs { display: flex; border-bottom: 2px solid #E2E8F0; margin-bottom: 16px; }
.vd-tab-btn { padding: 8px 16px; border: none; background: none; cursor: pointer; font-weight: 600; color: var(--vd-text-muted); border-bottom: 2px solid transparent; margin-bottom: -2px; }
.vd-tab-btn.active { color: var(--vd-primary); border-bottom-color: var(--vd-primary); }
.vd-tab-content { display: none; }
.vd-tab-content.active { display: block; }

/* Form Controls */
.vd-form-group { margin-bottom: 14px; }
.vd-form-group label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.9rem; }
.vd-input, .vd-textarea { width: 100%; padding: 10px 14px; border: 1px solid #CBD5E1; border-radius: 10px; font-family: inherit; font-size: 0.95rem; box-sizing: border-box; }
.vd-textarea { height: 80px; resize: vertical; }

.vd-checkbox-group label { display: flex; align-items: center; gap: 8px; font-size: 0.88rem; color: #475569; cursor: pointer; }
.vd-rule-badge { background: #FEF3C7; color: #92400E; font-size: 0.75rem; padding: 2px 8px; border-radius: 10px; float: right; }

/* Mood Buttons */
.vd-mood-options { display: flex; gap: 6px; flex-wrap: wrap; }
.vd-btn-mood { border: 1px solid #E2E8F0; background: #F8FAFC; padding: 6px 12px; border-radius: 20px; cursor: pointer; font-size: 0.85rem; transition: all 0.2s ease; }
.vd-btn-mood.active { background: #EEF2FF; border-color: var(--vd-primary); color: var(--vd-primary); font-weight: 700; }

/* Community Board Grid & Filters */
.vd-board-header { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 15px; }
.vd-board-search-box { width: 260px; }
.vd-filter-pills { display: flex; gap: 8px; margin: 15px 0 20px 0; flex-wrap: wrap; }
.vd-pill, .vd-pill-media { padding: 6px 16px; border-radius: 20px; background: #F1F5F9; color: #64748B; font-size: 0.85rem; font-weight: 600; cursor: pointer; transition: all 0.2s ease; }
.vd-pill.active, .vd-pill:hover, .vd-pill-media.active, .vd-pill-media:hover { background: var(--vd-primary); color: #FFF; }

.vd-community-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.vd-comm-card { background: #FFF; border: 1px solid #E2E8F0; border-radius: 14px; padding: 16px; display: flex; flex-direction: column; justify-content: space-between; box-shadow: 0 4px 12px rgba(0,0,0,0.03); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.vd-comm-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,0.08); }
.vd-comm-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.vd-comm-user-info { display: flex; align-items: center; gap: 8px; }
.vd-comm-avatar { width: 32px; height: 32px; border-radius: 50%; background: #EEF2FF; display: flex; align-items: center; justify-content: center; font-size: 1rem; }
.vd-comm-username { font-weight: 700; font-size: 0.9rem; color: #1E293B; }
.vd-comm-time { font-size: 0.75rem; color: #94A3B8; }
.vd-comm-mood-tag { font-size: 0.78rem; padding: 3px 10px; border-radius: 12px; background: #F8FAFC; border: 1px solid #E2E8F0; }
.vd-comm-note { font-size: 0.92rem; color: #334155; line-height: 1.5; margin: 8px 0 14px 0; white-space: pre-wrap; }
.vd-comm-card-footer { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid #F1F5F9; padding-top: 10px; font-size: 0.82rem; }
.vd-comm-actions { display: flex; gap: 6px; }
.vd-comm-duration { color: #10B981; font-weight: 700; }
.vd-btn-like { background: #FFF1F2; border: 1px solid #FECDD3; color: #E11D48; border-radius: 16px; padding: 4px 12px; cursor: pointer; font-size: 0.8rem; font-weight: 700; transition: all 0.2s ease; }
.vd-btn-like.liked { background: #E11D48; color: #FFF; border-color: #E11D48; }
.vd-btn-direct-msg { background: #EEF2FF; border: 1px solid #C7D2FE; color: #4F46E5; border-radius: 16px; padding: 4px 10px; cursor: pointer; font-size: 0.8rem; font-weight: 600; }

/* Media & Lessons Grid */
.vd-media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.vd-media-card { background: #FFF; border: 1px solid #E2E8F0; border-radius: 12px; padding: 16px; display: flex; flex-direction: column; justify-content: space-between; }
.vd-media-badge { display: inline-block; padding: 2px 8px; border-radius: 8px; font-size: 0.75rem; font-weight: 700; margin-bottom: 8px; }
.vd-media-badge-video { background: #FEE2E2; color: #991B1B; }
.vd-media-badge-pdf { background: #DBEAFE; color: #1E40AF; }
.vd-media-badge-audio { background: #FEF3C7; color: #92400E; }
.vd-media-title { font-weight: 700; font-size: 1rem; color: #1E293B; margin-bottom: 6px; }
.vd-media-desc { font-size: 0.85rem; color: #64748B; line-height: 1.4; margin-bottom: 12px; }

/* Buttons */
.vd-btn { padding: 12px 24px; border-radius: 10px; border: none; font-weight: 700; cursor: pointer; transition: all 0.2s ease; font-size: 1rem; }
.vd-btn-primary { background: var(--vd-primary); color: #FFF; }
.vd-btn-primary:hover { background: var(--vd-primary-hover); }
.vd-btn-secondary { background: #E2E8F0; color: #475569; }
.vd-btn-success { background: var(--vd-secondary); color: #FFF; }
.vd-btn-success:hover { background: #059669; }
.vd-w100 { width: 100%; }

/* Quote Card */
.vd-quote-card { background: #FFFBEB; border: 1px solid #FDE68A; display: flex; gap: 14px; align-items: flex-start; }
.vd-quote-icon { font-size: 1.8rem; }
.vd-quote-content p { margin: 0; font-style: italic; font-weight: 500; color: #78350F; }
.vd-quote-content small { color: #92400E; font-weight: 600; }

/* Table */
.vd-table-responsive { overflow-x: auto; }
.vd-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.vd-table th, .vd-table td { padding: 10px 12px; border-bottom: 1px solid #E2E8F0; text-align: left; }
.vd-table th { background: #F8FAFC; color: #475569; }

/* Badges Grid */
.vd-badges-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; }
.vd-badge-item { background: #F8FAFC; border: 1px solid #E2E8F0; border-radius: 12px; padding: 12px; text-align: center; opacity: 0.5; filter: grayscale(1); transition: all 0.3s ease; }
.vd-badge-item.unlocked { opacity: 1; filter: none; background: #FFF; border-color: #F59E0B; box-shadow: 0 4px 10px rgba(245, 158, 11, 0.15); }
.vd-badge-icon { font-size: 2.2rem; margin-bottom: 6px; }
.vd-badge-title { font-weight: 700; font-size: 0.8rem; }

/* Utility */
.vd-mt-15 { margin-top: 15px; }
.vd-mt-20 { margin-top: 20px; }
.vd-text-center { text-align: center; }

.vd-admin-subtab-btn {
    border: 1px solid #CBD5E1;
    background: #F8FAFC;
    padding: 6px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    color: #475569;
    transition: all 0.2s ease;
}

.vd-admin-subtab-btn.active, .vd-admin-subtab-btn:hover {
    background: #1E293B;
    color: #FFF;
    border-color: #1E293B;
}

/* Admin Dashboard Specific CSS */
.vd-admin-wrap { max-width: 1200px; margin-top: 20px; }
.vd-admin-stats-cards { display: flex; gap: 20px; margin: 20px 0; }
.vd-stat-card { background: #FFF; border: 1px solid #CCD0D4; border-radius: 8px; padding: 20px; flex: 1; }
.vd-stat-title { font-size: 0.9rem; color: #50575E; }
.vd-stat-value { font-size: 1.8rem; font-weight: 700; color: #1D2327; margin-top: 6px; }
.vd-admin-toolbar { margin-bottom: 15px; display: flex; gap: 10px; }

/* PRECISION A4 LANDSCAPE PRINT RULES FOR MEMBER CERTIFICATE */
@media print {
    @page {
        size: A4 landscape;
        margin: 0;
    }

    #adminmenuwrap, #adminmenumain, #wpadminbar, #wpfooter, .vd-hide-print, .nav-tab-wrapper,
    header, footer, nav, sidebar, .vd-theme-bar, .demo-bar, .vd-modal {
        display: none !important;
    }

    body {
        background: #FFF !important;
        margin: 0 !important;
        padding: 0 !important;
        width: 297mm !important;
        height: 210mm !important;
    }

    body.vd-print-cert-only #vd-meditation-app > *:not(#vd-cert-section-wrap) {
        display: none !important;
    }
    body.vd-print-cert-only #vd-cert-locked-state {
        display: none !important;
    }
    body.vd-print-cert-only #vd-cert-section-wrap {
        display: block !important;
        position: fixed !important;
        left: 0 !important;
        top: 0 !important;
        width: 297mm !important;
        height: 210mm !important;
        margin: 0 !important;
        padding: 10mm !important;
        box-sizing: border-box !important;
        border: none !important;
        box-shadow: none !important;
        background: #FFFBEB !important;
    }
    body.vd-print-cert-only .vd-cert-border {
        display: flex !important;
        border: 5px double #D97706 !important;
        height: 190mm !important;
        padding: 15mm 20mm !important;
        box-sizing: border-box !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        background: radial-gradient(circle at center, rgba(254, 243, 199, 0.4) 0%, rgba(255, 255, 255, 1) 80%) !important;
    }
    body.vd-print-cert-only .vd-cert-header h2 {
        font-size: 2rem !important;
    }
    body.vd-print-cert-only .vd-cert-name {
        font-size: 2.8rem !important;
        margin: 0 0 10px 0 !important;
    }
    body.vd-print-cert-only .vd-cert-desc {
        font-size: 1.15rem !important;
        line-height: 1.9 !important;
    }

    body.vd-print-report-only #admin-sec-report > *:not(.vd-printable-report),
    body.vd-print-report-only .vd-admin-wrap > *:not(#admin-sec-report) {
        display: none !important;
    }
    body.vd-print-report-only .vd-printable-report {
        display: block !important;
        position: fixed !important;
        left: 0 !important;
        top: 0 !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 20px !important;
        border: none !important;
        box-shadow: none !important;
        background: #FFF !important;
    }
}

.vd-modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center; z-index: 99999; }
.vd-modal-content { background: #FFF; padding: 24px; border-radius: 12px; width: 90%; max-width: 500px; position: relative; }
.vd-modal-close { position: absolute; right: 16px; top: 12px; font-size: 1.5rem; cursor: pointer; }

/* NEWSPAPER (TAGDIV) THEME COMPATIBILITY BREAKOUT RULES */
.td-post-content .vd-app-container,
.td-page-content .vd-app-container,
.td-pb-row .vd-app-container,
.td-container .vd-app-container {
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
    clear: both !important;
}

.td-post-content iframe.vd-lotus-svg,
.td-page-content img.vd-logo {
    max-width: 100% !important;
    height: auto !important;
}

/* HOSTATOM & UNIVERSAL THEME PERFORMANCE COMPATIBILITY */
.vd-app-container * {
    box-sizing: border-box;
}

.vd-card, .vd-nav-pill, .vd-btn, .vd-theme-btn {
    will-change: transform, opacity;
    transform: translateZ(0);
    backface-visibility: hidden;
}
