/* ── Form Hub — Exceptions First Design System ── */

/* ── Theme Definitions (Dark & Light) ── */
:root,
[data-oef-theme="dark"],
body.oef-theme-dark {
    --oef-bg:          #0c0e14;
    --oef-bg-card:     #141722;
    --oef-bg-card-alt: #1a1e2d;
    --oef-bg-hover:    #1f2436;
    --oef-border:      #23283c;
    --oef-border-light:#2d334d;
    --oef-text:        #f1f5f9;
    --oef-text-muted:  #94a3b8;
    --oef-text-dim:    #64748b;
    --oef-red:         #ef4444;
    --oef-red-bg:      rgba(239, 68, 68, 0.12);
    --oef-orange:      #f97316;
    --oef-orange-bg:   rgba(249, 115, 22, 0.12);
    --oef-green:       #22c97a;
    --oef-accent:      #4f7cff;
    --oef-radius:      8px;
    --oef-radius-sm:   5px;
    --oef-font:        -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --oef-mono:        ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

[data-oef-theme="light"],
body.oef-theme-light {
    --oef-bg:          #f8fafc;
    --oef-bg-card:     #ffffff;
    --oef-bg-card-alt: #f1f5f9;
    --oef-bg-hover:    #f1f5f9;
    --oef-border:      #e2e8f0;
    --oef-border-light:#cbd5e1;
    --oef-text:        #0f172a;
    --oef-text-muted:  #475569;
    --oef-text-dim:    #94a3b8;
    --oef-red:         #dc2626;
    --oef-red-bg:      rgba(220, 38, 38, 0.08);
    --oef-orange:      #ea580c;
    --oef-orange-bg:   rgba(234, 88, 12, 0.08);
    --oef-green:       #16a34a;
    --oef-accent:      #3b82f6;
    --oef-radius:      8px;
    --oef-radius-sm:   5px;
    --oef-font:        -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --oef-mono:        ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

[data-oef-theme="light"] #wpbody-content,
body.oef-theme-light #wpbody-content {
    background: #f8fafc !important;
}

[data-oef-theme="light"] .oef-btn-open {
    background: #0f172a !important;
    color: #ffffff !important;
}

[data-oef-theme="light"] .oef-btn-open:hover {
    background: #1e293b !important;
}

[data-oef-theme="light"] .oef-brand-title {
    color: #0f172a !important;
}

[data-oef-theme="light"] .oef-search-wrap input {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
}

[data-oef-theme="light"] .oef-search-wrap input:focus {
    border-color: #3b82f6 !important;
    background: #ffffff !important;
}

[data-oef-theme="light"] .oef-tag {
    background: #f1f5f9;
    color: #334155;
    border-color: #e2e8f0;
}

[data-oef-theme="light"] .oef-tag-red {
    background: rgba(220, 38, 38, 0.08);
    color: #dc2626;
    border-color: rgba(220, 38, 38, 0.2);
}

[data-oef-theme="light"] .oef-tag-orange {
    background: rgba(234, 88, 12, 0.08);
    color: #ea580c;
    border-color: rgba(234, 88, 12, 0.2);
}

[data-oef-theme="light"] .oef-row-client {
    color: #0f172a !important;
}

[data-oef-theme="light"] .oef-row-sentence {
    color: #334155 !important;
}

[data-oef-theme="light"] .oef-row-telemetry-bay {
    background: #f1f5f9 !important;
    border-color: #e2e8f0 !important;
}

[data-oef-theme="light"] .oef-telemetry-title {
    color: #64748b !important;
}

[data-oef-theme="light"] .oef-problem-row {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
}

[data-oef-theme="light"] .oef-problem-row:hover {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
}

[data-oef-theme="light"] .oef-row-client {
    color: #0f172a !important;
}

[data-oef-theme="light"] .oef-row-sentence {
    color: #334155 !important;
}

[data-oef-theme="light"] .oef-metric-chip {
    background: #f1f5f9 !important;
    border-color: #e2e8f0 !important;
    color: #475569 !important;
}

[data-oef-theme="light"] .oef-metric-chip strong {
    color: #0f172a !important;
}

[data-oef-theme="light"] .oef-row-impact-box {
    background: #fef2f2 !important;
    border-left-color: #ef4444 !important;
    color: #991b1b !important;
}

[data-oef-theme="light"] .oef-row-action-box {
    background: #f0f9ff !important;
    border-left-color: #0284c7 !important;
    color: #075985 !important;
}

[data-oef-theme="light"] .oef-client-filter-bar {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
}

[data-oef-theme="light"] .oef-triage-pill,
[data-oef-theme="light"] .oef-client-chip {
    background: #f8fafc !important;
    border-color: #e2e8f0 !important;
    color: #475569 !important;
}

[data-oef-theme="light"] .oef-triage-pill:hover,
[data-oef-theme="light"] .oef-client-chip:hover {
    background: #e2e8f0 !important;
    color: #0f172a !important;
}

[data-oef-theme="light"] .oef-triage-pill.active {
    background: #0f172a !important;
    border-color: #0f172a !important;
    color: #ffffff !important;
}

[data-oef-theme="light"] .oef-triage-pill.active .oef-pill-count {
    background: #ffffff !important;
    color: #0f172a !important;
}

[data-oef-theme="light"] .oef-roster-stats-row {
    background: #f8fafc !important;
    border-color: #e2e8f0 !important;
}

[data-oef-theme="light"] .oef-roster-stat-val {
    color: #0f172a !important;
}

[data-oef-theme="light"] .oef-roster-stat-lbl {
    color: #64748b !important;
}

[data-oef-theme="light"] .oef-roster-name {
    color: #0f172a !important;
}

[data-oef-theme="light"] .oef-funnel-node-title {
    color: #0f172a !important;
}

[data-oef-theme="light"] .oef-funnel-node {
    background: #f8fafc;
    border-color: #e2e8f0;
}

[data-oef-theme="light"] .oef-funnel-node-sub {
    color: #0f172a !important;
}

[data-oef-theme="light"] .oef-funnel-node.worst-drop {
    background: #fef2f2;
    border-color: #fca5a5;
}

[data-oef-theme="light"] .oef-funnel-node.success-step {
    background: #ecfdf5;
    border-color: #a7f3d0;
}

[data-oef-theme="light"] .oef-funnel-node.success-step .oef-funnel-node-drop {
    color: #059669;
}

[data-oef-theme="light"] .oef-detail-issue-box {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0;
}

[data-oef-theme="light"] .oef-detail-form-name,
[data-oef-theme="light"] .oef-detail-section-title,
[data-oef-theme="light"] .oef-metric-value,
[data-oef-theme="light"] .oef-page-title,
[data-oef-theme="light"] .oef-empty-headline {
    color: #0f172a !important;
}

[data-oef-theme="light"] .oef-checklist-item {
    color: #1e293b !important;
}

[data-oef-theme="light"] .oef-verdict-sentence {
    color: #475569 !important;
    border-top-color: #e2e8f0 !important;
}

[data-oef-theme="light"] .oef-device-track {
    background: #e2e8f0 !important;
}

[data-oef-theme="light"] .oef-device-val {
    color: #0f172a !important;
}

[data-oef-theme="light"] .oef-drawer-tab.active {
    color: #0f172a !important;
}

[data-oef-theme="light"] .oef-drawer-tab.active::after {
    background: #0f172a !important;
}

[data-oef-theme="light"] .oef-site-row-name {
    color: #0f172a !important;
}

[data-oef-theme="light"] .oef-site-row-item,
[data-oef-theme="light"] .oef-teammate-row {
    background: #f8fafc !important;
    border-color: #e2e8f0 !important;
}

[data-oef-theme="light"] .oef-modal-header {
    background: #f1f5f9 !important;
    border-bottom-color: #e2e8f0 !important;
    color: #0f172a !important;
}

[data-oef-theme="light"] .oef-form-group input,
[data-oef-theme="light"] .oef-form-group select,
[data-oef-theme="light"] .oef-form-group textarea {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
}

[data-oef-theme="light"] .oef-form-group select {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") !important;
}

[data-oef-theme="light"] .oef-toast {
    background: #ffffff !important;
    color: #0f172a !important;
    border-color: #e2e8f0 !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12) !important;
}

/* Global Container & Shortcode Viewport */
.oef-frontend-dashboard-wrap {
    width: 100%;
    max-width: 100%;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background: var(--oef-bg, #0c0e14);
}

.oef-hub-wrap {
    width: 100%;
    max-width: 100%;
    min-height: 100vh;
    margin: 0 auto;
    padding: 24px 32px 80px;
    font-family: var(--oef-font);
    color: var(--oef-text);
    background: var(--oef-bg, #0c0e14);
    box-sizing: border-box;
}

.oef-hub-wrap.oef-auth-wrap {
    min-height: auto;
    max-width: 440px;
    margin: 0 auto;
    padding: 0 15px;
    background: transparent;
}

.oef-hub-wrap * {
    box-sizing: border-box;
}

/* ── 2. Top Bar (Every Page) ── */
.oef-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 24px;
    margin-bottom: 28px;
    border-bottom: 1px solid var(--oef-border);
}

.oef-top-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.oef-top-sidebar-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--oef-border);
    color: var(--oef-text-dim);
    cursor: pointer;
    transition: all 0.15s ease;
    padding: 0;
}

.oef-top-sidebar-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.2);
}

.oef-top-sidebar-toggle .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    line-height: 16px;
}

.oef-brand-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #fff;
    cursor: pointer;
}

.oef-brand-mark {
    width: 28px;
    height: 28px;
    background-image: url('../../assets/icon.svg');
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    border-radius: 7px;
    display: inline-block;
    position: relative;
    flex-shrink: 0;
}

.oef-brand-mark::after {
    display: none;
}

.oef-brand-logo {
    max-height: 28px;
    max-width: 120px;
    object-fit: contain;
}

.oef-logo-dropzone {
    transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    user-select: none;
}
.oef-logo-dropzone:hover {
    border-color: var(--oef-accent, #4f7cff) !important;
    background: rgba(79, 124, 255, 0.08) !important;
}
.oef-logo-dropzone.oef-drag-active {
    border-color: var(--oef-accent, #4f7cff) !important;
    border-style: dashed !important;
    background: rgba(79, 124, 255, 0.18) !important;
    transform: scale(1.06);
    box-shadow: 0 0 12px rgba(79, 124, 255, 0.35);
}

.oef-brand-title {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #ffffff;
}

/* Sub Navigation Strip */
/* ── Pro SaaS Sub-Navigation Strip ── */
.oef-sub-nav {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--oef-border);
}

.oef-sub-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

/* Pro Segmented Control Track */
.oef-nav-pills {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--oef-bg-card, #121624);
    border: 1px solid var(--oef-border, #1f2538);
    padding: 5px;
    border-radius: 12px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.25);
    overflow-x: auto;
    max-width: 100%;
}

.oef-nav-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: var(--oef-text-dim, #94a3b8);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    white-space: nowrap;
    user-select: none;
}

.oef-nav-icon {
    font-size: 16px;
    width: 16px;
    height: 16px;
    line-height: 16px;
    opacity: 0.65;
    transition: all 0.18s ease;
}

.oef-nav-pill:hover {
    color: var(--oef-text, #ffffff);
    background: rgba(255, 255, 255, 0.05);
}

.oef-nav-pill:hover .oef-nav-icon {
    opacity: 1;
}

/* Elevated Active Tab */
.oef-nav-pill.active {
    background: var(--oef-bg-card-alt, #1e2437);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.oef-nav-pill.active .oef-nav-icon {
    opacity: 1;
    color: #38bdf8;
}

[data-oef-theme="light"] .oef-nav-pill.active {
    background: #ffffff;
    color: #0f172a;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.04);
}

[data-oef-theme="light"] .oef-nav-pill.active .oef-nav-icon {
    color: #2563eb;
}

/* Pro Counter Badges */
.oef-pill-count-red {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    padding-bottom: 1px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
    flex-shrink: 0;
    vertical-align: middle;
    background: #ef4444;
    color: #ffffff;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.45);
}

.oef-pill-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    padding-bottom: 1px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
    flex-shrink: 0;
    vertical-align: middle;
    background: rgba(255, 255, 255, 0.08);
    color: var(--oef-text-dim, #94a3b8);
}

[data-oef-theme="light"] .oef-pill-count {
    background: #e2e8f0;
    color: #475569;
}

/* Live Telemetry Status Badge */
.oef-sub-nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.oef-live-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 20px;
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.25);
    font-size: 12px;
    font-weight: 600;
    color: #86efac;
    letter-spacing: 0.01em;
}

[data-oef-theme="light"] .oef-live-status-badge {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.35);
    color: #15803d;
}

.oef-pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    position: relative;
    display: inline-block;
    box-shadow: 0 0 6px #22c55e;
}

.oef-pulse-dot::after {
    content: "";
    position: absolute;
    top: -5px;
    left: -5px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid #22c55e;
    animation: oefRadarPulse 2s infinite ease-out;
}

@keyframes oefRadarPulse {
    0% {
        transform: scale(0.5);
        opacity: 1;
    }
    100% {
        transform: scale(1.8);
        opacity: 0;
    }
}

.oef-icon-btn {
    padding: 7px 9px !important;
}

.oef-grade-good {
    background: rgba(34, 201, 122, 0.15);
    color: #22c97a;
    font-weight: 700;
}

.oef-grade-warn {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    font-weight: 700;
}

.oef-grade-bad {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    font-weight: 700;
}

/* Center Search */
.oef-top-center {
    flex: 1;
    max-width: 440px;
}

.oef-search-wrap {
    position: relative;
    width: 100%;
}

.oef-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--oef-text-dim);
    font-size: 16px;
    width: 16px;
    height: 16px;
    pointer-events: none;
}

.oef-search-wrap input {
    width: 100%;
    padding: 8px 32px 8px 36px;
    background: var(--oef-bg-card);
    border: 1px solid var(--oef-border);
    border-radius: 20px;
    color: var(--oef-text);
    font-size: 13px;
    outline: none;
    transition: all 0.2s ease;
}

.oef-search-wrap input:focus {
    border-color: var(--oef-border-light);
    background: var(--oef-bg-card-alt);
    box-shadow: 0 0 0 2px rgba(255,255,255,0.05);
}

.oef-search-wrap input::placeholder {
    color: var(--oef-text-dim);
}

#oef-search-clear {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--oef-text-dim);
    font-size: 16px;
    cursor: pointer;
    line-height: 1;
    padding: 2px;
}

/* Right Actions */
.oef-top-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.oef-top-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    background: var(--oef-bg-card);
    border: 1px solid var(--oef-border);
    border-radius: var(--oef-radius-sm);
    color: var(--oef-text);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}

.oef-top-btn:hover {
    background: var(--oef-bg-hover);
    border-color: var(--oef-border-light);
}

