/* SDC Mission Control - Accessible Soft Light Gray Theme */
[x-cloak] { display: none !important; }

:root {
    --bg-app: #f4f6fa;
    --bg-card: #ffffff;
    --border-card: #e2e8f0;
    --text-primary: #0f172a;
    --text-secondary: #334155;
}

body {
    background-color: var(--bg-app);
    color: var(--text-primary);
    font-size: 15px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Eye-Friendly Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #e2e8f0;
}
::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* High-Contrast Prose & Review Tables */
.prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.95rem;
}
.prose th, .prose td {
    border: 1px solid #cbd5e1;
    padding: 0.75rem 1rem;
    text-align: left;
}
.prose th {
    background-color: #f1f5f9;
    font-weight: 700;
    color: #0f172a;
}
.prose td {
    color: #1e293b;
    font-weight: 500;
}
.prose blockquote.wae-source-quote {
    border-left: 4px solid #0284c7;
    padding: 1rem 1.25rem;
    background: #f0f9ff;
    margin: 1.5rem 0;
    font-style: italic;
    color: #0369a1;
    font-weight: 600;
    border-radius: 0 0.5rem 0.5rem 0;
}

/* Fresh Content rich-paste editor: Tailwind's preflight resets heading
   font-size/weight to `inherit` and strips list markers/indentation site-wide,
   so pasted <h2>/<ul>/<blockquote> structure survives in the DOM (and reaches
   the backend correctly) but renders visually identical to plain paragraphs.
   Restore just enough visual hierarchy that what's pasted looks like what
   was pasted. */
#fresh-content-editor h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 1rem 0 0.5rem;
    color: #0f172a;
}
#fresh-content-editor h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0.9rem 0 0.4rem;
    color: #0f172a;
}
#fresh-content-editor h4 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0.8rem 0 0.4rem;
    color: #0f172a;
}
#fresh-content-editor p {
    margin: 0.5rem 0;
}
#fresh-content-editor ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin: 0.5rem 0;
}
#fresh-content-editor ol {
    list-style: decimal;
    padding-left: 1.5rem;
    margin: 0.5rem 0;
}
#fresh-content-editor li {
    margin: 0.15rem 0;
}
#fresh-content-editor blockquote {
    border-left: 3px solid #94a3b8;
    padding-left: 0.9rem;
    margin: 0.6rem 0;
    color: #475569;
    font-style: italic;
}
#fresh-content-editor a {
    color: #0284c7;
    text-decoration: underline;
}
#fresh-content-editor strong {
    font-weight: 700;
}

/* Gutenberg Code & Preformatted Block Styling */
.wp-block-code, pre.wp-block-code, .wp-block-preformatted, pre.wp-block-preformatted {
    background-color: #0f172a !important;
    color: #f8fafc !important;
    padding: 1.25rem 1.5rem !important;
    border-radius: 0.75rem !important;
    overflow-x: auto !important;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace !important;
    font-size: 0.875rem !important;
    line-height: 1.65 !important;
    border: 1px solid #334155 !important;
    margin: 1.5rem 0 !important;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1) !important;
}

.wp-block-code code, pre.wp-block-code code, .wp-block-preformatted code {
    color: #38bdf8 !important;
    font-family: inherit !important;
    font-size: inherit !important;
    background: transparent !important;
    padding: 0 !important;
    white-space: pre !important;
}

/* IDE Code Editor & Rules Matrix Studio Look */
.ide-editor-container {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 0.75rem;
    position: relative;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.ide-gutter {
    background: #e2e8f0;
    color: #64748b;
    user-select: none;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.75rem 0.5rem;
    text-align: right;
    border-right: 1px solid #cbd5e1;
}

.ide-textarea {
    background: transparent;
    color: #0f172a;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    font-weight: 600;
    resize: vertical;
    border: none;
    outline: none;
}

/* Zoom Transition Container */
.zoom-scalable-container {
    transform-origin: top center;
    transition: zoom 0.15s ease, transform 0.15s ease;
}

/* Elevated Soft Light Gray Cards */
.soft-card {
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    box-shadow: 0 1px 3px 0 rgba(15, 23, 42, 0.06), 0 1px 2px -1px rgba(15, 23, 42, 0.06);
}

.soft-card-hover:hover {
    border-color: #94a3b8;
    box-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.06);
}

