/**
 * PHPDecode — Monochrome Engineering Grid Design System
 * First-principles enterprise developer platform stylesheet.
 * No Tailwind dependencies for visual design. All surfaces, typography,
 * components, and interactions are defined here.
 *
 * Visual Philosophy: Precision and restraint over decoration.
 * Surfaces defined by 1px border lines, not gradients or shadows.
 */

/* ── Google Fonts Preloaded in HTML Head ─────────────────────────────── */
/* Plus Jakarta Sans (UI) + JetBrains Mono (code, labels, telemetry) */

/* ════════════════════════════════════════════════════════════════════════
   1. DESIGN TOKENS
═══════════════════════════════════════════════════════════════════════ */
:root {
    /* Surface Palette — ink/slate, no blue cast */
    --ink-950: #09090b;
    --ink-900: #0f1014;
    --ink-850: #141519;
    --ink-800: #1a1c23;
    --ink-750: #20232d;
    --ink-700: #272a36;
    --ink-600: #313546;

    /* Grid Lines — used in place of shadows */
    --line-6: rgba(255, 255, 255, 0.04);
    --line-10: rgba(255, 255, 255, 0.07);
    --line-15: rgba(255, 255, 255, 0.10);
    --line-25: rgba(255, 255, 255, 0.18);
    --line-40: rgba(255, 255, 255, 0.30);
    --line-hi: rgba(255, 255, 255, 0.05);
    /* surface top-edge highlight */

    /* Signal Accent — ONE accent color, used with discipline */
    --signal: #4f8cff;
    --signal-hover: #6ba3ff;
    --signal-dim: rgba(79, 140, 255, 0.10);
    --signal-border: rgba(79, 140, 255, 0.30);

    /* Status Colors — data only, never decorative */
    --status-ok: #22c55e;
    --status-ok-dim: rgba(34, 197, 94, 0.12);
    --status-warn: #eab308;
    --status-warn-dim: rgba(234, 179, 8, 0.12);
    --status-err: #ef4444;
    --status-err-dim: rgba(239, 68, 68, 0.12);
    --status-info: #38bdf8;
    --status-info-dim: rgba(56, 189, 248, 0.10);

    /* Version Color Tokens (PHP badges — subtle distinctions) */
    --php8-color: #a78bfa;
    --php8-dim: rgba(167, 139, 250, 0.10);
    --php7-color: #fb923c;
    --php7-dim: rgba(251, 146, 60, 0.10);
    --php5-color: #94a3b8;
    --php5-dim: rgba(148, 163, 184, 0.08);
    --ic-color: #38bdf8;
    --ic-dim: rgba(56, 189, 248, 0.10);
    --sg-color: #4ade80;
    --sg-dim: rgba(74, 222, 128, 0.10);

    /* Typography */
    --text-base-color: #c9cdd4;
    --text-dim: #7a8094;
    --text-faint: #4a4f63;
    --text-white: #f2f3f5;
    --text-accent: var(--signal);

    /* Font Stacks */
    --font-ui: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Cascadia Code', ui-monospace, monospace;

    /* Typographic Scale */
    --text-2xs: 10px;
    --text-xs: 11px;
    --text-sm: 13px;
    --text-md: 15px;
    --text-lg: 18px;
    --text-xl: 22px;
    --text-2xl: 28px;
    --text-3xl: 38px;
    --text-4xl: 52px;
    --text-5xl: 68px;

    /* Spacing Grid (4px base) */
    --sp-1: 4px;
    --sp-2: 8px;
    --sp-3: 12px;
    --sp-4: 16px;
    --sp-5: 20px;
    --sp-6: 24px;
    --sp-8: 32px;
    --sp-10: 40px;
    --sp-12: 48px;
    --sp-16: 64px;
    --sp-20: 80px;
    --sp-24: 96px;

    /* Radii — intentionally small */
    --r-sm: 3px;
    --r-md: 5px;
    --r-lg: 7px;
    --r-xl: 12px;
    --r-full: 9999px;

    /* Sidebar width */
    --sidebar-w: 248px;

    /* Transitions */
    --ease-ui: 120ms ease;
    --ease-menu: 180ms cubic-bezier(0.2, 0, 0, 1);

    /* ── PREMIUM DESIGN TOKENS (v2) ─────────────────────────────────── */

    /* Glassmorphism surfaces */
    --glass-bg: rgba(15, 16, 20, 0.72);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-blur: blur(20px) saturate(1.5);

    /* Glow / Ambient Shadow System */
    --glow-signal: 0 0 32px rgba(79, 140, 255, 0.25), 0 0 8px rgba(79, 140, 255, 0.12);
    --glow-ok: 0 0 24px rgba(34, 197, 94, 0.25), 0 0 8px rgba(34, 197, 94, 0.12);
    --glow-err: 0 0 24px rgba(239, 68, 68, 0.25), 0 0 8px rgba(239, 68, 68, 0.12);
    --glow-warn: 0 0 24px rgba(234, 179, 8, 0.20);
    --shadow-xl: 0 24px 48px rgba(0, 0, 0, 0.60), 0 8px 16px rgba(0, 0, 0, 0.30);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.50);
    --shadow-card: 0 4px 16px rgba(0, 0, 0, 0.35);

    /* Gradient tokens */
    --gradient-signal: linear-gradient(135deg, #4f8cff 0%, #06b6d4 50%, #10b981 100%);
    --gradient-dark: linear-gradient(180deg, var(--ink-900) 0%, var(--ink-950) 100%);
    --gradient-hero: radial-gradient(ellipse at 50% -20%, rgba(79, 140, 255, 0.15) 0%, transparent 65%);

    /* Dropzone specific */
    --dz-border: rgba(79, 140, 255, 0.20);
    --dz-border-hover: rgba(79, 140, 255, 0.55);
    --dz-bg: rgba(79, 140, 255, 0.04);
    --dz-bg-hover: rgba(79, 140, 255, 0.08);
}

/* ════════════════════════════════════════════════════════════════════════
   LIGHT MODE DESIGN SYSTEM
   Ultra-clean contrast, modern readability, with Footer permanently pure black.
═══════════════════════════════════════════════════════════════════════ */
[data-theme="light"] {
    /* Surface Palette */
    --ink-950: #f8fafc;
    --ink-900: #ffffff;
    --ink-850: #f1f5f9;
    --ink-800: #e2e8f0;
    --ink-750: #cbd5e1;
    --ink-700: #94a3b8;
    --ink-600: #64748b;

    /* Grid Lines & Borders */
    --line-6: rgba(0, 0, 0, 0.04);
    --line-10: #e2e8f0;
    --line-15: #cbd5e1;
    --line-25: #94a3b8;
    --line-40: #64748b;
    --line-hi: #ffffff;

    /* Signal & Accent */
    --signal: #2563eb;
    --signal-hover: #1d4ed8;
    --signal-dim: rgba(37, 99, 235, 0.08);
    --signal-border: rgba(37, 99, 235, 0.25);

    /* Typography */
    --text-base-color: #334155;
    --text-dim: #64748b;
    --text-faint: #94a3b8;
    --text-white: #0f172a;
    --text-accent: var(--signal);

    /* Glassmorphism surfaces */
    --glass-bg: rgba(255, 255, 255, 0.92);
    --glass-border: #e2e8f0;

    /* Ambient Shadow System */
    --shadow-xl: 0 20px 48px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.06);
    --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.04);

    /* Dropzone */
    --dz-border: rgba(37, 99, 235, 0.25);
    --dz-border-hover: rgba(37, 99, 235, 0.60);
    --dz-bg: rgba(37, 99, 235, 0.03);
    --dz-bg-hover: rgba(37, 99, 235, 0.06);
}

/* ── Light Theme: Text & Headings ── */
[data-theme="light"] body {
    background-color: #f8fafc !important;
    color: #334155 !important;
}

[data-theme="light"] h1:not(.pd-footer *),
[data-theme="light"] h2:not(.pd-footer *),
[data-theme="light"] h3:not(.pd-footer *),
[data-theme="light"] h4:not(.pd-footer *),
[data-theme="light"] h5:not(.pd-footer *),
[data-theme="light"] h6:not(.pd-footer *),
[data-theme="light"] .t-hero:not(.pd-footer *),
[data-theme="light"] .t-display:not(.pd-footer *),
[data-theme="light"] .t-title:not(.pd-footer *) {
    color: #0f172a !important;
}

[data-theme="light"] strong:not(.pd-footer *):not(.pd-btn-primary *),
[data-theme="light"] b:not(.pd-footer *):not(.pd-btn-primary *) {
    color: #0f172a !important;
}

[data-theme="light"] .t-dim:not(.pd-footer *) {
    color: #64748b !important;
}

[data-theme="light"] .t-faint:not(.pd-footer *) {
    color: #94a3b8 !important;
}

/* ── Light Theme: Dashboard Console & Surfaces ── */
[data-theme="light"] .pd-console,
[data-theme="light"] .pd-main,
[data-theme="light"] .pd-content {
    background-color: #f8fafc !important;
}

[data-theme="light"] .pd-topbar {
    background: #ffffff !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

[data-theme="light"] .pd-sidebar {
    background: #ffffff !important;
    border-right: 1px solid #e2e8f0 !important;
}

[data-theme="light"] .pd-sidebar-header {
    border-bottom: 1px solid #e2e8f0 !important;
}

[data-theme="light"] .pd-sidebar-footer {
    border-top: 1px solid #e2e8f0 !important;
}

[data-theme="light"] .pd-sidebar-group-label {
    color: #64748b !important;
}

[data-theme="light"] .pd-sidebar-link {
    color: #475569 !important;
}

[data-theme="light"] .pd-sidebar-link:hover {
    color: #0f172a !important;
    background: #f1f5f9 !important;
}

[data-theme="light"] .pd-sidebar-link.is-active {
    color: #2563eb !important;
    background: rgba(37, 99, 235, 0.08) !important;
}

[data-theme="light"] .pd-user-card {
    background: #f1f5f9 !important;
    border: 1px solid #e2e8f0 !important;
}

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

[data-theme="light"] .pd-user-status {
    color: #64748b !important;
}

[data-theme="light"] .pd-console-footer {
    background: #09090b !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #94a3b8 !important;
}

[data-theme="light"] .pd-console-footer a {
    color: #94a3b8 !important;
}

[data-theme="light"] .pd-console-footer a:hover {
    color: #ffffff !important;
}

/* ── Light Theme: Frontend Header & Mega Menus ── */
[data-theme="light"] .pd-header {
    background: rgba(255, 255, 255, 0.95) !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

[data-theme="light"] .pd-nav-link {
    color: #475569 !important;
}

[data-theme="light"] .pd-nav-link:hover {
    color: #0f172a !important;
}

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

[data-theme="light"] .pd-mega-panel {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08) !important;
}

[data-theme="light"] .pd-mega-item:hover {
    background: #f8fafc !important;
}

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

[data-theme="light"] .pd-mega-text-desc {
    color: #64748b !important;
}

/* Mobile drawer stays dark across all themes */
.pd-mobile-panel {
    background: #090e18 !important;
    color: #ffffff !important;
}

/* ── Light Theme: Cards, Boxes & Badges ── */
[data-theme="light"] .pd-card:not(.pd-feature-showcase-card):not(.pd-pricing-showcase):not(.pd-interactive-terminal),
[data-theme="light"] .pd-engine-card,
[data-theme="light"] .pd-pricing-card:not(.pd-pricing-showcase),
[data-theme="light"] .pd-feature-card,
[data-theme="light"] .pd-stat-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04) !important;
}

[data-theme="light"] .pd-advance-badge {
    background: rgba(0, 0, 0, 0.04) !important;
    border: 1px solid rgba(0, 0, 0, 0.12) !important;
    color: #0f172a !important;
}

[data-theme="light"] .pd-version-chip {
    background: #f1f5f9 !important;
    border: 1px solid #e2e8f0 !important;
    color: #1e293b !important;
}

[data-theme="light"] .pd-version-chip:hover {
    background: #e2e8f0 !important;
    color: #0f172a !important;
}

/* ── Light Theme: Analytics & Telemetry Graphs ── */
[data-theme="light"] .pd-card:not(.pd-pricing-showcase):not(.pd-feature-showcase-card):not(.pd-interactive-terminal) .t-title,
[data-theme="light"] .pd-card:not(.pd-pricing-showcase):not(.pd-feature-showcase-card):not(.pd-interactive-terminal) h2.t-title {
    color: #0f172a !important;
}

[data-theme="light"] .pd-card:not(.pd-pricing-showcase):not(.pd-feature-showcase-card):not(.pd-interactive-terminal) [style*="background:var(--ink-800)"],
[data-theme="light"] .pd-card:not(.pd-pricing-showcase):not(.pd-feature-showcase-card):not(.pd-interactive-terminal) [style*="background: var(--ink-800)"] {
    background: #f1f5f9 !important;
    border: 1px solid #e2e8f0 !important;
    color: #475569 !important;
}

[data-theme="light"] .pd-card:not(.pd-pricing-showcase):not(.pd-feature-showcase-card):not(.pd-interactive-terminal) [style*="background:var(--ink-850)"],
[data-theme="light"] .pd-card:not(.pd-pricing-showcase):not(.pd-feature-showcase-card):not(.pd-interactive-terminal) [style*="background: var(--ink-850)"] {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
}

[data-theme="light"] .pd-card:not(.pd-pricing-showcase):not(.pd-feature-showcase-card):not(.pd-interactive-terminal) [style*="border-top:1px solid var(--line-10)"],
[data-theme="light"] .pd-card:not(.pd-pricing-showcase):not(.pd-feature-showcase-card):not(.pd-interactive-terminal) [style*="border-top: 1px solid var(--line-10)"] {
    border-top-color: #e2e8f0 !important;
}

/* ── Light Theme: Tables ── */
[data-theme="light"] .pd-table-wrap,
[data-theme="light"] .pd-table {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
}

[data-theme="light"] .pd-table th {
    background: #f8fafc !important;
    color: #475569 !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

[data-theme="light"] .pd-table td {
    color: #1e293b !important;
    border-bottom: 1px solid #f1f5f9 !important;
}

[data-theme="light"] .pd-table tr:hover td {
    background: #f8fafc !important;
}

/* ── Light Theme: Inputs & Forms ── */
[data-theme="light"] input,
[data-theme="light"] select,
[data-theme="light"] textarea,
[data-theme="light"] .pd-input,
[data-theme="light"] .pd-select {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
}

[data-theme="light"] input::placeholder,
[data-theme="light"] textarea::placeholder {
    color: #94a3b8 !important;
}

[data-theme="light"] .pd-btn-ghost {
    color: #334155 !important;
    border: 1px solid #cbd5e1 !important;
    background: #ffffff !important;
}

[data-theme="light"] .pd-btn-ghost:hover {
    background: #f1f5f9 !important;
    color: #0f172a !important;
}

[data-theme="light"] .pd-btn-secondary {
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
}

[data-theme="light"] .pd-btn-secondary:hover {
    background: #f1f5f9 !important;
    border-color: #94a3b8 !important;
    color: #0284c7 !important;
}

[data-theme="light"] .pd-btn-refresh {
    background: #eff6ff !important;
    border-color: #bfdbfe !important;
    color: #0284c7 !important;
}

[data-theme="light"] .pd-btn-refresh:hover {
    background: #dbeafe !important;
    border-color: #60a5fa !important;
    color: #0369a1 !important;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.15) !important;
}

/* ── Light Theme: Modals & Archive Tree ── */
[data-theme="light"] .pd-modal,
[data-theme="light"] .pd-modal-card,
[data-theme="light"] .pd-dialog {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15) !important;
    color: #0f172a !important;
}

[data-theme="light"] .pd-modal-header,
[data-theme="light"] .pd-modal-footer {
    border-color: #e2e8f0 !important;
}

[data-theme="light"] .pd-tree-node {
    color: #1e293b !important;
}

[data-theme="light"] .pd-tree-node:hover {
    background: #f1f5f9 !important;
}

/* ── Light Theme: Interactive Terminal & Sandbox ── */
[data-theme="light"] #pd-demo-decoder,
[data-theme="light"] .pd-interactive-terminal {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06) !important;
}

[data-theme="light"] .pd-demo-dropzone-wrap {
    background: #f8fafc !important;
    border-right: 1px solid #e2e8f0 !important;
}

[data-theme="light"] .pd-terminal-header {
    background: #f1f5f9 !important;
    border-bottom: 1px solid #e2e8f0 !important;
    color: #0f172a !important;
}

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

/* Code viewer body remains dark for syntax highlighting */
[data-theme="light"] .pd-code-view-body {
    background: #0f172a !important;
    color: #e2e8f0 !important;
}

/* ── Dark Feature Showcase Banner (Aesthetic Dark in both Dark & Light themes) ── */
.pd-feature-showcase-card,
.pd-card.pd-feature-showcase-card,
[data-theme="light"] .pd-feature-showcase-card,
[data-theme="light"] .pd-card.pd-feature-showcase-card {
    background: linear-gradient(135deg, #0b0f19 0%, #111827 100%) !important;
    border: 1px solid rgba(59, 130, 246, 0.45) !important;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4) !important;
    color: #f8fafc !important;
}

.pd-feature-showcase-card h1,
.pd-feature-showcase-card h2,
.pd-feature-showcase-card h3,
[data-theme="light"] .pd-feature-showcase-card h1,
[data-theme="light"] .pd-feature-showcase-card h2,
[data-theme="light"] .pd-feature-showcase-card h3 {
    color: #ffffff !important;
}

.pd-feature-showcase-card p,
.pd-feature-showcase-card .t-dim,
[data-theme="light"] .pd-feature-showcase-card p,
[data-theme="light"] .pd-feature-showcase-card .t-dim {
    color: #94a3b8 !important;
}

.pd-feature-showcase-card div,
.pd-feature-showcase-card span,
.pd-feature-showcase-card strong,
[data-theme="light"] .pd-feature-showcase-card div,
[data-theme="light"] .pd-feature-showcase-card span,
[data-theme="light"] .pd-feature-showcase-card strong {
    color: inherit;
}

.pd-feature-showcase-card .pd-price-amount,
[data-theme="light"] .pd-feature-showcase-card .pd-price-amount {
    color: #38bdf8 !important;
}

.pd-feature-showcase-card [style*="border-bottom:1px solid var(--line-10)"],
[data-theme="light"] .pd-feature-showcase-card [style*="border-bottom:1px solid var(--line-10)"] {
    border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}

/* ── Light Theme: Complete Auth Pages (Sign in, Register, Forgot Password, Reset Password) ── */
[data-theme="light"] .pd-auth-container {
    background: #f8fafc !important;
}

[data-theme="light"] .pd-auth-split {
    background: #f8fafc !important;
}

[data-theme="light"] .pd-auth-split-left {
    background: #ffffff !important;
    border-right: 1px solid #e2e8f0 !important;
}

[data-theme="light"] .pd-auth-split-left h2,
[data-theme="light"] .pd-auth-split-left [style*="color:#ffffff"],
[data-theme="light"] .pd-auth-split-left [style*="color: #ffffff"] {
    color: #0f172a !important;
}

[data-theme="light"] .pd-auth-split-left p {
    color: #64748b !important;
}

[data-theme="light"] .pd-auth-split-left div[style*="background:rgba(255,255,255"] {
    background: #f1f5f9 !important;
    border-color: #e2e8f0 !important;
}

[data-theme="light"] .pd-auth-split-feature {
    color: #334155 !important;
}

[data-theme="light"] .pd-auth-split-feature div[style*="color:#ffffff"],
[data-theme="light"] .pd-auth-split-feature div[style*="color: #ffffff"] {
    color: #0f172a !important;
}

[data-theme="light"] .pd-auth-split-feature div[style*="color:var(--text-faint)"] {
    color: #64748b !important;
}

[data-theme="light"] .pd-auth-split-feature-icon {
    background: #f8fafc !important;
    border-color: #e2e8f0 !important;
}

[data-theme="light"] .pd-auth-split-right {
    background: #f8fafc !important;
}

[data-theme="light"] .pd-auth-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.03) !important;
}

[data-theme="light"] .pd-auth-card::before {
    background: linear-gradient(90deg, transparent 0%, #2563eb 50%, transparent 100%) !important;
}

[data-theme="light"] .pd-auth-header .t-heading {
    color: #0f172a !important;
}

[data-theme="light"] .pd-auth-header .t-small {
    color: #64748b !important;
}

[data-theme="light"] .pd-auth-card label,
[data-theme="light"] .pd-auth-card .pd-label,
[data-theme="light"] .pd-auth-card label[style*="color:#8b949e"],
[data-theme="light"] .pd-auth-card label[style*="color: #8b949e"] {
    color: #334155 !important;
}

[data-theme="light"] .pd-auth-input {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
}

[data-theme="light"] .pd-auth-input:hover {
    border-color: #94a3b8 !important;
}

[data-theme="light"] .pd-auth-input:focus {
    background: #ffffff !important;
    border-color: #2563eb !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15) !important;
}

[data-theme="light"] .pd-auth-input::placeholder {
    color: #94a3b8 !important;
}

[data-theme="light"] .pd-auth-input-icon {
    color: #94a3b8 !important;
}

[data-theme="light"] .pd-auth-card-footer {
    background: #f8fafc !important;
    border-top: 1px solid #e2e8f0 !important;
    color: #64748b !important;
}

[data-theme="light"] .pd-auth-card-footer a {
    color: #2563eb !important;
}

[data-theme="light"] .pd-auth-divider span {
    background: #ffffff !important;
    color: #64748b !important;
}

[data-theme="light"] .pd-auth-divider::before,
[data-theme="light"] .pd-auth-divider::after {
    background: #e2e8f0 !important;
}

[data-theme="light"] .pd-auth-card div[style*="background:var(--ink-850)"] {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
}

[data-theme="light"] .pd-auth-card div[style*="background:var(--ink-850)"] div[style*="color:var(--text-white)"] {
    color: #0f172a !important;
}

/* ── Light Theme: Upload Studio & Decompiler Wizard (upload.php) ── */
[data-theme="light"] .studio-container {
    color: #334155;
}

[data-theme="light"] .studio-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04) !important;
}

[data-theme="light"] .studio-titlebar {
    background: #f8fafc !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

[data-theme="light"] .studio-titlebar * {
    color: #0f172a;
}

[data-theme="light"] .studio-dropzone-wrap {
    background: #ffffff !important;
}

[data-theme="light"] .studio-dropzone-box {
    background: #f8fafc !important;
    border: 2px dashed rgba(37, 99, 235, 0.3) !important;
}

[data-theme="light"] .studio-dropzone-box:hover,
[data-theme="light"] .studio-dropzone-box.is-over {
    background: rgba(37, 99, 235, 0.04) !important;
    border-color: #2563eb !important;
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.12) !important;
}

[data-theme="light"] .studio-dropzone-box div[style*="color:var(--text-white)"],
[data-theme="light"] .studio-dropzone-box div:first-of-type {
    color: #0f172a !important;
}

[data-theme="light"] .studio-dropzone-box div[style*="color:var(--text-dim)"] {
    color: #64748b !important;
}

/* Step 2: File Review */
[data-theme="light"] [x-show="step === 2"] {
    background: #ffffff !important;
}

[data-theme="light"] [x-show="step === 2"] div[style*="background:var(--ink-850)"],
[data-theme="light"] [x-show="step === 2"] div[style*="background: var(--ink-850)"] {
    background: #f8fafc !important;
    border-color: #e2e8f0 !important;
}

[data-theme="light"] [x-show="step === 2"] .t-title,
[data-theme="light"] [x-show="step === 2"] h2 {
    color: #0f172a !important;
}

[data-theme="light"] [x-show="step === 2"] div[style*="background:var(--line-10)"] {
    background: #e2e8f0 !important;
    border-color: #e2e8f0 !important;
}

/* Step 3: Decompilation Live Pipeline */
[data-theme="light"] [x-show="step === 3"] {
    background: #ffffff !important;
}

[data-theme="light"] [x-show="step === 3"] span[style*="color:var(--text-white)"] {
    color: #0f172a !important;
}

[data-theme="light"] [x-show="step === 3"] .pd-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05) !important;
}

[data-theme="light"] [x-show="step === 3"] div[style*="background:var(--ink-900)"] {
    background: #f8fafc !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

[data-theme="light"] [x-show="step === 3"] .pd-card span[style*="color:var(--text-white)"] {
    color: #0f172a !important;
}

/* Step 4: Result & Code Viewer */
[data-theme="light"] [x-show="step === 4"] {
    background: #ffffff !important;
}

[data-theme="light"] [x-show="step === 4"] h2,
[data-theme="light"] [x-show="step === 4"] .t-title {
    color: #0f172a !important;
}

[data-theme="light"] [x-show="step === 4"] div[style*="background:var(--ink-850)"],
[data-theme="light"] [x-show="step === 4"] div[style*="background: var(--ink-850)"] {
    background: #f8fafc !important;
    border-color: #e2e8f0 !important;
}

[data-theme="light"] [x-show="step === 4"] div[style*="background:var(--line-10)"] {
    background: #e2e8f0 !important;
    border-color: #e2e8f0 !important;
}

[data-theme="light"] [x-show="step === 4"] .pd-card[style*="background:var(--ink-900)"] {
    background: #f0f7ff !important;
    border-color: rgba(37, 99, 235, 0.3) !important;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.08) !important;
}

[data-theme="light"] [x-show="step === 4"] .pd-card[style*="background:var(--ink-900)"] div[style*="color:var(--text-white)"] {
    color: #0f172a !important;
}

[data-theme="light"] [x-show="step === 4"] .pd-card[style*="background:var(--ink-900)"] div[style*="color:var(--text-dim)"] {
    color: #334155 !important;
}

[data-theme="light"] [x-show="step === 4"] div[style*="background:var(--ink-900)"] {
    background: #f8fafc !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

/* ── THEME TOGGLE BUTTON ── */
.pd-theme-toggle,
.pd-hdr-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--r-md);
    background: transparent;
    border: 1px solid var(--line-15);
    color: var(--text-dim);
    cursor: pointer;
    text-decoration: none !important;
    transition: all var(--ease-ui);
    padding: 0;
    flex-shrink: 0;
}

.pd-theme-toggle:hover,
.pd-hdr-icon-btn:hover {
    color: var(--text-white);
    border-color: var(--signal);
    background: var(--signal-dim);
}

[data-theme="light"] .pd-theme-toggle,
[data-theme="light"] .pd-hdr-icon-btn {
    border-color: #cbd5e1;
    color: #475569;
}

[data-theme="light"] .pd-theme-toggle:hover,
[data-theme="light"] .pd-hdr-icon-btn:hover {
    color: #0f172a;
    background: #f1f5f9;
}