.oef-top-btn .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    line-height: 16px;
    color: var(--oef-text-muted);
}

/* ==========================================================================
   Cool Celestial Light / Dark Mode Toggle
   ========================================================================== */
.oef-theme-toggle-cool {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    outline: none;
    border-radius: 999px;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    transition: transform 0.15s ease;
}

.oef-theme-toggle-cool:active {
    transform: scale(0.95);
}

.oef-theme-toggle-cool:focus-visible {
    box-shadow: 0 0 0 2px var(--oef-primary), 0 0 0 4px rgba(99, 102, 241, 0.35);
}

/* Toggle Track */
.oef-toggle-track {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 62px;
    height: 32px;
    padding: 3px 5px;
    box-sizing: border-box;
    border-radius: 999px;
    overflow: hidden;
    cursor: pointer;
    background: linear-gradient(135deg, #090d16 0%, #171f33 100%);
    border: 1px solid rgba(99, 102, 241, 0.35);
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.5), 0 1px 2px rgba(0, 0, 0, 0.2), 0 0 10px rgba(99, 102, 241, 0.15);
    transition: background 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Track Slots: Sun & Moon */
.oef-toggle-sun-slot,
.oef-toggle-moon-slot {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    pointer-events: none;
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.oef-track-sun {
    width: 13px;
    height: 13px;
    color: #f59e0b;
    opacity: 0.35;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.oef-track-moon {
    width: 12px;
    height: 12px;
    color: #a5b4fc;
    opacity: 0.85;
    filter: drop-shadow(0 0 4px rgba(165, 180, 252, 0.4));
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Twinkling Cosmic Stars in Dark Track */
.oef-toggle-stars-slot {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    opacity: 1;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.oef-star {
    position: absolute;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 3px #ffffff, 0 0 6px #818cf8;
}

.oef-star-1 {
    width: 2px;
    height: 2px;
    top: 7px;
    left: 17px;
    animation: oefStarTwinkle 3s infinite ease-in-out;
}

.oef-star-2 {
    width: 2.5px;
    height: 2.5px;
    bottom: 7px;
    left: 25px;
    animation: oefStarTwinkle 2.3s infinite ease-in-out 0.8s;
}

.oef-star-3 {
    width: 1.5px;
    height: 1.5px;
    top: 13px;
    left: 11px;
    animation: oefStarTwinkle 2.8s infinite ease-in-out 1.5s;
}

@keyframes oefStarTwinkle {
    0%, 100% { opacity: 0.2; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.3); }
}

/* Sliding Thumb */
.oef-toggle-thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    z-index: 2;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transform: translateX(30px);
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid rgba(165, 180, 252, 0.45);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5), 0 0 10px rgba(129, 140, 248, 0.35);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
                background 0.4s ease,
                border-color 0.4s ease,
                box-shadow 0.4s ease;
}

.oef-theme-toggle-cool:hover .oef-toggle-thumb {
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.6), 0 0 14px rgba(129, 140, 248, 0.65);
}

.oef-thumb-aura {
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(129, 140, 248, 0.35) 0%, transparent 70%);
    opacity: 1;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

/* Icons inside the thumb */
.oef-thumb-icon {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    transition: opacity 0.3s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.oef-thumb-icon svg {
    width: 100%;
    height: 100%;
}

.oef-thumb-icon-sun {
    opacity: 0;
    transform: rotate(-90deg) scale(0.3);
    color: #f59e0b;
}

.oef-thumb-icon-moon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
    color: #c7d2fe;
    filter: drop-shadow(0 0 3px rgba(199, 210, 254, 0.6));
}

/* ==========================================================================
   Light Mode State Transitions for Cool Toggle
   ========================================================================== */
[data-oef-theme="light"] .oef-toggle-track,
.oef-theme-toggle-cool[data-theme="light"] .oef-toggle-track {
    background: linear-gradient(135deg, #e0f2fe 0%, #fef3c7 100%);
    border-color: #cbd5e1;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.05), 0 0 10px rgba(245, 158, 11, 0.15);
}

[data-oef-theme="light"] .oef-toggle-stars-slot,
.oef-theme-toggle-cool[data-theme="light"] .oef-toggle-stars-slot {
    opacity: 0;
    transform: translateY(-6px);
}

[data-oef-theme="light"] .oef-track-sun,
.oef-theme-toggle-cool[data-theme="light"] .oef-track-sun {
    opacity: 0.9;
    color: #d97706;
}

[data-oef-theme="light"] .oef-track-moon,
.oef-theme-toggle-cool[data-theme="light"] .oef-track-moon {
    opacity: 0.3;
    color: #94a3b8;
    filter: none;
}

[data-oef-theme="light"] .oef-toggle-thumb,
.oef-theme-toggle-cool[data-theme="light"] .oef-toggle-thumb {
    transform: translateX(0px);
    background: linear-gradient(135deg, #ffffff 0%, #fffbeb 100%);
    border-color: #fde68a;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12), 0 0 12px rgba(245, 158, 11, 0.45);
}

[data-oef-theme="light"] .oef-theme-toggle-cool:hover .oef-toggle-thumb,
.oef-theme-toggle-cool[data-theme="light"]:hover .oef-toggle-thumb {
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.16), 0 0 16px rgba(245, 158, 11, 0.7);
}

[data-oef-theme="light"] .oef-thumb-aura,
.oef-theme-toggle-cool[data-theme="light"] .oef-thumb-aura {
    background: radial-gradient(circle, rgba(245, 158, 11, 0.3) 0%, transparent 70%);
}

[data-oef-theme="light"] .oef-thumb-icon-sun,
.oef-theme-toggle-cool[data-theme="light"] .oef-thumb-icon-sun {
    opacity: 1;
    transform: rotate(0deg) scale(1);
    filter: drop-shadow(0 0 3px rgba(245, 158, 11, 0.6));
}

[data-oef-theme="light"] .oef-thumb-icon-moon,
.oef-theme-toggle-cool[data-theme="light"] .oef-thumb-icon-moon {
    opacity: 0;
    transform: rotate(90deg) scale(0.3);
}

.oef-badge-pill {
    padding: 1px 6px;
    font-size: 10px;
    font-weight: 700;
    background: rgba(255,255,255,0.08);
    color: var(--oef-text-muted);
    border-radius: 10px;
}

.oef-user-avatar-wrap {
    position: relative;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.oef-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--oef-border);
}

.oef-avatar-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 230px;
    background: var(--oef-bg-card, #1a1e2d);
    border: 1px solid var(--oef-border, #282e44);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    z-index: 1000;
    padding: 8px 0;
    font-size: 13px;
    text-align: left;
}

.oef-avatar-dropdown-user {
    padding: 8px 16px 10px 16px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.oef-avatar-dropdown-user strong {
    font-size: 13px;
    color: var(--oef-text, #ffffff);
    font-weight: 700;
}

.oef-avatar-dropdown-user span {
    font-size: 11px;
    color: var(--oef-text-dim, #94a3b8);
    word-break: break-all;
}

.oef-avatar-dropdown-divider {
    height: 1px;
    background: var(--oef-border, rgba(255, 255, 255, 0.08));
    margin: 6px 0;
}

.oef-avatar-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    color: var(--oef-text-muted, #cbd5e1);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: background 0.15s ease, color 0.15s ease;
}

.oef-avatar-dropdown-item:hover {
    background: var(--oef-bg-card-alt, rgba(255, 255, 255, 0.06));
    color: var(--oef-text, #ffffff);
}

.oef-avatar-dropdown-logout:hover {
    color: #f87171 !important;
}

/* ── Demo Mode Banner ── */
.oef-demo-banner {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.12) 0%, rgba(30, 41, 59, 0.5) 100%);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: var(--oef-radius, 8px);
    padding: 12px 18px;
    margin-bottom: 22px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
    animation: oef-slide-down 0.25s ease;
}

[data-oef-theme="light"] .oef-demo-banner,
body.oef-theme-light .oef-demo-banner {
    background: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 100%);
    border-color: #bfdbfe;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.08);
}

@keyframes oef-slide-down {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.oef-demo-banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.oef-demo-banner-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 260px;
}

.oef-demo-pill {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: #2563eb;
    color: #ffffff;
    flex-shrink: 0;
}

.oef-demo-banner-text {
    font-size: 13px;
    color: var(--oef-text-muted, #cbd5e1);
    line-height: 1.45;
}

[data-oef-theme="light"] .oef-demo-banner-text,
body.oef-theme-light .oef-demo-banner-text {
    color: #1e3a8a;
}

.oef-demo-banner-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* ── 3. Home Screen (Needs Attention) ── */
.oef-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.oef-header-title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.oef-page-title {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.oef-red-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    background: var(--oef-red);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    border-radius: 11px;
}

.oef-refresh-btn {
    background: transparent;
    border: none;
    color: var(--oef-text-dim);
    cursor: pointer;
    padding: 6px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.oef-refresh-btn:hover {
    color: var(--oef-text);
}

.oef-refresh-btn .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* Problem Rows List */
.oef-problem-rows {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 32px;
}

/* Each Problem Row */
.oef-problem-row {
    background: var(--oef-bg-card);
    border: 1px solid var(--oef-border);
    border-radius: var(--oef-radius);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    position: relative;
    transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.oef-problem-row:hover {
    background: var(--oef-bg-hover);
    border-color: var(--oef-border-light);
}

/* Left edge thin color bar: Red = Act now, Orange = Watch */
.oef-problem-row.oef-row-red {
    border-left: 4px solid var(--oef-red);
}

.oef-problem-row.oef-row-orange {
    border-left: 4px solid var(--oef-orange);
}

.oef-row-main {
    flex: 1;
    min-width: 0;
}

/* Line 1: Client name — Form name */
.oef-row-line1 {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.oef-row-client {
    color: #ffffff;
}

.oef-row-sep {
    color: var(--oef-text-dim);
    font-weight: normal;
}

.oef-row-form {
    color: var(--oef-text-muted);
    font-weight: 500;
}

/* Line 2: One human sentence */
.oef-row-line2 {
    font-size: 14px;
    color: #cbd5e1;
    line-height: 1.4;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.oef-row-sentence {
    color: #cbd5e1;
}

/* Tags (Max 2): Mobile, Drop-off, Spam, Step 2, Silent, Slow */
.oef-tag {
    display: inline-block;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.02em;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.06);
    color: #cbd5e1;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.oef-tag-red {
    background: var(--oef-red-bg);
    color: #fca5a5;
    border-color: rgba(239, 68, 68, 0.2);
}

.oef-tag-orange {
    background: var(--oef-orange-bg);
    color: #fdba74;
    border-color: rgba(249, 115, 22, 0.2);
}

/* Health Grade Chips on Row Header */
.oef-grade-chip {
    display: inline-flex;
    align-items: center;
    padding: 2px 7px;
    font-size: 11px;
    font-weight: 700;
    border-radius: 4px;
    letter-spacing: 0.02em;
    line-height: 1.2;
}
.oef-grade-chip.oef-grade-a { background: rgba(34, 197, 94, 0.15); color: #86efac; border: 1px solid rgba(34, 197, 94, 0.3); }
.oef-grade-chip.oef-grade-b { background: rgba(56, 189, 248, 0.15); color: #7dd3fc; border: 1px solid rgba(56, 189, 248, 0.3); }
.oef-grade-chip.oef-grade-c { background: rgba(245, 158, 11, 0.15); color: #fcd34d; border: 1px solid rgba(245, 158, 11, 0.3); }
.oef-grade-chip.oef-grade-d, .oef-grade-chip.oef-grade-f { background: rgba(239, 68, 68, 0.15); color: #fca5a5; border: 1px solid rgba(239, 68, 68, 0.3); }

/* External Site Link Icon */
.oef-row-site-link {
    display: inline-flex;
    align-items: center;
    color: var(--oef-text-dim);
    text-decoration: none;
    transition: color 0.15s ease;
}
.oef-row-site-link:hover {
    color: #38bdf8;
}
.oef-row-site-link .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
    line-height: 14px;
}

/* Quick-Metrics Bar on Row */
.oef-row-metrics-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin: 6px 0 8px 0;
}
.oef-metric-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    color: var(--oef-text-muted);
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
}
.oef-metric-chip strong {
    color: #ffffff;
    font-weight: 600;
}
.oef-metric-chip .dashicons {
    font-size: 12px;
    width: 12px;
    height: 12px;
    line-height: 12px;
    color: var(--oef-text-dim);
}
.oef-metric-chip.oef-chip-spam {
    background: rgba(249, 115, 22, 0.08);
    border-color: rgba(249, 115, 22, 0.25);
    color: #fdba74;
}
.oef-metric-chip.oef-chip-spam .dashicons {
    color: #f97316;
}

/* Impact Box (Estimated loss / business risk) */
.oef-row-impact-box {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 8px;
    padding: 8px 12px;
    background: rgba(239, 68, 68, 0.08);
    border-left: 3px solid var(--oef-red);
    border-radius: 0 6px 6px 0;
    font-size: 12px;
    line-height: 1.4;
    color: #fca5a5;
}
.oef-impact-icon {
    font-size: 14px;
    width: 14px;
    height: 14px;
    line-height: 14px;
    color: var(--oef-red);
    margin-top: 2px;
    flex-shrink: 0;
}
.oef-impact-text strong {
    color: #ef4444;
}

/* Action Box (Recommended Tactical Fix) */
.oef-row-action-box {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 8px;
    padding: 8px 12px;
    background: rgba(56, 189, 248, 0.08);
    border-left: 3px solid #38bdf8;
    border-radius: 0 6px 6px 0;
    font-size: 12px;
    line-height: 1.4;
    color: #bae6fd;
}
.oef-action-bulb {
    font-size: 14px;
    line-height: 1;
    flex-shrink: 0;
    margin-top: 2px;
}
.oef-action-body strong {
    color: #38bdf8;
}

/* 7-Day Sparkline on Problem Row (Chart.js) */
.oef-row-sparkline {
    width: 240px;
    max-width: 100%;
    height: 38px;
    margin: 8px 0 10px 0;
    position: relative;
    display: block;
}

.oef-sparkline-canvas {
    width: 100% !important;
    height: 38px !important;
    display: block;
}

.oef-problem-row:hover .oef-row-sparkline {
    opacity: 1;
}

/* Row Action Buttons */
.oef-row-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.oef-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    border-radius: var(--oef-radius-sm);
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.oef-btn-primary {
    background: var(--oef-red);
    color: #ffffff !important;
}

.oef-btn-primary:hover {
    background: #dc2626;
}

.oef-btn-secondary {
    background: var(--oef-bg-card-alt);
    border: 1px solid var(--oef-border);
    color: var(--oef-text) !important;
}

.oef-btn-secondary:hover {
    background: var(--oef-bg-hover);
    border-color: var(--oef-border-light);
}

.oef-btn-ghost {
    background: transparent;
    border: 1px solid transparent;
    color: var(--oef-text-dim);
}

.oef-btn-ghost:hover {
    color: var(--oef-text);
    background: rgba(255, 255, 255, 0.04);
}

.oef-btn-sm {
    padding: 5px 10px;
    font-size: 12px;
}

.oef-btn-open {
    background: #ffffff;
    color: #0c0e14 !important;
    font-weight: 600;
    padding: 7px 14px;
}

.oef-btn-open:hover {
    background: #e2e8f0;
}

/* Bottom of the page: Collapsed Healthy Bar */
.oef-healthy-wrap {
    margin-top: 24px;
    border-top: 1px solid var(--oef-border);
    padding-top: 20px;
}

.oef-healthy-toggle-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--oef-bg-card);
    border: 1px solid var(--oef-border);
    border-radius: var(--oef-radius);
    color: var(--oef-text-muted);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    transition: all 0.15s ease;
}

.oef-healthy-toggle-btn:hover {
    background: var(--oef-bg-hover);
    color: var(--oef-text);
}

.oef-toggle-arrow {
    font-size: 16px;
    width: 16px;
    height: 16px;
    line-height: 16px;
    transition: transform 0.2s ease;
}

.oef-healthy-wrap.expanded .oef-toggle-arrow {
    transform: rotate(90deg);
}

.oef-healthy-list-content {
    margin-top: 10px;
    background: var(--oef-bg-card);
    border: 1px solid var(--oef-border);
    border-radius: var(--oef-radius);
    overflow: hidden;
}

.oef-quiet-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.oef-quiet-table th {
    background: rgba(255,255,255,0.02);
    padding: 10px 16px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--oef-text-dim);
    text-align: left;
    border-bottom: 1px solid var(--oef-border);
}

.oef-quiet-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--oef-border);
    color: var(--oef-text);
}

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

.oef-data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.oef-data-table th {
    background: rgba(255,255,255,0.02);
    padding: 12px 16px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--oef-text-dim);
    border-bottom: 1px solid var(--oef-border);
}

.oef-data-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--oef-border);
    color: var(--oef-text);
}

