/**
 * Veewom HTML Beautifier & Developer Tools - Master Stylesheet
 * Modern SaaS UI/UX Design System with Dark CodeMirror Integration
 */

/* ==========================================================================
   1. CSS CUSTOM PROPERTIES & THEME TOKENS
   ========================================================================== */
:root {
    /* Color Palette */
    --vw-bg-body: #f8fafc;
    --vw-bg-card: #ffffff;
    --vw-bg-subtle: #f1f5f9;
    --vw-bg-header: #ffffff;
    --vw-border: #e2e8f0;
    --vw-border-focus: #6366f1;

    /* Text Colors */
    --vw-text-primary: #0f172a;
    --vw-text-secondary: #334155;
    --vw-text-muted: #64748b;
    --vw-text-light: #94a3b8;

    /* Brand Accents (Indigo, Purple, Emerald) */
    --vw-primary: #4f46e5;
    --vw-primary-hover: #4338ca;
    --vw-primary-light: rgba(79, 70, 229, 0.08);
    --vw-accent-teal: #0d9488;
    --vw-accent-emerald: #059669;
    --vw-accent-coral: #e11d48;
    --vw-accent-amber: #d97706;

    --vw-gradient-brand: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #2563eb 100%);
    --vw-gradient-subtle: linear-gradient(135deg, rgba(79, 70, 229, 0.06) 0%, rgba(124, 58, 237, 0.06) 100%);

    /* Shadows */
    --vw-shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
    --vw-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --vw-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
    --vw-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.04);

    /* Typography */
    --vw-font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --vw-font-mono: 'JetBrains Mono', Consolas, Monaco, monospace;

    /* Radii & Layout */
    --vw-radius-sm: 6px;
    --vw-radius-md: 10px;
    --vw-radius-lg: 16px;
    --vw-radius-xl: 22px;
    --vw-radius-full: 9999px;
    --vw-transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --vw-container-max: 1380px;
}

/* ==========================================================================
   2. RESET & BASE STYLES
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body.vw-body {
    font-family: var(--vw-font-sans);
    background-color: var(--vw-bg-body);
    color: var(--vw-text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.vw-container {
    width: 100%;
    max-width: var(--vw-container-max);
    margin: 0 auto;
    padding: 0 24px;
}

a {
    color: var(--vw-primary);
    text-decoration: none;
    transition: var(--vw-transition);
}

a:hover {
    color: var(--vw-primary-hover);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
}

.vw-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ==========================================================================
   3. NAVIGATION HEADER
   ========================================================================== */
.vw-navbar-wrapper {
    background-color: var(--vw-bg-header);
    border-bottom: 1px solid var(--vw-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(8px);
}

.vw-navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.vw-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.vw-brand-logo {
    border-radius: 8px;
    flex-shrink: 0;
}

.vw-brand-text {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.vw-brand-name {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--vw-text-primary);
}

.vw-brand-badge {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: var(--vw-gradient-brand);
    color: #ffffff;
    padding: 2px 7px;
    border-radius: var(--vw-radius-full);
}

.vw-nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 4px;
}

.vw-nav-links > li > a,
.vw-dropdown-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 14px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--vw-text-secondary);
    border-radius: var(--vw-radius-md);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: var(--vw-transition);
}

.vw-nav-links > li > a:hover,
.vw-dropdown-btn:hover,
.vw-nav-links > li > a.active {
    color: var(--vw-primary);
    background-color: var(--vw-primary-light);
}

/* Dropdown Menus */
.vw-dropdown {
    position: relative;
}

.vw-arrow {
    font-size: 0.75rem;
    transition: transform 0.2s ease;
}

.vw-dropdown:hover .vw-arrow {
    transform: rotate(180deg);
}

.vw-dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    background-color: var(--vw-bg-card);
    border: 1px solid var(--vw-border);
    border-radius: var(--vw-radius-md);
    box-shadow: var(--vw-shadow-xl);
    min-width: 220px;
    padding: 8px 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 1050;
}

.vw-dropdown:hover .vw-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.vw-dropdown-menu li a {
    display: block;
    padding: 9px 18px;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--vw-text-secondary);
    text-decoration: none;
    transition: var(--vw-transition);
}

.vw-dropdown-menu li a:hover {
    color: var(--vw-primary);
    background-color: var(--vw-primary-light);
    padding-left: 22px;
}