/* WordPress Preview Rich Typography & High-Contrast Legibility */
.wp-preview-content {
    color: #0f172a;
    line-height: 1.85;
}
.wp-preview-content.high-contrast {
    color: #000000 !important;
}
.wp-preview-content h1, .wp-preview-content h2, .wp-preview-content h3, .wp-preview-content h4 {
    color: #020617;
    font-weight: 800;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    line-height: 1.35;
}
.wp-preview-content h2 {
    font-size: 1.6rem;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 0.5rem;
}
.wp-preview-content h3 {
    font-size: 1.3rem;
}
.wp-preview-content p {
    margin-bottom: 1.35rem;
}
.wp-preview-content ul, .wp-preview-content ol {
    margin: 1rem 0 1.5rem 1.75rem;
    list-style-type: disc;
}
.wp-preview-content li {
    margin-bottom: 0.5rem;
}
.wp-preview-content a {
    color: #0284c7;
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 600;
}
.wp-preview-content blockquote {
    border-left: 4px solid #0284c7;
    background: #f8fafc;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    border-radius: 0 0.5rem 0.5rem 0;
}
.wp-preview-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}
.wp-preview-content th, .wp-preview-content td {
    border: 1px solid #cbd5e1;
    padding: 0.75rem 1rem;
}
.wp-preview-content th {
    background: #f1f5f9;
    font-weight: 700;
}

/* Word-level and Block-level Semantic Diff Styling */
ins.diff-add {
    background-color: #d1fae5;
    color: #064e3b;
    font-weight: 700;
    text-decoration: none;
    border-radius: 4px;
    padding: 2px 4px;
    border: 1px solid #6ee7b7;
    display: inline;
}

del.diff-del {
    background-color: #ffe4e6;
    color: #881337;
    text-decoration: line-through;
    opacity: 0.75;
    border-radius: 4px;
    padding: 2px 4px;
    border: 1px solid #fca5a5;
    display: inline;
}

/* Fresh Content Unresolved Image Slot Styling (Q3) */
.fresh-unresolved-slot {
    margin: 1.25rem 0;
    user-select: none;
}
.fresh-slot-card {
    background: #fffbeb;
    border: 2px dashed #f59e0b;
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    color: #78350f;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.fresh-slot-badge {
    display: inline-block;
    background: #fde68a;
    color: #92400e;
    font-size: 0.6875rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.2rem 0.5rem;
    border-radius: 0.375rem;
    margin-right: 0.5rem;
    font-family: ui-monospace, monospace;
}
.fresh-slot-name {
    font-weight: 700;
    font-size: 0.8125rem;
    color: #451a03;
    font-family: ui-monospace, monospace;
}
.fresh-slot-hint {
    margin-top: 0.4rem;
    font-size: 0.75rem;
    line-height: 1.4;
    color: #92400e;
}


/* ==========================================================================
   Vora DexignLab + WorldNIC Scoped Design System (sdc-vora-*)
   ========================================================================== */

:root {
    --sdc-vora-primary: #4f46e5;
    --sdc-vora-primary-hover: #4338ca;
    --sdc-vora-primary-light: rgba(79, 70, 229, 0.08);
    --sdc-vora-cyan: #06b6d4;
    --sdc-vora-cyan-light: rgba(6, 182, 212, 0.08);
    --sdc-vora-success: #10b981;
    --sdc-vora-success-light: rgba(16, 185, 129, 0.08);
    --sdc-vora-warning: #f59e0b;
    --sdc-vora-warning-light: rgba(245, 158, 11, 0.08);
    --sdc-vora-danger: #ef4444;
    --sdc-vora-danger-light: rgba(239, 68, 68, 0.08);
    --sdc-vora-app-bg: #f8fafc;
    --sdc-vora-card-bg: #ffffff;
    --sdc-vora-card-border: #e2e8f0;
    --sdc-vora-text: #0f172a;
    --sdc-vora-muted: #64748b;
    --sdc-vora-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.04), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
    --sdc-vora-radius: 1rem;
}