.oef-data-table tbody tr:hover {
    background: var(--oef-bg-hover);
}

[data-oef-theme="light"] .oef-data-table th {
    background: #f8fafc;
    color: #64748b;
    border-bottom-color: #e2e8f0;
}

[data-oef-theme="light"] .oef-data-table td {
    border-bottom-color: #f1f5f9;
}

[data-oef-theme="light"] .oef-data-table tbody tr:hover {
    background: #f8fafc;
}

.oef-quiet-table tr:hover td {
    background: rgba(255,255,255,0.02);
}

/* Empty States */
.oef-empty-state {
    padding: 48px 20px;
    text-align: center;
    background: var(--oef-bg-card);
    border: 1px solid var(--oef-border);
    border-radius: var(--oef-radius);
    margin-bottom: 24px;
}

.oef-empty-icon-large {
    font-size: 36px;
    margin-bottom: 12px;
}

.oef-empty-headline {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 6px;
}

.oef-empty-subtext {
    font-size: 13px;
    color: var(--oef-text-muted);
    max-width: 440px;
    margin: 0 auto 20px;
    line-height: 1.5;
}

/* ── 5. Form Detail Screen ── */
.oef-detail-top-nav {
    margin-bottom: 16px;
}

.oef-back-link {
    background: none;
    border: none;
    color: var(--oef-text-muted);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    transition: color 0.15s ease;
}

.oef-back-link:hover {
    color: #ffffff;
}

.oef-detail-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 24px;
    margin-bottom: 28px;
    border-bottom: 1px solid var(--oef-border);
    flex-wrap: wrap;
}

.oef-detail-client-name {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--oef-text-dim);
    margin-bottom: 4px;
}

.oef-detail-form-name {
    margin: 0;
    font-size: 26px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.oef-detail-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* Stat Row (This week, vs last week in small type) */
.oef-detail-stat-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

@media (max-width: 860px) {
    .oef-detail-stat-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

.oef-stat-row-4 {
    grid-template-columns: repeat(4, 1fr) !important;
}

@media (max-width: 900px) {
    .oef-stat-row-4 {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 520px) {
    .oef-stat-row-4 {
        grid-template-columns: 1fr !important;
    }
}

/* ── Overview Charts Grid: Traffic & Leads + Device Breakdown ── */
.oef-overview-charts-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 400px);
    gap: 20px;
    align-items: stretch;
}

.oef-overview-charts-grid .oef-chart-card {
    margin-bottom: 0 !important;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.oef-overview-charts-grid .oef-timeline-card {
    flex: 1 1 auto;
    min-width: 0;
}

.oef-device-card {
    background: var(--oef-bg-card, #111420);
    border: 1px solid var(--oef-border, #1f2538);
    border-radius: var(--oef-radius, 12px);
    padding: 20px;
    max-width: 400px;
    width: 100%;
    box-sizing: border-box;
}

.oef-device-legend-item {
    transition: transform 0.15s ease;
}

.oef-device-legend-item:hover {
    transform: translateY(-2px);
}

@media (max-width: 1024px) {
    .oef-overview-charts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .oef-device-card {
        max-width: 100%;
    }
}

.oef-metric-card {
    background: var(--oef-bg-card);
    border: 1px solid var(--oef-border);
    border-radius: var(--oef-radius);
    padding: 16px;
}

.oef-metric-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--oef-text-dim);
    margin-bottom: 8px;
}

.oef-metric-value {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.02em;
    margin-bottom: 4px;
}

.oef-metric-sub {
    font-size: 11px;
    color: var(--oef-text-muted);
}

.oef-metric-sub.good {
    color: var(--oef-green);
}

.oef-metric-sub.warn {
    color: var(--oef-orange);
}

.oef-metric-sub.bad {
    color: var(--oef-red);
}

/* Desktop vs Phone */
.oef-detail-section {
    background: var(--oef-bg-card);
    border: 1px solid var(--oef-border);
    border-radius: var(--oef-radius);
    padding: 22px 24px;
    margin-bottom: 20px;
}

.oef-detail-section-title {
    margin: 0 0 16px 0;
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
}

.oef-device-compare-bars {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 14px;
}

.oef-device-bar-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.oef-device-label {
    width: 80px;
    font-size: 13px;
    font-weight: 500;
    color: var(--oef-text-muted);
}

.oef-device-track {
    flex: 1;
    height: 12px;
    background: rgba(255,255,255,0.06);
    border-radius: 6px;
    overflow: hidden;
}

.oef-device-fill {
    height: 100%;
    border-radius: 6px;
    transition: width 0.4s ease;
}

.oef-device-val {
    width: 60px;
    text-align: right;
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
}

.oef-verdict-sentence {
    font-size: 13.5px;
    color: #cbd5e1;
    margin: 0;
    line-height: 1.4;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

/* Funnel */
.oef-funnel-steps {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.oef-funnel-node {
    flex: 1;
    min-width: 130px;
    background: var(--oef-bg-card-alt);
    border: 1px solid var(--oef-border);
    border-radius: var(--oef-radius-sm);
    padding: 12px 14px;
    text-align: center;
    position: relative;
}

.oef-funnel-node.worst-drop {
    border-color: var(--oef-red);
    background: var(--oef-red-bg);
}

.oef-funnel-node.success-step {
    border-color: rgba(16, 185, 129, 0.4);
    background: rgba(16, 185, 129, 0.08);
}

.oef-funnel-node-title {
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 2px;
}

.oef-funnel-node-sub {
    font-size: 13px;
    font-weight: 700;
    color: var(--oef-text);
    margin-bottom: 4px;
}

.oef-funnel-node-drop {
    font-size: 12px;
    color: var(--oef-text-muted);
}

.oef-funnel-node.worst-drop .oef-funnel-node-drop {
    color: #fca5a5;
    font-weight: 600;
}

.oef-funnel-node.success-step .oef-funnel-node-drop {
    color: #34d399;
    font-weight: 600;
}

.oef-funnel-arrow {
    color: var(--oef-text-dim);
    font-size: 16px;
}

/* What to do (max 3 lines checklist) */
.oef-checklist {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.oef-checklist-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13.5px;
    color: #e2e8f0;
    line-height: 1.4;
}

.oef-check-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 4px;
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    font-size: 12px;
    font-weight: 700;
    margin-top: 1px;
    flex-shrink: 0;
}

/* ── 6. White-label PDF & Printable View ── */
.oef-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.oef-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 7, 12, 0.85);
    backdrop-filter: blur(4px);
}

.oef-modal-container {
    position: relative;
    background: var(--oef-bg-card);
    border: 1px solid var(--oef-border);
    border-radius: var(--oef-radius);
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
    z-index: 10;
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    overflow: hidden;
}

.oef-pdf-modal-container {
    width: 860px;
    max-width: 95vw;
    background: #ffffff;
    color: #1e293b;
}

.oef-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--oef-border);
    background: var(--oef-bg-card-alt);
    color: #ffffff;
}

.oef-pdf-modal-container .oef-modal-header {
    background: #0f172a;
    border-bottom: 1px solid #1e293b;
}

.oef-modal-close {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 22px;
    cursor: pointer;
    line-height: 1;
    padding: 2px 6px;
}

.oef-modal-close:hover {
    color: #ffffff;
}

.oef-modal-body {
    padding: 24px;
    overflow-y: auto;
}

/* PDF Print Sheets */
.oef-pdf-sheet-wrap {
    overflow-y: auto;
    padding: 40px;
    background: #ffffff;
    color: #0f172a;
    font-family: var(--oef-font);
}

.oef-pdf-page {
    width: 100%;
    min-height: 900px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 40px;
    background: #ffffff;
    box-sizing: border-box;
    position: relative;
}

.oef-pdf-page-cover {
    justify-content: center;
    align-items: flex-start;
    padding-left: 60px;
}

.oef-pdf-cover-logo {
    max-height: 48px;
    max-width: 180px;
    object-fit: contain;
    margin-bottom: 40px;
}

.oef-pdf-cover-title {
    font-size: 38px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 10px 0;
    letter-spacing: -0.03em;
}

.oef-pdf-cover-client {
    font-size: 20px;
    font-weight: 600;
    color: #475569;
    margin-bottom: 6px;
}

.oef-pdf-cover-date {
    font-size: 14px;
    color: #94a3b8;
}

.oef-pdf-page-2 {
    padding: 40px;
}

.oef-pdf-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 16px;
    margin-bottom: 28px;
}

.oef-pdf-grid-stats {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin-bottom: 28px;
}

.oef-pdf-stat-card {
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 12px;
    text-align: center;
}

.oef-pdf-stat-val {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 4px;
}

.oef-pdf-stat-lbl {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
}

.oef-pdf-summary-p {
    font-size: 14px;
    line-height: 1.6;
    color: #334155;
    background: #f8fafc;
    border-left: 4px solid #0f172a;
    padding: 16px 18px;
    border-radius: 0 6px 6px 0;
    margin-top: 24px;
}

/* Executive Client Retainer Brief in White-Label PDF */
.oef-pdf-brief-box {
    margin-bottom: 22px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #f8fafc;
    padding: 16px 18px;
}

.oef-pdf-brief-header {
    font-size: 12px;
    font-weight: 700;
    color: #0f172a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 8px;
}

.oef-pdf-brief-bullets {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 12.5px;
    color: #334155;
    line-height: 1.55;
}

.oef-pdf-bullet-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.oef-pdf-bullet-tag {
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
}

/* Print CSS Media Queries */
@media print {
    body, #wpbody-content, .oef-hub-wrap {
        background: #ffffff !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    .oef-no-print,
    .oef-top-bar,
    .oef-section-header,
    .oef-problem-rows,
    .oef-healthy-wrap,
    .oef-detail-top-nav,
    .oef-detail-header,
    .oef-detail-stat-row,
    .oef-detail-section,
    .oef-modal-header,
    .oef-modal-backdrop,
    #adminmenumain,
    #wpadminbar,
    #wpfooter {
        display: none !important;
    }

    .oef-modal {
        position: static !important;
        display: block !important;
    }

    .oef-modal-container {
        box-shadow: none !important;
        border: none !important;
        max-height: none !important;
    }

    .oef-pdf-sheet-wrap {
        padding: 0 !important;
        overflow: visible !important;
    }

    .oef-pdf-page {
        min-height: 100vh !important;
        page-break-after: always !important;
        page-break-inside: avoid !important;
        box-shadow: none !important;
        padding: 40mm 20mm !important;
    }

    .oef-pdf-page:last-child {
        page-break-after: auto !important;
    }
}

/* ── 8. Drawers & Dialog Modals ── */
.oef-drawer-container {
    width: 600px;
    max-width: 95vw;
}

.oef-dialog-container {
    width: 480px;
    max-width: 95vw;
}

.oef-drawer-tabs {
    display: flex;
    gap: 12px;
}

.oef-drawer-tab {
    background: transparent;
    border: none;
    color: var(--oef-text-dim);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    padding: 0 0 6px 0;
    position: relative;
}

.oef-drawer-tab.active {
    color: #ffffff;
}

.oef-drawer-tab.active::after {
    content: '';
    position: absolute;
    bottom: -17px;
    left: 0;
    right: 0;
    height: 2px;
    background: #ffffff;
}

.oef-tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    padding-bottom: 1px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
    color: var(--oef-text-muted);
    background: rgba(255,255,255,0.06);
    margin-left: 6px;
    vertical-align: middle;
}

.oef-drawer-panel {
    display: none;
}

.oef-drawer-panel.active {
    display: block;
}

.oef-info-callout {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    background: rgba(79, 124, 255, 0.08);
    border: 1px solid rgba(79, 124, 255, 0.2);
    border-radius: var(--oef-radius-sm);
    font-size: 12px;
    color: var(--oef-text);
    margin-bottom: 16px;
    line-height: 1.45;
}

.oef-info-callout .dashicons {
    color: var(--oef-accent);
    font-size: 18px;
    width: 18px;
    height: 18px;
    margin-top: 1px;
    flex-shrink: 0;
}

[data-oef-theme="light"] .oef-info-callout {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1e3a8a;
}

/* Site Row Items */
.oef-connected-sites-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.oef-site-row-item {
    background: var(--oef-bg-card-alt);
    border: 1px solid var(--oef-border);
    border-radius: var(--oef-radius-sm);
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.oef-site-row-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.oef-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--oef-text-dim);
}

.oef-status-online {
    background: var(--oef-green);
    box-shadow: 0 0 8px rgba(34, 201, 122, 0.4);
}

.oef-status-offline {
    background: var(--oef-red);
}

.oef-status-expired {
    background: #ef4444;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.4);
}

.oef-site-row-name {
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    outline: none;
}

.oef-site-row-name:focus {
    background: rgba(255,255,255,0.05);
    padding: 2px 4px;
    border-radius: 3px;
}