.vw-nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.vw-nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    font-size: 0.9rem;
    font-weight: 700;
    background: var(--vw-gradient-brand);
    color: #ffffff !important;
    border-radius: var(--vw-radius-md);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
    transition: var(--vw-transition);
}

.vw-nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(79, 70, 229, 0.35);
}

.vw-hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.vw-hamburger span {
    width: 100%;
    height: 2.5px;
    background-color: var(--vw-text-primary);
    border-radius: 2px;
    transition: var(--vw-transition);
}

/* ==========================================================================
   4. BREADCRUMBS
   ========================================================================== */
.vw-breadcrumbs-nav {
    background-color: var(--vw-bg-card);
    border-bottom: 1px solid var(--vw-border);
    padding: 10px 0;
    font-size: 0.85rem;
}

.vw-breadcrumbs {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.vw-breadcrumb-item {
    display: inline-flex;
    align-items: center;
    color: var(--vw-text-muted);
}

.vw-breadcrumb-item:not(:last-child)::after {
    content: "›";
    margin-left: 8px;
    color: var(--vw-text-light);
    font-weight: 700;
}

.vw-breadcrumb-item a {
    color: var(--vw-text-muted);
}

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

.vw-breadcrumb-item span[aria-current="page"] {
    color: var(--vw-text-primary);
    font-weight: 600;
}

/* ==========================================================================
   5. HERO & TOOL CHIPS BAR
   ========================================================================== */
.vw-hero-section {
    padding: 32px 0 24px;
}

.vw-hero-header {
    text-align: center;
    max-width: 860px;
    margin: 0 auto 24px;
}

.vw-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 6px 14px;
    background-color: var(--vw-primary-light);
    color: var(--vw-primary);
    border: 1px solid rgba(79, 70, 229, 0.2);
    border-radius: var(--vw-radius-full);
    margin-bottom: 14px;
}

.vw-badge-sparkle {
    font-size: 0.95rem;
}

.vw-hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.2;
    color: var(--vw-text-primary);
    margin-bottom: 12px;
}

.vw-hero-desc {
    font-size: 1.1rem;
    color: var(--vw-text-secondary);
    line-height: 1.6;
}

/* Tool Chips Quick Switcher */
.vw-tool-chips-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.vw-tool-chip {
    padding: 7px 14px;
    font-size: 0.86rem;
    font-weight: 600;
    background-color: var(--vw-bg-card);
    border: 1px solid var(--vw-border);
    border-radius: var(--vw-radius-full);
    color: var(--vw-text-secondary);
    text-decoration: none;
    box-shadow: var(--vw-shadow-sm);
    transition: var(--vw-transition);
}

.vw-tool-chip:hover {
    border-color: var(--vw-primary);
    color: var(--vw-primary);
    transform: translateY(-1px);
}

.vw-tool-chip.active {
    background: var(--vw-primary);
    border-color: var(--vw-primary);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

/* ==========================================================================
   6. DUAL CODE EDITOR WORKSPACE
   ========================================================================== */
.vw-workspace {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 18px;
    align-items: stretch;
}

.vw-editor-card {
    background-color: var(--vw-bg-card);
    border: 1px solid var(--vw-border);
    border-radius: var(--vw-radius-lg);
    box-shadow: var(--vw-shadow-md);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: var(--vw-transition);
}

.vw-editor-card:focus-within {
    border-color: var(--vw-border-focus);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15), var(--vw-shadow-md);
}

.vw-editor-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background-color: #0d1117;
    border-bottom: 1px solid #30363d;
    flex-wrap: wrap;
    gap: 10px;
}

.vw-editor-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #f0f6fc;
}

.vw-editor-icon {
    font-size: 1.1rem;
}

.vw-lang-badge {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: var(--vw-radius-full);
    background-color: rgba(99, 102, 241, 0.25);
    color: #818cf8;
    border: 1px solid rgba(129, 140, 248, 0.3);
}