.pd-theme-toggle-primary,
.pd-hdr-icon-btn-primary {
    background: linear-gradient(135deg, #38bdf8 0%, #6366f1 100%) !important;
    border-color: rgba(56, 189, 248, 0.4) !important;
    color: #ffffff !important;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.25) !important;
}

.pd-theme-toggle-primary:hover,
.pd-hdr-icon-btn-primary:hover {
    background: linear-gradient(135deg, #60a5fa 0%, #818cf8 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 0 18px rgba(99, 102, 241, 0.45) !important;
    transform: translateY(-1px);
}

/* ════════════════════════════════════════════════════════════════════════
   CRITICAL MANDATE: FOOTER IS PERMANENTLY PURE BLACK ACROSS ALL MODES
═══════════════════════════════════════════════════════════════════════ */
.pd-footer,
[data-theme="light"] .pd-footer,
[data-theme="dark"] .pd-footer {
    background: #09090b !important;
    background-color: #09090b !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #c9cdd4 !important;
}

.pd-footer h1,
.pd-footer h2,
.pd-footer h3,
.pd-footer h4,
[data-theme="light"] .pd-footer h1,
[data-theme="light"] .pd-footer h2,
[data-theme="light"] .pd-footer h3,
[data-theme="light"] .pd-footer h4,
.pd-footer .pd-footer-col-label,
[data-theme="light"] .pd-footer .pd-footer-col-label {
    color: #f2f3f5 !important;
}

.pd-footer .pd-logo-brand,
[data-theme="light"] .pd-footer .pd-logo-brand,
.pd-footer .pd-logo-brand span,
[data-theme="light"] .pd-footer .pd-logo-brand span {
    color: #ffffff !important;
}

.pd-footer .pd-footer-brand-desc,
[data-theme="light"] .pd-footer .pd-footer-brand-desc {
    color: #7a8094 !important;
}

.pd-footer .pd-footer-link,
[data-theme="light"] .pd-footer .pd-footer-link {
    color: #cbd5e1 !important;
}

.pd-footer .pd-footer-link:hover,
[data-theme="light"] .pd-footer .pd-footer-link:hover {
    color: #38bdf8 !important;
}

.pd-footer .pd-footer-legal,
[data-theme="light"] .pd-footer .pd-footer-legal {
    color: #4a4f63 !important;
}

.pd-footer .pd-footer-chip {
    display: inline-block;
    font-size: 11.5px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    padding: 3px 8px;
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.pd-footer .pd-footer-chip:hover {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.pd-footer .pd-footer-bottom,
[data-theme="light"] .pd-footer .pd-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

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

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

body {
    font-family: var(--font-ui);
    font-size: var(--text-md);
    line-height: 1.6;
    color: var(--text-base-color);
    background-color: var(--ink-950);
    min-height: 100vh;
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
}

img,
svg {
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: 0;
    background: none;
}

.hidden,
[hidden] {
    display: none !important;
}

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

::selection {
    background: var(--signal-dim);
    color: var(--text-white);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--ink-900);
}

::-webkit-scrollbar-thumb {
    background: var(--ink-700);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--ink-600);
}

/* Focus visible — accessible, clean */
:focus-visible {
    outline: 1.5px solid var(--signal);
    outline-offset: 2px;
    border-radius: var(--r-sm);
}


/* ════════════════════════════════════════════════════════════════════════
   3. TYPOGRAPHY
═══════════════════════════════════════════════════════════════════════ */
.t-hero {
    font-size: clamp(36px, 5.5vw, var(--text-5xl));
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.045em;
    color: var(--text-white);
}

.t-display {
    font-size: clamp(28px, 4vw, var(--text-4xl));
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.035em;
    color: var(--text-white);
}

.t-heading {
    font-size: var(--text-2xl);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.025em;
    color: var(--text-white);
}

.t-subheading {
    font-size: var(--text-xl);
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.015em;
    color: var(--text-white);
}

.t-title {
    font-size: var(--text-lg);
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: -0.01em;
    color: var(--text-white);
}

.t-body {
    font-size: var(--text-md);
    font-weight: 400;
    line-height: 1.65;
    color: var(--text-base-color);
}

.t-small {
    font-size: var(--text-sm);
    font-weight: 400;
    line-height: 1.55;
    color: var(--text-base-color);
}

.t-label {
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-dim);
    font-family: var(--font-mono);
}

.t-mono {
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    color: var(--text-base-color);
}

.t-dim {
    color: var(--text-dim);
}

.t-faint {
    color: var(--text-faint);
}

.t-white {
    color: var(--text-white);
}

.t-signal {
    color: var(--signal);
}


/* ════════════════════════════════════════════════════════════════════════
   4. SURFACES & CARDS
═══════════════════════════════════════════════════════════════════════ */

/* Base card — 1px border defines it, not shadow */
.pd-card {
    background: var(--ink-800);
    border: 1px solid var(--line-10);
    border-radius: var(--r-md);
    position: relative;
}

/* Top-edge highlight for perceived depth */
.pd-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--line-hi);
    border-radius: var(--r-md) var(--r-md) 0 0;
    pointer-events: none;
}

/* Elevated card */
.pd-card-elevated {
    background: var(--ink-750);
    border: 1px solid var(--line-15);
    border-radius: var(--r-md);
}

/* Panel — full-width content section */
.pd-panel {
    border-top: 1px solid var(--line-10);
    border-bottom: 1px solid var(--line-10);
    background: var(--ink-900);
}

/* Inset/sunken surface — for code views and input areas */
.pd-inset {
    background: var(--ink-950);
    border: 1px solid var(--line-10);
    border-radius: var(--r-md);
}


/* ════════════════════════════════════════════════════════════════════════
   5. BUTTONS
═══════════════════════════════════════════════════════════════════════ */
.pd-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    padding: 0 var(--sp-4);
    height: 36px;
    font-size: var(--text-sm);
    font-weight: 600;
    font-family: var(--font-ui);
    border-radius: var(--r-md);
    transition: all var(--ease-ui);
    white-space: nowrap;
    cursor: pointer;
    text-decoration: none;
}

/* Primary — signal blue, used sparingly */
.pd-btn-primary {
    background: var(--signal);
    color: #fff;
    border: 1px solid transparent;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.pd-btn-primary:hover {
    background: var(--signal-hover);
}

.pd-btn-primary:active {
    transform: translateY(1px);
}

/* Secondary — elevated solid surface with subtle borders & glow */
.pd-btn-secondary {
    background: var(--ink-800, #131b2a);
    color: var(--text-white, #ffffff);
    border: 1px solid var(--line-15, rgba(255, 255, 255, 0.12));
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
    font-weight: 600;
}

.pd-btn-secondary:hover {
    background: var(--ink-750, #1b263b);
    border-color: rgba(79, 140, 255, 0.45);
    color: #ffffff;
    box-shadow: 0 0 14px rgba(79, 140, 255, 0.22);
}

.pd-btn-secondary:active {
    transform: translateY(1px);
}

.pd-btn-secondary:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Refresh Progress button with interactive glow & spinning support */
.pd-btn-refresh {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.28);
    color: #38bdf8;
    font-weight: 600;
}

.pd-btn-refresh:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(56, 189, 248, 0.55);
    color: #ffffff;
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.3);
}

.pd-btn-refresh:active {
    transform: translateY(1px);
}

.pd-btn-refresh:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

.pd-btn-refresh .is-spinning,
.is-spinning {
    animation: pd-spin 0.85s linear infinite;
    transform-origin: center;
}

@keyframes pd-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Ghost — transparent with border, for secondary actions */
.pd-btn-ghost {
    background: transparent;
    color: var(--text-base-color);
    border: 1px solid var(--line-15);
}

.pd-btn-ghost:hover {
    background: var(--ink-750);
    border-color: var(--line-25);
    color: var(--text-white);
}

/* Danger */
.pd-btn-danger {
    background: transparent;
    color: var(--status-err);
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.pd-btn-danger:hover {
    background: var(--status-err-dim);
    border-color: rgba(239, 68, 68, 0.45);
}

/* Large variant */
.pd-btn-lg {
    height: 44px;
    padding: 0 var(--sp-6);
    font-size: var(--text-md);
}

/* Small variant */
.pd-btn-sm {
    height: 28px;
    padding: 0 var(--sp-3);
    font-size: var(--text-xs);
    gap: var(--sp-1);
}

/* Extra small variant */
.pd-btn-xs {
    height: 24px;
    padding: 0 var(--sp-2);
    font-size: 11px;
    gap: 4px;
    border-radius: var(--r-sm);
}


/* ════════════════════════════════════════════════════════════════════════
   6. TAGS & BADGES
═══════════════════════════════════════════════════════════════════════ */

/* Base tag — for version labels, engine labels, categories */
.pd-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 7px;
    border-radius: var(--r-sm);
    font-family: var(--font-mono);
    font-size: var(--text-2xs);
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    line-height: 1;
    white-space: nowrap;
}

/* PHP version tags */
.pd-tag-php8 {
    background: var(--php8-dim);
    color: var(--php8-color);
    border: 1px solid rgba(167, 139, 250, 0.20);
}

.pd-tag-php7 {
    background: var(--php7-dim);
    color: var(--php7-color);
    border: 1px solid rgba(251, 146, 60, 0.20);
}

.pd-tag-php5 {
    background: var(--php5-dim);
    color: var(--php5-color);
    border: 1px solid rgba(148, 163, 184, 0.15);
}

/* Engine tags */
.pd-tag-ic {
    background: var(--ic-dim);
    color: var(--ic-color);
    border: 1px solid rgba(56, 189, 248, 0.20);
}

.pd-tag-sg {
    background: var(--sg-dim);
    color: var(--sg-color);
    border: 1px solid rgba(74, 222, 128, 0.20);
}

/* Status badges */
.pd-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 8px;
    border-radius: var(--r-sm);
    font-size: var(--text-xs);
    font-weight: 600;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.pd-badge::before {
    content: '';
    display: block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    flex-shrink: 0;
}

.pd-badge-ok {
    background: var(--status-ok-dim);
    color: var(--status-ok);
    border: 1px solid rgba(34, 197, 94, 0.20);
}

.pd-badge-ok::before {
    background: var(--status-ok);
}

.pd-badge-warn {
    background: var(--status-warn-dim);
    color: var(--status-warn);
    border: 1px solid rgba(234, 179, 8, 0.20);
}

.pd-badge-warn::before {
    background: var(--status-warn);
}

.pd-badge-err {
    background: var(--status-err-dim);
    color: var(--status-err);
    border: 1px solid rgba(239, 68, 68, 0.20);
}

.pd-badge-err::before {
    background: var(--status-err);
}

.pd-badge-info {
    background: var(--status-info-dim);
    color: var(--status-info);
    border: 1px solid rgba(56, 189, 248, 0.20);
}

.pd-badge-info::before {
    background: var(--status-info);
}

/* Pulse dot (standalone) */
.pd-pulse {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--status-ok);
    animation: pulse-ring 2s ease infinite;
}

@keyframes pulse-ring {
    0% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4);
    }

    70% {
        box-shadow: 0 0 0 5px rgba(34, 197, 94, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}


/* ════════════════════════════════════════════════════════════════════════
   7. FORM ELEMENTS
═══════════════════════════════════════════════════════════════════════ */
.pd-input {
    width: 100%;
    height: 36px;
    padding: 0 var(--sp-3);
    background: var(--ink-900);
    border: 1px solid var(--line-15);
    border-radius: var(--r-md);
    color: var(--text-white);
    font-family: var(--font-ui);
    font-size: var(--text-sm);
    transition: border-color var(--ease-ui);
    appearance: none;
}

.pd-input::placeholder {
    color: var(--text-faint);
}

.pd-input:hover {
    border-color: var(--line-25);
}

.pd-input:focus {
    outline: none;
    border-color: var(--signal);
    background: var(--ink-850);
}

.pd-textarea {
    width: 100%;
    padding: var(--sp-3);
    background: var(--ink-900);
    border: 1px solid var(--line-15);
    border-radius: var(--r-md);
    color: var(--text-white);
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    resize: vertical;
    min-height: 120px;
    transition: border-color var(--ease-ui);
    line-height: 1.6;
}

.pd-textarea::placeholder {
    color: var(--text-faint);
}

.pd-textarea:hover {
    border-color: var(--line-25);
}

.pd-textarea:focus {
    outline: none;
    border-color: var(--signal);
    background: var(--ink-850);
}

.pd-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%234a4f63' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 30px;
}

.pd-label {
    display: block;
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--text-dim);
    margin-bottom: var(--sp-2);
    letter-spacing: 0.02em;
}

.pd-field {
    display: flex;
    flex-direction: column;
    gap: var(--sp-2);
}

.pd-field-error {
    font-size: var(--text-xs);
    color: var(--status-err);
    margin-top: var(--sp-1);
}


/* ── Global Filter Tabs Responsive Toolbar (Used across Jobs, Tickets, Admin) ── */
.pd-jobs-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--sp-3);
    width: 100%;
    max-width: 100%;
}

.pd-filter-tabs-wrapper {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
}
.pd-filter-tabs-wrapper::-webkit-scrollbar {
    display: none;
}

.pd-filter-tabs-bar {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 3px;
    background: var(--ink-900);
    border: 1px solid var(--line-10);
    border-radius: var(--r-md);
    white-space: nowrap;
    min-width: max-content;
}

.pd-filter-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 11.5px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.12s ease;
    white-space: nowrap;
    color: var(--text-faint);
}
.pd-filter-tab:hover {
    color: var(--text-white);
}
.pd-filter-tab.active {
    background: var(--ink-700);
    color: #ffffff;
}

.pd-filter-tab-count {
    font-family: var(--font-mono);
    font-size: 10px;
    padding: 1px 5px;
    background: var(--ink-800);
    border-radius: 3px;
    color: var(--text-dim);
}
.pd-filter-tab.active .pd-filter-tab-count {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

[data-theme="light"] .pd-filter-tabs-bar {
    background: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
}
[data-theme="light"] .pd-filter-tab {
    color: #64748b !important;
}
[data-theme="light"] .pd-filter-tab:hover {
    color: #0f172a !important;
}
[data-theme="light"] .pd-filter-tab.active {
    background: #ffffff !important;
    color: #0f172a !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08) !important;
}
[data-theme="light"] .pd-filter-tab-count {
    background: #e2e8f0 !important;
    color: #475569 !important;
}
[data-theme="light"] .pd-filter-tab.active .pd-filter-tab-count {
    background: #f1f5f9 !important;
    color: #0f172a !important;
}

/* ════════════════════════════════════════════════════════════════════════
   8. TABLES
═══════════════════════════════════════════════════════════════════════ */
.pd-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.pd-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--text-sm);
    color: var(--text-base-color);
}

.pd-table thead {
    background: var(--ink-900);
    border-bottom: 1px solid var(--line-10);
}

.pd-table th {
    padding: var(--sp-3) var(--sp-4);
    font-family: var(--font-mono);
    font-size: var(--text-2xs);
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--text-faint);
    text-align: left;
    white-space: nowrap;
}

.pd-table td {
    padding: var(--sp-3) var(--sp-4);
    border-bottom: 1px solid var(--line-6);
    vertical-align: middle;
}

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

.pd-table tbody tr:hover td {
    background: var(--line-6);
}

.pd-table .td-mono {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--text-dim);
}

.pd-table .td-white {
    color: var(--text-white);
    font-weight: 500;
}


/* ════════════════════════════════════════════════════════════════════════
   9. CODE VIEWER (THE PRODUCT'S CORE UI ELEMENT)
═══════════════════════════════════════════════════════════════════════ */
.pd-code-view {
    background: var(--ink-950);
    border: 1px solid var(--line-10);
    border-radius: var(--r-md);
    overflow: hidden;
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    line-height: 1.7;
    position: relative;
}

.pd-code-view-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--sp-2) var(--sp-4);
    border-bottom: 1px solid var(--line-10);
    background: var(--ink-900);
}

.pd-code-view-title {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--text-faint);
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.pd-code-view-body {
    overflow-x: auto;
    padding: var(--sp-4) 0;
    max-height: 420px;
    overflow-y: auto;
}

.pd-code-line {
    display: flex;
    align-items: baseline;
    padding: 0 var(--sp-4);
    min-height: 20px;
}

.pd-code-line:hover {
    background: var(--line-6);
}

.pd-code-ln {
    flex-shrink: 0;
    width: 36px;
    color: var(--text-faint);
    font-size: 10px;
    text-align: right;
    margin-right: var(--sp-4);
    user-select: none;
}

.pd-code-content {
    color: var(--text-base-color);
    white-space: pre;
    word-break: break-all;
    flex: 1;
}

/* Syntax-adjacent color hints (no full parser needed) */
.pd-code-content .kw {
    color: #79c0ff;
}

/* keywords */
.pd-code-content .str {
    color: #a5d6ff;
}

/* strings */
.pd-code-content .cm {
    color: #4a4f63;
}

/* comments */
.pd-code-content .fn {
    color: #d2a8ff;
}

/* functions */
.pd-code-content .var {
    color: #ffa657;
}

/* variables */

/* ── Code Ending Fog & Fade-Out Overlay ── */
.pd-code-view.pd-has-fog,
.pd-code-fog-wrap {
    position: relative !important;
    overflow: hidden !important;
}

.pd-code-fog-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 90px;
    background: linear-gradient(to bottom, rgba(10, 14, 23, 0) 0%, rgba(10, 14, 23, 0.45) 30%, rgba(10, 14, 23, 0.88) 75%, rgba(10, 14, 23, 1) 100%);
    pointer-events: none;
    z-index: 5;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 12px;
}

.pd-code-fog-text {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-dim);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 4px 14px;
    border-radius: 9999px;
    letter-spacing: 0.2px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

[data-theme="light"] .pd-code-fog-overlay {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.45) 30%, rgba(255, 255, 255, 0.88) 75%, rgba(255, 255, 255, 1) 100%) !important;
}

[data-theme="light"] .pd-code-fog-text {
    background: rgba(15, 23, 42, 0.05) !important;
    border-color: #cbd5e1 !important;
    color: #475569 !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06) !important;
}

/* ════════════════════════════════════════════════════════════════════════
   10. DROPZONE (UPLOAD UI)
═══════════════════════════════════════════════════════════════════════ */
.pd-dropzone {
    border: 1.5px dashed var(--line-15);
    border-radius: var(--r-lg);
    padding: var(--sp-10) var(--sp-6);
    text-align: center;
    cursor: pointer;
    transition: all var(--ease-ui);
    background: var(--ink-900);
    position: relative;
}

.pd-dropzone:hover,
.pd-dropzone.is-over {
    border-color: var(--signal-border);
    background: var(--signal-dim);
}

.pd-dropzone-icon {
    width: 40px;
    height: 40px;
    margin: 0 auto var(--sp-3);
    color: var(--text-dim);
    transition: color var(--ease-ui);
}

.pd-dropzone:hover .pd-dropzone-icon {
    color: var(--signal);
}

.pd-dropzone-label {
    font-size: var(--text-md);
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: var(--sp-1);
}

.pd-dropzone-hint {
    font-size: var(--text-sm);
    color: var(--text-dim);
}


/* ════════════════════════════════════════════════════════════════════════
   11. NAVIGATION — PUBLIC HEADER
═══════════════════════════════════════════════════════════════════════ */

/* Sticky enterprise header */
.pd-header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: 56px;
    display: flex;
    align-items: center;
    background: rgba(9, 9, 11, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line-10);
    transition: background var(--ease-menu);
}

.pd-header.is-scrolled {
    background: rgba(9, 9, 11, 0.98);
    border-bottom-color: var(--line-15);
}

.pd-header-inner {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--sp-6);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-6);
}

/* ════════════════════════════════════════════════════════════════════════
   ADVANCED CODE-BRACKET LOGO: < PHPDecode >
═══════════════════════════════════════════════════════════════════════ */
.pd-logo {
    display: inline-flex;
    align-items: center;
    gap: 0;
    text-decoration: none;
    user-select: none;
    transition: transform 0.18s ease;
    flex-shrink: 0;
}

.pd-logo:hover {
    transform: scale(1.02);
}

.pd-logo-wordmark {
    display: inline-flex;
    align-items: center;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1;
    color: #ffffff;
}

.pd-logo-bracket {
    font-family: var(--font-mono);
    font-weight: 900;
    font-size: 1.18em;
    background: linear-gradient(135deg, #38bdf8 0%, #4f8cff 50%, #a78bfa 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.2s ease;
    filter: drop-shadow(0 0 6px rgba(79, 140, 255, 0.5));
    line-height: 1;
}

.pd-logo-bracket-open {
    margin-right: 4px;
}

.pd-logo-bracket-close {
    margin-left: 4px;
}

.pd-logo:hover .pd-logo-bracket-open {
    transform: translateX(-2px);
    filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.85));
}

.pd-logo:hover .pd-logo-bracket-close {
    transform: translateX(2px);
    filter: drop-shadow(0 0 10px rgba(167, 139, 250, 0.85));
}

.pd-logo-brand {
    color: #ffffff;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.pd-logo-brand span {
    color: #4f8cff;
    font-weight: 800;
}


/* Primary nav */
.pd-nav {
    display: flex;
    align-items: center;
    gap: 2px;
    flex: 1;
}

.pd-nav-trigger {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0 var(--sp-3);
    height: 32px;
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-dim);
    border-radius: var(--r-md);
    transition: all var(--ease-ui);
    cursor: pointer;
    border: 0;
    background: transparent;
    white-space: nowrap;
}

.pd-nav-trigger:hover,
.pd-nav-trigger.is-active {
    color: var(--text-white);
    background: var(--line-6);
}

.pd-nav-trigger svg {
    width: 12px;
    height: 12px;
    opacity: 0.5;
    transition: transform var(--ease-ui), opacity var(--ease-ui);
}

.pd-nav-trigger.is-active svg {
    transform: rotate(180deg);
    opacity: 1;
}

.pd-nav-link {
    display: flex;
    align-items: center;
    padding: 0 var(--sp-3);
    height: 32px;
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-dim);
    border-radius: var(--r-md);
    transition: color var(--ease-ui);
    text-decoration: none;
}

.pd-nav-link:hover {
    color: var(--text-white);
}

.pd-nav-right {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    flex-shrink: 0;
    margin-left: auto;
}


/* ── Mega Menu ───────────────────────────────────────────────────────── */
.pd-mega-wrapper {
    position: relative;
}

.pd-mega-panel {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    transform: translateY(-4px);
    background: rgba(13, 19, 33, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--r-lg);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.06);
    padding: var(--sp-4);
    min-width: 320px;
    max-width: min(580px, calc(100vw - 32px));
    width: max-content;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
        opacity var(--ease-menu),
        transform var(--ease-menu),
        visibility var(--ease-menu);
    z-index: 200;
}

.pd-mega-panel.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.pd-mega-header {
    padding: var(--sp-2) var(--sp-2) var(--sp-2);
    margin-bottom: var(--sp-1);
    border-bottom: 1px solid var(--line-10);
    font-family: var(--font-mono);
    font-size: var(--text-2xs);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-faint);
}

.pd-mega-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
    padding: var(--sp-2) 0;
}

.pd-mega-grid-3 {
    grid-template-columns: 1fr 1fr 1fr;
}

.pd-mega-item {
    display: flex;
    align-items: flex-start;
    gap: var(--sp-3);
    padding: var(--sp-3);
    border-radius: var(--r-md);
    text-decoration: none;
    transition: background var(--ease-ui);
    cursor: pointer;
}

.pd-mega-item:hover {
    background: var(--line-6);
}

.pd-mega-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--r-md);
    background: var(--ink-750);
    border: 1px solid var(--line-10);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--text-dim);
    transition: all var(--ease-ui);
}

.pd-mega-item:hover .pd-mega-icon {
    border-color: var(--signal-border);
    color: var(--signal);
    background: var(--signal-dim);
}

.pd-mega-text-name {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text-white);
    line-height: 1.3;
    margin-bottom: 2px;
}

.pd-mega-text-desc {
    font-size: var(--text-xs);
    color: var(--text-dim);
    line-height: 1.4;
}

.pd-mega-footer {
    padding-top: var(--sp-2);
    margin-top: var(--sp-1);
    border-top: 1px solid var(--line-10);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-4);
}

.pd-mega-footer-link {
    font-size: var(--text-xs);
    font-weight: 500;
    color: var(--signal);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: opacity var(--ease-ui);
}

.pd-mega-footer-link:hover {
    opacity: 0.75;
}


/* ── Global Header Responsive Navigation ────────────────────────────── */
#pd-mobile-toggle,
.pd-mobile-toggle {
    display: none;
}

@media (max-width: 960px) {
    .pd-nav {
        display: none !important;
    }

    #pd-mobile-toggle,
    .pd-mobile-toggle {
        display: flex !important;
    }
}

/* ── Mobile Navigation Drawer ────────────────────────────────────────── */
.pd-mobile-drawer {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--ease-menu), visibility var(--ease-menu);
}

@media (max-width: 991px) {
    .pd-mobile-drawer {
        display: block;
    }
}

@media (min-width: 992px) {
    .pd-mobile-drawer {
        display: none !important;
        visibility: hidden !important;
    }
}

.pd-mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    opacity: 0;
    transition: opacity var(--ease-menu);
    pointer-events: none;
}

.pd-mobile-panel {
    position: fixed;
    top: 0;
    left: 0;
    right: auto;
    bottom: 0;
    width: min(320px, 85vw);
    height: 100vh;
    height: 100dvh;
    background: #090e18;
    border: none;
    box-shadow: 20px 0 60px rgba(0, 0, 0, 0.95);
    display: flex;
    flex-direction: column;
    transform: translateX(-105%);
    transition: transform var(--ease-menu);
    overflow: hidden;
    z-index: 1000000;
}

.pd-mobile-panel::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 1.5px;
    background: linear-gradient(180deg,
            transparent 0%,
            rgba(56, 189, 248, 0.05) 15%,
            rgba(56, 189, 248, 0.65) 40%,
            rgba(99, 102, 241, 0.65) 60%,
            rgba(56, 189, 248, 0.05) 85%,
            transparent 100%);
    pointer-events: none;
    z-index: 1000001;
}

.pd-mobile-drawer.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.pd-mobile-drawer.is-open .pd-mobile-overlay {
    opacity: 1;
    pointer-events: all;
}

.pd-mobile-drawer.is-open .pd-mobile-panel {
    transform: translateX(0);
}

.pd-mobile-nav-section {
    padding: var(--sp-4) var(--sp-4) var(--sp-2);
    border-bottom: 1px solid var(--line-10);
}

.pd-mobile-nav-label {
    font-family: var(--font-mono);
    font-size: var(--text-2xs);
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--text-faint);
    padding: 0 var(--sp-3) var(--sp-2);
}

.pd-mobile-nav-item {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    padding: var(--sp-2) var(--sp-3);
    border-radius: var(--r-md);
    font-size: var(--text-md);
    font-weight: 500;
    color: var(--text-base-color);
    text-decoration: none;
    transition: all var(--ease-ui);
}

.pd-mobile-nav-item:hover {
    background: var(--line-6);
    color: var(--text-white);
}


/* ════════════════════════════════════════════════════════════════════════
   12. CONSOLE LAYOUT (AUTHENTICATED)
═══════════════════════════════════════════════════════════════════════ */
.pd-console {
    display: flex;
    min-height: 100vh;
}

/* ── Console Sidebar ─────────────────────────────────────────────────── */
.pd-sidebar {
    width: var(--sidebar-w);
    flex-shrink: 0;
    background: var(--ink-900);
    border-right: 1px solid var(--line-10);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
}

.pd-sidebar-header {
    height: 56px;
    display: flex;
    align-items: center;
    padding: 0 var(--sp-5);
    border-bottom: 1px solid var(--line-10);
    flex-shrink: 0;
}

.pd-sidebar-nav {
    flex: 1;
    padding: var(--sp-4) var(--sp-3);
    overflow-y: auto;
    min-height: 0;
    /* critical: allow flex child to scroll without pushing footer out */
}