.oef-site-row-url {
    font-size: 11px;
    color: var(--oef-text-dim);
}

.oef-site-row-right {
    display: flex;
    align-items: center;
    gap: 6px;
}

.oef-btn-row-action {
    background: none;
    border: none;
    color: var(--oef-text-dim);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    line-height: 1;
}

.oef-btn-row-action:hover {
    color: var(--oef-red);
    background: rgba(255, 255, 255, 0.05);
}

.oef-teammate-row {
    background: var(--oef-bg-card-alt);
    border: 1px solid var(--oef-border);
    border-radius: var(--oef-radius-sm);
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

/* Forms in settings */
.oef-form-group {
    margin-bottom: 16px;
}

.oef-form-group label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--oef-text-dim);
    margin-bottom: 6px;
}

.oef-form-group input[type="text"],
.oef-form-group input[type="url"],
.oef-form-group input[type="email"],
.oef-form-group input[type="password"],
.oef-form-group select,
.oef-form-group textarea {
    width: 100%;
    padding: 10px 12px;
    background: var(--oef-bg-card-alt);
    border: 1px solid var(--oef-border);
    border-radius: var(--oef-radius-sm);
    color: var(--oef-text);
    font-size: 13px;
    font-family: inherit;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.oef-form-group select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 36px;
}

.oef-form-group textarea {
    resize: vertical;
    min-height: 64px;
    line-height: 1.5;
}

.oef-form-group input:focus,
.oef-form-group select:focus,
.oef-form-group textarea:focus {
    border-color: var(--oef-accent);
    background: var(--oef-bg-hover);
}

/* Spinner & Loader */
.oef-loading-state {
    padding: 40px 20px;
    text-align: center;
}

.oef-spinner {
    width: 24px;
    height: 24px;
    border: 2px solid var(--oef-border);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: oef-spin 0.8s linear infinite;
    margin: 0 auto 12px;
}

.oef-loading-text {
    font-size: 13px;
    color: var(--oef-text-dim);
}

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

.oef-spin {
    display: inline-block;
    animation: oef-spin 1s linear infinite;
}

/* Toast */
.oef-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #141722;
    border: 1px solid var(--oef-border);
    border-left: 4px solid var(--oef-green);
    border-radius: var(--oef-radius-sm);
    padding: 12px 18px;
    font-size: 13px;
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    z-index: 999999;
}

.oef-toast.oef-toast-error {
    border-left-color: var(--oef-red);
}

/* ── Auth / Logged-out Screen Styles for Frontend Shortcode ── */
.oef-auth-wrap {
    max-width: 440px !important;
    margin: 40px auto !important;
    padding: 0 15px !important;
    font-family: var(--oef-font) !important;
    text-align: left !important;
}

.oef-auth-card {
    background: var(--oef-bg-card) !important;
    border: 1px solid var(--oef-border) !important;
    border-radius: var(--oef-radius) !important;
    padding: 32px !important;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45) !important;
}

.oef-auth-title {
    font-size: 22px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    margin: 0 0 6px 0 !important;
}

.oef-auth-subtitle {
    font-size: 13px !important;
    color: var(--oef-text-muted) !important;
    margin: 0 0 24px 0 !important;
}

.oef-auth-divider {
    text-align: center;
    margin: 20px 0;
    color: var(--oef-text-dim);
    font-size: 11px;
    letter-spacing: 1px;
    font-weight: 600;
}

.oef-auth-footer {
    text-align: center !important;
    margin: 20px 0 0 0 !important;
    font-size: 13px !important;
    color: var(--oef-text-dim) !important;
}

.oef-auth-footer a {
    color: var(--oef-accent) !important;
    text-decoration: none !important;
}

.oef-btn-block {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    padding: 10px 16px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
}

/* ─────────────────────────────────────────────────────────────────
   TIER-1 SAAS UI/UX ENHANCEMENTS
   Search Kbd, Filter Chips, Telemetry Bay, Settings Suite, Roster
   ───────────────────────────────────────────────────────────────── */

/* Search Keyboard Shortcut Badge */
.oef-search-kbd {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    display: flex;
    gap: 3px;
}

.oef-search-kbd kbd {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--oef-border);
    border-radius: 4px;
    padding: 1px 5px;
    font-size: 10px;
    font-family: inherit;
    color: var(--oef-text-dim);
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* Home View Mode Toggle (Flat vs By Client) */
.oef-view-mode-toggle {
    display: inline-flex;
    background: var(--oef-bg-card);
    border: 1px solid var(--oef-border);
    border-radius: var(--oef-radius-sm);
    padding: 2px;
    gap: 2px;
}

.oef-mode-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    background: transparent;
    border: none;
    border-radius: 4px;
    color: var(--oef-text-muted);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}

.oef-mode-btn .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
    line-height: 14px;
}

.oef-mode-btn:hover {
    color: var(--oef-text);
}

.oef-mode-btn.active {
    background: var(--oef-bg-hover);
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

/* Triage & Client Quick Filter Bar */
.oef-client-filter-bar {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 22px;
    padding: 12px 16px;
    background: var(--oef-bg-card);
    border: 1px solid var(--oef-border);
    border-radius: var(--oef-radius);
}

.oef-triage-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.oef-filter-chips-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--oef-text-dim);
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
    min-width: 95px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.oef-filter-chips-title .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
    line-height: 14px;
}

.oef-triage-pills {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.oef-triage-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--oef-border);
    color: var(--oef-text-muted);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.oef-triage-pill:hover {
    background: var(--oef-bg-hover);
    border-color: var(--oef-border-light);
    color: var(--oef-text);
}

.oef-triage-pill.active {
    background: #ffffff;
    border-color: #ffffff;
    color: #0c0e14;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.15);
}

.oef-triage-pill.active .oef-pill-count {
    background: #0c0e14;
    color: #ffffff;
}

.oef-client-chips {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.oef-client-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--oef-border);
    color: var(--oef-text-muted);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.oef-client-chip .dashicons {
    font-size: 13px;
    width: 13px;
    height: 13px;
    line-height: 13px;
    color: var(--oef-text-dim);
}

.oef-client-chip:hover {
    background: var(--oef-bg-hover);
    border-color: var(--oef-border-light);
    color: var(--oef-text);
}

.oef-client-chip.active {
    background: var(--oef-accent-bg, rgba(255, 92, 106, 0.15));
    border-color: var(--oef-accent, #ff5c6a);
    color: #ffffff;
    font-weight: 600;
}

/* Group-by-Client Container */
.oef-client-group-card {
    background: var(--oef-bg-card);
    border: 1px solid var(--oef-border);
    border-radius: var(--oef-radius);
    padding: 16px 20px;
    margin-bottom: 20px;
}

.oef-client-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 12px;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--oef-border);
}

.oef-client-group-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.oef-client-group-info .dashicons {
    color: var(--oef-text-muted);
}

.oef-client-group-name {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
}

.oef-client-group-badge {
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    background: var(--oef-red-bg);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.oef-client-group-rows {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Framed Telemetry Bay on Problem Card */
.oef-row-status-pill {
    display: inline-block;
    padding: 2px 6px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.05em;
    border-radius: 3px;
    margin-right: 6px;
    text-transform: uppercase;
}

.oef-pill-red {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.35);
}

.oef-pill-orange {
    background: rgba(245, 158, 11, 0.2);
    color: #fcd34d;
    border: 1px solid rgba(245, 158, 11, 0.35);
}

.oef-row-telemetry-bay {
    background: var(--oef-bg-card-alt, #1a1e2d);
    border: 1px solid var(--oef-border, #23283c);
    border-radius: 8px;
    padding: 8px 12px;
    margin: 8px 0 10px 0;
    max-width: 400px;
    width: 100%;
    transition: background 0.2s ease, border-color 0.2s ease;
}

[data-oef-theme="dark"] .oef-row-telemetry-bay,
body.oef-theme-dark .oef-row-telemetry-bay {
    background: #0f121d;
    border-color: #23283c;
}

.oef-telemetry-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
}

.oef-telemetry-tags {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}

.oef-telemetry-title {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--oef-text-dim);
}

/* Skeleton Loading Shimmer */
.oef-skeleton-wrap {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.oef-skeleton-card {
    background: var(--oef-bg-card);
    border: 1px solid var(--oef-border);
    border-radius: var(--oef-radius);
    padding: 18px 20px;
    position: relative;
    overflow: hidden;
}

.oef-skel-line {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.oef-skel-line::after {
    content: "";
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    transform: translateX(-100%);
    background-image: linear-gradient(90deg, rgba(255,255,255,0) 0, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0) 100%);
    animation: oefShimmer 1.4s infinite;
}

@keyframes oefShimmer {
    100% { transform: translateX(100%); }
}

.oef-skel-title { width: 40%; height: 16px; margin-bottom: 12px; }
.oef-skel-box { width: 240px; height: 38px; background: rgba(255,255,255,0.04); border-radius: 6px; margin-bottom: 10px; }
.oef-skel-sub { width: 60%; height: 14px; }

/* ── Client Roster Grid & Cards (By Client View) ── */
.oef-client-roster-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
    margin-top: 10px;
}

.oef-roster-card {
    background: var(--oef-bg-card);
    border: 1px solid var(--oef-border);
    border-radius: var(--oef-radius);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: all 0.15s ease;
}

.oef-roster-card:hover {
    border-color: var(--oef-border-light);
    box-shadow: 0 10px 24px -6px rgba(0,0,0,0.35);
    transform: translateY(-2px);
}

.oef-roster-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.oef-roster-title-block {
    flex: 1;
    min-width: 0;
}

.oef-roster-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.oef-roster-name-row .dashicons {
    color: var(--oef-text-muted);
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.oef-roster-name {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.oef-roster-status-badge {
    flex-shrink: 0;
}

.oef-roster-card-main-action {
    margin-top: 2px;
}

.oef-roster-url {
    color: var(--oef-text-dim);
    font-size: 12px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.oef-roster-url:hover {
    color: var(--oef-text);
}

.oef-roster-url .dashicons {
    font-size: 13px;
    width: 13px;
    height: 13px;
}

.oef-roster-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding: 10px 12px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.oef-roster-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.oef-roster-stat-val {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
}

.oef-roster-stat-lbl {
    font-size: 10px;
    color: var(--oef-text-dim);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.oef-roster-forms-list {
    border-top: 1px solid var(--oef-border);
    padding-top: 12px;
    display: none;
    flex-direction: column;
    gap: 8px;
}

.oef-roster-forms-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--oef-text-dim);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 2px;
}

.oef-roster-clickable-header {
    cursor: pointer;
    transition: opacity 0.15s ease;
}

.oef-roster-clickable-header:hover .oef-roster-name {
    color: var(--oef-accent, #ff5c6a);
}

.oef-roster-bottom-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-top: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.oef-roster-forms-toggle-btn {
    background: none;
    border: none;
    color: var(--oef-text-muted);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.15s ease;
}

.oef-roster-forms-toggle-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
}

.oef-roster-dash-btn {
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
}

/* ─────────────────────────────────────────────────────────────────
   CLIENT DASHBOARD / DOSSIER VIEW (#oef-view-client-detail)
   ───────────────────────────────────────────────────────────────── */
.oef-cd-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

@media (max-width: 900px) {
    .oef-cd-kpi-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.oef-cd-section {
    background: var(--oef-bg-card);
    border: 1px solid var(--oef-border);
    border-radius: var(--oef-radius);
    padding: 24px;
    margin-bottom: 24px;
}

.oef-cd-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.oef-cd-section-title {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.oef-cd-healthy-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: var(--oef-radius-sm);
    padding: 14px 18px;
    color: #86efac;
    font-size: 13px;
    font-weight: 500;
}

.oef-roster-form-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 13px;
    padding: 4px 0;
}

.oef-roster-form-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.oef-roster-form-title {
    color: var(--oef-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.oef-roster-form-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.oef-roster-form-leads {
    font-size: 11px;
    color: var(--oef-text-dim);
}

/* ── Settings Suite Layout ── */
.oef-settings-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 24px;
    margin-top: 10px;
    align-items: start;
}

.oef-settings-sidebar {
    background: var(--oef-bg-card);
    border: 1px solid var(--oef-border);
    border-radius: var(--oef-radius);
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.oef-settings-tab-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: transparent;
    border: none;
    border-radius: var(--oef-radius-sm);
    color: var(--oef-text-muted);
    cursor: pointer;
    text-align: left;
    transition: all 0.15s ease;
    width: 100%;
}

.oef-settings-tab-btn .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    color: var(--oef-text-dim);
    flex-shrink: 0;
}

.oef-settings-tab-btn:hover {
    background: var(--oef-bg-hover);
    color: var(--oef-text);
}

.oef-settings-tab-btn.active {
    background: var(--oef-bg-hover);
    color: #ffffff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.oef-settings-tab-btn.active .dashicons {
    color: var(--oef-accent, #ff5c6a);
}

.oef-tab-title {
    font-size: 13px;
    font-weight: 600;
}

.oef-tab-sub {
    font-size: 11px;
    color: var(--oef-text-dim);
}

.oef-settings-content {
    min-width: 0;
}

.oef-pane-header {
    margin-bottom: 16px;
}

.oef-pane-header h2 {
    margin: 0 0 6px 0;
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
}

.oef-pane-header p {
    margin: 0;
    font-size: 13px;
    color: var(--oef-text-muted);
    line-height: 1.5;
}

.oef-settings-card {
    background: var(--oef-bg-card);
    border: 1px solid var(--oef-border);
    border-radius: var(--oef-radius);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.oef-field-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.oef-field-row label {
    font-size: 13px;
    font-weight: 600;
    color: var(--oef-text);
}

.oef-field-row .oef-help {
    font-size: 12px;
    color: var(--oef-text-dim);
    line-height: 1.4;
}

.oef-input {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--oef-border);
    border-radius: var(--oef-radius-sm);
    padding: 8px 12px;
    color: #ffffff;
    font-size: 13px;
    outline: none;
    transition: border-color 0.15s ease;
    width: 100%;
}

.oef-input:focus {
    border-color: var(--oef-accent, #ff5c6a);
    box-shadow: 0 0 0 2px rgba(255, 92, 106, 0.15);
}

@media (max-width: 768px) {
    .oef-settings-layout {
        grid-template-columns: 1fr;
    }
}

/* ─────────────────────────────────────────────────────────────────
   A/B TESTING EXPERIMENTS STYLES
   ───────────────────────────────────────────────────────────────── */
.oef-ab-experiments-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 10px;
}

.oef-ab-card {
    background: var(--oef-bg-card);
    border: 1px solid var(--oef-border);
    border-radius: var(--oef-radius);
    padding: 20px 24px;
    transition: all 0.15s ease;
}

.oef-ab-card:hover {
    border-color: var(--oef-border-light);
    box-shadow: 0 8px 24px -4px rgba(0,0,0,0.3);
}

.oef-ab-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 10px;
}

.oef-ab-title-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.oef-ab-test-name {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.oef-ab-context {
    font-size: 12px;
    color: var(--oef-text-dim);
}

.oef-ab-status-running {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #93c5fd;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.oef-ab-status-running::before {
    content: "";
    width: 6px;
    height: 6px;
    background: #3b82f6;
    border-radius: 50%;
    animation: oefPulse 1.5s infinite;
}

@keyframes oefPulse {
    0% { transform: scale(0.9); opacity: 0.7; }
    50% { transform: scale(1.3); opacity: 1; }
    100% { transform: scale(0.9); opacity: 0.7; }
}

.oef-ab-status-winner {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #86efac;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.oef-ab-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 14px;
}

@media (max-width: 640px) {
    .oef-ab-grid {
        grid-template-columns: 1fr;
    }
}

.oef-ab-variant-box {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--oef-radius-sm);
    padding: 16px;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.oef-ab-variant-box.is-leading {
    border-color: rgba(34, 197, 94, 0.4);
    background: rgba(34, 197, 94, 0.03);
}

.oef-ab-variant-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.oef-ab-variant-tag {
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 6px;
}

.oef-ab-control-chip {
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--oef-text-dim);
    text-transform: uppercase;
}

.oef-ab-split-badge {
    font-size: 11px;
    color: var(--oef-text-muted);
}

.oef-ab-metrics-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    text-align: center;
    padding: 8px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
}

.oef-ab-metric-num {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
}

.oef-ab-metric-lbl {
    font-size: 10px;
    color: var(--oef-text-dim);
    text-transform: uppercase;
}

.oef-ab-rate-highlight {
    font-size: 20px;
    font-weight: 800;
}

.oef-ab-lift-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
}

.oef-ab-lift-positive {
    background: rgba(34, 197, 94, 0.15);
    color: #86efac;
}

.oef-ab-lift-negative {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
}

.oef-ab-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid var(--oef-border);
    font-size: 12px;
    color: var(--oef-text-dim);
}