.vw-editor-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.vw-badge-btn {
    padding: 5px 10px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #c9d1d9;
    background-color: #21262d;
    border: 1px solid #30363d;
    border-radius: var(--vw-radius-sm);
    cursor: pointer;
    transition: var(--vw-transition);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.vw-badge-btn:hover {
    background-color: #30363d;
    color: #ffffff;
    border-color: #8b949e;
}

.vw-badge-clear:hover {
    background-color: #b91c1c;
    border-color: #ef4444;
    color: #ffffff;
}

/* CodeMirror Wrapper */
.vw-codemirror-wrapper {
    flex: 1;
    position: relative;
    background-color: #212121;
}

.vw-codemirror-wrapper .CodeMirror {
    height: 480px;
    font-family: var(--vw-font-mono);
    font-size: 0.925rem;
    line-height: 1.55;
    background-color: #212121 !important;
}

/* Live Stats Bar */
.vw-editor-stats {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    padding: 8px 16px;
    background-color: #161b22;
    border-top: 1px solid #30363d;
    font-size: 0.8rem;
    color: #8b949e;
}

.vw-stat-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.vw-stat-item strong {
    color: #f0f6fc;
}

.diff-positive {
    color: #38bdf8 !important;
}

.diff-negative {
    color: #4ade80 !important;
}

.diff-neutral {
    color: #94a3b8 !important;
}

/* ==========================================================================
   7. TOOLBAR (CENTER ACTIONS & SETTINGS)
   ========================================================================== */
.vw-toolbar {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    padding-top: 12px;
    width: 170px;
}

.vw-btn-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.vw-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 16px;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: var(--vw-radius-md);
    border: none;
    cursor: pointer;
    transition: var(--vw-transition);
}

.vw-btn-primary {
    background: var(--vw-gradient-brand);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.vw-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.4);
}

.vw-btn-minify {
    background-color: #065f46;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(6, 95, 70, 0.25);
}

.vw-btn-minify:hover {
    background-color: #047857;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(6, 95, 70, 0.35);
}

.vw-btn-secondary {
    background-color: #e2e8f0;
    color: #1e293b;
}

.vw-btn-secondary:hover {
    background-color: #cbd5e1;
}

.vw-btn-accent {
    background-color: #0284c7;
    color: #ffffff;
}

.vw-btn-accent:hover {
    background-color: #0369a1;
}

/* Settings Box */
.vw-settings-box {
    background-color: var(--vw-bg-card);
    border: 1px solid var(--vw-border);
    border-radius: var(--vw-radius-md);
    padding: 12px;
    width: 100%;
    box-shadow: var(--vw-shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.vw-settings-heading {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--vw-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--vw-border);
    padding-bottom: 6px;
}

.vw-setting-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--vw-text-secondary);
}

.vw-select {
    padding: 6px 8px;
    font-size: 0.82rem;
    border: 1px solid var(--vw-border);
    border-radius: var(--vw-radius-sm);
    background-color: var(--vw-bg-body);
    color: var(--vw-text-primary);
    cursor: pointer;
}

.vw-checkbox-item {
    flex-direction: row;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 0.78rem;
}

.vw-checkbox-item input {
    cursor: pointer;
}

/* In-Toolbar Ad Unit */
.vw-ad-toolbar {
    margin: 8px 0 0 0;
    max-width: 100%;
}

/* ==========================================================================
   8. FULLSCREEN MODE
   ========================================================================== */
.vw-fullscreen-active {
    position: fixed !important;
    inset: 0 !important;
    z-index: 9999 !important;
    width: 100vw !important;
    height: 100vh !important;
    border-radius: 0 !important;
    border: none !important;
}

.vw-fullscreen-active .CodeMirror {
    height: calc(100vh - 90px) !important;
}

/* ==========================================================================
   9. URL IMPORT MODAL
   ========================================================================== */
.vw-modal-backdrop {
    position: fixed;
    inset: 0;
    background-color: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(4px);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.vw-modal-backdrop.open {
    opacity: 1;
    visibility: visible;
}

.vw-modal-container {
    width: 100%;
    max-width: 580px;
    background-color: var(--vw-bg-card);
    border: 1px solid var(--vw-border);
    border-radius: var(--vw-radius-xl);
    box-shadow: var(--vw-shadow-xl);
    overflow: hidden;
    transform: translateY(20px) scale(0.98);
    transition: transform 0.25s ease;
}

.vw-modal-backdrop.open .vw-modal-container {
    transform: translateY(0) scale(1);
}

.vw-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--vw-border);
}

.vw-modal-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--vw-text-primary);
}

.vw-modal-close-btn {
    background: transparent;
    border: none;
    font-size: 1.25rem;
    color: var(--vw-text-muted);
    cursor: pointer;
    transition: var(--vw-transition);
}

.vw-modal-close-btn:hover {
    color: var(--vw-text-primary);
}