.pd-sidebar-group {
    margin-bottom: var(--sp-6);
}

.pd-sidebar-group-label {
    font-family: var(--font-mono);
    font-size: var(--text-2xs);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-faint);
    padding: 0 var(--sp-3) var(--sp-2);
    display: block;
}

/* Sidebar nav links — left-border indicator pattern */
.pd-sidebar-link {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    padding: var(--sp-2) var(--sp-3);
    border-radius: var(--r-md);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-dim);
    text-decoration: none;
    transition: all var(--ease-ui);
    position: relative;
    margin-bottom: 1px;
    border-left: 2px solid transparent;
}

.pd-sidebar-link:hover {
    color: var(--text-white);
    background: var(--line-6);
    border-left-color: var(--line-15);
}

.pd-sidebar-link.is-active {
    color: var(--text-white);
    background: var(--signal-dim);
    border-left-color: var(--signal);
}

.pd-sidebar-link svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    opacity: 0.5;
    transition: opacity var(--ease-ui);
}

.pd-sidebar-link:hover svg,
.pd-sidebar-link.is-active svg {
    opacity: 1;
}

/* User identity at sidebar bottom */
.pd-sidebar-footer {
    padding: var(--sp-4);
    border-top: 1px solid var(--line-10);
    flex-shrink: 0;
    /* Always visible — even inside mobile slide-in drawer */
    display: block !important;
}

.pd-sidebar-user-card,
.pd-user-card {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    padding: var(--sp-2) var(--sp-3);
    border-radius: var(--r-md);
    transition: background var(--ease-ui);
}

.pd-sidebar-user-avatar,
.pd-user-avatar {
    width: 30px;
    height: 30px;
    border-radius: var(--r-md);
    background: var(--ink-700);
    border: 1px solid var(--line-15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-xs);
    font-weight: 700;
    color: var(--signal);
    font-family: var(--font-mono);
    flex-shrink: 0;
}

.pd-sidebar-user-name,
.pd-user-name {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text-white);
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pd-sidebar-user-status,
.pd-user-status {
    font-size: var(--text-xs);
    color: var(--text-dim);
    font-family: var(--font-mono);
}

/* ── Console Main ────────────────────────────────────────────────────── */
.pd-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

/* Console topbar — Sticky Header with Cybernetic Glassmorphic Blur */
.pd-topbar {
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--sp-6);
    border-bottom: 1px solid var(--line-10);
    background: rgba(13, 17, 23, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    flex-shrink: 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.pd-topbar-new-btn {
    height: 32px;
    padding: 0 13px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 0 14px rgba(79, 140, 255, 0.25);
    white-space: nowrap;
    flex-shrink: 0;
    width: auto;
}

.pd-breadcrumb {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--text-faint);
}

.pd-breadcrumb span:last-child {
    color: var(--text-white);
    font-weight: 600;
}

.pd-breadcrumb-sep {
    color: var(--line-25);
}

.pd-topbar-right {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
}

/* Telemetry pill */
.pd-telemetry {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border: 1px solid var(--line-10);
    border-radius: var(--r-md);
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--text-dim);
    background: var(--ink-850);
}

/* Console content area */
.pd-content {
    flex: 1;
    padding: var(--sp-8) var(--sp-8);
    max-width: 1200px;
    width: 100%;
}

/* Console footer */
.pd-console-footer {
    padding: var(--sp-4) var(--sp-6);
    border-top: 1px solid var(--line-6);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--text-faint);
    flex-shrink: 0;
}


/* ════════════════════════════════════════════════════════════════════════
   13. LANDING PAGE COMPONENTS (PUBLIC)
═══════════════════════════════════════════════════════════════════════ */

/* Page section wrapper */
.pd-section {
    padding: var(--sp-20) 0;
    border-top: 1px solid var(--line-6);
}

.pd-section:first-child {
    border-top: none;
}

.pd-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--sp-6);
}

.pd-container-narrow {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 var(--sp-6);
}

/* Hero */
.pd-hero {
    padding: var(--sp-20) 0 var(--sp-16);
    text-align: center;
}

/* Eyebrow label above headings */
.pd-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--text-faint);
    margin-bottom: var(--sp-5);
}

/* Feature grid */
.pd-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--line-10);
    border: 1px solid var(--line-10);
    border-radius: var(--r-lg);
    overflow: hidden;
}

.pd-feature-item {
    padding: var(--sp-8);
    background: var(--ink-900);
}

/* Separator rule */
.pd-rule {
    border: none;
    border-top: 1px solid var(--line-10);
    margin: 0;
}

/* Step row (how it works) */
.pd-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--line-10);
    border-radius: var(--r-lg);
    overflow: hidden;
}

.pd-step {
    padding: var(--sp-8);
    background: var(--ink-900);
    display: flex;
    flex-direction: column;
    gap: var(--sp-4);
}

.pd-step-number {
    font-family: var(--font-mono);
    font-size: var(--text-2xs);
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--signal);
    display: flex;
    align-items: center;
    gap: var(--sp-2);
}

.pd-step-number::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--line-10);
}

/* Compatibility matrix grid */
.pd-compat-grid {
    display: grid;
    grid-template-columns: auto repeat(6, 1fr);
    border: 1px solid var(--line-10);
    border-radius: var(--r-lg);
    overflow: hidden;
}

.pd-compat-cell {
    padding: var(--sp-3) var(--sp-3);
    border-right: 1px solid var(--line-10);
    border-bottom: 1px solid var(--line-10);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-xs);
    font-family: var(--font-mono);
}

.pd-compat-cell:last-child {
    border-right: none;
}

.pd-compat-cell.is-header {
    background: var(--ink-900);
    color: var(--text-faint);
    justify-content: flex-start;
}

/* Check / cross marks in compat table */
.pd-check {
    color: var(--status-ok);
}

.pd-cross {
    color: var(--text-faint);
}

/* Pricing block */
.pd-pricing-card {
    max-width: 420px;
    margin: 0 auto;
    background: var(--ink-850);
    border: 1px solid var(--line-15);
    border-radius: var(--r-lg);
    overflow: hidden;
}

.pd-pricing-header {
    padding: var(--sp-6);
    border-bottom: 1px solid var(--line-10);
}

.pd-pricing-price {
    font-size: var(--text-4xl);
    font-weight: 800;
    color: var(--text-white);
    letter-spacing: -0.04em;
    line-height: 1;
}

.pd-pricing-period {
    font-size: var(--text-sm);
    color: var(--text-dim);
    margin-top: var(--sp-1);
}

.pd-pricing-features {
    padding: var(--sp-6);
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
}

.pd-pricing-feature {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    font-size: var(--text-sm);
    color: var(--text-base-color);
}

.pd-pricing-feature svg {
    width: 14px;
    height: 14px;
    color: var(--status-ok);
    flex-shrink: 0;
}

.pd-pricing-cta {
    padding: 0 var(--sp-6) var(--sp-6);
}

/* CTA section */
.pd-cta-section {
    background: var(--ink-850);
    border: 1px solid var(--line-15);
    border-radius: var(--r-lg);
    padding: var(--sp-12) var(--sp-8);
    text-align: center;
}


/* ════════════════════════════════════════════════════════════════════════
   14. TOAST NOTIFICATIONS
═══════════════════════════════════════════════════════════════════════ */
.pd-toasts {
    position: fixed;
    bottom: var(--sp-5);
    right: var(--sp-5);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: var(--sp-2);
    pointer-events: none;
    max-width: 340px;
}

.pd-toast {
    display: flex;
    align-items: flex-start;
    gap: var(--sp-3);
    padding: var(--sp-3) var(--sp-4);
    background: var(--ink-800);
    border: 1px solid var(--line-15);
    border-radius: var(--r-md);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    pointer-events: all;
    animation: toast-in 0.2s ease;
    position: relative;
    overflow: hidden;
}

@keyframes toast-in {
    from {
        opacity: 0;
        transform: translateX(8px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.pd-toast-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 1px;
}

.pd-toast-msg {
    flex: 1;
    font-size: var(--text-sm);
    color: var(--text-white);
    line-height: 1.4;
    font-weight: 500;
}

.pd-toast-close {
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-faint);
    font-size: 14px;
    cursor: pointer;
    flex-shrink: 0;
    transition: color var(--ease-ui);
    background: none;
    border: 0;
    padding: 0;
    font-family: inherit;
}

.pd-toast-close:hover {
    color: var(--text-white);
}

.pd-toast-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 100%;
    background: var(--line-15);
    transform-origin: left;
    animation: toast-bar var(--toast-dur, 4000ms) linear forwards;
}

@keyframes toast-bar {
    from {
        transform: scaleX(1);
    }

    to {
        transform: scaleX(0);
    }
}

.pd-toast-ok .pd-toast-bar {
    background: var(--status-ok);
}

.pd-toast-err .pd-toast-bar {
    background: var(--status-err);
}

.pd-toast-warn .pd-toast-bar {
    background: var(--status-warn);
}

.pd-toast-info .pd-toast-bar {
    background: var(--signal);
}


/* ════════════════════════════════════════════════════════════════════════
   15. FOOTER (PUBLIC)
═══════════════════════════════════════════════════════════════════════ */
.pd-footer {
    border-top: 1px solid var(--line-10);
    background: var(--ink-950);
    padding: var(--sp-16) 0 var(--sp-8);
}

.pd-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: var(--sp-8);
}

.pd-footer-brand {
    display: flex;
    flex-direction: column;
    gap: var(--sp-5);
}

.pd-footer-brand-desc {
    font-size: var(--text-sm);
    color: var(--text-faint);
    line-height: 1.65;
    max-width: 260px;
}

.pd-footer-col-label {
    font-family: var(--font-mono);
    font-size: var(--text-2xs);
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--text-white);
    margin-bottom: var(--sp-4);
}

.pd-footer-links {
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
}

.pd-footer-link {
    font-size: var(--text-sm);
    color: var(--text-faint);
    text-decoration: none;
    transition: color var(--ease-ui);
    line-height: 1.3;
}

.pd-footer-link:hover {
    color: var(--text-white);
}

.pd-footer-bottom {
    margin-top: var(--sp-12);
    padding-top: var(--sp-6);
    border-top: 1px solid var(--line-6);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-4);
    flex-wrap: wrap;
}

.pd-footer-legal {
    font-size: var(--text-xs);
    color: var(--text-faint);
    font-family: var(--font-mono);
}

.pd-footer-legal-links {
    display: flex;
    align-items: center;
    gap: var(--sp-4);
}


/* ════════════════════════════════════════════════════════════════════════
   16. AUTH PAGES (LOGIN / REGISTER)
═══════════════════════════════════════════════════════════════════════ */
.pd-auth-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--sp-8) var(--sp-4);
    background: var(--ink-950);
}

.pd-auth-card {
    width: 100%;
    max-width: 380px;
}

.pd-auth-header {
    text-align: center;
    margin-bottom: var(--sp-8);
}

.pd-auth-form {
    background: var(--ink-850);
    border: 1px solid var(--line-15);
    border-radius: var(--r-lg);
    padding: var(--sp-6);
    display: flex;
    flex-direction: column;
    gap: var(--sp-5);
}

.pd-auth-divider {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    color: var(--text-faint);
    font-size: var(--text-xs);
}

.pd-auth-divider::before,
.pd-auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--line-10);
}


/* ════════════════════════════════════════════════════════════════════════
   17. RESPONSIVE BREAKPOINTS
═══════════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {

    /* Console: hide sidebar, expand main */
    .pd-sidebar {
        display: none;
    }

    .pd-main {
        flex: 1;
    }

    .pd-content {
        max-width: 100%;
    }

    /* Grids */
    .pd-feature-grid {
        grid-template-columns: 1fr 1fr;
    }

    .pd-steps {
        grid-template-columns: 1fr;
    }

    .pd-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--sp-8);
    }

    /* Upload: stack side-by-side to vertical on tablet */
    .upload-studio-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 768px) {

    /* Header */
    .pd-header-inner {
        padding: 0 var(--sp-4);
        gap: var(--sp-4);
    }

    .pd-nav {
        display: none;
    }

    /* Public page: make main scrollable with padding */
    main.flex-grow {
        display: block;
        padding-bottom: var(--sp-10);
    }

    /* Login / register: auth card full width */
    .pd-auth-card {
        max-width: 100%;
        width: 100%;
    }

    .pd-auth-page {
        padding: var(--sp-6) var(--sp-4);
        justify-content: flex-start;
        padding-top: var(--sp-10);
    }

    /* Console topbar mobile styling & compact button */
    .pd-topbar {
        height: 46px;
        padding: 0 var(--sp-3);
        position: sticky;
        top: 0;
        z-index: 100;
        background: rgba(13, 17, 23, 0.95);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }

    .pd-breadcrumb {
        font-size: 11.5px;
        max-width: none;
        overflow: visible;
        white-space: nowrap;
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .pd-topbar-right {
        gap: 6px;
        flex-shrink: 0;
    }

    .pd-topbar-new-btn {
        height: 28px !important;
        min-height: 28px !important;
        padding: 0 10px !important;
        font-size: 11px !important;
        border-radius: 6px !important;
        width: auto !important;
        max-width: none !important;
        flex: 0 0 auto !important;
        box-shadow: 0 0 10px rgba(79, 140, 255, 0.3) !important;
        gap: 4px !important;
    }

    .pd-content {
        padding: var(--sp-5) var(--sp-4);
    }

    /* Sections */
    .pd-section {
        padding: var(--sp-12) 0;
    }

    .pd-hero {
        padding: var(--sp-10) 0 var(--sp-8);
    }

    .pd-container {
        padding: 0 var(--sp-4);
    }

    /* Grids → single column on mobile */
    .pd-feature-grid {
        grid-template-columns: 1fr;
    }

    .pd-footer-grid {
        grid-template-columns: 1fr;
        gap: var(--sp-6);
    }

    .pd-steps {
        grid-template-columns: 1fr;
    }

    /* Pricing */
    .pd-pricing-price {
        font-size: var(--text-3xl);
    }

    /* Typography scale-down */
    .t-hero {
        font-size: clamp(28px, 8vw, 44px);
    }

    .t-display {
        font-size: clamp(22px, 6vw, 32px);
    }

    .t-heading {
        font-size: var(--text-xl);
    }

    /* Table: horizontal scroll */
    .pd-table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .pd-table {
        min-width: 600px;
    }

    /* Compat grid */
    .pd-compat-grid {
        font-size: var(--text-2xs);
        overflow-x: auto;
    }

    /* CTA section */
    .pd-cta-section {
        padding: var(--sp-8) var(--sp-5);
    }

    /* Mega menu full-width on small screens */
    .pd-mega-panel {
        min-width: min(540px, calc(100vw - 32px));
        left: var(--sp-4);
        right: var(--sp-4);
        transform: none;
    }

    .pd-mega-panel.is-open {
        transform: translateY(0);
    }

    /* Toasts: full width */
    .pd-toasts {
        left: var(--sp-4);
        right: var(--sp-4);
        max-width: none;
        bottom: var(--sp-4);
    }

    /* Upload studio single column */
    .upload-studio-grid {
        grid-template-columns: 1fr !important;
    }

    /* Cards touch target sizing */
    .pd-btn {
        min-height: 40px;
    }

    .pd-btn-lg {
        min-height: 48px;
    }

    /* ── Mobile Console Sidebar: Enterprise SaaS Drawer & Backdrop Blur ── */
    .pd-sidebar {
        display: flex !important;
        position: fixed !important;
        left: 0 !important;
        top: 0 !important;
        bottom: 0 !important;
        width: 280px !important;
        max-width: 85vw !important;
        height: 100vh !important;
        height: 100dvh !important;
        z-index: 500 !important;
        background: var(--ink-900) !important;
        border-right: 1px solid var(--line-15) !important;
        transform: translate3d(-100%, 0, 0) !important;
        transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease !important;
        box-shadow: none !important;
        flex-direction: column !important;
        overflow: hidden !important;
        will-change: transform;
    }

    .pd-sidebar-mobile-open .pd-sidebar {
        transform: translate3d(0, 0, 0) !important;
        box-shadow: 16px 0 50px rgba(0, 0, 0, 0.75), 0 0 30px rgba(79, 140, 255, 0.12) !important;
    }

    /* Enterprise backdrop blur overlay */
    .pd-sidebar-overlay {
        display: block !important;
        position: fixed !important;
        inset: 0 !important;
        z-index: 499 !important;
        background: rgba(0, 0, 0, 0.65) !important;
        backdrop-filter: blur(8px) !important;
        -webkit-backdrop-filter: blur(8px) !important;
        opacity: 0 !important;
        pointer-events: none !important;
        transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
        will-change: opacity;
    }

    .pd-sidebar-mobile-open .pd-sidebar-overlay {
        opacity: 1 !important;
        pointer-events: auto !important;
    }

    /* Navigation scroll area inside mobile drawer */
    .pd-sidebar-nav {
        flex: 1 1 auto !important;
        min-height: 0 !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    /* User identity & Logout footer: 100% visible, fixed at bottom */
    .pd-sidebar-footer {
        flex-shrink: 0 !important;
        display: block !important;
        background: var(--ink-900) !important;
        border-top: 1px solid var(--line-10) !important;
        padding: var(--sp-4) !important;
        padding-bottom: max(var(--sp-4), env(safe-area-inset-bottom, 16px)) !important;
        position: relative !important;
        z-index: 10 !important;
    }

    /* Topbar: show hamburger */
    .pd-topbar-hamburger {
        display: flex !important;
    }
}

@media (max-width: 480px) {

    /* Mega menu */
    .pd-mega-panel {
        left: var(--sp-3);
        right: var(--sp-3);
    }

    .pd-mega-grid {
        grid-template-columns: 1fr;
    }

    /* Toasts */
    .pd-toasts {
        left: var(--sp-3);
        right: var(--sp-3);
    }

    /* Content padding tighten */
    .pd-content {
        padding: var(--sp-4) var(--sp-3);
    }

    .pd-container {
        padding: 0 var(--sp-3);
    }

    /* Footer bottom row stacks */
    .pd-footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--sp-3);
    }

    .pd-footer-legal-links {
        flex-wrap: wrap;
        gap: var(--sp-3);
    }

    /* Auth card full-bleed */
    .pd-auth-form {
        border-radius: var(--r-md);
        padding: var(--sp-5);
    }

    /* Hero tighten */
    .t-hero {
        font-size: 26px;
    }

    /* Pricing card */
    .pd-pricing-card {
        max-width: 100%;
    }

    /* Buttons fluid */
    .pd-nav-right .pd-btn {
        display: none;
    }

    .pd-nav-right .pd-btn-primary {
        display: inline-flex;
        padding: 0 var(--sp-3);
        height: 34px;
        font-size: var(--text-xs);
    }
}

/* ── sm: responsive helpers (tablet-first) ──────────────────────────── */
@media (min-width: 640px) {
    .sm-grid-cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .sm-grid-cols-3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .sm-flex-row {
        flex-direction: row;
    }
}

@media (min-width: 1024px) {
    .lg-grid-cols-2 {
        grid-template-columns: repeat(2, 1fr);
    }

    .lg-grid-cols-3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .lg-grid-cols-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ════════════════════════════════════════════════════════════════════════
   18. UTILITY HELPERS (MINIMAL — only what Tailwind cannot provide)
═══════════════════════════════════════════════════════════════════════ */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.divide-y>*+* {
    border-top: 1px solid var(--line-10);
}

[x-cloak] {
    display: none !important;
}

/* ════════════════════════════════════════════════════════════════════════
   19. HOMEPAGE COMPONENTS
═══════════════════════════════════════════════════════════════════════ */

/* Hero typography */
.t-hero {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: var(--text-white);
}

/* Eyebrow label with line */
.pd-eyebrow {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--signal);
    margin-bottom: var(--sp-3);
}

.pd-eyebrow::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 1px;
    background: var(--signal);
}

/* How It Works 3-step grid */
.pd-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border: 1px solid var(--line-10);
    border-radius: var(--r-md);
    overflow: hidden;
}

.pd-step {
    padding: var(--sp-6);
    background: var(--ink-850);
}

.pd-step-number {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    font-weight: 700;
    color: var(--signal);
    margin-bottom: var(--sp-4);
    letter-spacing: 0.06em;
}

/* Feature grid (6-col, 3 per row) */
.pd-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--line-10);
    border: 1px solid var(--line-10);
    border-radius: var(--r-md);
    overflow: hidden;
}

.pd-feature-item {
    padding: var(--sp-6);
    background: var(--ink-850);
}

/* Pricing card */
.pd-pricing-card {
    max-width: 520px;
    margin: 0 auto;
    border: 1px solid var(--line-15);
    border-radius: var(--r-md);
    overflow: hidden;
    background: var(--ink-850);
}

.pd-pricing-header {
    padding: var(--sp-6);
    border-bottom: 1px solid var(--line-10);
}

.pd-pricing-price {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--text-white);
    font-family: var(--font-mono);
    margin-bottom: var(--sp-1);
}

.pd-pricing-period {
    font-size: var(--text-sm);
    color: var(--text-dim);
}

.pd-pricing-features {
    padding: var(--sp-5) var(--sp-6);
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
    border-bottom: 1px solid var(--line-10);
}

.pd-pricing-feature {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    font-size: var(--text-sm);
    color: var(--text-base-color);
}

.pd-pricing-feature svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    color: var(--status-ok);
}

.pd-pricing-cta {
    padding: var(--sp-5) var(--sp-6);
}

/* CTA section */
.pd-cta-section {
    text-align: center;
    padding: var(--sp-12) var(--sp-4);
    border: 1px solid var(--line-10);
    border-radius: var(--r-md);
    background: var(--ink-850);
}

/* ════════════════════════════════════════════════════════════════════════
   20. AUTH PAGES & ENTERPRISE CARD DESIGN
═══════════════════════════════════════════════════════════════════════ */
.pd-auth-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--sp-10) var(--sp-4);
    background: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(79, 140, 255, 0.12), transparent 70%), var(--ink-950);
}

.pd-auth-card {
    width: 100%;
    max-width: 420px;
    background: linear-gradient(180deg, rgba(22, 27, 38, 0.95) 0%, rgba(14, 18, 26, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    overflow: hidden;
    position: relative;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.pd-auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, rgba(79, 140, 255, 0.8) 50%, transparent 100%);
}

.pd-auth-header {
    padding: 32px 28px 0;
    text-align: left;
}

.pd-auth-header .t-heading {
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.pd-auth-header .t-small {
    font-size: 13px;
    color: #8b949e;
    line-height: 1.5;
    margin-top: 4px;
}

.pd-auth-form {
    padding: 24px 28px 28px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.pd-auth-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.pd-auth-input-icon {
    position: absolute;
    left: 12px;
    color: #6e7681;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color var(--ease-ui);
}

.pd-auth-input-wrap:focus-within .pd-auth-input-icon {
    color: #4f8cff;
}

.pd-auth-input {
    width: 100%;
    height: 44px;
    padding: 0 14px 0 38px;
    background: rgba(8, 11, 16, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: #ffffff;
    font-family: inherit;
    font-size: 13.5px;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.pd-auth-input:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

.pd-auth-input:focus {
    background: rgba(12, 16, 24, 0.95);
    border-color: #4f8cff;
    box-shadow: 0 0 0 3px rgba(79, 140, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.3);
}

.pd-auth-input::placeholder {
    color: #484f58;
    font-size: 13px;
}

.pd-auth-btn {
    width: 100%;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(180deg, #4f8cff 0%, #3672e8 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #ffffff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.01em;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(79, 140, 255, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transition: all 0.15s ease;
    margin-top: 4px;
}

.pd-auth-btn:hover {
    background: linear-gradient(180deg, #5e96ff 0%, #447ef0 100%);
    box-shadow: 0 6px 20px rgba(79, 140, 255, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    transform: translateY(-1px);
}

.pd-auth-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(79, 140, 255, 0.3);
}

.pd-auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 4px 0;
}

.pd-auth-divider::before,
.pd-auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.pd-auth-divider span {
    padding: 0 12px;
    font-size: 10px;
    font-family: var(--font-mono);
    color: #6e7681;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.pd-auth-card-footer {
    padding: 14px 28px;
    background: rgba(0, 0, 0, 0.25);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
    font-size: 13px;
    color: #8b949e;
}

.pd-auth-card-footer a {
    color: #4f8cff;
    font-weight: 600;
    text-decoration: none;
    margin-left: 4px;
    transition: color 0.12s ease;
}

.pd-auth-card-footer a:hover {
    color: #79aeff;
    text-decoration: underline;
}



/* ════════════════════════════════════════════════════════════════════════
   21. CONSOLE FOOTER STRIP
═══════════════════════════════════════════════════════════════════════ */
.pd-console-footer {
    height: 36px;
    padding: 0 var(--sp-4);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--text-faint);
    border-top: 1px solid var(--line-10);
    background: var(--ink-850);
    flex-shrink: 0;
}

/* ════════════════════════════════════════════════════════════════════════
   22. RESPONSIVE OVERRIDES (NEW COMPONENTS)
═══════════════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
    .pd-steps {
        grid-template-columns: 1fr;
    }

    .pd-feature-grid {
        grid-template-columns: 1fr 1fr;
    }

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

    .pd-step {
        border-left: none !important;
        border-top: 1px solid var(--line-10);
    }
}

@media (max-width: 640px) {
    .t-hero {
        font-size: 2rem;
    }

    .pd-feature-grid {
        grid-template-columns: 1fr;
    }

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

    .pd-pricing-price {
        font-size: 2.5rem;
    }

    .pd-auth-card {
        max-width: 100%;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    .pd-auth-header {
        padding: var(--sp-6) var(--sp-5) 0;
    }

    .pd-auth-form {
        padding: var(--sp-4) var(--sp-5) var(--sp-6);
    }
}

/* ════════════════════════════════════════════════════════════════════════
   23. MISSING UTILITY COMPLETIONS
═══════════════════════════════════════════════════════════════════════ */

/* Page container — max-width centered wrapper for public pages */
.pd-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: var(--sp-6);
    padding-right: var(--sp-6);
}

/* Auth layout — vertically centered full-screen */
.pd-auth-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--sp-8) var(--sp-4);
    background: var(--ink-950);
}

/* Pulse animation for live status indicators */
.pd-pulse {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--status-ok);
    flex-shrink: 0;
    animation: pd-pulse-anim 2s ease infinite;
}

@keyframes pd-pulse-anim {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(0.85);
    }
}

/* Breadcrumb */
.pd-breadcrumb {
    display: flex;
    align-items: center;
    gap: var(--sp-1);
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--text-faint);
}

.pd-breadcrumb-sep {
    color: var(--text-faint);
    opacity: 0.5;
}

/* Main content area (public layout) */
.pd-main {
    flex: 1 1 auto;
    min-height: 0;
}

/* Table cell helpers */
.td-white {
    color: var(--text-white);
}

.td-mono {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--text-base-color);
}


/* Footer grid responsive */

.pd-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: var(--sp-8);
}

/* Slot telemetry strip (header) */
.pd-slot-telemetry {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--text-faint);
    padding: 3px var(--sp-3);
    background: var(--ink-900);
    border: 1px solid var(--line-10);
    border-radius: var(--r-sm);
}