/* Vora Card Containers */
.sdc-vora-card {
    background: var(--sdc-vora-card-bg);
    border: 1px solid var(--sdc-vora-card-border);
    border-radius: var(--sdc-vora-radius);
    box-shadow: var(--sdc-vora-shadow);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.sdc-vora-card:hover {
    box-shadow: 0 14px 28px -5px rgba(15, 23, 42, 0.07), 0 10px 10px -5px rgba(15, 23, 42, 0.04);
}

/* Vora Stat / KPI Cards */
.sdc-vora-kpi-card {
    background: #ffffff;
    border: 1px solid var(--sdc-vora-card-border);
    border-radius: 1rem;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
    position: relative;
    overflow: hidden;
}
.sdc-vora-kpi-icon {
    width: 48px;
    height: 48px;
    border-radius: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Vora Accordions (Inspired by vora.dexignlab.com/xhtml/ui-accordion.html) */
.sdc-vora-accordion {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.sdc-vora-accordion-item {
    border: 1px solid var(--sdc-vora-card-border);
    border-radius: 0.875rem;
    background: #ffffff;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.sdc-vora-accordion-item.is-open {
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}
.sdc-vora-accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--sdc-vora-text);
    background: #ffffff;
    user-select: none;
    transition: background 0.15s ease;
}
.sdc-vora-accordion-header:hover {
    background: #f8fafc;
}
.sdc-vora-accordion-item.is-open .sdc-vora-accordion-header {
    background: #f8fafc;
    border-bottom: 1px solid var(--sdc-vora-card-border);
}
.sdc-vora-accordion-indicator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 9999px;
    background: #f1f5f9;
    color: #64748b;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), background 0.2s ease, color 0.2s ease;
}
.sdc-vora-accordion-item.is-open .sdc-vora-accordion-indicator {
    transform: rotate(180deg);
    background: var(--sdc-vora-primary-light);
    color: var(--sdc-vora-primary);
}
.sdc-vora-accordion-body {
    padding: 1.25rem;
    color: #334155;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Vora Custom Tabs (custom-tab-1) */
.sdc-vora-tabs {
    display: flex;
    align-items: center;
    border-bottom: 2px solid #e2e8f0;
    gap: 0.25rem;
    overflow-x: auto;
}
.sdc-vora-tab {
    position: relative;
    padding: 0.75rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--sdc-vora-muted);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}
.sdc-vora-tab:hover {
    color: var(--sdc-vora-text);
}
.sdc-vora-tab.is-active {
    color: var(--sdc-vora-primary);
    border-bottom-color: var(--sdc-vora-primary);
    font-weight: 700;
}

/* Vora Buttons & Sizings (ui-button.html) */
.sdc-vora-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.625rem 1.25rem;
    border-radius: 0.625rem;
    transition: all 0.15s ease;
    cursor: pointer;
    border: 1px solid transparent;
}
.sdc-vora-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
}
.sdc-vora-btn-primary {
    background: var(--sdc-vora-primary);
    color: #ffffff;
}
.sdc-vora-btn-primary:hover {
    background: var(--sdc-vora-primary-hover);
    color: #ffffff;
}
.sdc-vora-btn-primary-light {
    background: var(--sdc-vora-primary-light);
    color: var(--sdc-vora-primary);
}
.sdc-vora-btn-primary-light:hover {
    background: var(--sdc-vora-primary);
    color: #ffffff;
}
.sdc-vora-btn-success-light {
    background: var(--sdc-vora-success-light);
    color: var(--sdc-vora-success);
}
.sdc-vora-btn-success-light:hover {
    background: var(--sdc-vora-success);
    color: #ffffff;
}
.sdc-vora-btn-warning-light {
    background: var(--sdc-vora-warning-light);
    color: #b45309;
}
.sdc-vora-btn-warning-light:hover {
    background: var(--sdc-vora-warning);
    color: #ffffff;
}
.sdc-vora-btn-danger-light {
    background: var(--sdc-vora-danger-light);
    color: var(--sdc-vora-danger);
}
.sdc-vora-btn-danger-light:hover {
    background: var(--sdc-vora-danger);
    color: #ffffff;
}
.sdc-vora-btn-xs-sharp {
    width: 32px;
    height: 32px;
    padding: 0;
    border-radius: 0.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Vora Badges */
.sdc-vora-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.625rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.25;
}
.sdc-vora-badge-primary-light {
    background: var(--sdc-vora-primary-light);
    color: var(--sdc-vora-primary);
}
.sdc-vora-badge-success-light {
    background: var(--sdc-vora-success-light);
    color: var(--sdc-vora-success);
}
.sdc-vora-badge-warning-light {
    background: var(--sdc-vora-warning-light);
    color: #b45309;
}
.sdc-vora-badge-danger-light {
    background: var(--sdc-vora-danger-light);
    color: var(--sdc-vora-danger);
}