.vw-modal-body {
    padding: 24px;
}

.vw-modal-desc {
    font-size: 0.95rem;
    color: var(--vw-text-secondary);
    line-height: 1.6;
    margin-bottom: 18px;
}

.vw-url-input-group {
    margin-bottom: 12px;
}

.vw-url-input {
    width: 100%;
    padding: 12px 16px;
    font-size: 0.95rem;
    border: 2px solid var(--vw-border);
    border-radius: var(--vw-radius-md);
    background-color: var(--vw-bg-body);
    color: var(--vw-text-primary);
    transition: var(--vw-transition);
}

.vw-url-input:focus {
    outline: none;
    border-color: var(--vw-primary);
    background-color: #ffffff;
}

.vw-url-security-notice {
    font-size: 0.8rem;
    color: var(--vw-text-muted);
    background-color: var(--vw-bg-subtle);
    padding: 10px 14px;
    border-radius: var(--vw-radius-sm);
    line-height: 1.5;
}

.vw-modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid var(--vw-border);
    background-color: var(--vw-bg-subtle);
}

.vw-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    font-size: 0.925rem;
    font-weight: 600;
    border-radius: var(--vw-radius-md);
    border: none;
    cursor: pointer;
    transition: var(--vw-transition);
}

/* ==========================================================================
   10. JAVASCRIPT OBFUSCATOR DEDICATED LAYOUT
   ========================================================================== */
.vw-obfuscator-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

.vw-options-panel {
    background-color: var(--vw-bg-card);
    border: 1px solid var(--vw-border);
    border-radius: var(--vw-radius-lg);
    box-shadow: var(--vw-shadow-md);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.vw-presets-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--vw-border);
}

.vw-preset-btn {
    padding: 6px 14px;
    font-size: 0.825rem;
    font-weight: 700;
    background-color: var(--vw-bg-subtle);
    border: 1px solid var(--vw-border);
    border-radius: var(--vw-radius-full);
    cursor: pointer;
    transition: var(--vw-transition);
}

.vw-preset-btn.active {
    background-color: var(--vw-primary);
    border-color: var(--vw-primary);
    color: #ffffff;
}

.vw-options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 6px;
}

.vw-option-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.vw-option-label {
    font-size: 0.825rem;
    font-weight: 700;
    color: var(--vw-text-secondary);
}

.vw-option-hint {
    font-size: 0.725rem;
    font-weight: 400;
    color: var(--vw-text-light);
}

.vw-option-group.full-width {
    grid-column: 1 / -1;
}

.vw-domain-lock-box {
    grid-column: 1 / -1;
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: var(--vw-radius-md);
    padding: 12px;
}

/* ==========================================================================
   11. EDITORIAL & SEO CONTENT SECTION
   ========================================================================== */
.vw-content-section {
    padding: 50px 0 60px;
    background-color: #ffffff;
    border-top: 1px solid var(--vw-border);
}

.vw-editorial {
    max-width: 960px;
    margin: 0 auto;
}

.vw-editorial h2 {
    font-size: 1.85rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--vw-text-primary);
    margin: 40px 0 16px;
}

.vw-editorial h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--vw-text-primary);
    margin: 28px 0 12px;
}

.vw-editorial p {
    font-size: 1.05rem;
    color: var(--vw-text-secondary);
    line-height: 1.8;
    margin-bottom: 20px;
}

.vw-editorial ul,
.vw-editorial ol {
    margin: 16px 0 24px 24px;
    color: var(--vw-text-secondary);
    font-size: 1.02rem;
    line-height: 1.8;
}

.vw-editorial li {
    margin-bottom: 8px;
}

.vw-editorial code {
    font-family: var(--vw-font-mono);
    font-size: 0.875em;
    background-color: var(--vw-bg-subtle);
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--vw-primary);
    border: 1px solid var(--vw-border);
}

/* Feature Boxes Grid */
.vw-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin: 32px 0;
}

.vw-feature-box {
    background-color: var(--vw-bg-body);
    border: 1px solid var(--vw-border);
    border-radius: var(--vw-radius-md);
    padding: 24px;
    transition: var(--vw-transition);
}

.vw-feature-box:hover {
    transform: translateY(-2px);
    box-shadow: var(--vw-shadow-md);
    border-color: rgba(79, 70, 229, 0.3);
}