/* flex-grow utility for public main wrapper */
.flex-grow {
    flex: 1 1 auto;
}

/* Additional spacing scales */
.space-y-10>*+* {
    margin-top: var(--sp-10);
}

/* Additional grid helpers */
.gap-5 {
    gap: var(--sp-5);
}

.gap-10 {
    gap: var(--sp-10);
}

/* Padding utilities used in page_router */
.py-4 {
    padding-top: var(--sp-4);
    padding-bottom: var(--sp-4);
}

.py-8 {
    padding-top: var(--sp-8);
    padding-bottom: var(--sp-8);
}

.py-12 {
    padding-top: var(--sp-12);
    padding-bottom: var(--sp-12);
}

.py-16 {
    padding-top: var(--sp-16);
    padding-bottom: var(--sp-16);
}

.pt-2 {
    padding-top: var(--sp-2);
}

.pt-4 {
    padding-top: var(--sp-4);
}

.pb-4 {
    padding-bottom: var(--sp-4);
}

.px-4 {
    padding-left: var(--sp-4);
    padding-right: var(--sp-4);
}

.px-5 {
    padding-left: var(--sp-5);
    padding-right: var(--sp-5);
}

.px-6 {
    padding-left: var(--sp-6);
    padding-right: var(--sp-6);
}

.p-4 {
    padding: var(--sp-4);
}

.p-5 {
    padding: var(--sp-5);
}

.p-6 {
    padding: var(--sp-6);
}

.p-8 {
    padding: var(--sp-8);
}

/* Margin utilities */
.mt-1 {
    margin-top: var(--sp-1);
}

.mt-2 {
    margin-top: var(--sp-2);
}

.mt-3 {
    margin-top: var(--sp-3);
}

.mt-4 {
    margin-top: var(--sp-4);
}

.mb-2 {
    margin-bottom: var(--sp-2);
}

.mb-4 {
    margin-bottom: var(--sp-4);
}

/* Width utilities */
.w-2 {
    width: 8px;
}

.w-4 {
    width: 16px;
}

.w-5 {
    width: 20px;
}

.w-6 {
    width: 24px;
}

.w-7 {
    width: 28px;
}

.w-10 {
    width: 40px;
}

.w-14 {
    width: 56px;
}

.h-2 {
    height: 8px;
}

.h-4 {
    height: 16px;
}

.h-5 {
    height: 20px;
}

.h-6 {
    height: 24px;
}

.h-7 {
    height: 28px;
}

.h-10 {
    height: 40px;
}

.h-14 {
    height: 56px;
}

.min-h-screen {
    min-height: 100vh;
}

/* Font weight utilities */
.font-mono {
    font-family: var(--font-mono);
}

.font-bold {
    font-weight: 700;
}

.font-black {
    font-weight: 900;
}

.font-medium {
    font-weight: 500;
}

.font-semibold {
    font-weight: 600;
}

/* Font size utilities */
.text-xs {
    font-size: var(--text-xs);
}

.text-sm {
    font-size: var(--text-sm);
}

.text-base {
    font-size: var(--text-md);
}

.text-lg {
    font-size: var(--text-lg);
}

.text-xl {
    font-size: var(--text-xl);
}

.text-2xl {
    font-size: var(--text-2xl);
}

.text-3xl {
    font-size: var(--text-3xl);
}

.text-4xl {
    font-size: var(--text-4xl);
}

/* Color utilities */
.text-white {
    color: var(--text-white);
}

.text-gray-300 {
    color: #cbd5e1;
}

.text-gray-400 {
    color: #94a3b8;
}

.text-gray-500 {
    color: #64748b;
}

/* Tracking (letter-spacing) utilities */
.tracking-tight {
    letter-spacing: -0.025em;
}

.tracking-wide {
    letter-spacing: 0.05em;
}

.tracking-wider {
    letter-spacing: 0.08em;
}

.tracking-widest {
    letter-spacing: 0.12em;
}

/* Leading (line-height) utilities */
.leading-relaxed {
    line-height: 1.65;
}

.leading-tight {
    line-height: 1.15;
}

/* Uppercase */
.uppercase {
    text-transform: uppercase;
}

/* Border utilities */
.border {
    border: 1px solid var(--line-10);
}

.border-t {
    border-top: 1px solid var(--line-10);
}

.border-b {
    border-bottom: 1px solid var(--line-10);
}

.border-white\/5 {
    border-color: rgba(255, 255, 255, 0.04);
}

.border-white\/10 {
    border-color: rgba(255, 255, 255, 0.07);
}

/* Whitespace */
.whitespace-nowrap {
    white-space: nowrap;
}

.whitespace-pre {
    white-space: pre;
}

.break-all {
    word-break: break-all;
}

/* Shadow */
.shadow-xl {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

/* Transition */
.transition {
    transition: all var(--ease-ui);
}

.transition-all {
    transition: all var(--ease-ui);
}

/* List style */
.list-none {
    list-style: none;
}

.list-disc {
    list-style: disc;
}

.list-inside {
    list-style-position: inside;
}

/* Animate spin (used in loaders) */
.animate-spin {
    animation: spin 0.8s linear infinite;
}

.animate-pulse {
    animation: pd-pulse-anim 2s ease infinite;
}

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

/* Line clamp */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Display block helper for cards used as links */
.block {
    display: block;
}

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

    .pd-container {
        padding-left: var(--sp-4);
        padding-right: var(--sp-4);
    }
}

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

    .pd-container {
        padding-left: var(--sp-4);
        padding-right: var(--sp-4);
    }

    .pd-pulse {
        width: 6px;
        height: 6px;
    }
}

/* ════════════════════════════════════════════════════════════════════════
   19. MULTI-COLOR SYSTEM — Admin, Auth Split, Content Pages
═══════════════════════════════════════════════════════════════════════ */

/* ── Stat Cards (Admin Dashboard) ───────────────────────────────────── */
.pd-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: var(--sp-4);
}

.pd-stat-card {
    background: var(--ink-850);
    border: 1px solid var(--line-15);
    border-top: 3px solid var(--line-25);
    border-radius: var(--r-lg);
    padding: var(--sp-5);
    display: flex;
    flex-direction: column;
    gap: var(--sp-2);
}

.pd-stat-card.ac-blue {
    border-top-color: var(--signal);
}

.pd-stat-card.ac-green {
    border-top-color: var(--status-ok);
}

.pd-stat-card.ac-amber {
    border-top-color: var(--status-warn);
}

.pd-stat-card.ac-purple {
    border-top-color: var(--php8-color);
}

.pd-stat-card.ac-cyan {
    border-top-color: var(--status-info);
}

.pd-stat-card.ac-red {
    border-top-color: var(--status-err);
}

.pd-stat-label {
    font-family: var(--font-mono);
    font-size: var(--text-2xs);
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--text-faint);
}

.pd-stat-label.ac-blue {
    color: var(--signal);
}

.pd-stat-label.ac-green {
    color: var(--status-ok);
}

.pd-stat-label.ac-amber {
    color: var(--status-warn);
}

.pd-stat-label.ac-purple {
    color: var(--php8-color);
}

.pd-stat-label.ac-cyan {
    color: var(--status-info);
}

.pd-stat-label.ac-red {
    color: var(--status-err);
}

.pd-stat-value {
    font-family: var(--font-mono);
    font-size: var(--text-2xl);
    font-weight: 900;
    color: var(--text-white);
    line-height: 1;
    letter-spacing: -0.02em;
}

.pd-stat-sub {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--text-faint);
}

/* ── Page Section Header (Admin pages) ──────────────────────────────── */
.pd-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--sp-4);
    margin-bottom: var(--sp-6);
}

.pd-page-title {
    font-size: var(--text-md);
    font-weight: 700;
    color: var(--text-white);
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: var(--sp-2);
}

.pd-page-title-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    background: var(--signal);
}

.pd-page-title-dot.ac-green {
    background: var(--status-ok);
}

.pd-page-title-dot.ac-amber {
    background: var(--status-warn);
}

.pd-page-title-dot.ac-purple {
    background: var(--php8-color);
}

.pd-page-subtitle {
    font-size: var(--text-xs);
    color: var(--text-faint);
    font-family: var(--font-mono);
    margin-top: var(--sp-1);
}

/* ── Admin Table ─────────────────────────────────────────────────────── */
.pd-admin-table-wrap {
    background: var(--ink-850);
    border: 1px solid var(--line-15);
    border-radius: var(--r-lg);
    overflow: hidden;
}

.pd-admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--text-xs);
    font-family: var(--font-mono);
}

.pd-admin-table thead tr {
    background: var(--ink-900);
    border-bottom: 1px solid var(--line-10);
}

.pd-admin-table th {
    padding: var(--sp-3) var(--sp-4);
    color: var(--text-faint);
    font-size: var(--text-2xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    white-space: nowrap;
}

.pd-admin-table td {
    padding: var(--sp-3) var(--sp-4);
    border-bottom: 1px solid var(--line-6);
    vertical-align: middle;
    color: var(--text-base-color);
}

.pd-admin-table tbody tr:last-child td {
    border-bottom: none;
}

.pd-admin-table tbody tr:hover td {
    background: var(--line-hi);
}

.pd-admin-table-cell-primary {
    font-weight: 700;
    color: var(--text-white);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 200px;
}

.pd-admin-table-cell-secondary {
    font-size: var(--text-2xs);
    color: var(--text-faint);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 200px;
    display: block;
    margin-top: 2px;
}

/* ── Filter Tab Bar ──────────────────────────────────────────────────── */
.pd-tab-bar {
    display: flex;
    align-items: center;
    gap: 2px;
    background: var(--ink-900);
    border: 1px solid var(--line-10);
    border-radius: var(--r-md);
    padding: 3px;
}

.pd-tab {
    padding: 5px var(--sp-3);
    border-radius: var(--r-sm);
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--text-dim);
    text-decoration: none;
    transition: all var(--ease-ui);
    white-space: nowrap;
}

.pd-tab:hover {
    color: var(--text-white);
    background: var(--line-10);
}

.pd-tab.is-active {
    background: var(--signal);
    color: #fff;
}

/* ── Action Button (table row inline) ───────────────────────────────── */
.pd-action-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-1);
    padding: 4px var(--sp-2);
    border-radius: var(--r-sm);
    font-family: var(--font-mono);
    font-size: var(--text-2xs);
    font-weight: 700;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all var(--ease-ui);
    line-height: 1;
}

.pd-action-btn.ok {
    background: rgba(34, 197, 94, 0.10);
    color: var(--status-ok);
    border-color: rgba(34, 197, 94, 0.25);
}

.pd-action-btn.ok:hover {
    background: rgba(34, 197, 94, 0.20);
}

.pd-action-btn.warn {
    background: rgba(234, 179, 8, 0.10);
    color: var(--status-warn);
    border-color: rgba(234, 179, 8, 0.25);
}

.pd-action-btn.warn:hover {
    background: rgba(234, 179, 8, 0.20);
}

.pd-action-btn.err {
    background: rgba(239, 68, 68, 0.10);
    color: var(--status-err);
    border-color: rgba(239, 68, 68, 0.25);
}

.pd-action-btn.err:hover {
    background: rgba(239, 68, 68, 0.20);
}

.pd-action-btn.ghost {
    background: var(--ink-800);
    color: var(--text-dim);
    border-color: var(--line-15);
}

.pd-action-btn.ghost:hover {
    color: var(--text-white);
}

/* ── Auth Split Layout ───────────────────────────────────────────────── */
.pd-auth-split {
    display: flex;
    min-height: 100vh;
    align-items: stretch;
}

.pd-auth-split-left {
    flex: 0 0 420px;
    background: linear-gradient(145deg, #0d1117 0%, #0f1729 100%);
    border-right: 1px solid var(--line-10);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--sp-12) var(--sp-10);
    position: relative;
    overflow: hidden;
}

.pd-auth-split-left::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(var(--line-6) 1px, transparent 1px),
        linear-gradient(90deg, var(--line-6) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(ellipse 80% 60% at 30% 50%, black 0%, transparent 70%);
    pointer-events: none;
}

.pd-auth-split-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--sp-8) var(--sp-6);
    background: var(--ink-950);
}

.pd-auth-split-feature {
    display: flex;
    align-items: flex-start;
    gap: var(--sp-3);
    margin-top: var(--sp-5);
}

.pd-auth-split-feature-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--r-md);
    border: 1px solid var(--line-15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: var(--ink-800);
}

/* Responsive: stack vertically on mobile */
@media (max-width: 900px) {
    .pd-auth-split {
        flex-direction: column;
    }

    .pd-auth-split-left {
        flex: none;
        min-height: auto;
        padding: var(--sp-8) var(--sp-5);
        border-right: none;
        border-bottom: 1px solid var(--line-10);
    }

    .pd-auth-split-right {
        align-items: flex-start;
        padding-top: var(--sp-8);
    }
}

/* ── Content Page Grid (PHP versions, docs) ──────────────────────────── */
.pd-content-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-4);
}

.pd-content-card {
    background: var(--ink-850);
    border: 1px solid var(--line-15);
    border-radius: var(--r-lg);
    padding: var(--sp-5);
    text-decoration: none;
    display: block;
    transition: border-color var(--ease-ui), background var(--ease-ui);
    position: relative;
    overflow: hidden;
}

.pd-content-card:hover {
    border-color: rgba(79, 140, 255, 0.45);
    background: var(--ink-800);
}

.pd-content-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--signal) 0%, transparent 100%);
    opacity: 0;
    transition: opacity var(--ease-ui);
}

.pd-content-card:hover::before {
    opacity: 1;
}

.pd-content-card-title {
    font-size: var(--text-md);
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: var(--sp-2);
    transition: color var(--ease-ui);
}

.pd-content-card:hover .pd-content-card-title {
    color: var(--signal);
}

.pd-content-card-desc {
    font-size: var(--text-xs);
    color: var(--text-faint);
    line-height: 1.65;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pd-content-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: var(--sp-4);
    padding-top: var(--sp-3);
    border-top: 1px solid var(--line-6);
    font-size: var(--text-xs);
    font-family: var(--font-mono);
    color: var(--signal);
}

/* ── API/Docs Endpoint Card ──────────────────────────────────────────── */
.pd-endpoint-card {
    background: var(--ink-850);
    border: 1px solid var(--line-15);
    border-radius: var(--r-lg);
    padding: var(--sp-5);
    font-family: var(--font-mono);
}

.pd-endpoint-method {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: var(--r-sm);
    font-size: var(--text-2xs);
    font-weight: 900;
    letter-spacing: 0.05em;
    margin-right: var(--sp-2);
}

.pd-endpoint-method.POST {
    background: rgba(79, 140, 255, 0.15);
    color: var(--signal);
    border: 1px solid rgba(79, 140, 255, 0.3);
}

.pd-endpoint-method.GET {
    background: rgba(34, 197, 94, 0.12);
    color: var(--status-ok);
    border: 1px solid rgba(34, 197, 94, 0.25);
}

.pd-endpoint-method.DELETE {
    background: rgba(239, 68, 68, 0.12);
    color: var(--status-err);
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.pd-endpoint-path {
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--text-white);
}

.pd-endpoint-desc {
    font-size: var(--text-xs);
    color: var(--text-dim);
    margin-top: var(--sp-2);
    font-family: var(--font-ui);
    line-height: 1.6;
}

/* ── Upload file type notice ─────────────────────────────────────────── */
.pd-filetype-notice {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    padding: var(--sp-2) var(--sp-3);
    background: var(--ink-800);
    border: 1px solid var(--line-10);
    border-radius: var(--r-md);
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--text-dim);
    margin-top: var(--sp-3);
}

/* ── Status badge variants (pd-badge-* additions) ───────────────────── */
.pd-badge-ok {
    background: rgba(34, 197, 94, 0.12);
    color: var(--status-ok);
    border: 1px solid rgba(34, 197, 94, 0.25);
}

.pd-badge-warn {
    background: rgba(234, 179, 8, 0.12);
    color: var(--status-warn);
    border: 1px solid rgba(234, 179, 8, 0.25);
}

.pd-badge-err {
    background: rgba(239, 68, 68, 0.12);
    color: var(--status-err);
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.pd-badge-purple {
    background: rgba(167, 139, 250, 0.12);
    color: var(--php8-color);
    border: 1px solid rgba(167, 139, 250, 0.25);
}

.pd-badge-neutral {
    background: var(--ink-800);
    color: var(--text-faint);
    border: 1px solid var(--line-10);
}

/* All pd-badge base */
.pd-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 99px;
    font-size: var(--text-2xs);
    font-family: var(--font-mono);
    font-weight: 700;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

/* ── Recent Jobs table (homepage + admin) ────────────────────────────── */
.pd-jobs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--text-xs);
}

.pd-jobs-table th {
    padding: var(--sp-2) var(--sp-3);
    color: var(--text-faint);
    font-family: var(--font-mono);
    font-size: var(--text-2xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    text-align: left;
    border-bottom: 1px solid var(--line-10);
    background: var(--ink-900);
}

.pd-jobs-table td {
    padding: var(--sp-2) var(--sp-3);
    border-bottom: 1px solid var(--line-6);
    vertical-align: middle;
    color: var(--text-base-color);
}

.pd-jobs-table tbody tr:last-child td {
    border-bottom: none;
}

.pd-jobs-table tbody tr:hover td {
    background: var(--line-hi);
}

/* ════════════════════════════════════════════════════════════════════════
   PIPELINE LINK TIMELINE COMPONENT
═══════════════════════════════════════════════════════════════════════ */
.pd-timeline {
    position: relative;
    background: var(--ink-900);
    border: 1px solid var(--line-10);
    border-radius: var(--r-xl);
    padding: var(--sp-5) var(--sp-6);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.pd-timeline-track {
    display: flex;
    align-items: center;
    position: relative;
    width: 100%;
}

.pd-timeline-item {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.pd-timeline-node {
    width: 32px;
    height: 32px;
    border-radius: var(--r-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    font-weight: 800;
    flex-shrink: 0;
    transition: all var(--ease-ui);
    border: 1px solid var(--line-15);
    background: var(--ink-850);
    color: var(--text-faint);
}

.pd-timeline-item.is-active .pd-timeline-node {
    background: var(--signal);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 0 16px rgba(79, 140, 255, 0.55);
}

.pd-timeline-item.is-done .pd-timeline-node {
    background: rgba(34, 197, 94, 0.15);
    color: var(--status-ok);
    border-color: rgba(34, 197, 94, 0.4);
}

.pd-timeline-meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.pd-timeline-stage {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-faint);
    transition: color var(--ease-ui);
    line-height: 1.2;
    margin-bottom: 2px;
}

.pd-timeline-item.is-active .pd-timeline-stage {
    color: var(--signal);
}

.pd-timeline-item.is-done .pd-timeline-stage {
    color: var(--status-ok);
}

.pd-timeline-title {
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--text-dim);
    transition: color var(--ease-ui);
    line-height: 1.2;
    white-space: nowrap;
}

.pd-timeline-item.is-active .pd-timeline-title {
    color: var(--text-white);
}

.pd-timeline-item.is-done .pd-timeline-title {
    color: var(--status-ok);
}

/* Connecting Link Line between stages */
.pd-timeline-link {
    flex: 1;
    height: 2px;
    background: var(--line-10);
    margin: 0 var(--sp-4);
    transition: all var(--ease-ui);
    position: relative;
    border-radius: 1px;
}

.pd-timeline-link.is-done {
    background: var(--status-ok);
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.4);
}

.pd-timeline-link.is-active {
    background: linear-gradient(90deg, var(--status-ok), var(--signal));
    box-shadow: 0 0 8px rgba(79, 140, 255, 0.35);
}

@media (max-width: 900px) {

    /* ── Mobile Auth Screens: Hide Side Info Bar on Mobile Only ── */
    .pd-auth-split {
        flex-direction: column !important;
        min-height: 100vh !important;
        justify-content: center !important;
        align-items: center !important;
        background: var(--ink-950) !important;
    }

    .pd-auth-split-left {
        display: none !important;
    }

    .pd-auth-split-right {
        width: 100% !important;
        max-width: 440px !important;
        flex: 1 1 auto !important;
        padding: var(--sp-6) var(--sp-4) !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        background: transparent !important;
    }

    .pd-mobile-auth-brand {
        display: inline-flex !important;
    }

    .pd-auth-card {
        max-width: 100% !important;
    }
}

@media (max-width: 768px) {
    .pd-content-grid-3 {
        grid-template-columns: 1fr;
    }

    .pd-stat-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .pd-stat-grid {
        grid-template-columns: 1fr;
    }
}

/* ════════════════════════════════════════════════════════════════════════
   PREMIUM ANIMATIONS v2
═══════════════════════════════════════════════════════════════════════ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% center;
    }

    100% {
        background-position: 200% center;
    }
}

@keyframes scanLine {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }

    40% {
        opacity: 1;
    }

    100% {
        transform: translateX(300%);
        opacity: 0;
    }
}

@keyframes glowPulse {

    0%,
    100% {
        box-shadow: 0 0 32px rgba(79, 140, 255, 0.25), 0 0 8px rgba(79, 140, 255, 0.12);
    }

    50% {
        box-shadow: 0 0 50px rgba(79, 140, 255, 0.4), 0 0 16px rgba(79, 140, 255, 0.2);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-8px);
    }
}

@keyframes gridMove {
    from {
        background-position: 0 0;
    }

    to {
        background-position: 40px 40px;
    }
}

@keyframes upload-scan {
    0% {
        width: 0%;
        margin-left: 0;
    }

    50% {
        width: 60%;
    }

    100% {
        width: 0%;
        margin-left: 100%;
    }
}

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

/* ════════════════════════════════════════════════════════════════════════
   UPLOAD DROPZONE (Premium v2)
═══════════════════════════════════════════════════════════════════════ */
.pd-upload-hero {
    position: relative;
    overflow: hidden;
}

.pd-upload-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(79, 140, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(79, 140, 255, 0.04) 1px, transparent 1px);
    background-size: 40px 40px;
    animation: gridMove 10s linear infinite;
    pointer-events: none;
    z-index: 0;
}

.pd-upload-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 70%, rgba(79, 140, 255, 0.12) 0%, transparent 65%);
    pointer-events: none;
    z-index: 0;
}

.pd-upload-hero>* {
    position: relative;
    z-index: 1;
}

.pd-dropzone-v2 {
    position: relative;
    border: 2px dashed rgba(79, 140, 255, 0.22);
    border-radius: 14px;
    background: rgba(79, 140, 255, 0.04);
    cursor: pointer;
    transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
    overflow: hidden;
}

.pd-dropzone-v2:hover,
.pd-dropzone-v2.is-over {
    border-color: rgba(79, 140, 255, 0.6);
    background: rgba(79, 140, 255, 0.09);
    box-shadow: 0 0 40px rgba(79, 140, 255, 0.18), 0 0 12px rgba(79, 140, 255, 0.10);
}

.pd-dz-scan {
    position: absolute;
    top: 0;
    left: 0;
    width: 45%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--signal), transparent);
    animation: scanLine 2.8s ease infinite;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.pd-dropzone-v2:hover .pd-dz-scan,
.pd-dropzone-v2.is-over .pd-dz-scan {
    opacity: 1;
}

.pd-dz-icon-v2 {
    width: 72px;
    height: 72px;
    margin: 0 auto;
    background: rgba(79, 140, 255, 0.10);
    border: 1px solid rgba(79, 140, 255, 0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--signal);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.pd-dropzone-v2:hover .pd-dz-icon-v2,
.pd-dropzone-v2.is-over .pd-dz-icon-v2 {
    box-shadow: 0 0 32px rgba(79, 140, 255, 0.3);
    transform: scale(1.06);
}

/* Stage pipeline nodes */
.pd-stage-node {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid var(--line-15);
    background: var(--ink-850);
    color: var(--text-faint);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    transition: all 0.25s ease;
    flex-shrink: 0;
}

.pd-stage-node.is-active {
    border-color: var(--signal);
    background: rgba(79, 140, 255, 0.12);
    color: var(--signal);
    box-shadow: 0 0 16px rgba(79, 140, 255, 0.3);
}

.pd-stage-node.is-done {
    border-color: var(--status-ok);
    background: rgba(34, 197, 94, 0.12);
    color: var(--status-ok);
    box-shadow: 0 0 12px rgba(34, 197, 94, 0.3);
}

.pd-stage-connector {
    flex: 1;
    height: 1.5px;
    background: var(--line-10);
    transition: background 0.4s ease;
}

.pd-stage-connector.is-done {
    background: var(--status-ok);
    box-shadow: 0 0 6px rgba(34, 197, 94, 0.25);
}

.pd-stage-connector.is-active {
    background: linear-gradient(90deg, var(--status-ok) 0%, var(--signal) 100%);
}

/* Progress ring (Stage 3) */
.pd-ring-outer {
    position: absolute;
    inset: 0;
    border: 2px solid var(--line-15);
    border-top-color: var(--signal);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.pd-ring-inner {
    position: absolute;
    inset: 10px;
    border: 1.5px dashed rgba(79, 140, 255, 0.3);
    border-radius: 50%;
    animation: spin 3s linear infinite reverse;
}

/* Trust strip */
.pd-trust-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-6);
    flex-wrap: wrap;
    padding: var(--sp-4) var(--sp-6);
    border-radius: var(--r-lg);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--line-6);
}

.pd-trust-item {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--text-faint);
    white-space: nowrap;
}

/* ════════════════════════════════════════════════════════════════════════
   MOBILE FOOTER ACCORDION
═══════════════════════════════════════════════════════════════════════ */
.pd-footer-acc-btn {
    display: none;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    cursor: pointer;
    color: #ffffff !important;
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: color 0.15s ease;
}

.pd-footer-acc-btn:hover {
    color: #38bdf8 !important;
}

.pd-footer-acc-chevron {
    transition: transform 0.25s cubic-bezier(0.2, 0, 0, 1);
    color: #94a3b8;
    flex-shrink: 0;
}

.pd-footer-acc-btn[aria-expanded="true"] .pd-footer-acc-chevron {
    transform: rotate(180deg);
    color: #38bdf8;
}

/* Desktop: accordion body always visible */
.pd-footer-acc-body {
    overflow: visible;
    max-height: none;
    opacity: 1;
}

/* is-open used only on mobile via JS */
.pd-footer-acc-body.is-open {
    max-height: 3000px !important;
    opacity: 1 !important;
    overflow: visible !important;
}

@media (max-width: 640px) {
    .pd-footer-grid {
        grid-template-columns: 1fr !important;
        gap: 0 !important;
    }

    .pd-footer-brand {
        padding-bottom: var(--sp-6);
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
        margin-bottom: var(--sp-4);
    }

    .pd-footer-brand-desc {
        color: #cbd5e1 !important;
        font-size: 13.5px !important;
    }

    .pd-footer-col-label {
        display: none;
    }

    .pd-footer-acc-btn {
        display: flex !important;
    }

    /* On mobile: collapse accordion body by default, expand via JS */
    .pd-footer-acc-body {
        overflow: hidden;
        max-height: 0;
        opacity: 0;
        transition: max-height 0.4s ease, opacity 0.25s ease;
    }

    .pd-footer-acc-body.is-open {
        max-height: 3000px !important;
        opacity: 1 !important;
        overflow: visible !important;
    }

    .pd-footer-links {
        padding: 12px 0 18px 8px !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
    }

    .pd-footer-links .pd-footer-link {
        font-size: 14px !important;
        line-height: 1.5 !important;
        color: #f1f5f9 !important;
        /* Ultra-clear, crisp text on mobile black screen */
        padding: 4px 0 !important;
        display: block !important;
        text-decoration: none !important;
    }

    .pd-footer-links .pd-footer-link:hover,
    .pd-footer-links .pd-footer-link:active {
        color: #38bdf8 !important;
    }

    .pd-trust-strip {
        gap: var(--sp-4);
    }
}