/* ── Pro SaaS WooCommerce App Shell Layout ── */
.woocommerce.oef-saas-layout:not(.oef-wc-auth-layout),
body.oef-wc-account-page.logged-in .woocommerce,
body.oef-wc-agency-hub-page .woocommerce {
    display: flex !important;
    align-items: stretch !important;
    gap: 0 !important;
    min-height: 100vh !important;
    background: var(--oef-bg, #0c0e14) !important;
    border: 1px solid var(--oef-border, #1f2538) !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3) !important;
    box-sizing: border-box !important;
}

/* ── Pro SaaS Sidebar ── */
.woocommerce.oef-saas-layout .woocommerce-MyAccount-navigation,
body.oef-wc-account-page .woocommerce-MyAccount-navigation {
    width: 250px !important;
    min-width: 250px !important;
    max-width: 250px !important;
    float: none !important;
    margin: 0 !important;
    background: var(--oef-bg-card, #111420) !important;
    border-right: 1px solid var(--oef-border, #1f2538) !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 16px 10px !important;
    box-sizing: border-box !important;
    transition: width 0.22s cubic-bezier(0.4, 0, 0.2, 1), min-width 0.22s cubic-bezier(0.4, 0, 0.2, 1), padding 0.22s ease !important;
    position: relative !important;
    z-index: 10 !important;
}

/* Sidebar Header */
.oef-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 6px 14px 8px;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--oef-border, #1f2538);
}

.oef-sidebar-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--oef-text, #ffffff);
    letter-spacing: 0.02em;
    overflow: hidden;
    white-space: nowrap;
}

.oef-sidebar-brand-icon {
    font-size: 16px;
    width: 16px;
    height: 16px;
    line-height: 16px;
    color: #38bdf8;
}

.oef-sidebar-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--oef-border, rgba(255, 255, 255, 0.1));
    color: var(--oef-text-dim, #94a3b8);
    cursor: pointer;
    transition: all 0.15s ease;
    padding: 0;
}

.oef-sidebar-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.2);
}

.oef-sidebar-toggle-btn .oef-toggle-arrow-icon {
    font-size: 14px;
    width: 14px;
    height: 14px;
    line-height: 14px;
    transition: transform 0.22s ease;
}

/* Sidebar Menu List */
.woocommerce.oef-saas-layout .woocommerce-MyAccount-navigation ul,
body.oef-wc-account-page .woocommerce-MyAccount-navigation ul {
    display: flex !important;
    flex-direction: column !important;
    gap: 3px !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    border: none !important;
}

.woocommerce.oef-saas-layout .woocommerce-MyAccount-navigation ul li,
body.oef-wc-account-page .woocommerce-MyAccount-navigation ul li {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
}

.woocommerce.oef-saas-layout .woocommerce-MyAccount-navigation ul li a,
body.oef-wc-account-page .woocommerce-MyAccount-navigation ul li a {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 9px 12px !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: var(--oef-text-dim, #94a3b8) !important;
    text-decoration: none !important;
    transition: all 0.15s ease !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    border: 1px solid transparent !important;
    background: transparent !important;
    box-sizing: border-box !important;
}

.woocommerce.oef-saas-layout .woocommerce-MyAccount-navigation ul li a .dashicons,
body.oef-wc-account-page .woocommerce-MyAccount-navigation ul li a .dashicons {
    font-size: 17px !important;
    width: 17px !important;
    height: 17px !important;
    line-height: 17px !important;
    flex-shrink: 0 !important;
    color: var(--oef-text-dim, #94a3b8) !important;
    transition: color 0.15s ease !important;
}

.woocommerce.oef-saas-layout .woocommerce-MyAccount-navigation ul li a:hover,
body.oef-wc-account-page .woocommerce-MyAccount-navigation ul li a:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    color: var(--oef-text, #ffffff) !important;
}

.woocommerce.oef-saas-layout .woocommerce-MyAccount-navigation ul li a:hover .dashicons,
body.oef-wc-account-page .woocommerce-MyAccount-navigation ul li a:hover .dashicons {
    color: #ffffff !important;
}

/* Active Navigation Item */
.woocommerce.oef-saas-layout .woocommerce-MyAccount-navigation ul li.is-active a,
body.oef-wc-account-page .woocommerce-MyAccount-navigation ul li.is-active a {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.18) 0%, rgba(37, 99, 235, 0.28) 100%) !important;
    color: #60a5fa !important;
    border-color: rgba(59, 130, 246, 0.35) !important;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.15) !important;
}

.woocommerce.oef-saas-layout .woocommerce-MyAccount-navigation ul li.is-active a .dashicons,
body.oef-wc-account-page .woocommerce-MyAccount-navigation ul li.is-active a .dashicons {
    color: #60a5fa !important;
}

/* Special Agency Hub Flagship item */
.woocommerce.oef-saas-layout .woocommerce-MyAccount-navigation-link--agency-hub.is-active a,
body.oef-wc-account-page .woocommerce-MyAccount-navigation-link--agency-hub.is-active a {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
    color: #ffffff !important;
    border-color: #3b82f6 !important;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35) !important;
}

.woocommerce.oef-saas-layout .woocommerce-MyAccount-navigation-link--agency-hub.is-active a .dashicons,
body.oef-wc-account-page .woocommerce-MyAccount-navigation-link--agency-hub.is-active a .dashicons {
    color: #ffffff !important;
}

/* Hide Orders & Licenses and Downloads (Handled by Freemius) */
.woocommerce.oef-saas-layout .woocommerce-MyAccount-navigation-link--orders,
.woocommerce.oef-saas-layout .woocommerce-MyAccount-navigation-link--downloads,
body.oef-wc-account-page .woocommerce-MyAccount-navigation-link--orders,
body.oef-wc-account-page .woocommerce-MyAccount-navigation-link--downloads,
.woocommerce-MyAccount-navigation-link--orders,
.woocommerce-MyAccount-navigation-link--downloads {
    display: none !important;
}

/* Main Content Area */
.woocommerce.oef-saas-layout .woocommerce-MyAccount-content,
body.oef-wc-account-page .woocommerce-MyAccount-content {
    flex: 1 !important;
    width: 100% !important;
    min-width: 0 !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: var(--oef-bg, #0c0e14) !important;
}

.woocommerce.oef-saas-layout .oef-frontend-dashboard-wrap {
    min-height: 100vh;
    border-radius: 0 !important;
    box-shadow: none !important;
}

/* ─────────────────────────────────────────────────────────────
   COLLAPSED SLIM-ICON MODE (Linear / Datadog / Stripe Style)
   ───────────────────────────────────────────────────────────── */
@media (min-width: 901px) {
    .woocommerce.oef-saas-layout.oef-sidebar-collapsed .woocommerce-MyAccount-navigation,
    body.oef-sidebar-collapsed .woocommerce-MyAccount-navigation {
        width: 62px !important;
        min-width: 62px !important;
        max-width: 62px !important;
        padding: 16px 6px !important;
    }

    .woocommerce.oef-saas-layout.oef-sidebar-collapsed .oef-sidebar-brand-text,
    .woocommerce.oef-saas-layout.oef-sidebar-collapsed .oef-nav-label,
    body.oef-sidebar-collapsed .oef-sidebar-brand-text,
    body.oef-sidebar-collapsed .oef-nav-label {
        display: none !important;
    }

    .woocommerce.oef-saas-layout.oef-sidebar-collapsed .oef-sidebar-header,
    body.oef-sidebar-collapsed .oef-sidebar-header {
        justify-content: center !important;
        padding: 4px 0 14px 0 !important;
    }

    .woocommerce.oef-saas-layout.oef-sidebar-collapsed .oef-sidebar-brand,
    body.oef-sidebar-collapsed .oef-sidebar-brand {
        display: none !important;
    }

    .woocommerce.oef-saas-layout.oef-sidebar-collapsed .oef-sidebar-toggle-btn .oef-toggle-arrow-icon,
    body.oef-sidebar-collapsed .oef-sidebar-toggle-btn .oef-toggle-arrow-icon {
        transform: rotate(180deg) !important;
    }

    .woocommerce.oef-saas-layout.oef-sidebar-collapsed .woocommerce-MyAccount-navigation ul li a,
    body.oef-sidebar-collapsed .woocommerce-MyAccount-navigation ul li a {
        justify-content: center !important;
        padding: 10px 0 !important;
    }
}

/* ─────────────────────────────────────────────────────────────
   RESPONSIVE MOBILE / TABLET NAVIGATION (<= 900px)
   ───────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .woocommerce.oef-saas-layout,
    body.oef-wc-account-page .woocommerce {
        flex-direction: column !important;
    }

    .woocommerce.oef-saas-layout .woocommerce-MyAccount-navigation,
    body.oef-wc-account-page .woocommerce-MyAccount-navigation {
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        border-right: none !important;
        border-bottom: 1px solid var(--oef-border) !important;
        padding: 14px 16px !important;
        box-sizing: border-box !important;
    }

    .oef-sidebar-header {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 0 0 10px 0 !important;
        margin-bottom: 4px !important;
        border-bottom: 1px solid var(--oef-border) !important;
    }

    .oef-sidebar-brand-text {
        display: inline-block !important;
    }

    /* By default on mobile, navigation links are hidden until toggled */
    .woocommerce.oef-saas-layout .woocommerce-MyAccount-navigation ul,
    body.oef-wc-account-page .woocommerce-MyAccount-navigation ul {
        display: none !important;
        padding: 8px 0 4px 0 !important;
    }

    /* When user toggles open the mobile menu */
    .woocommerce.oef-saas-layout.oef-mobile-menu-open .woocommerce-MyAccount-navigation ul,
    body.oef-wc-account-page .woocommerce.oef-saas-layout.oef-mobile-menu-open .woocommerce-MyAccount-navigation ul {
        display: flex !important;
    }

    .woocommerce.oef-saas-layout.oef-mobile-menu-open .oef-sidebar-toggle-btn .oef-toggle-arrow-icon {
        transform: rotate(90deg) !important;
    }

    .woocommerce.oef-saas-layout:not(.oef-mobile-menu-open) .oef-sidebar-toggle-btn .oef-toggle-arrow-icon {
        transform: rotate(-90deg) !important;
    }

    .woocommerce.oef-saas-layout .woocommerce-MyAccount-navigation ul li a .oef-nav-label,
    body.oef-wc-account-page .woocommerce-MyAccount-navigation ul li a .oef-nav-label {
        display: inline-block !important;
    }

    .woocommerce.oef-saas-layout .woocommerce-MyAccount-navigation ul li a,
    body.oef-wc-account-page .woocommerce-MyAccount-navigation ul li a {
        justify-content: flex-start !important;
        padding: 10px 14px !important;
    }
}

/* ─────────────────────────────────────────────────────────────
   PRO SAAS MY ACCOUNT ALL-PAGES STYLING (Dashboard, Orders, etc.)
   ───────────────────────────────────────────────────────────── */
.woocommerce.oef-saas-layout .woocommerce-MyAccount-content {
    padding: 28px 32px !important;
    background: var(--oef-bg, #0c0e14) !important;
    color: var(--oef-text, #f1f5f9) !important;
    box-sizing: border-box !important;
}

body.oef-wc-agency-hub-page .woocommerce.oef-saas-layout .woocommerce-MyAccount-content,
.woocommerce.oef-saas-layout .woocommerce-MyAccount-content:has(#oef-hub-app) {
    padding: 0 !important;
}

/* Top Account Header Bar */
.oef-account-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 20px;
    margin-bottom: 28px;
    border-bottom: 1px solid var(--oef-border, #1f2538);
    flex-wrap: wrap;
}

.oef-account-top-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.oef-account-page-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--oef-text, #ffffff);
    letter-spacing: -0.01em;
}

.oef-account-top-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Dashboard Executive Hero & Quick Actions Grid */
.oef-dash-welcome-hero {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.12) 0%, rgba(17, 20, 32, 0.7) 100%);
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: 14px;
    padding: 24px 28px;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.oef-dash-welcome-hero h2 {
    margin: 0 0 6px 0;
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
}

.oef-dash-welcome-hero p {
    margin: 0;
    font-size: 13px;
    color: var(--oef-text-dim, #94a3b8);
}

.oef-dash-quick-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 24px;
}