.vw-feature-icon {
    font-size: 2rem;
    margin-bottom: 12px;
    display: block;
}

.vw-feature-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--vw-text-primary);
    margin-bottom: 8px;
}

.vw-feature-desc {
    font-size: 0.95rem;
    color: var(--vw-text-muted);
    line-height: 1.6;
    margin-bottom: 0 !important;
}

/* Comparison Table */
.vw-table-wrapper {
    overflow-x: auto;
    margin: 32px 0;
    border-radius: var(--vw-radius-md);
    border: 1px solid var(--vw-border);
    box-shadow: var(--vw-shadow-sm);
}

.vw-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    text-align: left;
    background-color: #ffffff;
}

.vw-table th {
    background-color: var(--vw-bg-subtle);
    color: var(--vw-text-primary);
    font-weight: 700;
    padding: 14px 18px;
    border-bottom: 1px solid var(--vw-border);
}

.vw-table td {
    padding: 14px 18px;
    border-bottom: 1px solid var(--vw-border);
    color: var(--vw-text-secondary);
}

.vw-table tr:last-child td {
    border-bottom: none;
}

.vw-table tr:hover td {
    background-color: rgba(79, 70, 229, 0.02);
}

/* FAQ Accordion */
.vw-faq-section {
    margin: 48px 0 36px;
}

.vw-faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.vw-faq-item {
    background-color: var(--vw-bg-body);
    border: 1px solid var(--vw-border);
    border-radius: var(--vw-radius-md);
    overflow: hidden;
    transition: var(--vw-transition);
}

.vw-faq-item.active {
    border-color: var(--vw-primary);
    box-shadow: var(--vw-shadow-sm);
}

.vw-faq-question {
    padding: 16px 20px;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--vw-text-primary);
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
}

.vw-faq-toggle {
    font-size: 1.35rem;
    color: var(--vw-primary);
    font-weight: 700;
    transition: transform 0.2s ease;
}

.vw-faq-item.active .vw-faq-toggle {
    transform: rotate(45deg);
}

.vw-faq-answer {
    padding: 0 20px 18px;
    font-size: 0.98rem;
    color: var(--vw-text-secondary);
    line-height: 1.7;
    display: none;
}

.vw-faq-item.active .vw-faq-answer {
    display: block;
}

/* Related Tools Directory */
.vw-related-section {
    margin-top: 48px;
    padding-top: 36px;
    border-top: 1px solid var(--vw-border);
}

.vw-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
    margin-top: 20px;
}

.vw-related-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background-color: var(--vw-bg-body);
    border: 1px solid var(--vw-border);
    border-radius: var(--vw-radius-md);
    color: var(--vw-text-primary);
    font-weight: 600;
    font-size: 0.925rem;
    text-decoration: none;
    transition: var(--vw-transition);
}

.vw-related-card:hover {
    border-color: var(--vw-primary);
    color: var(--vw-primary);
    transform: translateY(-2px);
    box-shadow: var(--vw-shadow-md);
}

/* ==========================================================================
   12. GOOGLE ADSENSE MONETIZATION & CORE WEB VITALS OPTIMIZATION
   ========================================================================== */
.vw-ad-wrapper {
    margin: 32px auto;
    text-align: center;
    position: relative;
    background-color: var(--vw-bg-card);
    border: 1px solid var(--vw-border);
    border-radius: var(--vw-radius-lg);
    padding: 12px 16px 16px;
    box-sizing: border-box;
    overflow: hidden;
    max-width: 100%;
    box-shadow: var(--vw-shadow-sm);
}

.vw-ad-label {
    display: none !important;
}

.vw-ad-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    overflow: hidden;
    max-width: 100%;
}

/* 300x250 Medium Rectangle (Top / Bottom / Post-Tool) */
.vw-ad-300x250 {
    max-width: 360px;
    min-height: 290px;
}

.vw-ad-300x250 .vw-ad-inner {
    min-height: 250px;
    width: 300px;
}

/* 300x600 Half-Page Skyscraper */
.vw-ad-300x600 {
    max-width: 360px;
    min-height: 640px;
}

.vw-ad-300x600 .vw-ad-inner {
    min-height: 600px;
    width: 300px;
}

/* In-Article Fluid Ad */
.vw-ad-in-article {
    max-width: 820px;
    min-height: 140px;
    margin: 36px auto;
    background-color: var(--vw-bg-body);
    border: 1px dashed var(--vw-border);
}