/* ════════════════════════════════════════════════════════════════════════
   ENTERPRISE SAAS AUTHENTICATION SUITE (Clean, Minimalist, High-Trust)
═══════════════════════════════════════════════════════════════════════ */
.pd-saas-auth-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #090a0f;
    color: #f1f5f9;
    position: relative;
}

.pd-saas-auth-header {
    height: 60px;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(9, 10, 15, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    width: 100%;
    box-sizing: border-box;
}

.pd-saas-auth-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.pd-saas-auth-card {
    width: 100%;
    max-width: 420px;
    background: rgba(10, 14, 23, 0.88) !important;
    backdrop-filter: blur(24px) saturate(190%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(190%) !important;
    border: 1px solid rgba(255, 255, 255, 0.10) !important;
    border-radius: 20px !important;
    padding: 38px 32px;
    box-shadow: 0 24px 64px -12px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.06) !important;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

.pd-saas-auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, rgba(56, 189, 248, 0.6) 30%, rgba(99, 102, 241, 0.6) 70%, transparent 100%);
    pointer-events: none;
    z-index: 2;
}

.pd-saas-auth-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(37, 99, 235, 0.12);
    border: 1px solid rgba(37, 99, 235, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #38bdf8;
    margin-bottom: 20px;
}

.pd-saas-auth-title {
    font-size: 21px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #ffffff;
    margin: 0 0 6px 0;
}

.pd-saas-auth-subtitle {
    font-size: 13.5px;
    color: #94a3b8;
    line-height: 1.5;
    margin: 0 0 24px 0;
}

.pd-saas-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 18px;
}

.pd-saas-label {
    font-size: 13px;
    font-weight: 500;
    color: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pd-saas-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.pd-saas-input {
    width: 100%;
    height: 42px;
    background: #090b10;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 0 14px;
    font-size: 13.5px;
    color: #ffffff;
    font-family: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    outline: none;
    box-sizing: border-box;
}

.pd-saas-input:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

.pd-saas-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.pd-saas-input::placeholder {
    color: #64748b;
}

.pd-saas-submit-btn {
    width: 100%;
    height: 42px;
    background: #2563eb;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    margin-top: 6px;
}

.pd-saas-submit-btn:hover {
    background: #1d4ed8;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.pd-saas-submit-btn:active {
    transform: scale(0.99);
}

.pd-saas-auth-card-footer {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    font-size: 13px;
    color: #94a3b8;
}

.pd-saas-auth-card-footer a {
    color: #38bdf8;
    font-weight: 500;
    text-decoration: none;
}

.pd-saas-auth-card-footer a:hover {
    text-decoration: underline;
}

.pd-saas-page-footer {
    padding: 20px 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: #64748b;
    flex-wrap: wrap;
    gap: 12px;
    box-sizing: border-box;
}

.pd-saas-page-footer a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.15s ease;
}

.pd-saas-page-footer a:hover {
    color: #94a3b8;
}

/* Light Mode Overrides for Enterprise SaaS Auth */
[data-theme="light"] .pd-saas-auth-page {
    background: #f8fafc !important;
    color: #0f172a !important;
}

[data-theme="light"] .pd-saas-auth-header {
    background: rgba(255, 255, 255, 0.85) !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

[data-theme="light"] .pd-saas-auth-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.03) !important;
}

[data-theme="light"] .pd-saas-auth-icon {
    background: rgba(37, 99, 235, 0.08) !important;
    border-color: rgba(37, 99, 235, 0.2) !important;
    color: #2563eb !important;
}

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

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

[data-theme="light"] .pd-saas-label {
    color: #334155 !important;
}

[data-theme="light"] .pd-saas-input {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
}

[data-theme="light"] .pd-saas-input:hover {
    border-color: #94a3b8 !important;
}

[data-theme="light"] .pd-saas-input:focus {
    border-color: #2563eb !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15) !important;
}

[data-theme="light"] .pd-saas-input::placeholder {
    color: #94a3b8 !important;
}

[data-theme="light"] .pd-saas-auth-card-footer {
    border-top: 1px solid #e2e8f0 !important;
    color: #64748b !important;
}

[data-theme="light"] .pd-saas-auth-card-footer a {
    color: #2563eb !important;
}

/* ════════════════════════════════════════════════════════════════════════
   25. TIER-1 ENTERPRISE SAAS HOMEPAGE DESIGN SYSTEM (LINEAR / STRIPE STYLE)
═══════════════════════════════════════════════════════════════════════ */

/* Bento Grid System */
.pd-bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 24px;
}

.pd-bento-col-8 {
    grid-column: span 8;
}

.pd-bento-col-4 {
    grid-column: span 4;
}

.pd-bento-col-6 {
    grid-column: span 6;
}

.pd-bento-col-12 {
    grid-column: span 12;
}

@media (max-width: 992px) {

    .pd-bento-col-8,
    .pd-bento-col-4,
    .pd-bento-col-6 {
        grid-column: span 12;
    }
}

.pd-bento-card {
    background: #0d111a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 30px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
    box-sizing: border-box;
    height: 100%;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.pd-bento-card:hover {
    border-color: rgba(56, 189, 248, 0.35);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5), 0 0 30px rgba(56, 189, 248, 0.08);
    transform: translateY(-2px);
}

[data-theme="light"] .pd-bento-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 20px -4px rgba(0, 0, 0, 0.05) !important;
}

[data-theme="light"] .pd-bento-card:hover {
    border-color: #cbd5e1 !important;
    box-shadow: 0 12px 30px -6px rgba(0, 0, 0, 0.08) !important;
}

/* Before / After Diff Comparison Window */
.pd-diff-box {
    background: #090c14;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
    font-family: var(--font-mono);
    font-size: 12px;
    line-height: 1.6;
}

[data-theme="light"] .pd-diff-box {
    background: #0f172a !important;
    border-color: #334155 !important;
    color: #e2e8f0 !important;
}

/* Telemetry Metric Cards */
.pd-metric-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 20px;
}

.pd-metric-card {
    background: #0d111a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 24px 20px;
    text-align: center;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.pd-metric-card:hover {
    border-color: rgba(56, 189, 248, 0.3);
}

.pd-metric-value {
    white-space: nowrap;
    font-size: 34px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 8px;
    font-family: var(--font-mono);
}

.pd-metric-label {
    white-space: nowrap;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 4px;
}

.pd-metric-sub {
    white-space: nowrap;
    font-size: 11.5px;
    color: var(--text-dim);
}

[data-theme="light"] .pd-metric-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03) !important;
}

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

/* Interactive FAQ Accordion */
.pd-faq-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.pd-faq-card {
    background: #0d111a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.pd-faq-card:hover {
    border-color: rgba(255, 255, 255, 0.18);
}

.pd-faq-trigger {
    width: 100%;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: transparent;
    border: none;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-white);
    text-align: left;
    cursor: pointer;
    font-family: inherit;
}

.pd-faq-chevron {
    transition: transform 0.2s ease;
    color: var(--text-dim);
    flex-shrink: 0;
}

.pd-faq-chevron.is-open {
    transform: rotate(180deg);
    color: #38bdf8;
}

.pd-faq-content {
    padding: 0 24px 22px;
    font-size: 14px;
    line-height: 1.65;
    color: var(--text-dim);
}

[data-theme="light"] .pd-faq-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
}

[data-theme="light"] .pd-faq-trigger {
    color: #0f172a !important;
}

/* Trust Highlight Pills */
.pd-trust-pill {
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    color: var(--text-dim);
}

/* Showcase Pricing Card Component */
.pd-pricing-showcase {
    background: linear-gradient(135deg, #0b0f19 0%, #111827 100%) !important;
    border: 1px solid rgba(59, 130, 246, 0.45) !important;
    border-radius: 20px;
    padding: 40px 36px;
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    box-sizing: border-box;
    width: 100%;
}

.pd-pricing-showcase-grid {
    display: grid;
    grid-template-columns: 1fr 240px;
    gap: 36px;
    align-items: center;
}

.pd-pricing-feature-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    font-size: 13px;
    color: #e2e8f0;
}

.pd-pricing-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-sizing: border-box;
}

/* Permanently Lock Unlimited Access Pass Card to Dark Theme in Light Mode */
[data-theme="light"] .pd-pricing-showcase {
    background: linear-gradient(135deg, #0b0f19 0%, #111827 100%) !important;
    border: 1px solid rgba(59, 130, 246, 0.45) !important;
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
    color: #ffffff !important;
}

[data-theme="light"] .pd-pricing-showcase h2 {
    color: #ffffff !important;
}

[data-theme="light"] .pd-pricing-showcase p {
    color: #cbd5e1 !important;
}

[data-theme="light"] .pd-pricing-feature-list {
    color: #e2e8f0 !important;
}

[data-theme="light"] .pd-pricing-feature-list svg {
    stroke: #38bdf8 !important;
}

[data-theme="light"] .pd-pricing-box {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

[data-theme="light"] .pd-pricing-box * {
    color: inherit;
}

/* ════════════════════════════════════════════════════════════════════════
   26. 3D EFFECTS & PERSPECTIVE DEPTH SYSTEM
═══════════════════════════════════════════════════════════════════════ */
.pd-3d-stage {
    perspective: 1200px;
    perspective-origin: center 25%;
}

.pd-3d-hero-tilt {
    transform-style: preserve-3d;
    transform: perspective(1200px) rotateX(2.5deg);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.4s ease;
    box-shadow: 0 35px 80px -20px rgba(0, 0, 0, 0.85), 0 0 50px rgba(56, 189, 248, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
}

.pd-3d-hero-tilt:hover {
    transform: perspective(1200px) rotateX(0deg) translateY(-4px);
    box-shadow: 0 45px 100px -25px rgba(0, 0, 0, 0.9), 0 0 60px rgba(56, 189, 248, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
}

[data-theme="light"] .pd-3d-hero-tilt {
    box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.18), 0 0 30px rgba(59, 130, 246, 0.08) !important;
}

/* Floating 3D Ambient Orbs */
.pd-3d-orb-1 {
    position: absolute;
    top: -80px;
    left: 20%;
    width: 450px;
    height: 450px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.15) 0%, rgba(56, 189, 248, 0) 70%);
    filter: blur(50px);
    pointer-events: none;
    z-index: 0;
    animation: pd-float-orb-1 12s ease-in-out infinite;
}

.pd-3d-orb-2 {
    position: absolute;
    top: -40px;
    right: 20%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.12) 0%, rgba(168, 85, 247, 0) 70%);
    filter: blur(50px);
    pointer-events: none;
    z-index: 0;
    animation: pd-float-orb-2 14s ease-in-out infinite;
}

@keyframes pd-float-orb-1 {

    0%,
    100% {
        transform: translate3d(0, 0, 0) scale(1);
    }

    50% {
        transform: translate3d(-25px, 20px, 0) scale(1.06);
    }
}

@keyframes pd-float-orb-2 {

    0%,
    100% {
        transform: translate3d(0, 0, 0) scale(1);
    }

    50% {
        transform: translate3d(25px, -15px, 0) scale(0.96);
    }
}

/* 3D Elevated Pre-Footer Banner */
.pd-prefooter-cta {
    position: relative;
    border-radius: 20px;
    background: linear-gradient(135deg, #0b0f19 0%, #111827 50%, #0b0f19 100%);
    border: 1px solid rgba(59, 130, 246, 0.35);
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    padding: 48px 40px;
    overflow: hidden;
}

[data-theme="light"] .pd-prefooter-cta {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
    border: 1px solid #3b82f6 !important;
    box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.3) !important;
}

/* ════════════════════════════════════════════════════════════════════════
   27. GLOBAL PUBLIC FOOTER (PERMANENTLY DARK IN LIGHT & DARK MODES)
═══════════════════════════════════════════════════════════════════════ */
.pd-footer,
[data-theme="light"] .pd-footer {
    background: #06080e !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #f8fafc !important;
}

.pd-footer .pd-footer-brand p,
[data-theme="light"] .pd-footer .pd-footer-brand p {
    color: #94a3b8 !important;
}

.pd-footer .pd-footer-col-label,
[data-theme="light"] .pd-footer .pd-footer-col-label {
    color: #ffffff !important;
}

.pd-footer .pd-footer-link,
[data-theme="light"] .pd-footer .pd-footer-link {
    color: #94a3b8 !important;
}

.pd-footer .pd-footer-link:hover,
[data-theme="light"] .pd-footer .pd-footer-link:hover {
    color: #38bdf8 !important;
}

.pd-footer .pd-footer-chip,
[data-theme="light"] .pd-footer .pd-footer-chip {
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #94a3b8 !important;
}

.pd-footer .pd-footer-chip:hover,
[data-theme="light"] .pd-footer .pd-footer-chip:hover {
    background: rgba(56, 189, 248, 0.15) !important;
    border-color: rgba(56, 189, 248, 0.35) !important;
    color: #38bdf8 !important;
}

.pd-footer-bottom,
[data-theme="light"] .pd-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
}

.pd-footer-legal,
[data-theme="light"] .pd-footer-legal {
    color: #64748b !important;
}

/* Background Animations */
.pd-animated-mesh {
    animation: pd-mesh-drift 18s ease-in-out infinite alternate;
}

@keyframes pd-mesh-drift {
    0% {
        transform: translateX(-50%) translateY(0) scale(1);
    }

    50% {
        transform: translateX(-48%) translateY(-25px) scale(1.05);
    }

    100% {
        transform: translateX(-52%) translateY(15px) scale(0.98);
    }
}

[data-theme="light"] .pd-saas-page-footer {
    border-top: 1px solid #e2e8f0 !important;
    color: #94a3b8 !important;
}

[data-theme="light"] .pd-saas-page-footer a {
    color: #64748b !important;
}

[data-theme="light"] .pd-saas-page-footer a:hover {
    color: #0f172a !important;
}

/* ════════════════════════════════════════════════════════════════════════
   28. ADVANCED MOBILE RESPONSIVE ENGINE (ALL VIEWPORTS & DEVICES)
═══════════════════════════════════════════════════════════════════════ */

/* Tablet & Smaller Screens (<= 992px) */
@media (max-width: 992px) {
    .pd-bento-grid {
        grid-template-columns: 1fr !important;
        gap: 18px !important;
    }

    .pd-bento-col-8,
    .pd-bento-col-4,
    .pd-bento-col-6 {
        grid-column: span 1 !important;
    }

    .pd-footer-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 32px !important;
    }
}

/* Smartphone & Small Tablet (<= 768px) */
@media (max-width: 768px) {

    /* Hero Section Responsive */
    .pd-hero-section {
        padding-top: 48px !important;
        padding-bottom: 56px !important;
    }

    .pd-advance-badge {
        white-space: normal !important;
        text-align: center;
        padding: 5px 12px;
        font-size: 11px;
        line-height: 1.4;
        max-width: 100%;
        display: inline-flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    .pd-hero-buttons {
        flex-direction: column !important;
        width: 100% !important;
        gap: 10px !important;
    }

    .pd-hero-buttons .pd-btn {
        width: 100% !important;
        justify-content: center !important;
        padding: 12px 20px !important;
    }

    .pd-trust-pill {
        font-size: 12px !important;
    }

    /* Live Demo Decoder Card */
    .pd-demo-dropzone-wrap {
        padding: 12px 10px !important;
        box-sizing: border-box !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }

    .pd-demo-dropzone {
        padding: 24px 12px !important;
        box-sizing: border-box !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }

    .pd-terminal-header {
        padding: 10px 12px !important;
    }

    .pd-trust-pill {
        white-space: normal !important;
        text-align: center !important;
        font-size: 11.5px !important;
        line-height: 1.35 !important;
    }

    .pd-demo-badge-pill {
        white-space: normal !important;
        text-align: center !important;
        font-size: 10px !important;
    }

    .pd-code-view-body {
        max-height: 220px !important;
        font-size: 11px !important;
        padding: 12px !important;
    }

    .pd-unlock-bar {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
        text-align: center !important;
    }

    .pd-unlock-bar .pd-btn {
        width: 100% !important;
        justify-content: center !important;
    }

    /* Bento Cards */
    .pd-bento-card {
        padding: 22px 18px !important;
        gap: 16px !important;
        border-radius: 14px !important;
    }

    .pd-diff-box {
        padding: 12px !important;
        font-size: 11px !important;
    }

    .pd-user-card {
        padding: 22px 18px !important;
        border-radius: 14px !important;
    }

    /* Pre-Footer CTA */
    .pd-prefooter-cta {
        padding: 32px 20px !important;
        text-align: center;
        border-radius: 16px !important;
    }

    .pd-prefooter-cta>div {
        flex-direction: column !important;
        align-items: center !important;
        gap: 20px !important;
    }

    .pd-prefooter-cta .pd-btn {
        width: 100% !important;
        justify-content: center !important;
    }

    /* Showcase Pricing Pass Card */
    .pd-pricing-showcase {
        padding: 24px 18px !important;
        border-radius: 16px !important;
    }

    .pd-pricing-showcase-grid {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }

    .pd-pricing-feature-list {
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
        font-size: 12px !important;
    }

    .pd-pricing-box {
        padding: 20px 16px !important;
        background: rgba(255, 255, 255, 0.04) !important;
        border: 1px solid rgba(59, 130, 246, 0.3) !important;
        border-radius: 14px !important;
    }

    .pd-pricing-box .pd-btn {
        width: 100% !important;
        justify-content: center !important;
    }

    .pd-feature-showcase-card {
        padding: 24px 18px !important;
        border-radius: 16px !important;
    }

    .pd-feature-showcase-card>div {
        flex-direction: column !important;
        gap: 24px !important;
    }

    .pd-feature-showcase-card .pd-btn {
        width: 100% !important;
        justify-content: center !important;
    }

    /* Mobile Footer Accordion */
    .pd-footer-grid {
        grid-template-columns: 1fr !important;
        gap: 0 !important;
    }

    .pd-footer-brand {
        padding-bottom: 24px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        margin-bottom: 16px;
    }

    .pd-footer-col-label {
        display: none !important;
    }

    .pd-footer-acc-btn {
        display: flex !important;
    }

    .pd-footer-acc-body {
        overflow: hidden;
        max-height: 0;
        opacity: 0;
        transition: max-height 0.35s ease, opacity 0.25s ease;
    }

    .pd-footer-acc-body.is-open {
        max-height: 2500px !important;
        opacity: 1 !important;
        overflow: visible !important;
    }

    .pd-footer-links {
        padding: 10px 0 16px 6px !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
    }

    .pd-footer-bottom {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 12px !important;
    }

    .pd-footer-legal-links {
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 12px !important;
    }
}

/* Extra Small Phones (<= 480px) */
@media (max-width: 480px) {
    .pd-metric-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }

    .pd-metric-card {
        padding: 16px 10px !important;
    }

    .pd-metric-value {
        font-size: 26px !important;
    }

    .pd-metric-label {
        font-size: 11.5px !important;
    }

    .pd-metric-sub {
        font-size: 10px !important;
    }

    .pd-faq-trigger {
        padding: 14px 16px !important;
        font-size: 14px !important;
    }

    .pd-faq-content {
        padding: 0 16px 16px !important;
        font-size: 13px !important;
    }
}

/* Ultra Small Phones (<= 360px) */
@media (max-width: 360px) {
    .pd-metric-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ════════════════════════════════════════════════════════════════════════
   ENTERPRISE SAAS 3D DEPTH, ELEVATION & SPECULAR GLOW SYSTEM
════════════════════════════════════════════════════════════════════════ */
.pd-card,
.pd-dashboard-kpi-card,
.pd-analytics-card,
.pd-recent-table-card,
.pd-modal-box {
    position: relative;
    border-radius: var(--r-md);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2), 0 8px 24px -4px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.07);
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease;
}

/* Specular Spotlight highlight layer on hover */
.pd-card::after,
.pd-dashboard-kpi-card::after,
.pd-analytics-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle 320px at var(--mouse-x, -999px) var(--mouse-y, -999px), rgba(56, 189, 248, 0.09), transparent 70%);
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
    z-index: 1;
}

.pd-card:hover::after,
.pd-dashboard-kpi-card:hover::after,
.pd-analytics-card:hover::after {
    opacity: 1;
}

/* 3D Tactile Buttons */
.pd-btn-primary {
    background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 4px 14px rgba(59, 130, 246, 0.4), 0 1px 2px rgba(0, 0, 0, 0.2) !important;
    transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease !important;
}

.pd-btn-primary:hover {
    background: linear-gradient(180deg, #60a5fa 0%, #3b82f6 100%) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 6px 20px rgba(59, 130, 246, 0.5), 0 2px 4px rgba(0, 0, 0, 0.25) !important;
    transform: translateY(-1px);
}

.pd-btn-primary:active {
    transform: translateY(1px);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.25), 0 2px 6px rgba(59, 130, 246, 0.3) !important;
}

.pd-btn-ghost {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid var(--line-15) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 2px 6px rgba(0, 0, 0, 0.15);
    transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease, border-color 0.12s ease !important;
}

.pd-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: var(--line-25) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 4px 12px rgba(0, 0, 0, 0.25);
    transform: translateY(-1px);
}

.pd-btn-ghost:active {
    transform: translateY(1px);
}

/* 3D Inputs & Select Controls */
.pd-input,
.pd-select {
    background: var(--ink-850) !important;
    border: 1px solid var(--line-15) !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3), 0 1px 0 rgba(255, 255, 255, 0.04);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pd-input:focus,
.pd-select:focus {
    border-color: var(--signal) !important;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.15), 0 0 0 3px rgba(79, 140, 255, 0.22), 0 0 16px rgba(79, 140, 255, 0.15) !important;
}

/* 3D Badges & Tags */
.pd-badge,
.pd-tag {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 1px 3px rgba(0, 0, 0, 0.18);
}

/* Light Theme 3D Overrides */
[data-theme="light"] .pd-card,
[data-theme="light"] .pd-analytics-card {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 8px 24px -4px rgba(0, 0, 0, 0.06), inset 0 1px 0 #ffffff !important;
}

[data-theme="light"] .pd-card:hover,
[data-theme="light"] .pd-analytics-card:hover {
    border-color: #cbd5e1 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06), 0 14px 32px -4px rgba(0, 0, 0, 0.1), inset 0 1px 0 #ffffff !important;
}

[data-theme="light"] .pd-card::after,
[data-theme="light"] .pd-analytics-card::after {
    background: radial-gradient(circle 320px at var(--mouse-x, -999px) var(--mouse-y, -999px), rgba(37, 99, 235, 0.06), transparent 70%) !important;
}

[data-theme="light"] .pd-input,
[data-theme="light"] .pd-select {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04), 0 1px 0 #ffffff !important;
}


/* ═══════════════════════════════════════════════════════════════════════════
   ENTERPRISE SAAS CONSOLE — PREMIUM TIER v3.0
   PHPDecode Control Center Dashboard Overhaul
   Sidebar · Topbar · KPI Strip · Analytics Cards · Table · Animations
═══════════════════════════════════════════════════════════════════════════ */

/* ── DESIGN TOKEN EXTENSIONS ─────────────────────────────────────────── */
:root {
    --ent-surface-0: #07080d;
    --ent-surface-1: #0c0e15;
    --ent-surface-2: #101219;
    --ent-surface-3: #14161f;
    --ent-border-subtle: rgba(255, 255, 255, 0.05);
    --ent-border-muted: rgba(255, 255, 255, 0.08);
    --ent-border-default: rgba(255, 255, 255, 0.12);
    --ent-sidebar-w: 260px;
}

/* ════════════════════════════════════════════════════════════════════════
   1. ENTERPRISE SIDEBAR
═══════════════════════════════════════════════════════════════════════ */
.pd-console {
    background: var(--ent-surface-0);
}

/* Enterprise sidebar styles only apply on desktop (>1024px).
   On mobile the original CSS handles: display:none at 1024px
   and position:fixed drawer at 900px — we must NOT override those. */
@media (min-width: 1025px) {
    .pd-sidebar {
        width: var(--ent-sidebar-w) !important;
        background: linear-gradient(180deg, rgba(12, 14, 21, 0.99) 0%, rgba(10, 12, 18, 1.0) 100%) !important;
        border-right: 1px solid var(--ent-border-subtle) !important;
        box-shadow: 2px 0 24px rgba(0, 0, 0, 0.40);
        position: sticky !important;
        top: 0 !important;
    }
}

/* Right-edge gradient glow line */
.pd-sidebar::after {
    content: '';
    position: absolute;
    top: 0;
    right: -1px;
    width: 1px;
    height: 100%;
    background: linear-gradient(180deg,
            transparent 0%,
            rgba(59, 130, 246, 0.25) 30%,
            rgba(139, 92, 246, 0.25) 70%,
            transparent 100%);
    pointer-events: none;
}

.pd-sidebar-header {
    height: 60px !important;
    border-bottom: 1px solid var(--ent-border-subtle) !important;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.06) 0%, transparent 100%);
    padding: 0 20px !important;
    position: relative;
}

/* Bottom shimmer line under brand */
.pd-sidebar-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20px;
    right: 20px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.35), rgba(139, 92, 246, 0.35), transparent);
}

.pd-sidebar-group-label {
    font-size: 9.5px !important;
    letter-spacing: 0.12em !important;
    color: rgba(255, 255, 255, 0.20) !important;
    padding: 0 14px 8px !important;
    text-transform: uppercase !important;
    font-weight: 700 !important;
}

.pd-sidebar-link {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 8px 14px !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: rgba(255, 255, 255, 0.40) !important;
    border-left: 2px solid transparent !important;
    margin-bottom: 2px !important;
    transition: all 0.15s cubic-bezier(0.2, 0, 0, 1) !important;
    position: relative;
    overflow: hidden;
}

.pd-sidebar-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), transparent);
    opacity: 0;
    transition: opacity 0.15s ease;
    pointer-events: none;
    border-radius: 8px;
}

.pd-sidebar-link:hover {
    color: rgba(255, 255, 255, 0.82) !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border-left-color: rgba(255, 255, 255, 0.18) !important;
}

.pd-sidebar-link:hover::before {
    opacity: 1;
}

.pd-sidebar-link.is-active {
    color: #ffffff !important;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.18) 0%, rgba(139, 92, 246, 0.10) 100%) !important;
    border-left-color: #3b82f6 !important;
    box-shadow: 0 2px 12px rgba(59, 130, 246, 0.15);
}

.pd-sidebar-link.is-active::before {
    opacity: 1;
}

.pd-sidebar-link svg {
    opacity: 0.40 !important;
    transition: all 0.15s ease !important;
    flex-shrink: 0;
}

.pd-sidebar-link:hover svg {
    opacity: 0.80 !important;
}

.pd-sidebar-link.is-active svg {
    opacity: 1 !important;
    color: #60a5fa;
    filter: drop-shadow(0 0 4px rgba(59, 130, 246, 0.50));
}