/* WorldNIC 8/4 Content Studio Layout */
.sdc-studio-canvas {
    background: #ffffff;
    border: 1px solid var(--sdc-vora-card-border);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.03);
}
.sdc-studio-rail {
    position: sticky;
    top: 5rem;
    max-height: calc(100vh - 6rem);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.sdc-studio-rail::-webkit-scrollbar {
    width: 6px;
}
.sdc-studio-rail::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

/* Modern Centered Dialog (Preserved for Operational Dialogs) */
.sdc-vora-dialog-overlay {
    position: fixed;
    inset: 0;
    z-index: 60;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.sdc-vora-dialog {
    background: #ffffff;
    border: 1px solid var(--sdc-vora-card-border);
    border-radius: 1.25rem;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
    width: 100%;
    max-width: 32rem;
    overflow: hidden;
    animation: sdcDialogIn 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes sdcDialogIn {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: scale(1); }
}


/* --- Vora DexignLab Core Components (ui-button.html, ui-tab.html, ui-accordion.html) --- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.625rem 1.25rem;
    border-radius: 0.75rem;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    border: 1px solid transparent;
    user-select: none;
    text-decoration: none;
}
.btn:hover {
    transform: translateY(-1px);
}
.btn:active {
    transform: translateY(0);
}
.btn-primary {
    background-color: #4f46e5;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.25);
}
.btn-primary:hover {
    background-color: #4338ca;
    box-shadow: 0 6px 18px rgba(79, 70, 229, 0.35);
}
.btn-primary-light {
    background-color: rgba(79, 70, 229, 0.08);
    color: #4f46e5 !important;
    border-color: transparent;
}
.btn-primary-light:hover {
    background-color: #4f46e5;
    color: #ffffff !important;
}
.btn-success-light {
    background-color: rgba(16, 185, 129, 0.08);
    color: #10b981 !important;
}
.btn-success-light:hover {
    background-color: #10b981;
    color: #ffffff !important;
}
.btn-warning-light {
    background-color: rgba(245, 158, 11, 0.08);
    color: #d97706 !important;
}
.btn-warning-light:hover {
    background-color: #f59e0b;
    color: #ffffff !important;
}
.btn-danger-light {
    background-color: rgba(239, 68, 68, 0.08);
    color: #ef4444 !important;
}
.btn-danger-light:hover {
    background-color: #ef4444;
    color: #ffffff !important;
}
.btn-secondary-light {
    background-color: #ffffff;
    color: #334155 !important;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.btn-secondary-light:hover {
    background-color: #f8fafc;
    border-color: #cbd5e1;
    color: #0f172a !important;
}
.btn-success {
    background-color: #10b981;
    color: #ffffff !important;
    border-color: #10b981;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.25);
}
.btn-success:hover {
    background-color: #059669;
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.35);
}
.btn-danger {
    background-color: #ef4444;
    color: #ffffff !important;
    border-color: #ef4444;
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.25);
}
.btn-danger:hover {
    background-color: #dc2626;
    box-shadow: 0 6px 18px rgba(239, 68, 68, 0.35);
}
.btn-warning {
    background-color: #f59e0b;
    color: #ffffff !important;
    border-color: #f59e0b;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.25);
}
.btn-warning:hover {
    background-color: #d97706;
    box-shadow: 0 6px 18px rgba(245, 158, 11, 0.35);
}
.btn-sm {
    padding: 0.4rem 0.85rem;
    font-size: 0.8125rem;
    border-radius: 0.625rem;
}
.btn-xs {
    padding: 0.25rem 0.6rem;
    font-size: 0.75rem;
    border-radius: 0.5rem;
}
.btn-sharp {
    width: 38px;
    height: 38px;
    padding: 0;
    border-radius: 0.625rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.btn-sharp.btn-xs {
    width: 30px;
    height: 30px;
    padding: 0;
    border-radius: 0.5rem;
}
.btn-rounded {
    border-radius: 9999px;
}

/* Vora Custom Tabs (custom-tab-1 & ui-tab.html) */
.custom-tab-1 {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 0;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.custom-tab-1::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}
.custom-tab-1 .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.7rem 0.95rem;
    font-weight: 700;
    font-size: 0.8125rem;
    color: #64748b;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    border-radius: 0.625rem 0.625rem 0 0;
    transition: all 0.2s ease;
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
    position: relative;
}
.custom-tab-1 .nav-link:hover {
    color: #0f172a;
    background: rgba(79, 70, 229, 0.03);
}
.custom-tab-1 .nav-link.active {
    color: #4f46e5;
    border-bottom: 2px solid #4f46e5;
    background: rgba(79, 70, 229, 0.04);
}

/* Vora Nav Pills (ui-tab.html Nav Pills) */
.nav-pills {
    display: inline-flex;
    align-items: center;
    background: #f1f5f9;
    padding: 0.25rem;
    border-radius: 0.875rem;
    gap: 0.25rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.nav-pills::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}
.nav-pills .nav-link,
.nav-pills > button {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.95rem;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #64748b;
    border-radius: 0.625rem;
    border: none;
    background: transparent;
    transition: all 0.2s ease;
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
}
.nav-pills .nav-link:hover,
.nav-pills > button:hover {
    color: #0f172a;
}
.nav-pills .nav-link.active,
.nav-pills > button.active {
    background: #ffffff;
    color: #4f46e5;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

/* Vora Nav Pills Light */
.nav-pills-light {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}
.nav-pills-light .nav-link,
.nav-pills-light > button {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.85rem;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #64748b;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 0.625rem;
    transition: all 0.2s ease;
    cursor: pointer;
}
.nav-pills-light .nav-link:hover,
.nav-pills-light > button:hover {
    color: #0f172a;
    background: #f8fafc;
    border-color: #cbd5e1;
}
.nav-pills-light .nav-link.active,
.nav-pills-light > button.active {
    background: rgba(79, 70, 229, 0.1);
    color: #4f46e5;
    border-color: rgba(79, 70, 229, 0.3);
}

/* Vora Card Elevation */
.vora-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 1.25rem;
    box-shadow: 0 10px 30px 0 rgba(0, 0, 0, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.vora-card:hover {
    box-shadow: 0 14px 35px 0 rgba(0, 0, 0, 0.07);
}
.vora-card-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.vora-card-body {
    padding: 1.5rem;
}

/* Vora Accordions (ui-accordion.html) */
.accordion-rounded-stylish .accordion-item {
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    margin-bottom: 0.75rem;
    background: #ffffff;
    overflow: hidden;
    transition: all 0.2s ease;
}
.accordion-rounded-stylish .accordion-item.open {
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}
.accordion-rounded-stylish .accordion-header {
    padding: 1.1rem 1.4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 700;
    font-size: 0.9375rem;
    color: #0f172a;
    background: #ffffff;
    cursor: pointer;
    user-select: none;
    transition: background 0.15s ease;
}
.accordion-rounded-stylish .accordion-header:hover {
    background: #f8fafc;
}
.accordion-rounded-stylish .accordion-item.open .accordion-header {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    color: #4f46e5;
}
.accordion-indicator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 9999px;
    background: #f1f5f9;
    color: #64748b;
    transition: transform 0.25s ease, background 0.2s ease, color 0.2s ease;
}
.accordion-item.open .accordion-indicator {
    transform: rotate(180deg);
    background: rgba(79, 70, 229, 0.1);
    color: #4f46e5;
}
.accordion-body {
    padding: 1.4rem;
    color: #334155;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Vora Badges (ui-badge.html) */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.65rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.25;
}
.badge-pill {
    border-radius: 9999px;
}
.badge-primary {
    background-color: #4f46e5;
    color: #ffffff;
}
.badge-primary-light {
    background: rgba(79, 70, 229, 0.08);
    color: #4f46e5;
}
.badge-success {
    background-color: #10b981;
    color: #ffffff;
}
.badge-success-light {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}
.badge-warning {
    background-color: #f59e0b;
    color: #ffffff;
}
.badge-warning-light {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
}
.badge-danger {
    background-color: #ef4444;
    color: #ffffff;
}
.badge-danger-light {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}
.badge-secondary-light {
    background: #f1f5f9;
    color: #475569;
}

/* Vora Modern Toast Notification */
.vora-toast {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 1.25rem;
    box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.02);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}
.vora-toast::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
}
.vora-toast-success::before { background-color: #10b981; }
.vora-toast-error::before { background-color: #ef4444; }
.vora-toast-warning::before { background-color: #f59e0b; }
.vora-toast-info::before { background-color: #4f46e5; }

.vora-toast-icon {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.vora-toast-success .vora-toast-icon { background: rgba(16, 185, 129, 0.12); color: #059669; }
.vora-toast-error .vora-toast-icon { background: rgba(239, 68, 68, 0.12); color: #dc2626; }
.vora-toast-warning .vora-toast-icon { background: rgba(245, 158, 11, 0.12); color: #d97706; }
.vora-toast-info .vora-toast-icon { background: rgba(79, 70, 229, 0.12); color: #4f46e5; }

/* Vora Modern Modal (ui-modal.html) */
.vora-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    padding: 1rem;
}
.vora-modal-dialog {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 1.5rem;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.15);
    width: 100%;
    overflow: hidden;
    position: relative;
    animation: voraModalEnter 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes voraModalEnter {
    from { opacity: 0; transform: scale(0.96) translateY(8px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
.vora-modal-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.vora-modal-body {
    padding: 1.5rem;
    max-height: calc(85vh - 120px);
    overflow-y: auto;
}
.vora-modal-footer {
    padding: 1.15rem 1.5rem;
    border-top: 1px solid #f1f5f9;
    background: #fafbfc;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
}

/* Multi-site: while another site is selected, single-site modules stay hidden (see legacyBlocked() in app.js). */
.site-legacy-blocked > section { display: none !important; }