.vw-ad-in-article .vw-ad-inner {
    width: 100%;
    min-height: 100px;
}

/* Autorelaxed / Matched Content Grid */
.vw-ad-autorelaxed {
    max-width: 1000px;
    min-height: 240px;
    margin: 40px auto 24px;
    background-color: var(--vw-bg-card);
    border: 1px solid var(--vw-border);
}

.vw-ad-autorelaxed .vw-ad-inner {
    width: 100%;
    min-height: 200px;
}

.vw-ad-post-tool {
    margin: 24px auto 36px;
}

@media print {
    .vw-ad-wrapper,
    .adsbygoogle {
        display: none !important;
    }
}

/* ==========================================================================
   13. FOOTER
   ========================================================================== */
.vw-footer {
    background-color: #ffffff;
    border-top: 1px solid var(--vw-border);
    padding: 60px 0 24px;
    margin-top: auto;
}

.vw-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.vw-footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.vw-footer-brand-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--vw-text-primary);
}

.vw-footer-desc {
    font-size: 0.95rem;
    color: var(--vw-text-secondary);
    margin: 16px 0 20px;
    line-height: 1.7;
}

.vw-footer-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.vw-badge {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    background-color: var(--vw-bg-body);
    border: 1px solid var(--vw-border);
    border-radius: var(--vw-radius-full);
    color: var(--vw-text-muted);
}

.vw-footer-heading {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--vw-text-primary);
    margin-bottom: 18px;
}

.vw-footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.vw-footer-links a {
    color: var(--vw-text-secondary);
    font-size: 0.925rem;
    transition: var(--vw-transition);
}

.vw-footer-links a:hover {
    color: var(--vw-primary);
    transform: translateX(4px);
    display: inline-block;
}

.vw-disclaimer-card {
    background-color: var(--vw-bg-body);
    border: 1px solid var(--vw-border);
    border-radius: var(--vw-radius-md);
    padding: 16px 20px;
    font-size: 0.85rem;
    color: var(--vw-text-muted);
    line-height: 1.6;
    margin-bottom: 30px;
}

.vw-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 24px;
    border-top: 1px solid var(--vw-border);
    font-size: 0.875rem;
    color: var(--vw-text-muted);
    flex-wrap: wrap;
    gap: 12px;
}

.vw-back-to-top a {
    color: var(--vw-text-secondary);
    font-weight: 600;
}

.vw-back-to-top a:hover {
    color: var(--vw-primary);
}

/* ==========================================================================
   14. TOAST NOTIFICATION
   ========================================================================== */
.vw-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background-color: #0f172a;
    color: #ffffff;
    padding: 12px 22px;
    border-radius: var(--vw-radius-full);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    font-weight: 700;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 4000;
}

.vw-toast.show {
    opacity: 1;
    transform: translateY(0);
}

.vw-toast-icon {
    width: 22px;
    height: 22px;
    background-color: #10b981;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 800;
}

.vw-toast.error .vw-toast-icon {
    background-color: #ef4444;
}

/* ==========================================================================
   15. RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 1024px) {
    .vw-workspace {
        grid-template-columns: 1fr;
    }

    .vw-toolbar {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .vw-btn-group {
        flex-direction: row;
        width: auto;
    }

    .vw-settings-box {
        width: auto;
        flex-direction: row;
        align-items: center;
        flex-wrap: wrap;
    }

    .vw-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .vw-obfuscator-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 860px) {
    .vw-nav-links-wrapper {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background-color: #ffffff;
        border-bottom: 1px solid var(--vw-border);
        box-shadow: var(--vw-shadow-lg);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .vw-nav-links-wrapper.open {
        max-height: 80vh;
        overflow-y: auto;
    }

    .vw-nav-links {
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
        gap: 8px;
    }

    .vw-dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        padding-left: 14px;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
    }

    .vw-dropdown.active .vw-dropdown-menu {
        display: block;
    }

    .vw-hamburger {
        display: flex;
    }

    .vw-hero-title {
        font-size: 2.1rem;
    }

    .vw-footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .vw-hero-title {
        font-size: 1.75rem;
    }

    .vw-editor-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .vw-editor-actions {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .vw-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .vw-btn-group {
        width: 100%;
    }

    .vw-settings-box {
        width: 100%;
    }

    .vw-options-grid {
        grid-template-columns: 1fr;
    }
}