.pd-sidebar-group {
    margin-bottom: 24px !important;
}

.pd-sidebar-footer {
    border-top: 1px solid var(--ent-border-subtle) !important;
    padding: 14px !important;
    background: rgba(0, 0, 0, 0.15);
}

.pd-sidebar-user-card {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid var(--ent-border-subtle) !important;
    border-radius: 10px !important;
    padding: 10px 12px !important;
    transition: background 0.15s ease !important;
}

.pd-sidebar-user-card:hover {
    background: rgba(255, 255, 255, 0.05) !important;
}

.pd-sidebar-user-avatar {
    width: 32px !important;
    height: 32px !important;
    border-radius: 8px !important;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.25), rgba(139, 92, 246, 0.25)) !important;
    border: 1px solid rgba(59, 130, 246, 0.30) !important;
    color: #60a5fa !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.20);
}

.pd-sidebar-user-name {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: rgba(255, 255, 255, 0.90) !important;
}

.pd-sidebar-user-status {
    font-size: 10.5px !important;
    color: rgba(255, 255, 255, 0.30) !important;
}

/* Sidebar nav scrollbar */
.pd-sidebar-nav::-webkit-scrollbar {
    width: 3px;
}

.pd-sidebar-nav::-webkit-scrollbar-track {
    background: transparent;
}

.pd-sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 3px;
}

.pd-sidebar-nav::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.15);
}


/* ════════════════════════════════════════════════════════════════════════
   2. ENTERPRISE TOPBAR
═══════════════════════════════════════════════════════════════════════ */
.pd-topbar {
    height: 52px !important;
    background: rgba(7, 8, 13, 0.96) !important;
    backdrop-filter: blur(20px) saturate(1.8) !important;
    -webkit-backdrop-filter: blur(20px) saturate(1.8) !important;
    border-bottom: 1px solid var(--ent-border-subtle) !important;
    padding: 0 28px !important;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04), 0 4px 16px rgba(0, 0, 0, 0.35);
}

.pd-breadcrumb {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    font-family: var(--font-mono) !important;
    font-size: 11.5px !important;
    color: rgba(255, 255, 255, 0.28) !important;
}

.pd-breadcrumb span:last-child {
    color: rgba(255, 255, 255, 0.80) !important;
    font-weight: 600 !important;
}

.pd-breadcrumb-sep {
    color: rgba(255, 255, 255, 0.18) !important;
}

.pd-telemetry {
    background: rgba(59, 130, 246, 0.08) !important;
    border: 1px solid rgba(59, 130, 246, 0.18) !important;
    border-radius: 6px !important;
    padding: 4px 10px !important;
    font-size: 10.5px !important;
    color: rgba(255, 255, 255, 0.45) !important;
    font-family: var(--font-mono) !important;
}


/* ════════════════════════════════════════════════════════════════════════
   3. MAIN CONTENT AREA + MESH GRID BACKGROUND
═══════════════════════════════════════════════════════════════════════ */
.pd-main {
    background: var(--ent-surface-0) !important;
    position: relative;
    /* NOTE: do NOT set overflow:hidden here — it breaks position:sticky on .pd-topbar child */
}

/* Subtle dotted mesh grid — absolute so it scrolls with content, no blank gaps */
.pd-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    /* Extend well past viewport so it covers long pages */
    min-height: 100%;
    height: max(100%, 100vh);
    background-image:
        linear-gradient(rgba(59, 130, 246, 0.022) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.022) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
    z-index: 0;
}

.pd-content {
    padding: 28px 32px !important;
    position: relative;
    z-index: 1;
}


/* ════════════════════════════════════════════════════════════════════════
   4. PREMIUM PRIMARY BUTTON (TOPBAR NEW JOB + UPLOAD CTAs)
═══════════════════════════════════════════════════════════════════════ */
.pd-topbar-new-btn,
a.pd-btn.pd-btn-primary,
button.pd-btn.pd-btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%) !important;
    border: none !important;
    box-shadow: 0 0 18px rgba(99, 102, 241, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
    color: #fff !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    transition: all 0.18s ease !important;
}

.pd-topbar-new-btn:hover,
a.pd-btn.pd-btn-primary:hover,
button.pd-btn.pd-btn-primary:hover {
    background: linear-gradient(135deg, #60a5fa 0%, #818cf8 100%) !important;
    box-shadow: 0 0 28px rgba(99, 102, 241, 0.50), inset 0 1px 0 rgba(255, 255, 255, 0.20) !important;
    transform: translateY(-1px) !important;
}

a.pd-btn.pd-btn-ghost,
button.pd-btn.pd-btn-ghost {
    background: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.10) !important;
    color: rgba(255, 255, 255, 0.55) !important;
    border-radius: 8px !important;
    transition: all 0.15s ease !important;
}

a.pd-btn.pd-btn-ghost:hover,
button.pd-btn.pd-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(255, 255, 255, 0.18) !important;
    color: rgba(255, 255, 255, 0.85) !important;
    transform: translateY(-1px) !important;
}


/* ════════════════════════════════════════════════════════════════════════
   5. KPI STRIP — METRIC CARDS
═══════════════════════════════════════════════════════════════════════ */
.pd-dashboard-kpi-wrap {
    background: transparent !important;
    border: none !important;
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
    gap: 16px !important;
    border-radius: 0 !important;
    overflow: visible !important;
}

.pd-dashboard-kpi-card {
    background: linear-gradient(135deg,
            rgba(20, 22, 32, 0.96) 0%,
            rgba(16, 18, 28, 0.98) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-radius: 14px !important;
    padding: 20px 22px !important;
    position: relative;
    overflow: hidden;
    transition: all 0.20s cubic-bezier(0.2, 0, 0, 1);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        inset 0 -1px 0 rgba(0, 0, 0, 0.30),
        0 4px 20px rgba(0, 0, 0, 0.35),
        0 1px 3px rgba(0, 0, 0, 0.20);
}

/* Top shimmer line */
.pd-dashboard-kpi-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(59, 130, 246, 0.45) 40%,
            rgba(139, 92, 246, 0.45) 60%,
            transparent 100%);
}

/* Ambient corner glow */
.pd-dashboard-kpi-card::after {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.10) 0%, transparent 70%);
    pointer-events: none;
}

.pd-dashboard-kpi-card:hover {
    border-color: rgba(59, 130, 246, 0.18) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        inset 0 -1px 0 rgba(0, 0, 0, 0.30),
        0 8px 32px rgba(0, 0, 0, 0.45),
        0 2px 8px rgba(59, 130, 246, 0.10) !important;
    transform: translateY(-2px);
}

.pd-dashboard-kpi-card .t-label {
    font-size: 10px !important;
    letter-spacing: 0.10em !important;
    color: rgba(255, 255, 255, 0.30) !important;
    font-family: var(--font-mono) !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
}

.pd-dashboard-kpi-card .t-title {
    color: #ffffff !important;
    font-size: 22px !important;
    font-weight: 700 !important;
    letter-spacing: -0.02em !important;
    line-height: 1.2 !important;
}

.pd-dashboard-kpi-card .pd-kpi-sub {
    font-size: 11.5px !important;
    color: rgba(255, 255, 255, 0.35) !important;
}

.pd-kpi-bar-bg {
    height: 3px !important;
    background: rgba(255, 255, 255, 0.06) !important;
    border-radius: 99px !important;
    overflow: hidden !important;
}


/* ════════════════════════════════════════════════════════════════════════
   6. ANALYTICS CHART CARDS
═══════════════════════════════════════════════════════════════════════ */
.pd-analytics-card {
    background: linear-gradient(135deg,
            rgba(16, 18, 28, 0.97) 0%,
            rgba(12, 14, 22, 0.99) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-radius: 14px !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 4px 24px rgba(0, 0, 0, 0.40),
        0 1px 4px rgba(0, 0, 0, 0.25) !important;
    transition: all 0.20s ease !important;
    position: relative;
    overflow: hidden;
}

.pd-analytics-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
            transparent 0%, rgba(59, 130, 246, 0.35) 50%, transparent 100%);
    pointer-events: none;
}

.pd-analytics-card:hover {
    border-color: rgba(59, 130, 246, 0.14) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 8px 40px rgba(0, 0, 0, 0.50),
        0 2px 12px rgba(59, 130, 246, 0.08) !important;
    transform: translateY(-2px);
}

.pd-analytics-card .t-title {
    color: rgba(255, 255, 255, 0.90) !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    letter-spacing: -0.01em !important;
}

.pd-analytics-card .t-label {
    font-size: 10px !important;
    letter-spacing: 0.10em !important;
    color: rgba(255, 255, 255, 0.28) !important;
    font-family: var(--font-mono) !important;
    font-weight: 700 !important;
}

.pd-analytics-footer {
    border-top-color: rgba(255, 255, 255, 0.06) !important;
    color: rgba(255, 255, 255, 0.30) !important;
    font-size: 11px !important;
}

.pd-donut-center-num {
    color: rgba(255, 255, 255, 0.90) !important;
    font-size: 18px !important;
    font-weight: 700 !important;
}

.pd-donut-center-label {
    color: rgba(255, 255, 255, 0.30) !important;
    font-size: 9px !important;
    letter-spacing: 0.08em !important;
}

.pd-bar-track {
    background: rgba(255, 255, 255, 0.05) !important;
    border: none !important;
    border-radius: 3px !important;
    height: 5px !important;
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.30);
}

.pd-bar-label {
    color: rgba(255, 255, 255, 0.80) !important;
    font-weight: 600 !important;
    font-size: 12px !important;
}

.pd-engine-legend-item {
    color: rgba(255, 255, 255, 0.65) !important;
    font-size: 11.5px !important;
}


/* ════════════════════════════════════════════════════════════════════════
   7. RECENT DECOMPILATIONS TABLE CARD
═══════════════════════════════════════════════════════════════════════ */
.pd-recent-table-card {
    background: linear-gradient(180deg,
            rgba(16, 18, 28, 0.97) 0%,
            rgba(12, 14, 22, 0.99) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    border-radius: 14px !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 4px 28px rgba(0, 0, 0, 0.42) !important;
    overflow: hidden !important;
    position: relative;
}

.pd-recent-table-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(34, 197, 94, 0.30) 40%,
            rgba(56, 189, 248, 0.30) 60%,
            transparent 100%);
}

.pd-recent-table-header {
    background: rgba(0, 0, 0, 0.20) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
    padding: 16px 24px !important;
}

.pd-recent-table-header .t-title {
    color: rgba(255, 255, 255, 0.90) !important;
    font-size: 14px !important;
    font-weight: 700 !important;
}

.pd-recent-table-header .t-sub {
    color: rgba(255, 255, 255, 0.30) !important;
    font-size: 11px !important;
}

.pd-ent-table {
    width: 100% !important;
    min-width: 100% !important;
    border-collapse: collapse !important;
    table-layout: auto !important;
}

.pd-ent-table th {
    background: rgba(0, 0, 0, 0.25) !important;
    color: rgba(255, 255, 255, 0.22) !important;
    font-size: 9.5px !important;
    letter-spacing: 0.12em !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
    padding: 12px 18px !important;
}

.pd-ent-table td {
    border-bottom: 1px solid rgba(255, 255, 255, 0.04) !important;
    padding: 14px 18px !important;
    vertical-align: middle;
}

.pd-ent-table tbody tr:last-child td {
    border-bottom: none !important;
}

.pd-ent-table tbody tr {
    transition: background 0.12s ease;
}

.pd-ent-table tbody tr:hover td {
    background: rgba(59, 130, 246, 0.04) !important;
}

.pd-task-filename {
    color: rgba(255, 255, 255, 0.88) !important;
    font-family: var(--font-mono) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
}

.pd-task-meta {
    color: rgba(255, 255, 255, 0.28) !important;
    font-size: 10.5px !important;
    font-family: var(--font-mono) !important;
}

.pd-runtime-tag {
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: rgba(255, 255, 255, 0.65) !important;
    font-family: var(--font-mono) !important;
    font-size: 11px !important;
    border-radius: 5px !important;
    padding: 3px 8px !important;
}

.pd-task-scope {
    color: rgba(255, 255, 255, 0.78) !important;
    font-weight: 500 !important;
    font-size: 12.5px !important;
}

.pd-task-speed {
    color: rgba(255, 255, 255, 0.28) !important;
    font-size: 10.5px !important;
    font-family: var(--font-mono) !important;
}

.pd-task-speed span {
    color: #38bdf8 !important;
    font-weight: 600 !important;
}

.pd-task-action-btn {
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: rgba(255, 255, 255, 0.55) !important;
    border-radius: 7px !important;
    font-size: 11.5px !important;
    padding: 4px 12px !important;
    transition: all 0.15s ease !important;
}

.pd-task-action-btn:hover {
    background: rgba(59, 130, 246, 0.10) !important;
    border-color: rgba(59, 130, 246, 0.25) !important;
    color: rgba(255, 255, 255, 0.90) !important;
    box-shadow: 0 0 14px rgba(59, 130, 246, 0.15) !important;
}


/* ════════════════════════════════════════════════════════════════════════
   8. ENTERPRISE BADGE UPGRADES
═══════════════════════════════════════════════════════════════════════ */
.pd-badge {
    border-radius: 5px !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    letter-spacing: 0.06em !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10) !important;
}

.pd-badge-ok {
    background: rgba(34, 197, 94, 0.12) !important;
    color: #4ade80 !important;
    border: 1px solid rgba(34, 197, 94, 0.20) !important;
}

.pd-badge-info {
    background: rgba(56, 189, 248, 0.12) !important;
    color: #38bdf8 !important;
    border: 1px solid rgba(56, 189, 248, 0.20) !important;
}

.pd-badge-warn {
    background: rgba(245, 158, 11, 0.12) !important;
    color: #fbbf24 !important;
    border: 1px solid rgba(245, 158, 11, 0.20) !important;
}

.pd-badge-err {
    background: rgba(239, 68, 68, 0.12) !important;
    color: #f87171 !important;
    border: 1px solid rgba(239, 68, 68, 0.20) !important;
}


/* ════════════════════════════════════════════════════════════════════════
   9. PAGE HEADER TYPOGRAPHY
═══════════════════════════════════════════════════════════════════════ */
.t-subheading {
    color: rgba(255, 255, 255, 0.95) !important;
    font-size: 22px !important;
    font-weight: 700 !important;
    letter-spacing: -0.03em !important;
}


/* ════════════════════════════════════════════════════════════════════════
   10. ACCESS PASS SHOWCASE (ALWAYS DARK LUXURY)
═══════════════════════════════════════════════════════════════════════ */
.pd-pass-showcase {
    border-radius: 14px !important;
    background: linear-gradient(135deg, #060a13 0%, #0a1020 50%, #0d1528 100%) !important;
    border: 1px solid rgba(59, 130, 246, 0.25) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        0 16px 48px rgba(0, 0, 0, 0.55),
        0 0 80px rgba(59, 130, 246, 0.06) !important;
    position: relative;
    overflow: hidden;
}

.pd-pass-showcase::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
            transparent, rgba(59, 130, 246, 0.50), rgba(139, 92, 246, 0.50), transparent);
}

.pd-pass-showcase::after {
    content: '';
    position: absolute;
    top: -40%;
    right: -10%;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, transparent 65%);
    pointer-events: none;
}


/* ════════════════════════════════════════════════════════════════════════
   11. MICRO-ANIMATIONS
═══════════════════════════════════════════════════════════════════════ */
@keyframes ent-slide-up {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes ent-glow-pulse {

    0%,
    100% {
        box-shadow: 0 0 6px rgba(59, 130, 246, 0.30);
    }

    50% {
        box-shadow: 0 0 18px rgba(59, 130, 246, 0.55), 0 0 32px rgba(59, 130, 246, 0.25);
    }
}

.pd-pulse {
    width: 7px !important;
    height: 7px !important;
    border-radius: 50% !important;
    background: #22c55e !important;
    animation: ent-glow-pulse 2.2s ease-in-out infinite !important;
}

.pd-dashboard-kpi-card {
    animation: ent-slide-up 0.35s ease both;
}

.pd-dashboard-kpi-card:nth-child(1) {
    animation-delay: 0.05s;
}

.pd-dashboard-kpi-card:nth-child(2) {
    animation-delay: 0.10s;
}

.pd-dashboard-kpi-card:nth-child(3) {
    animation-delay: 0.15s;
}

.pd-dashboard-kpi-card:nth-child(4) {
    animation-delay: 0.20s;
}

.pd-analytics-card {
    animation: ent-slide-up 0.40s ease both;
    animation-delay: 0.25s;
}

.pd-recent-table-card {
    animation: ent-slide-up 0.45s ease both;
    animation-delay: 0.30s;
}


/* ════════════════════════════════════════════════════════════════════════
   12. RESPONSIVE
═══════════════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
    .pd-content {
        padding: 20px 18px !important;
    }

    .pd-topbar {
        padding: 0 18px !important;
    }
}

@media (max-width: 640px) {
    .pd-dashboard-kpi-wrap {
        grid-template-columns: 1fr 1fr !important;
        gap: 12px !important;
    }

    .pd-dashboard-kpi-card .t-title {
        font-size: 18px !important;
    }
}


/* ════════════════════════════════════════════════════════════════════════
   13. LIGHT THEME — ENTERPRISE OVERRIDES
═══════════════════════════════════════════════════════════════════════ */
[data-theme="light"] .pd-console {
    background: #f0f2f7 !important;
}

[data-theme="light"] .pd-sidebar {
    background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%) !important;
    border-right: 1px solid #e4e7ef !important;
    box-shadow: 2px 0 12px rgba(0, 0, 0, 0.06) !important;
}

[data-theme="light"] .pd-sidebar::after {
    background: linear-gradient(180deg,
            transparent, rgba(37, 99, 235, 0.15), rgba(99, 102, 241, 0.15), transparent) !important;
}

[data-theme="light"] .pd-sidebar-header {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.04), transparent) !important;
    border-bottom-color: #e4e7ef !important;
}

[data-theme="light"] .pd-sidebar-header::after {
    background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.20), rgba(99, 102, 241, 0.20), transparent) !important;
}

[data-theme="light"] .pd-sidebar-group-label {
    color: #94a3b8 !important;
}

[data-theme="light"] .pd-sidebar-link {
    color: #64748b !important;
}

[data-theme="light"] .pd-sidebar-link:hover {
    color: #0f172a !important;
    background: rgba(37, 99, 235, 0.05) !important;
    border-left-color: #cbd5e1 !important;
}

[data-theme="light"] .pd-sidebar-link.is-active {
    color: #1d4ed8 !important;
    background: rgba(37, 99, 235, 0.08) !important;
    border-left-color: #2563eb !important;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.10) !important;
}

[data-theme="light"] .pd-sidebar-link.is-active svg {
    color: #2563eb !important;
    filter: drop-shadow(0 0 3px rgba(37, 99, 235, 0.35)) !important;
}

[data-theme="light"] .pd-sidebar-footer {
    border-top-color: #e4e7ef !important;
    background: #fafbfc !important;
}

[data-theme="light"] .pd-sidebar-user-card {
    background: rgba(0, 0, 0, 0.02) !important;
    border-color: #e4e7ef !important;
}

[data-theme="light"] .pd-sidebar-user-avatar {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.15), rgba(99, 102, 241, 0.15)) !important;
    border-color: rgba(37, 99, 235, 0.20) !important;
    color: #2563eb !important;
    box-shadow: 0 0 8px rgba(37, 99, 235, 0.10) !important;
}

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

[data-theme="light"] .pd-sidebar-user-status {
    color: #94a3b8 !important;
}

[data-theme="light"] .pd-topbar {
    background: rgba(255, 255, 255, 0.97) !important;
    border-bottom-color: #e4e7ef !important;
    box-shadow: 0 1px 0 #e4e7ef, 0 2px 8px rgba(0, 0, 0, 0.04) !important;
}

[data-theme="light"] .pd-breadcrumb {
    color: #94a3b8 !important;
}

[data-theme="light"] .pd-breadcrumb span:last-child {
    color: #0f172a !important;
}

[data-theme="light"] .pd-main {
    background: #f0f2f7 !important;
}

[data-theme="light"] .pd-main::before {
    background-image:
        linear-gradient(rgba(37, 99, 235, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37, 99, 235, 0.055) 1px, transparent 1px) !important;
}

[data-theme="light"] .pd-grid-lines {
    background-image:
        linear-gradient(rgba(37, 99, 235, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37, 99, 235, 0.08) 1px, transparent 1px) !important;
}


[data-theme="light"] .pd-analytics-card {
    background: #ffffff !important;
    border-color: #e4e7ef !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.04) !important;
}

[data-theme="light"] .pd-analytics-card::before {
    background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.20), transparent) !important;
}

[data-theme="light"] .pd-analytics-card .t-title {
    color: #0f172a !important;
}

[data-theme="light"] .pd-analytics-card .t-label {
    color: #94a3b8 !important;
}

[data-theme="light"] .pd-analytics-footer {
    border-top-color: #f1f5f9 !important;
    color: #94a3b8 !important;
}

[data-theme="light"] .pd-donut-center-num {
    color: #0f172a !important;
}

[data-theme="light"] .pd-donut-center-label {
    color: #94a3b8 !important;
}

[data-theme="light"] .pd-bar-track {
    background: #f1f5f9 !important;
    box-shadow: none !important;
}

[data-theme="light"] .pd-bar-label {
    color: #1e293b !important;
}

[data-theme="light"] .pd-engine-legend-item {
    color: #475569 !important;
}

[data-theme="light"] .pd-recent-table-card {
    background: #ffffff !important;
    border-color: #e4e7ef !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05) !important;
}

[data-theme="light"] .pd-recent-table-card::before {
    background: linear-gradient(90deg, transparent, rgba(34, 197, 94, 0.18), rgba(56, 189, 248, 0.18), transparent) !important;
}

[data-theme="light"] .pd-recent-table-header {
    background: #f8fafc !important;
    border-bottom-color: #e4e7ef !important;
}

[data-theme="light"] .pd-recent-table-header .t-title {
    color: #0f172a !important;
}

[data-theme="light"] .pd-recent-table-header .t-sub {
    color: #94a3b8 !important;
}

[data-theme="light"] .pd-ent-table th {
    background: #f8fafc !important;
    color: #94a3b8 !important;
    border-bottom-color: #e4e7ef !important;
}

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

[data-theme="light"] .pd-ent-table tbody tr:hover td {
    background: rgba(37, 99, 235, 0.02) !important;
}

[data-theme="light"] .pd-task-filename {
    color: #0f172a !important;
}

[data-theme="light"] .pd-task-meta {
    color: #94a3b8 !important;
}

[data-theme="light"] .pd-runtime-tag {
    background: #f8fafc !important;
    border-color: #e4e7ef !important;
    color: #475569 !important;
}

[data-theme="light"] .pd-task-scope {
    color: #1e293b !important;
}

[data-theme="light"] .pd-task-speed {
    color: #94a3b8 !important;
}

[data-theme="light"] .pd-task-speed span {
    color: #0284c7 !important;
}

[data-theme="light"] .pd-task-action-btn {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
    color: #475569 !important;
}

[data-theme="light"] .pd-task-action-btn:hover {
    background: #f0f7ff !important;
    border-color: #93c5fd !important;
    color: #1d4ed8 !important;
    box-shadow: 0 0 12px rgba(37, 99, 235, 0.10) !important;
}

[data-theme="light"] a.pd-btn.pd-btn-primary,
[data-theme="light"] button.pd-btn.pd-btn-primary {
    background: linear-gradient(135deg, #2563eb 0%, #4f46e5 100%) !important;
    box-shadow: 0 0 14px rgba(79, 70, 229, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.20) !important;
}

[data-theme="light"] a.pd-btn.pd-btn-primary:hover,
[data-theme="light"] button.pd-btn.pd-btn-primary:hover {
    background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%) !important;
    box-shadow: 0 0 22px rgba(79, 70, 229, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
}

[data-theme="light"] a.pd-btn.pd-btn-ghost,
[data-theme="light"] button.pd-btn.pd-btn-ghost {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
    color: #475569 !important;
}

[data-theme="light"] a.pd-btn.pd-btn-ghost:hover,
[data-theme="light"] button.pd-btn.pd-btn-ghost:hover {
    background: #f8fafc !important;
    border-color: #94a3b8 !important;
    color: #0f172a !important;
}

[data-theme="light"] .pd-telemetry {
    background: rgba(37, 99, 235, 0.05) !important;
    border-color: rgba(37, 99, 235, 0.15) !important;
    color: #64748b !important;
}

[data-theme="light"] .t-subheading {
    color: #0f172a !important;
}

/* ═══════════════════════════════════════════════════════════════════════
   END ENTERPRISE SAAS CONSOLE v3.0 — PHPDecode
═══════════════════════════════════════════════════════════════════════ */


/* ═══════════════════════════════════════════════════════════════════════
   PATCH v3.1 — Border Alignment · Breadcrumb · KPI Card Backgrounds
═══════════════════════════════════════════════════════════════════════ */

/* ── FIX 1: Topbar bottom-border matches sidebar right-border exactly ── */
/* Dark mode: both use the same explicit rgba so compositing matches      */
.pd-topbar {
    border-bottom: 1px solid rgba(255, 255, 255, 0.07) !important;
}

.pd-sidebar {
    border-right: 1px solid rgba(255, 255, 255, 0.07) !important;
}

/* Light mode: explicit #e4e7ef on both sides */
[data-theme="light"] .pd-topbar {
    border-bottom: 1px solid #e4e7ef !important;
}

[data-theme="light"] .pd-sidebar {
    border-right: 1px solid #e4e7ef !important;
}


/* ── FIX 2: Breadcrumb separator visible in light mode ─────────────── */
/* Dark — subtle white slash */
.pd-breadcrumb-sep {
    color: rgba(255, 255, 255, 0.22) !important;
}

/* Light — slate gray slash clearly visible */
[data-theme="light"] .pd-breadcrumb-sep {
    color: #94a3b8 !important;
}

/* Also ensure breadcrumb base text is readable in light */
[data-theme="light"] .pd-breadcrumb {
    color: #64748b !important;
}


/* ── FIX 3: KPI Cards — light mode background override (beats inline style) */
/* The cards have inline style="background:var(--ink-850)" which is dark.    */
/* We need !important with high specificity to beat the inline attribute.     */
[data-theme="light"] .pd-dashboard-kpi-wrap .pd-dashboard-kpi-card,
[data-theme="light"] .pd-dashboard-kpi-card {
    background: #ffffff !important;
    border: 1px solid #e4e7ef !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 1.0),
        0 2px 10px rgba(0, 0, 0, 0.04),
        0 1px 3px rgba(0, 0, 0, 0.05) !important;
}

[data-theme="light"] .pd-dashboard-kpi-wrap .pd-dashboard-kpi-card:hover,
[data-theme="light"] .pd-dashboard-kpi-card:hover {
    background: #fafbff !important;
    border-color: #c7d2e8 !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 1.0),
        0 6px 20px rgba(0, 0, 0, 0.07),
        0 2px 6px rgba(37, 99, 235, 0.06) !important;
}

/* KPI text colors in light mode — override inline var(--text-white/dim) */
[data-theme="light"] .pd-dashboard-kpi-card .t-title {
    color: #0f172a !important;
}

[data-theme="light"] .pd-dashboard-kpi-card .t-label {
    color: #94a3b8 !important;
}

[data-theme="light"] .pd-dashboard-kpi-card .pd-kpi-sub {
    color: #64748b !important;
}

/* The inline style="color:var(--text-white)" on t-title — override */
[data-theme="light"] .pd-dashboard-kpi-card [style*="color:var(--text-white)"],
[data-theme="light"] .pd-dashboard-kpi-card [style*="color: var(--text-white)"] {
    color: #0f172a !important;
}

[data-theme="light"] .pd-dashboard-kpi-card [style*="color:var(--text-dim)"],
[data-theme="light"] .pd-dashboard-kpi-card [style*="color: var(--text-dim)"] {
    color: #64748b !important;
}

[data-theme="light"] .pd-dashboard-kpi-card [style*="color:var(--text-faint)"],
[data-theme="light"] .pd-dashboard-kpi-card [style*="color: var(--text-faint)"] {
    color: #94a3b8 !important;
}

/* KPI bar track light */
[data-theme="light"] .pd-dashboard-kpi-card .pd-kpi-bar-bg,
[data-theme="light"] .pd-dashboard-kpi-card [style*="background:var(--line-10)"] {
    background: #e2e8f0 !important;
}

/* ═══════════════════════════════════════════════════════════════════════
   END PATCH v3.1
═══════════════════════════════════════════════════════════════════════ */


/* ═══════════════════════════════════════════════════════════════════════
   PATCH v3.2 — KPI Cards · Topbar Height · Border Alignment
═══════════════════════════════════════════════════════════════════════ */

/* ── KPI Wrap: dark mode — fused grid with thin separator gaps ───────── */
.pd-dashboard-kpi-wrap {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)) !important;
    gap: 1px !important;
    background: rgba(255, 255, 255, 0.07) !important;
    /* gap color = separator line */
    border: 1px solid rgba(255, 255, 255, 0.07) !important;
    border-radius: 14px !important;
    overflow: hidden !important;
}