.oef-dash-quick-card {
    background: var(--oef-bg-card, #111420);
    border: 1px solid var(--oef-border, #1f2538);
    border-radius: 12px;
    padding: 22px;
    text-decoration: none !important;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.oef-dash-quick-card:hover {
    transform: translateY(-2px);
    border-color: rgba(59, 130, 246, 0.45);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.oef-dash-quick-card.flagship {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.15) 0%, var(--oef-bg-card, #111420) 100%);
    border-color: rgba(59, 130, 246, 0.35);
}

.oef-dash-card-icon {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.oef-dash-card-icon .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
    line-height: 20px;
}

.oef-dash-card-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--oef-text, #ffffff);
    margin-bottom: 6px;
}

.oef-dash-card-desc {
    font-size: 12px;
    color: var(--oef-text-dim, #94a3b8);
    line-height: 1.5;
    margin-bottom: 16px;
}

.oef-dash-card-cta {
    font-size: 12px;
    font-weight: 700;
    color: #60a5fa;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Orders & Downloads Tables */
.woocommerce.oef-saas-layout table.woocommerce-orders-table,
.woocommerce.oef-saas-layout table.woocommerce-table--order-downloads,
.woocommerce.oef-saas-layout table.shop_table {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    background: var(--oef-bg-card, #111420) !important;
    border: 1px solid var(--oef-border, #1f2538) !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    margin-bottom: 24px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
}

.woocommerce.oef-saas-layout table.shop_table th {
    background: rgba(255, 255, 255, 0.03) !important;
    color: var(--oef-text-dim, #94a3b8) !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    padding: 14px 18px !important;
    border-bottom: 1px solid var(--oef-border, #1f2538) !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
}

.woocommerce.oef-saas-layout table.shop_table td {
    padding: 14px 18px !important;
    font-size: 13px !important;
    color: var(--oef-text, #ffffff) !important;
    border-bottom: 1px solid var(--oef-border, #1f2538) !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
    vertical-align: middle !important;
}

.woocommerce.oef-saas-layout table.shop_table tbody tr:last-child td {
    border-bottom: none !important;
}

.woocommerce.oef-saas-layout table.shop_table tbody tr:hover td {
    background: rgba(255, 255, 255, 0.02) !important;
}

/* Order Status Badges */
.woocommerce.oef-saas-layout mark.order-status {
    display: inline-flex !important;
    align-items: center !important;
    padding: 3px 10px !important;
    border-radius: 20px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    text-transform: capitalize !important;
}

.woocommerce.oef-saas-layout mark.status-completed {
    background: rgba(34, 197, 94, 0.15) !important;
    color: #4ade80 !important;
    border: 1px solid rgba(34, 197, 94, 0.3) !important;
}

.woocommerce.oef-saas-layout mark.status-processing {
    background: rgba(59, 130, 246, 0.15) !important;
    color: #60a5fa !important;
    border: 1px solid rgba(59, 130, 246, 0.3) !important;
}

.woocommerce.oef-saas-layout mark.status-on-hold,
.woocommerce.oef-saas-layout mark.status-pending {
    background: rgba(245, 158, 11, 0.15) !important;
    color: #fbbf24 !important;
    border: 1px solid rgba(245, 158, 11, 0.3) !important;
}

.woocommerce.oef-saas-layout mark.status-cancelled,
.woocommerce.oef-saas-layout mark.status-failed {
    background: rgba(239, 68, 68, 0.15) !important;
    color: #f87171 !important;
    border: 1px solid rgba(239, 68, 68, 0.3) !important;
}

/* Table Buttons (View, Download, Pay) */
.woocommerce.oef-saas-layout .woocommerce-button,
.woocommerce.oef-saas-layout table.shop_table .button {
    background: rgba(59, 130, 246, 0.12) !important;
    color: #60a5fa !important;
    border: 1px solid rgba(59, 130, 246, 0.3) !important;
    border-radius: 6px !important;
    padding: 6px 14px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    transition: all 0.15s ease !important;
}

.woocommerce.oef-saas-layout .woocommerce-button:hover,
.woocommerce.oef-saas-layout table.shop_table .button:hover {
    background: #2563eb !important;
    color: #ffffff !important;
    border-color: #3b82f6 !important;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3) !important;
}

/* Addresses Section */
.woocommerce.oef-saas-layout .woocommerce-Addresses {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
    margin-top: 16px !important;
}

.woocommerce.oef-saas-layout .woocommerce-Address {
    background: var(--oef-bg-card, #111420) !important;
    border: 1px solid var(--oef-border, #1f2538) !important;
    border-radius: 12px !important;
    padding: 24px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    box-sizing: border-box !important;
    width: 100% !important;
    float: none !important;
}

.woocommerce.oef-saas-layout .woocommerce-Address .title {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin-bottom: 16px !important;
    padding-bottom: 12px !important;
    border-bottom: 1px solid var(--oef-border, #1f2538) !important;
}

.woocommerce.oef-saas-layout .woocommerce-Address .title h3 {
    margin: 0 !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: var(--oef-text, #ffffff) !important;
}

.woocommerce.oef-saas-layout .woocommerce-Address address {
    font-style: normal !important;
    font-size: 13px !important;
    line-height: 1.6 !important;
    color: var(--oef-text-dim, #94a3b8) !important;
    margin-bottom: 0 !important;
}

/* Forms & Inputs across WooCommerce & Account Pages */
.woocommerce form.woocommerce-EditAccountForm,
.woocommerce form.woocommerce-address-fields,
.woocommerce form.login,
.woocommerce form.register,
.woocommerce form.woocommerce-ResetPassword,
.oef-saas-layout form.login,
.oef-saas-layout form.register {
    background: var(--oef-bg-card, #111420) !important;
    border: 1px solid var(--oef-border, #1f2538) !important;
    border-radius: 16px !important;
    padding: 34px 30px !important;
    box-sizing: border-box !important;
    max-width: 480px !important;
    margin: 0 auto !important;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.55) !important;
}

/* Centered container when logged out on WooCommerce Account pages */
.oef-wc-account-page:not(.logged-in) .woocommerce,
.woocommerce-account:not(.logged-in) .woocommerce,
.oef-wc-auth-page:not(.logged-in) .woocommerce,
.oef-wc-auth-layout,
.woocommerce.oef-wc-auth-layout {
    display: block !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    min-height: auto !important;
    max-width: 480px !important;
    margin: 40px auto !important;
    padding: 0 16px !important;
    box-sizing: border-box !important;
}

.woocommerce:has(.col2-set#customer_login),
.oef-wc-auth-layout:has(.col2-set#customer_login) {
    max-width: 960px !important;
}

/* If single login form, center it */
.oef-wc-account-page .woocommerce > form.login,
.woocommerce-account:not(.logged-in) .woocommerce > form.login,
.oef-wc-account-page .woocommerce > form.woocommerce-ResetPassword,
.woocommerce-account:not(.logged-in) .woocommerce > form.woocommerce-ResetPassword {
    max-width: 460px !important;
    margin: 0 auto !important;
}

/* Two-column layout if registration is enabled */
.col2-set#customer_login {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 32px !important;
    justify-content: center !important;
}

.col2-set#customer_login .col-1,
.col2-set#customer_login .col-2 {
    flex: 1 1 380px !important;
    max-width: 460px !important;
    float: none !important;
    width: auto !important;
}

/* Headings above login/register */
.woocommerce-account:not(.logged-in) .woocommerce > h2,
.oef-wc-auth-layout > h2,
.col2-set#customer_login h2 {
    font-size: 22px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    margin: 0 0 24px 0 !important;
    text-align: center !important;
    letter-spacing: -0.01em !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
}

.woocommerce-account:not(.logged-in) .woocommerce > h2::before,
.oef-wc-auth-layout > h2::before {
    content: '';
    display: inline-block;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: url('../../assets/icon.svg') no-repeat center / contain !important;
    box-shadow: none !important;
    flex-shrink: 0;
}

/* Hide theme post header on auth pages */
body.oef-wc-auth-page:not(.logged-in) .entry-header,
body.oef-wc-auth-page:not(.logged-in) .entry-title,
body.oef-wc-auth-page:not(.logged-in) .wp-block-post-title,
body.woocommerce-account:not(.logged-in) .entry-header,
body.woocommerce-account:not(.logged-in) .entry-title,
body.woocommerce-account:not(.logged-in) .wp-block-post-title,
body.oef-hub-auth-page:not(.logged-in) .entry-header,
body.oef-hub-auth-page:not(.logged-in) .entry-title,
body.oef-hub-auth-page:not(.logged-in) .wp-block-post-title,
body.oef-hub-auth-page .wp-block-post-title {
    display: none !important;
}

/* Auth page spacing adjustments */
body.oef-hub-auth-page:not(.logged-in) .entry-content,
body.oef-hub-auth-page:not(.logged-in) .post-content,
body.oef-hub-auth-page:not(.logged-in) .wp-block-group {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

body.oef-hub-auth-page .oef-frontend-dashboard-wrap {
    min-height: calc(100vh - 100px) !important;
    padding: 30px 16px 60px 16px !important;
}

/* WooCommerce Alerts & Notices (Dark Mode) */
.woocommerce .woocommerce-error,
.woocommerce .woocommerce-message,
.woocommerce .woocommerce-info {
    background: #161b2a !important;
    border: 1px solid #28334e !important;
    border-left: 4px solid #ef4444 !important;
    border-radius: 8px !important;
    color: #fca5a5 !important;
    padding: 14px 18px !important;
    margin: 0 auto 24px auto !important;
    max-width: 480px !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3) !important;
    list-style: none !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
}

.woocommerce .woocommerce-error a,
.woocommerce .woocommerce-message a,
.woocommerce .woocommerce-info a {
    color: #ffffff !important;
    text-decoration: underline !important;
    font-weight: 600 !important;
}

.woocommerce .woocommerce-message {
    border-left-color: #22c55e !important;
    color: #86efac !important;
}

.woocommerce .woocommerce-info {
    border-left-color: #3b82f6 !important;
    color: #93c5fd !important;
}

/* Social Auth Buttons (Google & Microsoft) */
.oef-social-auth-wrapper {
    margin-bottom: 20px !important;
    width: 100% !important;
}

.oef-microsoft-signin-btn,
.oef-google-signin-btn {
    width: 100% !important;
    height: 42px !important;
    background: #161b2a !important;
    border: 1px solid #28334e !important;
    border-radius: 8px !important;
    color: #ffffff !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
    text-decoration: none !important;
    box-sizing: border-box !important;
    padding: 0 16px !important;
    line-height: 1 !important;
}

.oef-microsoft-signin-btn:hover {
    background: #1e263d !important;
    border-color: #00a4ef !important;
    box-shadow: 0 4px 14px rgba(0, 164, 239, 0.25) !important;
    color: #ffffff !important;
}

.oef-google-signin-btn:hover {
    background: #1e263d !important;
    border-color: #4285f4 !important;
    box-shadow: 0 4px 14px rgba(66, 133, 244, 0.25) !important;
    color: #ffffff !important;
}

.woocommerce .woocommerce-form-row,
.woocommerce p.form-row {
    margin-bottom: 18px !important;
    padding: 0 !important;
}

.woocommerce .woocommerce-form-row label,
.woocommerce p.form-row label {
    display: block !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    color: var(--oef-text-dim, #94a3b8) !important;
    margin-bottom: 6px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
}

.woocommerce input.input-text,
.woocommerce select,
.woocommerce textarea {
    background: #141824 !important;
    border: 1px solid var(--oef-border, #1f2538) !important;
    color: #ffffff !important;
    border-radius: 8px !important;
    padding: 11px 14px !important;
    font-size: 14px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    transition: all 0.15s ease !important;
    line-height: 1.5 !important;
}

.woocommerce input.input-text:focus,
.woocommerce select:focus,
.woocommerce textarea:focus {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25) !important;
    outline: none !important;
    background: #171c2b !important;
}

.woocommerce .woocommerce-form-login__rememberme {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin-top: 4px !important;
    font-size: 13px !important;
    color: var(--oef-text-muted, #94a3b8) !important;
    cursor: pointer !important;
}

.woocommerce .woocommerce-form-login__rememberme input[type="checkbox"] {
    width: 16px !important;
    height: 16px !important;
    margin: 0 !important;
    border-radius: 4px !important;
    accent-color: var(--oef-accent, #ff5c6a) !important;
    cursor: pointer !important;
}

.woocommerce .woocommerce-LostPassword {
    margin-top: 16px !important;
    text-align: center !important;
    font-size: 13px !important;
}

.woocommerce .woocommerce-LostPassword a {
    color: #ff8058 !important;
    text-decoration: none !important;
}

.woocommerce .woocommerce-LostPassword a:hover {
    text-decoration: underline !important;
}

.woocommerce fieldset {
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid var(--oef-border, #1f2538) !important;
    border-radius: 10px !important;
    padding: 20px !important;
    margin: 24px 0 !important;
}

.woocommerce fieldset legend {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: var(--oef-text, #ffffff) !important;
    padding: 0 8px !important;
}

/* Primary Submit Buttons */
.woocommerce button.woocommerce-Button,
.woocommerce button.woocommerce-form-login__submit,
.woocommerce button.woocommerce-form-register__submit,
.woocommerce button.button[name="login"],
.woocommerce button.button[name="register"] {
    display: block !important;
    width: 100% !important;
    background: linear-gradient(135deg, #ff5c6a 0%, #ff8058 100%) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    padding: 12px 26px !important;
    border-radius: 8px !important;
    border: none !important;
    box-shadow: 0 4px 14px rgba(255, 92, 106, 0.35) !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
    text-align: center !important;
    margin-top: 16px !important;
    text-shadow: none !important;
}

.woocommerce button.woocommerce-Button:hover,
.woocommerce button.woocommerce-form-login__submit:hover,
.woocommerce button.woocommerce-form-register__submit:hover,
.woocommerce button.button[name="login"]:hover,
.woocommerce button.button[name="register"]:hover {
    opacity: 0.94 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 18px rgba(255, 92, 106, 0.5) !important;
}

/* Alerts & Notices */
.woocommerce.oef-saas-layout .woocommerce-message,
.woocommerce.oef-saas-layout .woocommerce-info,
.woocommerce.oef-saas-layout .woocommerce-error {
    border-radius: 10px !important;
    padding: 14px 20px !important;
    margin-bottom: 24px !important;
    font-size: 13px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    list-style: none !important;
    box-sizing: border-box !important;
}

.woocommerce.oef-saas-layout .woocommerce-message {
    background: rgba(34, 197, 94, 0.12) !important;
    border: 1px solid rgba(34, 197, 94, 0.3) !important;
    color: #86efac !important;
}

.woocommerce.oef-saas-layout .woocommerce-info {
    background: rgba(59, 130, 246, 0.12) !important;
    border: 1px solid rgba(59, 130, 246, 0.3) !important;
    color: #93c5fd !important;
}

.woocommerce.oef-saas-layout .woocommerce-error {
    background: rgba(239, 68, 68, 0.12) !important;
    border: 1px solid rgba(239, 68, 68, 0.3) !important;
    color: #fca5a5 !important;
}

/* Light theme overrides for My Account */
[data-oef-theme="light"] .woocommerce.oef-saas-layout {
    background: #f8fafc !important;
    border-color: #e2e8f0 !important;
}

[data-oef-theme="light"] .woocommerce.oef-saas-layout .woocommerce-MyAccount-navigation {
    background: #ffffff !important;
    border-right-color: #e2e8f0 !important;
}

[data-oef-theme="light"] .woocommerce.oef-saas-layout .woocommerce-MyAccount-content {
    background: #f8fafc !important;
    color: #1e293b !important;
}

[data-oef-theme="light"] .oef-account-top-bar {
    border-bottom-color: #e2e8f0 !important;
}

[data-oef-theme="light"] .oef-account-page-title,
[data-oef-theme="light"] .oef-dash-card-title,
[data-oef-theme="light"] .woocommerce.oef-saas-layout .woocommerce-Address .title h3 {
    color: #0f172a !important;
}

[data-oef-theme="light"] .oef-dash-quick-card,
[data-oef-theme="light"] .woocommerce.oef-saas-layout table.shop_table,
[data-oef-theme="light"] .woocommerce.oef-saas-layout .woocommerce-Address,
[data-oef-theme="light"] .woocommerce.oef-saas-layout form.woocommerce-EditAccountForm,
[data-oef-theme="light"] .woocommerce.oef-saas-layout form.woocommerce-address-fields {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
}

[data-oef-theme="light"] .woocommerce.oef-saas-layout input.input-text,
[data-oef-theme="light"] .woocommerce.oef-saas-layout select,
[data-oef-theme="light"] .woocommerce.oef-saas-layout textarea {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
}

@media (max-width: 900px) {
    .woocommerce.oef-saas-layout .woocommerce-MyAccount-content {
        padding: 20px 16px !important;
    }
    .woocommerce.oef-saas-layout .woocommerce-Addresses,
    .oef-dash-quick-grid {
        grid-template-columns: 1fr !important;
    }
    .oef-dash-welcome-hero {
        flex-direction: column !important;
        align-items: flex-start !important;
    }
}

/* ─────────────────────────────────────────────────────────────────
   "WHAT DO I TELL THE CLIENT?" — RETAINER CONVERSATION
   3-bullet update: what happened, what we did, what to expect next week
   ───────────────────────────────────────────────────────────────── */
.oef-client-brief-card {
    background: var(--oef-bg-card, #1e293b);
    border: 1px solid var(--oef-border, #334155);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
    position: relative;
}

.oef-brief-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.oef-brief-title-wrap {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.oef-brief-icon {
    color: #60a5fa !important;
    font-size: 22px !important;
    width: 22px !important;
    height: 22px !important;
    margin-top: 2px;
}

.oef-brief-title {
    margin: 0 !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    color: var(--oef-text, #f8fafc) !important;
}

.oef-brief-subtitle {
    font-size: 12px;
    color: var(--oef-text-dim, #94a3b8);
    margin-top: 3px;
}

.oef-brief-bullets {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.oef-brief-bullet {
    background: rgba(15, 23, 42, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 6px;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.oef-brief-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 8px;
    border-radius: 4px;
    width: fit-content;
}

.tag-happened {
    background: rgba(59, 130, 246, 0.16) !important;
    color: #60a5fa !important;
    border: 1px solid rgba(59, 130, 246, 0.32) !important;
}

.tag-did {
    background: rgba(34, 197, 94, 0.16) !important;
    color: #4ade80 !important;
    border: 1px solid rgba(34, 197, 94, 0.32) !important;
}

.tag-next {
    background: rgba(168, 85, 247, 0.16) !important;
    color: #c084fc !important;
    border: 1px solid rgba(168, 85, 247, 0.32) !important;
}

.oef-brief-text {
    margin: 0 !important;
    font-size: 13px;
    line-height: 1.55;
    color: var(--oef-text, #f1f5f9) !important;
}

/* Modal Brief Items */
.oef-brief-modal-item {
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid var(--oef-border, #334155);
    border-radius: 6px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.oef-brief-modal-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 8px;
    border-radius: 4px;
    width: fit-content;
}

.oef-brief-modal-text {
    font-size: 13px;
    line-height: 1.6;
    color: var(--oef-text, #f1f5f9);
}

.oef-brief-text[contenteditable="true"],
.oef-brief-modal-text[contenteditable="true"] {
    outline: none;
    border-radius: 4px;
    padding: 2px 4px;
    transition: background 0.15s ease, box-shadow 0.15s ease;
    cursor: text;
}

.oef-brief-text[contenteditable="true"]:focus,
.oef-brief-modal-text[contenteditable="true"]:focus {
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 0 1.5px rgba(96, 165, 250, 0.4);
}

/* Light Theme Overrides */
[data-oef-theme="light"] .oef-client-brief-card {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
}

[data-oef-theme="light"] .oef-brief-title {
    color: #0f172a !important;
}

[data-oef-theme="light"] .oef-brief-subtitle {
    color: #64748b !important;
}

[data-oef-theme="light"] .oef-brief-bullet {
    background: #f8fafc !important;
    border-color: #e2e8f0 !important;
}

[data-oef-theme="light"] .oef-brief-text {
    color: #1e293b !important;
}

[data-oef-theme="light"] .oef-brief-modal-item {
    background: #f8fafc !important;
    border-color: #e2e8f0 !important;
}

[data-oef-theme="light"] .oef-brief-modal-text {
    color: #1e293b !important;
}

/* ─────────────────────────────────────────────────────────────────
   TEMPLATE LIBRARY STYLES (Cards, Grid, Actions, Fullscreen Canvas)
   ───────────────────────────────────────────────────────────────── */
.oef-templates-filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.oef-templates-search-wrap {
    position: relative;
    flex: 1;
    min-width: 260px;
    max-width: 420px;
}

.oef-templates-search-wrap .oef-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--oef-text-dim);
    font-size: 16px;
    pointer-events: none;
}

.oef-templates-search-wrap input {
    width: 100%;
    height: 38px;
    padding: 0 36px 0 36px;
    background: var(--oef-bg-card);
    border: 1px solid var(--oef-border);
    border-radius: var(--oef-radius);
    color: var(--oef-text);
    font-size: 13px;
    box-sizing: border-box;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.oef-templates-search-wrap input:focus {
    outline: none;
    border-color: var(--oef-accent);
    background: var(--oef-bg-hover);
}

.oef-templates-search-wrap #oef-templates-search-clear {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--oef-text-dim);
    font-size: 16px;
    cursor: pointer;
    padding: 0 4px;
}

.oef-template-category-pills {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.oef-category-pill {
    background: var(--oef-bg-card);
    border: 1px solid var(--oef-border);
    color: var(--oef-text-muted);
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}

.oef-category-pill:hover {
    background: var(--oef-bg-hover);
    color: var(--oef-text);
    border-color: var(--oef-border-light);
}

.oef-category-pill.active {
    background: var(--oef-accent);
    color: #ffffff;
    border-color: var(--oef-accent);
    font-weight: 600;
}

/* Template Cards Grid */
.oef-templates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.oef-template-card,
.oef-templates-grid .oef-template-card {
    background: var(--oef-bg-card);
    border: 1px solid var(--oef-border);
    border-radius: 12px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    position: relative;
    overflow: visible !important;
}

.oef-template-card:has(.oef-template-cat-wrap.oef-open),
.oef-template-card:has(.oef-card-more-wrap.oef-open),
.oef-template-card.oef-has-open-cat,
.oef-template-card.oef-has-open-more {
    z-index: 60 !important;
    overflow: visible !important;
}

.oef-template-card:hover {
    border-color: var(--oef-border-light);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
    transform: translateY(-2px);
}

.oef-template-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.oef-template-cat-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding: 3px 9px;
    border-radius: 12px;
    background: rgba(79, 124, 255, 0.12);
    color: var(--oef-accent);
    border: 1px solid rgba(79, 124, 255, 0.24);
}

/* Category Dropdown & Inline Switcher */
.oef-template-cat-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}

button.oef-template-cat-badge,
.oef-template-cat-btn {
    appearance: none;
    -webkit-appearance: none;
    border: 1px solid rgba(79, 124, 255, 0.24);
    background: rgba(79, 124, 255, 0.12);
    color: var(--oef-accent, #4f7cff);
    border-radius: 12px;
    padding: 3px 9px;
    cursor: pointer;
    font-family: inherit;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    line-height: normal;
    transition: all 0.15s ease;
    user-select: none;
}

.oef-template-cat-btn:hover {
    background: rgba(79, 124, 255, 0.22);
    border-color: rgba(79, 124, 255, 0.45);
    color: #6d93ff;
    transform: translateY(-1px);
}

.oef-template-cat-wrap.oef-open .oef-template-cat-btn {
    background: rgba(79, 124, 255, 0.28);
    border-color: var(--oef-accent, #4f7cff);
    color: #ffffff;
}

.oef-cat-caret {
    font-size: 10px;
    width: 10px;
    height: 10px;
    line-height: 10px;
    margin-left: 1px;
    opacity: 0.75;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.oef-template-cat-wrap.oef-open .oef-cat-caret {
    transform: rotate(180deg);
}

.oef-cat-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 1000;
    min-width: 200px;
    background: var(--oef-bg-card, #161a26);
    border: 1px solid var(--oef-border, #2a3144);
    border-radius: 10px;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.5), 0 4px 10px rgba(0, 0, 0, 0.3);
    padding: 8px;
    display: none;
    flex-direction: column;
    gap: 4px;
    backdrop-filter: blur(8px);
}

.oef-template-cat-wrap.oef-open .oef-cat-dropdown {
    display: flex;
    animation: oefCatDropdownFade 0.15s ease forwards;
}

@keyframes oefCatDropdownFade {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.oef-cat-dropdown-title {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--oef-text-dim, #718096);
    padding: 2px 6px 4px 6px;
}

.oef-cat-dropdown-items {
    display: flex;
    flex-direction: column;
    gap: 2px;
    max-height: 240px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(79, 124, 255, 0.4) transparent;
}

.oef-cat-dropdown-items::-webkit-scrollbar {
    width: 4px;
}

.oef-cat-dropdown-items::-webkit-scrollbar-thumb {
    background: rgba(79, 124, 255, 0.4);
    border-radius: 4px;
}

.oef-cat-dropdown-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 6px 8px;
    font-size: 12px;
    font-weight: 500;
    color: var(--oef-text, #e2e8f0);
    background: transparent;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-align: left;
    transition: background 0.12s, color 0.12s;
    font-family: inherit;
    box-sizing: border-box;
}

.oef-cat-dropdown-item:hover {
    background: rgba(79, 124, 255, 0.16);
    color: #ffffff;
}

.oef-cat-dropdown-item.active {
    background: rgba(79, 124, 255, 0.22);
    color: var(--oef-accent, #4f7cff);
    font-weight: 600;
}

.oef-cat-dropdown-item .dashicons-yes {
    font-size: 14px;
    width: 14px;
    height: 14px;
    line-height: 14px;
    color: var(--oef-accent, #4f7cff);
}

.oef-cat-divider {
    height: 1px;
    background: var(--oef-border, #2a3144);
    margin: 4px 0;
}

.oef-cat-custom-wrap {
    display: flex;
    align-items: center;
    gap: 5px;
    padding-top: 2px;
}

.oef-cat-custom-input {
    flex: 1;
    min-width: 0;
    background: var(--oef-bg, #0f1219);
    border: 1px solid var(--oef-border, #2a3144);
    border-radius: 6px;
    padding: 5px 8px;
    font-size: 11px;
    color: var(--oef-text, #e2e8f0);
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
    font-family: inherit;
    box-sizing: border-box;
}

.oef-cat-custom-input:focus {
    border-color: var(--oef-accent, #4f7cff);
    box-shadow: 0 0 0 2px rgba(79, 124, 255, 0.25);
}

.oef-cat-custom-input::placeholder {
    color: var(--oef-text-dim, #718096);
}

.oef-cat-custom-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background: var(--oef-accent, #4f7cff);
    color: #ffffff;
    border: none;
    cursor: pointer;
    transition: opacity 0.15s, transform 0.1s;
    flex-shrink: 0;
    padding: 0;
}

.oef-cat-custom-btn:hover {
    opacity: 0.9;
    transform: scale(1.04);
}

.oef-cat-custom-btn .dashicons {
    font-size: 15px;
    width: 15px;
    height: 15px;
    line-height: 15px;
}

.oef-template-date {
    font-size: 11px;
    color: var(--oef-text-dim);
}

.oef-template-title {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--oef-text);
    line-height: 1.35;
}

.oef-template-desc {
    font-size: 13px;
    color: var(--oef-text-muted);
    margin: 0 0 16px 0;
    line-height: 1.5;
    flex: 1;
}

.oef-template-stats {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    font-size: 12px;
    color: var(--oef-text-dim);
}

.oef-template-stat-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.oef-template-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 14px;
    border-top: 1px solid var(--oef-border);
    position: relative;
    box-sizing: border-box;
    width: 100%;
}

.oef-template-actions .oef-btn-edit-tpl {
    flex: 1;
    min-width: 0;
    justify-content: center;
    font-weight: 600;
    height: 34px;
    background: var(--oef-accent, #4f7cff) !important;
    color: #ffffff !important;
    border: 1px solid transparent !important;
    box-sizing: border-box;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 10px;
}

.oef-template-actions .oef-btn-edit-tpl:hover {
    background: #3d6ae8 !important;
    color: #ffffff !important;
}

.oef-template-actions .oef-btn-share-tpl,
.oef-template-actions .oef-btn-export-tpl {
    height: 34px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    white-space: nowrap;
    flex-shrink: 0;
    font-size: 12px;
    font-weight: 500;
}

/* Card More Options (...) Dropdown */
.oef-card-more-wrap {
    position: relative;
    display: inline-flex;
    flex-shrink: 0;
}

.oef-card-more-btn {
    width: 34px;
    height: 34px;
    padding: 0 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    cursor: pointer;
    background: transparent;
    border: 1px solid var(--oef-border, #2e384d);
    color: var(--oef-text-muted, #94a3b8);
    transition: all 0.15s ease;
    box-sizing: border-box;
}

.oef-card-more-btn:hover,
.oef-card-more-wrap.oef-open .oef-card-more-btn {
    background: rgba(79, 124, 255, 0.12);
    border-color: var(--oef-accent, #4f7cff);
    color: #ffffff;
}

.oef-card-more-btn .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    line-height: 18px;
}

.oef-card-more-dropdown {
    position: absolute;
    bottom: calc(100% + 6px);
    right: 0;
    z-index: 1000;
    min-width: 155px;
    background: var(--oef-bg-card, #161a26);
    border: 1px solid var(--oef-border, #2a3144);
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 4px 10px rgba(0, 0, 0, 0.25);
    padding: 6px;
    display: none;
    flex-direction: column;
    gap: 2px;
    backdrop-filter: blur(8px);
}

.oef-card-more-wrap.oef-open .oef-card-more-dropdown {
    display: flex;
    animation: oefMoreFadeIn 0.15s ease forwards;
}

@keyframes oefMoreFadeIn {
    from {
        opacity: 0;
        transform: translateY(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.oef-card-more-item {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 7px 10px;
    font-size: 12px;
    font-weight: 500;
    color: var(--oef-text, #e2e8f0);
    background: transparent;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-align: left;
    transition: background 0.12s, color 0.12s;
    font-family: inherit;
    box-sizing: border-box;
}

.oef-card-more-item:hover {
    background: rgba(79, 124, 255, 0.14);
    color: #ffffff;
}

.oef-card-more-item .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
    line-height: 14px;
    opacity: 0.8;
}

.oef-card-more-divider {
    height: 1px;
    background: var(--oef-border, #2a3144);
    margin: 4px 0;
}

.oef-card-more-item.oef-card-more-danger {
    color: #f87171;
}

.oef-card-more-item.oef-card-more-danger:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.oef-card-more-item.oef-card-more-danger .dashicons {
    color: inherit;
}

/* Primary actions in template views */
#oef-btn-create-template,
#oef-btn-empty-create,
#oef-submit-new-template {
    background: var(--oef-accent, #4f7cff) !important;
    color: #ffffff !important;
    border: 1px solid transparent !important;
}

#oef-btn-create-template:hover,
#oef-btn-empty-create:hover,
#oef-submit-new-template:hover {
    background: #3d6ae8 !important;
    color: #ffffff !important;
}

/* Starter Grid in Creation Modal */
.oef-starter-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 6px;
}

.oef-starter-card {
    border: 1px solid var(--oef-border);
    border-radius: 8px;
    padding: 14px 10px;
    text-align: center;
    cursor: pointer;
    background: var(--oef-bg-card);
    transition: all 0.15s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    text-transform: none !important;
    letter-spacing: normal !important;
    font-weight: normal !important;
    margin-bottom: 0 !important;
}

.oef-starter-card:hover {
    border-color: var(--oef-border-light);
    background: var(--oef-bg-hover);
}

.oef-starter-card.selected {
    border-color: var(--oef-accent);
    background: rgba(79, 124, 255, 0.08);
    box-shadow: 0 0 0 1px var(--oef-accent);
}

.oef-starter-card .oef-starter-icon {
    font-size: 20px;
    width: 20px;
    height: 20px;
    margin-bottom: 2px;
    color: var(--oef-accent);
}

.oef-starter-card strong {
    font-size: 13px;
    font-weight: 600;
    color: var(--oef-text);
    text-transform: none !important;
    letter-spacing: normal !important;
    line-height: 1.2;
}

.oef-starter-card span:not(.oef-starter-icon) {
    font-size: 11px;
    color: var(--oef-text-dim);
    line-height: 1.35;
    text-transform: none !important;
    letter-spacing: normal !important;
    font-weight: normal !important;
}

/* Full-Screen Builder Iframe Overlay */
.oef-builder-modal-wrap {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: #0f1117;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.oef-builder-modal-topbar {
    display: none !important;
}

.oef-builder-topbar-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.oef-builder-topbar-icon {
    color: var(--oef-accent);
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.oef-builder-topbar-title {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
}

.oef-builder-topbar-badge {
    background: rgba(79, 124, 255, 0.16);
    color: #4f7cff;
    border: 1px solid rgba(79, 124, 255, 0.35);
    border-radius: 12px;
    padding: 2px 8px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.oef-builder-modal-iframe-container {
    flex: 1;
    width: 100%;
    height: 100vh !important;
    background: #f0f2f5;
    position: relative;
}

.oef-builder-modal-iframe-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Light Theme Overrides for Template Library */
[data-oef-theme="light"] .oef-template-card {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05) !important;
}

[data-oef-theme="light"] .oef-template-card:hover {
    border-color: #cbd5e1 !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.09) !important;
}

[data-oef-theme="light"] .oef-template-title {
    color: #0f172a !important;
}

[data-oef-theme="light"] .oef-template-desc {
    color: #475569 !important;
}

[data-oef-theme="light"] .oef-category-pill {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
    color: #475569 !important;
}

[data-oef-theme="light"] .oef-category-pill:hover {
    background: #f1f5f9 !important;
    color: #0f172a !important;
}

[data-oef-theme="light"] .oef-category-pill.active {
    background: #3b82f6 !important;
    border-color: #3b82f6 !important;
    color: #ffffff !important;
}

[data-oef-theme="light"] .oef-starter-card {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
}

[data-oef-theme="light"] .oef-starter-card strong {
    color: #0f172a !important;
}

/* ── Template Sharing Badges & Modal Styles ── */
.oef-badge-team {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 7px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 6px;
    background: rgba(99, 102, 241, 0.15);
    color: #818cf8;
    border: 1px solid rgba(99, 102, 241, 0.3);
}

.oef-badge-team .dashicons {
    font-size: 13px;
    width: 13px;
    height: 13px;
    line-height: 13px;
}

.oef-badge-shared {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 7px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 6px;
    background: rgba(14, 165, 233, 0.15);
    color: #38bdf8;
    border: 1px solid rgba(14, 165, 233, 0.3);
}

.oef-badge-shared .dashicons {
    font-size: 13px;
    width: 13px;
    height: 13px;
    line-height: 13px;
}

.oef-badge-shared-from {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 7px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 6px;
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.oef-badge-shared-from .dashicons {
    font-size: 13px;
    width: 13px;
    height: 13px;
    line-height: 13px;
}

/* Share Modal Container & Sections */
.oef-share-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--oef-border, #202637);
    border-radius: 10px;
    padding: 14px 16px;
}

.oef-share-toggle-row {
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    user-select: none;
}

.oef-toggle-input {
    display: none !important;
    position: absolute !important;
    opacity: 0 !important;
    pointer-events: none !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    appearance: none !important;
    -webkit-appearance: none !important;
}

.oef-toggle-ui {
    position: relative;
    width: 42px;
    height: 24px;
    background: #2a3144;
    border-radius: 14px;
    flex-shrink: 0;
    transition: background 0.2s ease;
}

.oef-toggle-ui::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
    transition: transform 0.2s ease;
}

.oef-toggle-input:checked + .oef-toggle-ui {
    background: var(--oef-accent, #ff5c6a);
}

.oef-toggle-input:checked + .oef-toggle-ui::after {
    transform: translateX(18px);
}

.oef-share-toggle-text strong {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--oef-text, #e2e8f0);
    margin-bottom: 2px;
}

.oef-share-toggle-text p {
    margin: 0;
    font-size: 12px;
    color: var(--oef-text-muted, #94a3b8);
    line-height: 1.4;
}

.oef-share-section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.oef-share-section-title h4 {
    margin: 0;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--oef-text-muted, #94a3b8);
}

.oef-share-team-list {
    max-height: 190px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-right: 4px;
}

.oef-share-member-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--oef-border, #202637);
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.oef-share-member-row:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
}

.oef-share-member-cb {
    accent-color: var(--oef-accent, #ff5c6a);
    width: 16px;
    height: 16px;
    margin: 0;
    cursor: pointer;
}

.oef-share-member-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    background: #1e2433;
}

.oef-share-member-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.oef-share-member-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--oef-text, #e2e8f0);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.oef-share-member-email {
    font-size: 11px;
    color: var(--oef-text-muted, #94a3b8);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.oef-share-member-badge {
    font-size: 10px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.oef-share-member-badge.active {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.oef-share-member-badge.pending {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.oef-share-empty-team {
    text-align: center;
    padding: 16px;
    color: var(--oef-text-muted, #94a3b8);
    font-size: 12px;
    line-height: 1.5;
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed var(--oef-border, #202637);
    border-radius: 8px;
}

.oef-share-empty-team .dashicons {
    font-size: 26px;
    width: 26px;
    height: 26px;
    margin-bottom: 6px;
    opacity: 0.5;
}

#oef-share-email-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--oef-border, #202637);
    color: var(--oef-text, #ffffff);
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 13px;
    box-sizing: border-box;
    transition: border-color 0.15s ease;
}

#oef-share-email-input:focus {
    outline: none;
    border-color: var(--oef-accent, #ff5c6a);
}

.oef-share-email-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.oef-share-email-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--oef-border, #202637);
    border-radius: 6px;
    font-size: 12px;
    color: var(--oef-text, #e2e8f0);
}

.oef-remove-share-tag {
    background: none;
    border: none;
    color: var(--oef-text-muted, #94a3b8);
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    padding: 0 2px;
}

.oef-remove-share-tag:hover {
    color: var(--oef-red, #f43f5e);
}

#oef-share-template-modal .oef-modal-header h2,
#oef-share-template-modal .oef-modal-header h2 span {
    color: #ffffff !important;
}

.oef-share-perm-box strong {
    color: var(--oef-text, #ffffff) !important;
}

.oef-share-perm-box p {
    color: var(--oef-text-muted, #94a3b8) !important;
}

/* Light Theme overrides for share modal */
[data-oef-theme="light"] #oef-share-template-modal .oef-modal-container {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15) !important;
}

[data-oef-theme="light"] #oef-share-template-modal .oef-modal-header {
    background: #f8fafc !important;
    border-bottom-color: #e2e8f0 !important;
}

[data-oef-theme="light"] #oef-share-template-modal .oef-modal-header h2,
[data-oef-theme="light"] #oef-share-template-modal .oef-modal-header h2 span {
    color: #0f172a !important;
}

[data-oef-theme="light"] .oef-share-box {
    background: #f8fafc;
    border-color: #e2e8f0;
}

[data-oef-theme="light"] .oef-share-toggle-text strong,
[data-oef-theme="light"] .oef-share-member-name,
[data-oef-theme="light"] .oef-share-perm-box strong {
    color: #0f172a !important;
}

[data-oef-theme="light"] .oef-share-toggle-text p,
[data-oef-theme="light"] .oef-share-member-email,
[data-oef-theme="light"] .oef-share-empty-team,
[data-oef-theme="light"] .oef-share-perm-box p {
    color: #475569 !important;
}

[data-oef-theme="light"] .oef-share-member-row {
    background: #ffffff;
    border-color: #e2e8f0;
}

[data-oef-theme="light"] .oef-share-member-row:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

[data-oef-theme="light"] #oef-share-email-input {
    background: #ffffff;
    border-color: #cbd5e1;
    color: #0f172a;
}

[data-oef-theme="light"] .oef-share-email-tag {
    background: #f1f5f9;
    border-color: #e2e8f0;
    color: #0f172a;
}

[data-oef-theme="light"] .oef-toggle-ui {
    background: #cbd5e1;
}

/* Light Theme Category Dropdown */
[data-oef-theme="light"] .oef-template-cat-btn {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.25);
    color: #2563eb;
}

[data-oef-theme="light"] .oef-template-cat-btn:hover {
    background: rgba(59, 130, 246, 0.18);
    border-color: rgba(59, 130, 246, 0.4);
    color: #1d4ed8;
}

[data-oef-theme="light"] .oef-template-cat-wrap.oef-open .oef-template-cat-btn {
    background: rgba(59, 130, 246, 0.22);
    border-color: #2563eb;
    color: #1d4ed8;
}

[data-oef-theme="light"] .oef-cat-dropdown {
    background: #ffffff;
    border-color: #e2e8f0;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12), 0 3px 8px rgba(0, 0, 0, 0.05);
}

[data-oef-theme="light"] .oef-cat-dropdown-title {
    color: #64748b;
}

[data-oef-theme="light"] .oef-cat-dropdown-item {
    color: #0f172a;
}

[data-oef-theme="light"] .oef-cat-dropdown-item:hover {
    background: #f1f5f9;
    color: #2563eb;
}

[data-oef-theme="light"] .oef-cat-dropdown-item.active {
    background: rgba(59, 130, 246, 0.12);
    color: #2563eb;
}

[data-oef-theme="light"] .oef-cat-divider {
    background: #e2e8f0;
}

[data-oef-theme="light"] .oef-cat-custom-input {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #0f172a;
}

[data-oef-theme="light"] .oef-cat-custom-input:focus {
    background: #ffffff;
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

[data-oef-theme="light"] .oef-cat-custom-input::placeholder {
    color: #94a3b8;
}

/* Light Theme Card More Options Dropdown */
[data-oef-theme="light"] .oef-card-more-btn {
    border-color: #cbd5e1;
    color: #475569;
}

[data-oef-theme="light"] .oef-card-more-btn:hover,
[data-oef-theme="light"] .oef-card-more-wrap.oef-open .oef-card-more-btn {
    background: rgba(59, 130, 246, 0.1);
    border-color: #3b82f6;
    color: #1d4ed8;
}

[data-oef-theme="light"] .oef-card-more-dropdown {
    background: #ffffff;
    border-color: #e2e8f0;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12), 0 3px 8px rgba(0, 0, 0, 0.05);
}

[data-oef-theme="light"] .oef-card-more-item {
    color: #0f172a;
}

[data-oef-theme="light"] .oef-card-more-item:hover {
    background: #f1f5f9;
    color: #2563eb;
}

[data-oef-theme="light"] .oef-card-more-divider {
    background: #e2e8f0;
}

[data-oef-theme="light"] .oef-card-more-item.oef-card-more-danger {
    color: #dc2626;
}

[data-oef-theme="light"] .oef-card-more-item.oef-card-more-danger:hover {
    background: rgba(239, 68, 68, 0.08);
    color: #b91c1c;
}

/* ── AI Credits Top Bar Button ── */
.oef-credits-pill-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    background: rgba(245, 158, 11, 0.12) !important;
    border: 1px solid rgba(245, 158, 11, 0.3) !important;
    color: #f59e0b !important;
    padding: 6px 14px !important;
    border-radius: 20px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}
.oef-credits-pill-btn:hover {
    background: rgba(245, 158, 11, 0.22) !important;
    border-color: rgba(245, 158, 11, 0.5) !important;
    transform: translateY(-1px);
}
.oef-credits-bolt {
    font-size: 14px;
}
.oef-credits-num {
    font-size: 13px;
    font-weight: 800;
}
.oef-credits-label {
    font-size: 12px;
    font-weight: 600;
    opacity: 0.9;
}

/* ── Credit Packs Modal Grid ── */
.oef-credit-packs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 14px;
}
.oef-credit-pack-card {
    background: var(--oef-bg-card);
    border: 1px solid var(--oef-border);
    border-radius: 10px;
    padding: 16px 14px;
    text-align: center;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.oef-credit-pack-card:hover {
    border-color: var(--oef-accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}
.oef-pack-bolt {
    font-size: 22px;
    margin-bottom: 4px;
}
.oef-pack-amount {
    font-size: 24px;
    font-weight: 800;
    color: var(--oef-text);
}
.oef-pack-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--oef-text-muted);
    margin: 2px 0 10px 0;
}
.oef-pack-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--oef-green);
    margin-bottom: 12px;
}
.oef-pack-buy-btn {
    width: 100%;
    justify-content: center;
    text-decoration: none !important;
}