/* KPI cards — dark: use deep surface, no individual borders */
.pd-dashboard-kpi-card {
    background: #13151f !important;
    padding: 20px 22px !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.pd-dashboard-kpi-card:hover {
    background: #161824 !important;
    transform: none !important;
    /* no lift inside fused grid */
    box-shadow: none !important;
    border: none !important;
}

/* ── KPI Wrap: light mode ─────────────────────────────────────────── */
[data-theme="light"] .pd-dashboard-kpi-wrap {
    background: #dde2ec !important;
    /* gap/separator line color */
    border: 1px solid #dde2ec !important;
    border-radius: 14px !important;
}

[data-theme="light"] .pd-dashboard-kpi-card {
    background: #ffffff !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

[data-theme="light"] .pd-dashboard-kpi-card:hover {
    background: #f8faff !important;
    transform: none !important;
    box-shadow: none !important;
    border: none !important;
}

/* Light mode KPI text — override the inline color:var() tokens */
[data-theme="light"] .pd-dashboard-kpi-card .t-label {
    color: #64748b !important;
}

[data-theme="light"] .pd-dashboard-kpi-card .t-title {
    color: #0f172a !important;
}

[data-theme="light"] .pd-dashboard-kpi-card .pd-kpi-sub {
    color: #64748b !important;
}

/* These selectors catch children with inline color:var(--text-white/dim/faint) */
[data-theme="light"] .pd-dashboard-kpi-card .t-title[style],
[data-theme="light"] .pd-dashboard-kpi-card [class="t-title"][style] {
    color: #0f172a !important;
}

[data-theme="light"] .pd-dashboard-kpi-card .pd-kpi-sub[style] {
    color: #64748b !important;
}

/* KPI bar track light */
[data-theme="light"] .pd-dashboard-kpi-card .pd-kpi-bar-bg {
    background: #e2e8f0 !important;
}


/* ── Topbar height = sidebar header height so borders meet cleanly ─── */
/* Sidebar header is 60px; topbar was 52px — raising to 60px makes the   */
/* horizontal border of the topbar connect flush with the sidebar's       */
/* right-border at exactly the same Y coordinate.                         */
.pd-topbar {
    height: 60px !important;
}

/* ── Unified border color: dark mode ─────────────────────────────── */
/* Use the exact same value on both elements so no tone mismatch      */
.pd-topbar {
    border-bottom: 1px solid rgba(255, 255, 255, 0.07) !important;
}

.pd-sidebar {
    border-right: 1px solid rgba(255, 255, 255, 0.07) !important;
}

/* ── Unified border color: light mode ────────────────────────────── */
[data-theme="light"] .pd-topbar {
    border-bottom: 1px solid #dde2ec !important;
    background: rgba(255, 255, 255, 0.98) !important;
}

[data-theme="light"] .pd-sidebar {
    border-right: 1px solid #dde2ec !important;
}

/* ═══════════════════════════════════════════════════════════════════════
   END PATCH v3.2
═══════════════════════════════════════════════════════════════════════ */


/* ═══════════════════════════════════════════════════════════════════════
   PATCH v3.3 — MOBILE LAYOUT RESTORE
   Undoes all enterprise desktop-only overrides at ≤1024px so the
   original mobile drawer system works correctly.
═══════════════════════════════════════════════════════════════════════ */

/* ── ≤1024px: sidebar must be hidden (original behavior) ─────────── */
@media (max-width: 1024px) {

    /* Undo enterprise sticky — use original display:none */
    .pd-sidebar {
        display: none !important;
        position: fixed !important;
        /* ready for drawer when JS adds class */
        width: 280px !important;
        max-width: 85vw !important;
        transform: translate3d(-100%, 0, 0) !important;
    }

    /* When JS opens the drawer */
    .pd-sidebar-mobile-open .pd-sidebar {
        display: flex !important;
        transform: translate3d(0, 0, 0) !important;
    }

    /* Main area takes full width */
    .pd-main {
        width: 100% !important;
        min-width: 0 !important;
    }

    /* Remove the mesh grid on mobile (causes overflow) */
    .pd-main::before {
        display: none !important;
    }

    /* Topbar: reset height and padding for mobile */
    .pd-topbar {
        height: 52px !important;
        padding: 0 16px !important;
    }

    /* KPI grid: 2 columns on tablet */
    .pd-dashboard-kpi-wrap {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* Topbar hamburger button: visible on mobile */
    .pd-topbar-hamburger {
        display: flex !important;
    }

    /* Enterprise border overrides: use subtle mobile borders */
    .pd-topbar {
        border-bottom: 1px solid rgba(255, 255, 255, 0.07) !important;
    }

    [data-theme="light"] .pd-topbar {
        border-bottom: 1px solid #e4e7ef !important;
    }
}

/* ── ≤640px: keep 4 cards as 2×2 grid on phones ─────────────────── */
@media (max-width: 640px) {

    .pd-dashboard-kpi-wrap {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1px !important;
    }

    .pd-content {
        padding: 16px 14px !important;
    }

    .pd-topbar {
        height: 48px !important;
        padding: 0 14px !important;
    }
}

/* ── ≤900px: drawer mode — restore fixed positioned sidebar ───────── */
@media (max-width: 900px) {

    .pd-sidebar {
        position: fixed !important;
        left: 0 !important;
        top: 0 !important;
        bottom: 0 !important;
        height: 100vh !important;
        height: 100dvh !important;
        z-index: 9999 !important;
        width: 280px !important;
        max-width: 85vw !important;
        transform: translate3d(-100%, 0, 0) !important;
        transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease !important;
        display: flex !important;
        flex-direction: column !important;
        overflow: hidden !important;
    }

    .pd-sidebar-mobile-open .pd-sidebar {
        transform: translate3d(0, 0, 0) !important;
        box-shadow: 16px 0 50px rgba(0, 0, 0, 0.85) !important;
        z-index: 9999 !important;
    }

    .pd-sidebar-overlay {
        z-index: 9998 !important;
    }

    .pd-sidebar-mobile-open .pd-sidebar-overlay {
        z-index: 9998 !important;
    }
}

/* ═══════════════════════════════════════════════════════════════════════
   END PATCH v3.3
═══════════════════════════════════════════════════════════════════════ */


/* ═══════════════════════════════════════════════════════════════════════
   PATCH v3.4 — ENTERPRISE SAAS GLASSMORPHISM & ALWAYS-STICKY HEADER ENGINE
   High-end frosted glassmorphism across all cards, navigation, badges,
   tables, and panels with 100% reliable sticky headers in dark & light.
═══════════════════════════════════════════════════════════════════════ */

/* ── 1. GUARANTEED ALWAYS-STICKY HEADERS ──────────────────────────── */
/* Ensure scroll containers never trap position:sticky */
html,
body {
    overflow-x: clip !important;
}

.pd-console {
    overflow: visible !important;
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
}

.pd-main {
    overflow: visible !important;
    position: relative;
}

/* Public Main Header — Always Sticky Glassmorphic */
.pd-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 100 !important;
    backdrop-filter: blur(20px) saturate(190%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(190%) !important;
    background: rgba(9, 11, 18, 0.78) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 4px 24px 0 rgba(0, 0, 0, 0.4), inset 0 -1px 0 0 rgba(255, 255, 255, 0.04) !important;
}

[data-theme="light"] .pd-header {
    background: rgba(255, 255, 255, 0.82) !important;
    border-bottom: 1px solid rgba(226, 232, 240, 0.85) !important;
    box-shadow: 0 4px 20px 0 rgba(15, 23, 42, 0.04), inset 0 -1px 0 0 rgba(255, 255, 255, 0.9) !important;
}

/* Console / Dashboard Topbar — Always Sticky Glassmorphic */
.pd-topbar {
    position: sticky !important;
    top: 0 !important;
    z-index: 100 !important;
    height: 60px !important;
    backdrop-filter: blur(20px) saturate(190%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(190%) !important;
    background: rgba(8, 10, 17, 0.78) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 4px 24px 0 rgba(0, 0, 0, 0.4), inset 0 -1px 0 0 rgba(255, 255, 255, 0.04) !important;
}

[data-theme="light"] .pd-topbar {
    background: rgba(255, 255, 255, 0.84) !important;
    border-bottom: 1px solid rgba(226, 232, 240, 0.85) !important;
    box-shadow: 0 4px 20px 0 rgba(15, 23, 42, 0.04), inset 0 -1px 0 0 rgba(255, 255, 255, 0.9) !important;
}

/* When mobile sidebar drawer is open, keep topbar below overlay */
.pd-sidebar-mobile-open .pd-topbar {
    z-index: 90 !important;
}


/* ── 2. ENTERPRISE GLASSMORPHIC SIDEBAR ────────────────────────────── */
@media (min-width: 1025px) {
    .pd-sidebar {
        background: linear-gradient(180deg, rgba(12, 14, 22, 0.86) 0%, rgba(8, 10, 16, 0.94) 100%) !important;
        backdrop-filter: blur(24px) saturate(200%) !important;
        -webkit-backdrop-filter: blur(24px) saturate(200%) !important;
        border-right: 1px solid rgba(255, 255, 255, 0.07) !important;
        box-shadow: 4px 0 28px rgba(0, 0, 0, 0.48) !important;
        position: sticky !important;
        top: 0 !important;
    }

    [data-theme="light"] .pd-sidebar {
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.86) 0%, rgba(248, 250, 252, 0.94) 100%) !important;
        backdrop-filter: blur(24px) saturate(200%) !important;
        -webkit-backdrop-filter: blur(24px) saturate(200%) !important;
        border-right: 1px solid rgba(226, 232, 240, 0.85) !important;
        box-shadow: 4px 0 24px rgba(15, 23, 42, 0.03) !important;
    }
}

/* Sidebar User Card Glass */
.pd-sidebar-user-card,
.pd-user-card {
    background: rgba(255, 255, 255, 0.04) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.07) !important;
    box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.06), 0 2px 8px rgba(0, 0, 0, 0.2) !important;
    border-radius: 10px !important;
}

[data-theme="light"] .pd-sidebar-user-card,
[data-theme="light"] .pd-user-card {
    background: rgba(255, 255, 255, 0.8) !important;
    border: 1px solid rgba(226, 232, 240, 0.9) !important;
    box-shadow: inset 0 1px 0 0 #ffffff, 0 2px 8px rgba(15, 23, 42, 0.03) !important;
}


/* ── 3. GLASSMORPHIC KPI TELEMETRY STRIP & TILES ───────────────────── */
.pd-dashboard-kpi-wrap {
    background: rgba(255, 255, 255, 0.06) !important;
    backdrop-filter: blur(18px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(18px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 16px !important;
    box-shadow: 0 12px 36px 0 rgba(0, 0, 0, 0.35), inset 0 1px 0 0 rgba(255, 255, 255, 0.08) !important;
    overflow: hidden !important;
    position: relative;
}

[data-theme="light"] .pd-dashboard-kpi-wrap {
    background: rgba(226, 232, 240, 0.65) !important;
    backdrop-filter: blur(18px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(18px) saturate(180%) !important;
    border: 1px solid rgba(226, 232, 240, 0.9) !important;
    box-shadow: 0 10px 30px 0 rgba(15, 23, 42, 0.04), inset 0 1px 0 0 #ffffff !important;
}

/* Individual KPI Glass Tile */
.pd-dashboard-kpi-card {
    background: rgba(16, 19, 30, 0.68) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    padding: 20px 22px !important;
    position: relative;
    overflow: hidden;
    border: none !important;
    box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.08) !important;
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.pd-dashboard-kpi-card:hover {
    background: rgba(22, 26, 42, 0.82) !important;
    box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.14), inset 0 0 20px rgba(59, 130, 246, 0.08) !important;
}

[data-theme="light"] .pd-dashboard-kpi-card {
    background: rgba(255, 255, 255, 0.86) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    box-shadow: inset 0 1px 0 0 #ffffff, 0 1px 2px rgba(0, 0, 0, 0.02) !important;
}

[data-theme="light"] .pd-dashboard-kpi-card:hover {
    background: rgba(248, 250, 255, 0.96) !important;
    box-shadow: inset 0 1px 0 0 #ffffff, inset 0 0 20px rgba(37, 99, 235, 0.04) !important;
}

/* Top Specular Shimmer Line on KPI Cards */
.pd-dashboard-kpi-card::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 2px !important;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(59, 130, 246, 0.65) 35%,
            rgba(139, 92, 246, 0.65) 65%,
            transparent 100%) !important;
    pointer-events: none;
}

[data-theme="light"] .pd-dashboard-kpi-card::before {
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(37, 99, 235, 0.55) 35%,
            rgba(99, 102, 241, 0.55) 65%,
            transparent 100%) !important;
}

/* Ambient Radial Glow Orb */
.pd-dashboard-kpi-card::after {
    content: '' !important;
    position: absolute !important;
    top: -20px !important;
    right: -20px !important;
    width: 80px !important;
    height: 80px !important;
    border-radius: 50% !important;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.14) 0%, transparent 70%) !important;
    pointer-events: none;
}

[data-theme="light"] .pd-dashboard-kpi-card::after {
    background: radial-gradient(circle, rgba(37, 99, 235, 0.12) 0%, transparent 70%) !important;
}


/* ── 4. ENTERPRISE GLASSMORPHIC CARDS & SURFACES ───────────────────── */
.pd-card,
.pd-analytics-card,
.pd-recent-table-card,
.pd-code-view,
.pd-dropzone {
    background: rgba(15, 18, 28, 0.65) !important;
    backdrop-filter: blur(18px) saturate(185%) !important;
    -webkit-backdrop-filter: blur(18px) saturate(185%) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 16px !important;
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.38), inset 0 1px 0 0 rgba(255, 255, 255, 0.08) !important;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease;
}

.pd-card:hover,
.pd-analytics-card:hover,
.pd-recent-table-card:hover {
    border-color: rgba(59, 130, 246, 0.24) !important;
    box-shadow: 0 16px 48px 0 rgba(0, 0, 0, 0.48), 0 0 24px rgba(59, 130, 246, 0.12), inset 0 1px 0 0 rgba(255, 255, 255, 0.12) !important;
    transform: translateY(-2px);
}

[data-theme="light"] .pd-card,
[data-theme="light"] .pd-analytics-card,
[data-theme="light"] .pd-recent-table-card,
[data-theme="light"] .pd-code-view,
[data-theme="light"] .pd-dropzone {
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(18px) saturate(185%) !important;
    -webkit-backdrop-filter: blur(18px) saturate(185%) !important;
    border: 1px solid rgba(226, 232, 240, 0.85) !important;
    border-radius: 16px !important;
    box-shadow: 0 10px 32px 0 rgba(15, 23, 42, 0.04), inset 0 1px 0 0 #ffffff !important;
}

[data-theme="light"] .pd-card:hover,
[data-theme="light"] .pd-analytics-card:hover,
[data-theme="light"] .pd-recent-table-card:hover {
    border-color: rgba(37, 99, 235, 0.3) !important;
    box-shadow: 0 14px 40px 0 rgba(15, 23, 42, 0.08), 0 0 20px rgba(37, 99, 235, 0.08), inset 0 1px 0 0 #ffffff !important;
    transform: translateY(-2px);
}

/* Card Top Shimmer Highlights */
.pd-analytics-card::before,
.pd-recent-table-card::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 2px !important;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(59, 130, 246, 0.55) 50%,
            transparent 100%) !important;
    pointer-events: none;
}

.pd-recent-table-card::before {
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(16, 185, 129, 0.55) 40%,
            rgba(6, 182, 212, 0.55) 60%,
            transparent 100%) !important;
}

[data-theme="light"] .pd-analytics-card::before {
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(37, 99, 235, 0.45) 50%,
            transparent 100%) !important;
}

[data-theme="light"] .pd-recent-table-card::before {
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(16, 185, 129, 0.45) 40%,
            rgba(6, 182, 212, 0.45) 60%,
            transparent 100%) !important;
}


/* ── 5. GLASSMORPHIC TABLE HEADERS & BORDERS ───────────────────────── */
.pd-recent-table-header {
    background: rgba(0, 0, 0, 0.22) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
    padding: 16px 24px !important;
}

[data-theme="light"] .pd-recent-table-header {
    background: rgba(248, 250, 252, 0.75) !important;
    border-bottom: 1px solid rgba(226, 232, 240, 0.85) !important;
}

.pd-ent-table th {
    background: rgba(0, 0, 0, 0.18) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
}

[data-theme="light"] .pd-ent-table th {
    background: rgba(248, 250, 252, 0.75) !important;
    border-bottom: 1px solid rgba(226, 232, 240, 0.85) !important;
}

.pd-ent-table tbody tr {
    transition: background 0.15s ease;
}

.pd-ent-table tbody tr:hover td {
    background: rgba(59, 130, 246, 0.06) !important;
}

[data-theme="light"] .pd-ent-table tbody tr:hover td {
    background: rgba(37, 99, 235, 0.04) !important;
}


/* ── 6. GLASSMORPHIC BUTTONS, BADGES, TELEMETRY & CONTROLS ─────────── */
/* Ghost Button Glass */
.pd-btn-ghost,
.pd-task-action-btn {
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.10) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
    border-radius: 8px !important;
    transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.pd-btn-ghost:hover,
.pd-task-action-btn:hover {
    background: rgba(255, 255, 255, 0.10) !important;
    border-color: rgba(255, 255, 255, 0.22) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
    transform: translateY(-1px);
}

[data-theme="light"] .pd-btn-ghost,
[data-theme="light"] .pd-task-action-btn {
    background: rgba(255, 255, 255, 0.75) !important;
    border: 1px solid rgba(203, 213, 225, 0.85) !important;
    box-shadow: inset 0 1px 0 #ffffff, 0 1px 3px rgba(0, 0, 0, 0.04) !important;
}

[data-theme="light"] .pd-btn-ghost:hover,
[data-theme="light"] .pd-task-action-btn:hover {
    background: rgba(241, 245, 249, 0.95) !important;
    border-color: rgba(148, 163, 184, 0.9) !important;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06), inset 0 1px 0 #ffffff !important;
}

/* Primary Button Glass Specular Glow */
.pd-btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%) !important;
    border: none !important;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.28) !important;
    border-radius: 8px !important;
    transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.pd-btn-primary:hover {
    background: linear-gradient(135deg, #60a5fa 0%, #818cf8 100%) !important;
    box-shadow: 0 6px 28px rgba(99, 102, 241, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.35) !important;
    transform: translateY(-1px);
}

/* Telemetry Capsule Glass */
.pd-telemetry {
    background: rgba(59, 130, 246, 0.08) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(59, 130, 246, 0.22) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
    border-radius: 8px !important;
}

[data-theme="light"] .pd-telemetry {
    background: rgba(37, 99, 235, 0.06) !important;
    border: 1px solid rgba(37, 99, 235, 0.20) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
}

/* Glass Badges */
.pd-badge,
.pd-tag,
.pd-runtime-tag {
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
    border-radius: 6px !important;
}

.pd-badge-ok {
    background: rgba(34, 197, 94, 0.14) !important;
    border: 1px solid rgba(34, 197, 94, 0.28) !important;
    color: #4ade80 !important;
}

.pd-badge-info {
    background: rgba(56, 189, 248, 0.14) !important;
    border: 1px solid rgba(56, 189, 248, 0.28) !important;
    color: #38bdf8 !important;
}

.pd-badge-warn {
    background: rgba(245, 158, 11, 0.14) !important;
    border: 1px solid rgba(245, 158, 11, 0.28) !important;
    color: #fbbf24 !important;
}

.pd-badge-err {
    background: rgba(239, 68, 68, 0.14) !important;
    border: 1px solid rgba(239, 68, 68, 0.28) !important;
    color: #f87171 !important;
}

/* Glass Inputs */
.pd-input,
.pd-select,
.pd-textarea {
    background: rgba(14, 17, 27, 0.65) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(255, 255, 255, 0.10) !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
    border-radius: 10px !important;
}

.pd-input:focus,
.pd-select:focus,
.pd-textarea:focus {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25), 0 0 20px rgba(59, 130, 246, 0.15) !important;
}

[data-theme="light"] .pd-input,
[data-theme="light"] .pd-select,
[data-theme="light"] .pd-textarea {
    background: rgba(255, 255, 255, 0.85) !important;
    border: 1px solid rgba(203, 213, 225, 0.9) !important;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04), 0 1px 0 #ffffff !important;
}


/* ── 7. GLASSMORPHIC PANELS, MENUS & MODALS ────────────────────────── */
.pd-mega-panel,
.pd-dropdown-menu,
.pd-modal-panel {
    background: rgba(12, 15, 26, 0.88) !important;
    backdrop-filter: blur(24px) saturate(200%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(200%) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.10) !important;
    border-radius: 16px !important;
}

[data-theme="light"] .pd-mega-panel,
[data-theme="light"] .pd-dropdown-menu,
[data-theme="light"] .pd-modal-panel {
    background: rgba(255, 255, 255, 0.92) !important;
    backdrop-filter: blur(24px) saturate(200%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(200%) !important;
    border: 1px solid rgba(226, 232, 240, 0.95) !important;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12), inset 0 1px 0 #ffffff !important;
}


/* ── 8. LUXURY PASS SHOWCASE GLASS ─────────────────────────────────── */
.pd-pass-showcase {
    background: linear-gradient(135deg, rgba(6, 10, 19, 0.9) 0%, rgba(10, 16, 32, 0.95) 50%, rgba(13, 21, 40, 0.95) 100%) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(59, 130, 246, 0.35) !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 60px rgba(59, 130, 246, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
    border-radius: 16px !important;
}

.pd-pass-showcase::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 2px !important;
    background: linear-gradient(90deg,
            transparent,
            rgba(59, 130, 246, 0.65),
            rgba(139, 92, 246, 0.65),
            transparent) !important;
}

/* Telegram Cloud Decompiler Bot Highly Glassmorphic Showcase */
.pd-tg-showcase,
[data-theme="light"] .pd-tg-showcase,
[data-theme="light"] .pd-card.pd-tg-showcase {
    background: 
        radial-gradient(ellipse 80% 60% at 50% -20%, rgba(56, 189, 248, 0.16), transparent 70%),
        radial-gradient(ellipse 60% 50% at 100% 100%, rgba(99, 102, 241, 0.10), transparent),
        linear-gradient(135deg, #070b16 0%, #03060c 100%) !important;
    backdrop-filter: blur(32px) saturate(220%) !important;
    -webkit-backdrop-filter: blur(32px) saturate(220%) !important;
    border: 1px solid rgba(56, 189, 248, 0.38) !important;
    border-radius: 16px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06) !important;
    position: relative !important;
    overflow: hidden !important;
    color: #ffffff !important;
}

.pd-tg-showcase::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 1.5px !important;
    background: linear-gradient(90deg, transparent 0%, rgba(56, 189, 248, 0.8) 50%, transparent 100%) !important;
    pointer-events: none !important;
}

.pd-tg-showcase [style*="color:var(--text-white)"],
[data-theme="light"] .pd-tg-showcase [style*="color:var(--text-white)"],
[data-theme="light"] .pd-tg-showcase [style*="color: var(--text-white)"] {
    color: #ffffff !important;
    text-shadow: none !important;
}

.pd-tg-showcase [style*="color:var(--text-dim)"],
[data-theme="light"] .pd-tg-showcase [style*="color:var(--text-dim)"],
[data-theme="light"] .pd-tg-showcase [style*="color: var(--text-dim)"],
.pd-tg-showcase p,
[data-theme="light"] .pd-tg-showcase p {
    color: #94a3b8 !important;
}

.pd-tg-showcase .pd-btn-ghost,
[data-theme="light"] .pd-tg-showcase .pd-btn-ghost {
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    color: #cbd5e1 !important;
    border-color: rgba(255, 255, 255, 0.18) !important;
}

.pd-tg-showcase .pd-btn-ghost:hover,
[data-theme="light"] .pd-tg-showcase .pd-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.12) !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

.pd-tg-showcase-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    position: relative;
    z-index: 1;
}

.pd-tg-showcase-content {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    max-width: 680px;
    flex: 1 1 320px;
}

.pd-tg-showcase-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(56, 189, 248, 0.16);
    border: 1px solid rgba(56, 189, 248, 0.36);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #38bdf8;
    flex-shrink: 0;
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.pd-tg-showcase-text {
    flex: 1;
    min-width: 0;
}

.pd-tg-showcase-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
    flex-wrap: wrap;
}

.pd-tg-showcase-title {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff !important;
    letter-spacing: -0.01em;
}

/* ════════════════════════════════════════════════════════════════════════
   ENTERPRISE FIXED MODAL ENGINE & DIALOG POSITIONING
   ════════════════════════════════════════════════════════════════════════ */
.pd-modal-backdrop-fixed {
    position: fixed !important;
    inset: 0 !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    background: rgba(3, 6, 14, 0.86) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 999999999 !important;
    padding: 16px !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    overflow-y: auto !important;
}

.pd-modal-backdrop-fixed[style*="display: none"],
.pd-modal-backdrop-fixed[style*="display:none"],
.pd-modal-backdrop-fixed[x-cloak] {
    display: none !important;
}

[data-theme="light"] .pd-modal-backdrop-fixed {
    background: rgba(15, 23, 42, 0.65) !important;
}

.pd-ticket-create-dialog {
    position: relative !important;
    background: var(--ink-900) !important;
    border: 1px solid var(--line-20) !important;
    border-radius: 16px !important;
    width: 100% !important;
    max-width: 620px !important;
    max-height: 90vh !important;
    max-height: 90dvh !important;
    overflow-y: auto !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), 0 0 35px rgba(56, 189, 248, 0.15) !important;
    padding: 26px !important;
    margin: auto !important;
    box-sizing: border-box !important;
}

[data-theme="light"] .pd-ticket-create-dialog {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15) !important;
}

[data-theme="light"] .pd-ticket-create-dialog h2,
[data-theme="light"] .pd-ticket-create-dialog label {
    color: #0f172a !important;
}

/* ════════════════════════════════════════════════════════════════════════
   ENTERPRISE WHATSAPP-STYLE SUPPORT TICKET CHAT ENGINE
   ════════════════════════════════════════════════════════════════════════ */
.pd-chat-card-wrap {
    background: var(--ink-900) !important;
    border: 1px solid var(--line-15) !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35) !important;
    display: flex !important;
    flex-direction: column !important;
}

/* Chat Header */
.pd-chat-header {
    padding: 16px 20px !important;
    background: var(--ink-850) !important;
    border-bottom: 1px solid var(--line-10) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
}

/* ==========================================================================
   ENTERPRISE MULTI-PLATFORM CHAT INTERFACE (WhatsApp, Messenger, Instagram DM)
   ========================================================================== */

.pd-chat-card-wrap {
    background: var(--ink-900) !important;
    border: 1px solid var(--line-15) !important;
    border-radius: var(--r-lg, 16px) !important;
    overflow: hidden !important;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.6) !important;
    display: flex !important;
    flex-direction: column !important;
}

.pd-chat-header {
    padding: 16px 20px !important;
    background: linear-gradient(180deg, var(--ink-800) 0%, var(--ink-850) 100%) !important;
    border-bottom: 1px solid var(--line-15) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
}

/* Chat Stream Wallpaper Backdrop */
.pd-chat-stream {
    background-color: #060b14 !important;
    background-image: radial-gradient(rgba(56, 189, 248, 0.05) 1px, transparent 0) !important;
    background-size: 24px 24px !important;
    padding: 24px 20px !important;
    min-height: 420px !important;
    max-height: 640px !important;
    overflow-y: auto !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 18px !important;
    scroll-behavior: smooth !important;
}

.pd-chat-stream::-webkit-scrollbar {
    width: 6px !important;
}
.pd-chat-stream::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12) !important;
    border-radius: 9999px !important;
}

/* Date Dividers (WhatsApp / Telegram style pills) */
.pd-chat-date-divider {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 8px 0 !important;
    position: relative !important;
}
.pd-chat-date-pill {
    font-size: 11px !important;
    font-weight: 600 !important;
    font-family: var(--font-mono, monospace) !important;
    color: var(--text-dim, #94a3b8) !important;
    background: rgba(15, 23, 42, 0.85) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding: 4px 14px !important;
    border-radius: 9999px !important;
    letter-spacing: 0.3px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35) !important;
}

/* Message Rows */
.pd-chat-row {
    display: flex !important;
    width: 100% !important;
    align-items: flex-end !important;
    gap: 10px !important;
}

/* Outgoing (User on Client, Staff on Admin) */
.pd-chat-row.pd-outgoing {
    justify-content: flex-end !important;
}

/* Incoming (Staff on Client, Customer on Admin) */
.pd-chat-row.pd-incoming {
    justify-content: flex-start !important;
}

/* Message Bubble Geometry */
.pd-chat-bubble {
    position: relative !important;
    max-width: 76% !important;
    padding: 12px 16px !important;
    border-radius: 18px !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3) !important;
    font-size: 13.5px !important;
    line-height: 1.6 !important;
    word-break: break-word !important;
}

/* Outgoing Bubble (Messenger / WhatsApp / Instagram Emerald/Cyan Glow) */
.pd-outgoing .pd-chat-bubble {
    background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
    border: 1px solid rgba(52, 211, 153, 0.35) !important;
    border-bottom-right-radius: 4px !important;
    color: #ffffff !important;
}

/* Incoming Bubble (Dark Sleek Glass) */
.pd-incoming .pd-chat-bubble {
    background: rgba(15, 23, 42, 0.92) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-bottom-left-radius: 4px !important;
    color: #f1f5f9 !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
}

/* Staff Highlight on Incoming (Client View) */
.pd-incoming.pd-msg-staff .pd-chat-bubble {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.98) 100%) !important;
    border: 1px solid rgba(99, 102, 241, 0.35) !important;
}

/* Bubble Meta Header */
.pd-chat-bubble-meta {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    margin-bottom: 6px !important;
    font-size: 11px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding-bottom: 5px !important;
}
.pd-chat-sender-name {
    font-weight: 700 !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
}
.pd-outgoing .pd-chat-sender-name {
    color: #a7f3d0 !important;
}
.pd-incoming .pd-chat-sender-name {
    color: #93c5fd !important;
}

/* Bubble Footer & Double Ticks */
.pd-chat-bubble-footer {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 5px !important;
    margin-top: 6px !important;
    font-size: 10px !important;
    font-family: var(--font-mono, monospace) !important;
    color: rgba(255, 255, 255, 0.65) !important;
}
.pd-chat-double-ticks {
    display: inline-flex !important;
    align-items: center !important;
    color: #38bdf8 !important;
}

/* In-Bubble .ZIP Attachment Card */
.pd-chat-zip-card {
    margin-top: 10px !important;
    padding: 10px 14px !important;
    background: rgba(0, 0, 0, 0.35) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    flex-wrap: wrap !important;
}
.pd-chat-zip-info {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}
.pd-chat-zip-icon {
    width: 34px !important;
    height: 34px !important;
    border-radius: 8px !important;
    background: rgba(56, 189, 248, 0.15) !important;
    border: 1px solid rgba(56, 189, 248, 0.35) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #38bdf8 !important;
    flex-shrink: 0 !important;
}
.pd-chat-zip-name {
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    font-family: var(--font-mono, monospace) !important;
}
.pd-chat-zip-size {
    font-size: 10.5px !important;
    color: var(--text-dim, #94a3b8) !important;
    font-family: var(--font-mono, monospace) !important;
}

/* WhatsApp / Messenger Modern Sticky Composer */
.pd-chat-composer-box {
    padding: 14px 18px !important;
    background: var(--ink-850) !important;
    border-top: 1px solid var(--line-10) !important;
}
.pd-chat-composer-inner {
    display: flex !important;
    align-items: flex-end !important;
    gap: 10px !important;
    background: var(--ink-900) !important;
    border: 1.5px solid var(--line-20) !important;
    border-radius: 14px !important;
    padding: 8px 12px !important;
    transition: all 0.2s ease !important;
}
.pd-chat-composer-inner:focus-within {
    border-color: #38bdf8 !important;
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.25) !important;
}
.pd-chat-clip-btn {
    background: transparent !important;
    border: none !important;
    color: var(--text-dim, #94a3b8) !important;
    padding: 8px !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    transition: all 0.15s ease !important;
}
.pd-chat-clip-btn:hover {
    color: #38bdf8 !important;
    background: rgba(56, 189, 248, 0.12) !important;
}
.pd-chat-textarea {
    flex: 1 !important;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    color: #ffffff !important;
    font-size: 13.5px !important;
    line-height: 1.5 !important;
    resize: none !important;
    max-height: 140px !important;
    padding: 6px 0 !important;
    font-family: inherit !important;
}
.pd-chat-send-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    padding: 8px 18px !important;
    border-radius: 10px !important;
    background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%) !important;
    color: #ffffff !important;
    font-size: 12.5px !important;
    font-weight: 700 !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
    flex-shrink: 0 !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35) !important;
}
.pd-chat-send-btn:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.5) !important;
}

/* File Chip Preview */
.pd-chat-file-chip {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    background: rgba(34, 197, 94, 0.12) !important;
    border: 1px solid rgba(34, 197, 94, 0.3) !important;
    padding: 4px 10px !important;
    border-radius: 8px !important;
    font-size: 11.5px !important;
    font-family: var(--font-mono, monospace) !important;
    color: #4ade80 !important;
    margin-bottom: 8px !important;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .pd-chat-stream {
        padding: 14px 10px !important;
        min-height: 360px !important;
        max-height: 520px !important;
        gap: 14px !important;
    }
    .pd-chat-bubble {
        max-width: 88% !important;
        padding: 10px 14px !important;
        font-size: 13px !important;
    }
    .pd-chat-composer-box {
        padding: 10px 12px !important;
    }
    .pd-chat-send-btn span {
        display: none !important;
    }
    .pd-chat-send-btn {
        padding: 8px 12px !important;
        border-radius: 50% !important;
    }
}

/* ═══════════════════════════════════════════════════════════════════════
   END PATCH v3.4 — ENTERPRISE SAAS GLASSMORPHISM ENGINE
   ═══════════════════════════════════════════════════════════════════════ */

.pd-tg-user-tag {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.28);
    padding: 1px 6px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
}

.pd-tg-showcase-desc {
    font-size: 12px;
    color: #94a3b8 !important;
    line-height: 1.5;
    margin: 4px 0 0 0;
}

.pd-tg-showcase-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.pd-tg-actions-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* Mobile Structure for Telegram Showcase Card */
@media (max-width: 640px) {
    .pd-tg-showcase,
    [data-theme="light"] .pd-tg-showcase {
        padding: 16px 14px !important;
        border-radius: 14px !important;
    }
    .pd-tg-showcase-inner {
        flex-direction: column !important;
        align-items: flex-start !important;
        text-align: left !important;
        gap: 14px !important;
    }
    .pd-tg-showcase-content {
        flex-direction: row !important;
        align-items: flex-start !important;
        text-align: left !important;
        gap: 12px !important;
        max-width: 100% !important;
        flex: 1 1 100% !important;
    }
    .pd-tg-showcase-icon {
        width: 38px !important;
        height: 38px !important;
        border-radius: 10px !important;
        margin: 0 !important;
        flex-shrink: 0 !important;
    }
    .pd-tg-showcase-icon svg {
        width: 18px !important;
        height: 18px !important;
    }
    .pd-tg-showcase-title {
        font-size: 14px !important;
        display: inline-block !important;
        text-align: left !important;
        margin-right: 4px !important;
    }
    .pd-tg-showcase-header {
        gap: 6px !important;
        align-items: center !important;
        justify-content: flex-start !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        text-align: left !important;
    }
    .pd-tg-showcase-desc {
        font-size: 11.5px !important;
        line-height: 1.45 !important;
        margin-top: 4px !important;
        text-align: left !important;
    }
    .pd-tg-showcase-actions {
        width: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding-top: 12px !important;
        border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    }
    .pd-tg-actions-group {
        width: 100% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 10px !important;
        flex-wrap: wrap !important;
    }
    .pd-tg-showcase-actions a.pd-btn-primary,
    .pd-tg-showcase-actions button.pd-btn-primary {
        flex: 1 1 auto !important;
        max-width: 220px !important;
        justify-content: center !important;
        text-align: center !important;
        font-size: 12px !important;
        padding: 9px 16px !important;
    }
    .pd-tg-showcase-actions button.pd-btn-ghost,
    .pd-tg-showcase-actions a.pd-btn-ghost,
    .pd-tg-showcase-actions .pd-btn-ghost {
        flex: 0 0 auto !important;
        justify-content: center !important;
        text-align: center !important;
        font-size: 11.5px !important;
        padding: 9px 14px !important;
    }
    .pd-tg-linkcode-card {
        text-align: left !important;
        flex-direction: column !important;
        align-items: flex-start !important;
    }
    .pd-tg-linkcode-actions {
        width: 100% !important;
        justify-content: center !important;
        margin-top: 10px !important;
    }
}

/* ── 9. ANTI-BOT CAPTCHA SUITE THEME PARITY (ALTCHA & SHIELD) ───────── */
.pd-altcha-container {
    display: flex;
    justify-content: center;
    margin: 14px 0;
}

.altcha-box {
    background: #080c14;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.3);
}

.altcha-status-text {
    color: #f8fafc;
}

.altcha-sub-text {
    color: #94a3b8;
}

[data-theme="light"] .altcha-box,
html[data-theme="light"] .altcha-box,
body[data-theme="light"] .altcha-box {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06) !important;
}

[data-theme="light"] .altcha-box:hover,
html[data-theme="light"] .altcha-box:hover,
body[data-theme="light"] .altcha-box:hover {
    background: #f8fafc !important;
    border-color: #3b82f6 !important;
}

[data-theme="light"] .altcha-status-text,
html[data-theme="light"] .altcha-status-text,
body[data-theme="light"] .altcha-status-text {
    color: #0f172a !important;
    /* Extremely clear dark slate in Light Mode */
    font-weight: 700 !important;
}

[data-theme="light"] .altcha-sub-text,
html[data-theme="light"] .altcha-sub-text,
body[data-theme="light"] .altcha-sub-text {
    color: #64748b !important;
}

[data-theme="light"] .altcha-box-square,
html[data-theme="light"] .altcha-box-square,
body[data-theme="light"] .altcha-box-square {
    border: 2px solid #94a3b8 !important;
    background: #f1f5f9 !important;
}

/* Visual Shield Light Mode */
[data-theme="light"] .pd-shield-captcha {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05) !important;
}

[data-theme="light"] .pd-shield-captcha label {
    color: #0284c7 !important;
}

[data-theme="light"] .pd-shield-captcha input {
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
}

/* VPN Blocked Card Light Mode */
[data-theme="light"] .pd-vpn-blocked-card {
    background: #ffffff !important;
    border: 1px solid rgba(239, 68, 68, 0.4) !important;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08) !important;
}

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

[data-theme="light"] .pd-vpn-telemetry {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
}

/* ════════════════════════════════════════════════════════════════════════
   26. ULTRA-RESPONSIVE MOBILE ENGINE (320px — 480px PHONES)
   Full viewport parity, touch-target optimization, and zero overflow.
════════════════════════════════════════════════════════════════════════ */

/* Viewport Hygiene — Use overflow-x: clip so position:sticky on desktop sidebar is never broken */
html,
body {
    overflow-x: clip !important;
    -webkit-text-size-adjust: 100%;
}

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

/* ── 1. AUTH SCREENS (Login / Register / Forgot Password) ── */
@media (max-width: 480px) {
    .pd-saas-auth-header {
        height: 52px !important;
        padding: 0 12px !important;
    }

    .pd-saas-auth-header-right {
        gap: 8px !important;
    }

    .pd-saas-auth-header-cta {
        font-size: 11.5px !important;
    }

    .pd-saas-auth-header-cta-prompt {
        display: none !important;
        /* Prevent header collision on small screens */
    }

    .pd-saas-auth-header-cta-link {
        padding: 4px 10px !important;
        border-radius: 6px !important;
        background: rgba(56, 189, 248, 0.1) !important;
        border: 1px solid rgba(56, 189, 248, 0.25) !important;
        font-size: 11.5px !important;
        font-weight: 700 !important;
        white-space: nowrap !important;
    }

    .pd-saas-auth-main {
        padding: 20px 12px !important;
        min-height: auto !important;
    }

    .pd-saas-auth-card {
        padding: 22px 16px !important;
        border-radius: 16px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45) !important;
    }

    .pd-saas-auth-title {
        font-size: 18px !important;
        margin-bottom: 4px !important;
    }

    .pd-saas-auth-subtitle {
        font-size: 12px !important;
        line-height: 1.45 !important;
        margin-bottom: 16px !important;
    }

    .pd-saas-form-group {
        margin-bottom: 12px !important;
    }

    .pd-saas-label {
        font-size: 12px !important;
        margin-bottom: 5px !important;
    }

    .pd-saas-input {
        height: 42px !important;
        font-size: 13.5px !important;
        padding: 0 12px !important;
    }

    .pd-saas-submit-btn {
        height: 44px !important;
        min-height: 44px !important;
        font-size: 13px !important;
        margin-top: 14px !important;
    }

    .pd-saas-auth-card-footer {
        font-size: 12px !important;
        margin-top: 16px !important;
        padding-top: 14px !important;
    }

    .pd-saas-page-footer {
        padding: 16px 12px !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        gap: 10px !important;
        font-size: 11.5px !important;
    }

    .pd-saas-page-footer>div:last-child {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 12px !important;
    }
}

@media (max-width: 360px) {
    .pd-saas-auth-header {
        padding: 0 8px !important;
        height: 48px !important;
    }

    .pd-logo-wordmark {
        font-size: 13.5px !important;
    }

    .pd-saas-auth-main {
        padding: 14px 8px !important;
    }

    .pd-saas-auth-card {
        padding: 18px 12px !important;
        border-radius: 12px !important;
    }

    .pd-saas-auth-title {
        font-size: 16.5px !important;
    }

    .pd-saas-auth-icon {
        width: 34px !important;
        height: 34px !important;
        margin-bottom: 12px !important;
    }

    .pd-saas-input {
        height: 40px !important;
        font-size: 13px !important;
    }
}

/* ── 2. CAPTCHA WIDGET RESPONSIVENESS ON SMALL SCREENS ── */
@media (max-width: 480px) {

    .pd-captcha-container,
    .pd-altcha-container {
        width: 100% !important;
        max-width: 100% !important;
        margin: 10px 0 !important;
    }

    altcha-widget {
        width: 100% !important;
        display: block !important;
    }

    .altcha-box {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 8px 10px !important;
        gap: 8px !important;
    }

    .altcha-status-text {
        font-size: 12px !important;
    }

    .altcha-sub-text {
        font-size: 9.5px !important;
    }

    .pd-shield-captcha {
        padding: 10px 8px !important;
        box-sizing: border-box !important;
        width: 100% !important;
    }

    .pd-shield-captcha input {
        font-size: 13px !important;
        padding: 8px 10px !important;
    }
}

@media (max-width: 360px) {
    .altcha-box {
        padding: 6px 8px !important;
        gap: 6px !important;
    }

    .altcha-checkbox-wrapper {
        width: 18px !important;
        height: 18px !important;
    }

    .altcha-box-square {
        width: 16px !important;
        height: 16px !important;
    }

    .altcha-branding {
        display: none !important;
    }
}

/* ── 3. HOMEPAGE INDEX & INTERACTIVE TERMINAL ── */
@media (max-width: 640px) {
    .pd-header {
        height: 52px !important;
    }

    .pd-header-inner {
        padding: 0 12px !important;
    }

    .pd-nav-right .pd-btn {
        padding: 0 8px !important;
        font-size: 11.5px !important;
        height: 28px !important;
    }

    .pd-hero-section {
        padding: 56px 0 44px !important;
    }

    .pd-container {
        padding-left: 14px !important;
        padding-right: 14px !important;
        max-width: 100vw !important;
        box-sizing: border-box !important;
    }

    .pd-advance-badge {
        padding: 5px 14px !important;
        font-size: 11.5px !important;
        margin-top: 6px !important;
        margin-bottom: 18px !important;
    }

    .t-hero {
        font-size: clamp(21px, 6.5vw, 30px) !important;
        line-height: 1.2 !important;
        margin-bottom: 10px !important;
    }

    .pd-hero-buttons {
        flex-direction: column !important;
        width: 100% !important;
        gap: 8px !important;
    }

    .pd-hero-buttons .pd-btn {
        width: 100% !important;
        box-sizing: border-box !important;
        justify-content: center !important;
        padding: 11px 14px !important;
        font-size: 13px !important;
    }

    .pd-trust-pill {
        font-size: 11px !important;
        padding: 3px 8px !important;
        gap: 4px !important;
    }

    .pd-interactive-terminal {
        border-radius: 12px !important;
        margin-top: 6px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .pd-terminal-header {
        padding: 8px 10px !important;
    }

    .pd-dropzone.pd-demo-dropzone {
        padding: 20px 10px !important;
    }

    .pd-dropzone-title {
        font-size: 14.5px !important;
    }

    .pd-dropzone-sub {
        font-size: 11.5px !important;
        margin-bottom: 12px !important;
    }

    .pd-browse-btn {
        width: 100% !important;
        max-width: 240px !important;
        justify-content: center !important;
        font-size: 12px !important;
        padding: 8px 12px !important;
    }

    .pd-demo-badges {
        gap: 4px !important;
    }

    .pd-demo-badge-pill {
        font-size: 9.5px !important;
        padding: 2px 5px !important;
    }

    .pd-demo-preview {
        max-width: 100% !important;
    }

    .pd-preview-header {
        padding: 8px 10px !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
    }

    .pd-unlock-bar {
        padding: 12px 12px !important;
        flex-direction: column !important;
        align-items: stretch !important;
        text-align: center !important;
        gap: 10px !important;
    }

    .pd-unlock-bar .pd-btn {
        width: 100% !important;
        justify-content: center !important;
    }

    /* Bento Grid */
    .pd-bento-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    .pd-bento-card {
        padding: 16px 14px !important;
        border-radius: 12px !important;
    }

    /* Pre-Footer CTA */
    .pd-prefooter-cta {
        padding: 24px 14px !important;
        border-radius: 14px !important;
    }

    /* Showcase Pricing Pass Card */
    .pd-pricing-showcase {
        padding: 20px 14px !important;
        border-radius: 14px !important;
    }

    /* Directory quick index chips */
    .pd-footer-chip {
        font-size: 10.5px !important;
        padding: 3px 7px !important;
    }
}

@media (max-width: 360px) {
    .pd-header-inner {
        padding: 0 8px !important;
    }

    .pd-logo-wordmark {
        font-size: 13.5px !important;
    }

    .t-hero {
        font-size: 20px !important;
    }

    .pd-dropzone.pd-demo-dropzone {
        padding: 16px 6px !important;
    }

    .pd-browse-btn {
        max-width: 100% !important;
    }
}

/* ── 4. CONSOLE / DASHBOARD TYPOGRAPHY & TEXT OPTIMIZATIONS ── */
.pd-kpi-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
    flex-wrap: nowrap;
    min-height: 20px;
}

.pd-kpi-head .t-label {
    margin: 0 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    flex-shrink: 1;
}

.pd-kpi-head .pd-badge,
.pd-kpi-head .pd-tag {
    flex-shrink: 0;
    white-space: nowrap;
    text-align: right;
    font-size: 10px;
    padding: 2px 7px;
    line-height: 1.2;
}

@media (max-width: 768px) {

    /* Minimal topbar helpers */
    .pd-topbar-hamburger {
        display: inline-flex !important;
    }

    .pd-topbar-new-btn span {
        display: none !important;
    }

    .pd-topbar-new-btn {
        padding: 0 8px !important;
        height: 28px !important;
        font-size: 11px !important;
    }

    .pd-breadcrumb {
        max-width: none !important;
        overflow: visible !important;
        text-overflow: clip !important;
        white-space: nowrap !important;
        font-size: 11.5px !important;
    }

    /* Small text optimizations */
    .pd-page-header .t-subheading {
        font-size: 20px !important;
    }

    .pd-page-header p {
        font-size: 12px !important;
    }

    .pd-kpi-head {
        gap: 6px;
    }

    .pd-kpi-head .pd-badge,
    .pd-kpi-head .pd-tag {
        font-size: 9.5px !important;
        padding: 2px 6px !important;
    }

    /* Tables touch scroll */
    .pd-table-wrap,
    .pd-table-responsive {
        width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    /* Studio tabs scroll */
    .pd-studio-timeline,
    .pd-timeline-steps {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }
}

@media (max-width: 480px) {
    .pd-breadcrumb {
        max-width: none !important;
        overflow: visible !important;
        text-overflow: clip !important;
        white-space: nowrap !important;
        font-size: 11px !important;
    }

    .pd-page-header .t-subheading {
        font-size: 18.5px !important;
    }

    .pd-page-header p {
        font-size: 11.5px !important;
        line-height: 1.45 !important;
    }

    .pd-dashboard-kpi-card {
        padding: 16px 14px !important;
    }

    .pd-kpi-head {
        gap: 4px;
        flex-wrap: wrap;
        /* Prevent badge text truncation */
    }

    .pd-kpi-head .t-label {
        font-size: 9.5px !important;
        letter-spacing: 0.05em !important;
    }

    .pd-kpi-head .pd-badge,
    .pd-kpi-head .pd-tag {
        font-size: 9px !important;
        padding: 2px 5px !important;
    }

    .pd-dashboard-kpi-card .t-title {
        font-size: 18px !important;
    }

    .pd-dashboard-kpi-card .pd-kpi-sub {
        font-size: 11px !important;
    }

    .pd-analytics-card .t-title {
        font-size: 13.5px !important;
    }

    .pd-analytics-card .t-label {
        font-size: 9.5px !important;
    }

    .pd-analytics-footer {
        font-size: 10.5px !important;
    }

    .pd-task-filename {
        max-width: 180px !important;
        font-size: 12.5px !important;
    }
}

@media (max-width: 360px) {
    .pd-breadcrumb {
        max-width: none !important;
        overflow: visible !important;
        text-overflow: clip !important;
        white-space: nowrap !important;
        font-size: 10.5px !important;
    }

    .pd-page-header .t-subheading {
        font-size: 17px !important;
    }

    .pd-dashboard-kpi-card {
        padding: 14px 10px !important;
    }

    .pd-kpi-head .t-label {
        font-size: 9px !important;
    }

    .pd-kpi-head .pd-badge,
    .pd-kpi-head .pd-tag {
        font-size: 8.5px !important;
        padding: 1px 4px !important;
    }

    .pd-dashboard-kpi-card .t-title {
        font-size: 17px !important;
    }

    .pd-dashboard-kpi-card .pd-kpi-sub {
        font-size: 10px !important;
    }

    .pd-analytics-card .t-title {
        font-size: 13px !important;
    }

    .pd-task-filename {
        max-width: 140px !important;
        font-size: 12px !important;
    }
}

/* ── Global Splash Sheen Overlay on Standard Button ── */
.pd-btn-splash {
    position: relative !important;
    overflow: hidden !important;
}

.pd-btn-splash::before {
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.22) 50%, rgba(56, 189, 248, 0.22) 80%, transparent 100%);
    transform: skewX(-22deg);
    animation: btnSplashSheen 4.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    pointer-events: none;
    z-index: 2;
}

[data-theme="light"] .pd-btn-splash::before {
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.75) 50%, rgba(37, 99, 235, 0.18) 80%, transparent 100%);
}

@keyframes btnSplashSheen {

    0%,
    15% {
        left: -120%;
    }

    45%,
    100% {
        left: 220%;
    }
}

/* ── DEMO DECODER CAPTCHA SUITE STYLING ──────────────────────────────── */
.pd-demo-captcha-wrap {
    padding: 28px 20px !important;
    text-align: center;
    background: var(--ink-950);
    border-top: 1px solid var(--line-10);
    animation: pdFadeIn 0.25s ease-out;
}

[data-theme="light"] .pd-demo-captcha-wrap {
    background: #f8fafc !important;
    border-top: 1px solid #e2e8f0 !important;
}

.pd-demo-captcha-target {
    max-width: 380px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.pd-demo-captcha-target .pd-captcha-container,
.pd-demo-captcha-target .pd-altcha-container {
    margin: 12px 0 !important;
    width: 100%;
}

@keyframes pdFadeIn {
    from {
        opacity: 0;
        transform: translateY(4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ═══════════════════════════════════════════════════════════════════════
   END PATCH v3.4 — ENTERPRISE SAAS GLASSMORPHISM ENGINE
═══════════════════════════════════════════════════════════════════════ */