/* ==========================================================================
   Features Page Interactive Redesign
   Scoped under .fx-* prefix to avoid collisions with main app styles.
   ========================================================================== */

:root {
    --fx-blue: #0593ff;
    --fx-blue-dark: #036cc4;
    --fx-purple: #250448;
    --fx-purple-soft: #3b0a6e;
    --fx-ink: #0f172a;
    --fx-ink-2: #1e293b;
    --fx-mute: #64748b;
    --fx-mute-2: #94a3b8;
    --fx-line: #e2e8f0;
    --fx-line-2: #cbd5e1;
    --fx-bg: #ffffff;
    --fx-bg-soft: #f8fafc;
    --fx-bg-soft-2: #f1f5f9;
    --fx-success: #10b981;
    --fx-warning: #f59e0b;
    --fx-danger: #ef4444;
    --fx-violet: #8b5cf6;
    --fx-indigo: #6366f1;
    --fx-lavender: #c4b5fd;
    --fx-sky: #7dd3fc;
    --fx-radius: 18px;
    --fx-radius-sm: 12px;
    --fx-shadow-sm: 0 4px 16px rgba(15, 23, 42, 0.06);
    --fx-shadow: 0 12px 40px rgba(15, 23, 42, 0.1);
    --fx-shadow-lg: 0 24px 80px rgba(5, 147, 255, 0.18);
    --fx-grad: linear-gradient(135deg, #0593ff 0%, #250448 100%);
    --fx-grad-soft: linear-gradient(135deg, rgba(5, 147, 255, 0.1) 0%, rgba(37, 4, 72, 0.1) 100%);
    --fx-ease: cubic-bezier(0.4, 0, 0.2, 1);
}

body.fx-page,
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    color: var(--fx-ink);
    background: var(--fx-bg);
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.6;
}

body.fx-page {
    overflow-x: clip;
}

.fx-page .fx-hero,
.fx-page .fx-showcase,
.fx-page .fx-showcase-pair,
.fx-page .fx-wg-section,
.fx-page .fx-more,
.fx-page .fx-security,
.fx-page .fx-final-cta {
    overflow-x: clip;
}

* { box-sizing: border-box; }

.fx-smooth-scroll { scroll-behavior: smooth; }

/* ==========================================================================
   FEATURES PAGE HERO – stock photo variant (.fx-fhero)
   ========================================================================== */
.fx-fhero .fx-hero-title {
    font-size: clamp(2rem, 4vw, 3.2rem);
}

.fx-fhero-sub {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.65;
    margin-bottom: 1.8rem;
    max-width: 520px;
}

.fx-fhero-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem;
    margin-bottom: 0.5rem;
}

.fx-fhero-feat {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.45rem 0.75rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 250ms, border-color 250ms, transform 200ms;
}

.fx-fhero-feat:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.35);
    color: #fff;
    transform: translateY(-1px);
}

.fx-fhero-feat-icon {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    flex-shrink: 0;
}

/* Single hero photo */
.fx-fhero-photos {
    position: relative;
    height: 480px;
}

.fx-fhero-photo {
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}

.fx-fhero-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.fx-fhero-photo-main {
    width: 100%;
    height: 100%;
    animation: fx-fhero-float 7s ease-in-out infinite;
}

@keyframes fx-fhero-float {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-8px); }
}

/* welcome.html hero wrapper – nincs szükség welcome.css override-ra */
.wl-hero-wrap {
    padding-top: 130px;
}

@media (max-width: 991px) {
    .fx-fhero-photos { height: 340px; }
    .fx-fhero-features { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 575px) {
    .fx-fhero-photos { height: 260px; }
    .fx-fhero-features { grid-template-columns: 1fr; }
    .fx-fhero-sub { font-size: 0.95rem; }
}

/* ==========================================================================
   HERO
   ========================================================================== */
.fx-hero {
    position: relative;
    background: var(--fx-grad);
    color: white;
    padding: 160px 0 90px;
    overflow: hidden;
    isolation: isolate;
}

.fx-hero-bg-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 30%, rgba(255, 255, 255, 0.12), transparent 45%),
        radial-gradient(circle at 85% 70%, rgba(255, 255, 255, 0.08), transparent 50%);
    z-index: -1;
    animation: fx-hero-pulse 14s ease-in-out infinite;
}

@keyframes fx-hero-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.55; }
}

.fx-hero-container { position: relative; z-index: 1; }

.fx-hero-eyebrow {
    display: inline-block;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(10px);
    color: rgba(255, 255, 255, 0.95);
    padding: 0.4rem 1rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.22);
    margin-bottom: 1.5rem;
}

.fx-hero-title {
    font-size: clamp(2.25rem, 4.5vw, 3.75rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.02em;
    margin: 0 0 1.5rem;
}

.fx-hero-title-accent {
    color: #ffd700;
    text-shadow: 0 2px 24px rgba(255, 215, 0, 0.35);
}

.fx-pain-ticker {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--fx-radius);
    padding: 1.1rem 1.4rem;
    margin-bottom: 2rem;
    min-height: 96px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    backdrop-filter: blur(8px);
}

.fx-pain-line {
    font-size: 1.1rem;
    line-height: 1.4;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
    min-height: 1.5em;
}

.fx-pain-text::after {
    content: '';
    display: inline-block;
    width: 2px;
    height: 1.1em;
    background: rgba(255, 255, 255, 0.85);
    margin-left: 4px;
    vertical-align: text-bottom;
    animation: fx-cursor-blink 1s steps(2, start) infinite;
}

@keyframes fx-cursor-blink {
    to { background: transparent; }
}

.fx-pain-solution {
    margin-top: 0.55rem;
    font-size: 1rem;
    font-weight: 700;
    color: #ffd700;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.fx-pain-solution.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.fx-hero-actions {
    display: flex;
    gap: 0.85rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.fx-btn-primary {
    background: white;
    color: var(--fx-blue);
    border: none;
    padding: 0.95rem 1.85rem;
    border-radius: var(--fx-radius-sm);
    font-weight: 700;
    font-size: 1rem;
    transition: transform 0.25s var(--fx-ease), box-shadow 0.25s var(--fx-ease), color 0.2s ease;
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.25);
}

.fx-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 38px rgba(255, 255, 255, 0.4);
    color: var(--fx-blue);
}

.fx-btn-ghost {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.32);
    padding: 0.85rem 1.85rem;
    border-radius: var(--fx-radius-sm);
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.25s var(--fx-ease);
}

.fx-btn-ghost:hover {
    background: white;
    border-color: white;
    color: var(--fx-blue);
}

.fx-benefit-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.fx-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.45rem 0.95rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.fx-chip:hover {
    color: white;
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.45);
}

.fx-chip-emoji {
    font-size: 1rem;
    line-height: 1;
}

/* ==========================================================================
   INVOICE -> DASHBOARD MORPH (HERO VISUAL)
   ========================================================================== */
.fx-morph {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1.05;
    max-height: 600px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: linear-gradient(160deg, rgba(15, 23, 42, 0.55) 0%, rgba(37, 4, 72, 0.55) 100%);
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
    isolation: isolate;
    perspective: 1400px;
}

.fx-morph-glow {
    position: absolute;
    inset: -20%;
    background:
        radial-gradient(40% 40% at 30% 30%, rgba(5, 147, 255, 0.35), transparent 60%),
        radial-gradient(45% 45% at 75% 70%, rgba(168, 85, 247, 0.28), transparent 60%);
    z-index: 0;
    filter: blur(20px);
    animation: fx-morph-glow-spin 18s linear infinite;
    pointer-events: none;
}

@keyframes fx-morph-glow-spin {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Stage indicator pill */
.fx-morph-stages {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 6;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.75);
    white-space: nowrap;
    transition: opacity 400ms var(--fx-ease);
}

.fx-morph-stage {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    transition: all 400ms var(--fx-ease);
    color: rgba(255, 255, 255, 0.55);
}

.fx-morph-stage i {
    font-size: 0.75rem;
}

.fx-morph[data-stage="invoice"] .fx-morph-stage[data-for="invoice"],
.fx-morph[data-stage="scan"] .fx-morph-stage[data-for="invoice"] {
    background: rgba(245, 158, 11, 0.22);
    color: #fcd34d;
    box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.35);
}

.fx-morph[data-stage="dashboard"] .fx-morph-stage[data-for="dashboard"],
.fx-morph[data-stage="full"] .fx-morph-stage[data-for="dashboard"] {
    background: rgba(16, 185, 129, 0.22);
    color: #6ee7b7;
    box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.4);
}

.fx-morph-arrow {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.65rem;
}

/* ----- Invoice paper ----- */
.fx-morph-invoice {
    position: absolute;
    inset: 48px 24px 24px;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-origin: center center;
    transition:
        opacity 800ms var(--fx-ease),
        transform 900ms cubic-bezier(0.5, 0, 0.2, 1),
        filter 800ms var(--fx-ease);
}

.fx-morph[data-stage="morph"] .fx-morph-invoice,
.fx-morph[data-stage="dashboard"] .fx-morph-invoice,
.fx-morph[data-stage="full"] .fx-morph-invoice {
    opacity: 0;
    transform: rotateX(-32deg) rotateZ(-3deg) scale(0.78) translateY(-20px);
    filter: blur(12px) brightness(1.6);
    pointer-events: none;
}

.fx-morph-paper {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 6px;
    overflow: hidden;
    background: #ffffff;
    box-shadow:
        0 24px 56px rgba(0, 0, 0, 0.5),
        0 8px 18px rgba(0, 0, 0, 0.32),
        0 0 0 1px rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
}

.fx-morph-paper picture {
    display: block;
    width: 100%;
    height: 100%;
}

.fx-morph-paper-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
    display: block;
    background: #ffffff;
    filter: contrast(1.08);
}

.fx-morph-inv-head {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.55rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px dashed var(--fx-line);
}

.fx-morph-inv-logo {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, #0593ff, #6366f1);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    box-shadow: 0 4px 10px rgba(5, 147, 255, 0.35);
}

.fx-morph-inv-name {
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--fx-ink);
    letter-spacing: -0.01em;
}

.fx-morph-inv-sub {
    font-size: 0.58rem;
    color: var(--fx-mute);
}

.fx-morph-inv-stamp {
    align-self: start;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    color: var(--fx-blue-dark);
    border: 2px solid var(--fx-blue-dark);
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    transform: rotate(-3deg);
    background: rgba(5, 147, 255, 0.04);
}

.fx-morph-inv-meta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.4rem;
    font-size: 0.6rem;
}

.fx-morph-inv-meta > div {
    display: flex;
    flex-direction: column;
}

.fx-morph-inv-meta span {
    color: var(--fx-mute);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.52rem;
}

.fx-morph-inv-meta b {
    color: var(--fx-ink);
    font-weight: 700;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 0.62rem;
}

.fx-morph-inv-bill {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.7rem;
    font-size: 0.6rem;
    padding: 0.45rem;
    background: var(--fx-bg-soft);
    border-radius: 6px;
}

.fx-morph-inv-bill span {
    display: block;
    font-size: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--fx-mute);
    margin-bottom: 0.15rem;
}

.fx-morph-inv-bill b {
    display: block;
    color: var(--fx-ink);
    font-weight: 700;
    font-size: 0.66rem;
}

.fx-morph-inv-bill small {
    color: var(--fx-mute);
    font-size: 0.55rem;
}

.fx-morph-inv-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.6rem;
}

.fx-morph-inv-table th {
    text-align: left;
    font-weight: 700;
    color: var(--fx-mute);
    padding: 0.25rem 0.3rem;
    border-bottom: 1px solid var(--fx-line);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.5rem;
}

.fx-morph-inv-table th.num,
.fx-morph-inv-table td.num {
    text-align: right;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
}

.fx-morph-inv-table td {
    padding: 0.28rem 0.3rem;
    border-bottom: 1px dashed rgba(15, 23, 42, 0.08);
    color: var(--fx-ink);
}

.fx-morph-inv-table tbody tr:last-child td {
    border-bottom: none;
}

.fx-morph-inv-totals {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 0.18rem;
    font-size: 0.6rem;
    padding-top: 0.4rem;
    border-top: 1px dashed var(--fx-line);
}

.fx-morph-inv-totals > div {
    display: flex;
    justify-content: space-between;
    color: var(--fx-mute);
}

.fx-morph-inv-totals b {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    color: var(--fx-ink);
    font-weight: 700;
}

.fx-morph-inv-grand {
    margin-top: 0.25rem;
    padding: 0.35rem 0.5rem;
    background: linear-gradient(135deg, var(--fx-blue) 0%, var(--fx-blue-dark) 100%);
    border-radius: 6px;
    color: #fff !important;
}

.fx-morph-inv-grand span {
    color: #fff !important;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.55rem;
    letter-spacing: 0.08em;
}

.fx-morph-inv-grand b {
    color: #fff !important;
    font-size: 0.78rem;
}

/* AI scan line */
.fx-morph-scanline {
    position: absolute;
    left: -10%;
    right: -10%;
    top: -8%;
    height: 28px;
    background: linear-gradient(180deg,
        transparent 0%,
        rgba(5, 147, 255, 0.22) 25%,
        rgba(5, 147, 255, 0.95) 50%,
        rgba(5, 147, 255, 0.22) 75%,
        transparent 100%);
    box-shadow:
        0 0 28px rgba(5, 147, 255, 0.95),
        0 0 80px rgba(5, 147, 255, 0.55);
    opacity: 0;
    pointer-events: none;
    z-index: 4;
}

.fx-morph[data-stage="scan"] .fx-morph-scanline {
    animation: fx-morph-scan 2200ms cubic-bezier(0.45, 0.05, 0.55, 0.95) forwards;
}

@keyframes fx-morph-scan {
    0%   { opacity: 0; top: -10%; }
    8%   { opacity: 1; top: -6%; }
    92%  { opacity: 1; top: 96%; }
    100% { opacity: 0; top: 102%; }
}

/* Highlight overlay during scan: subtle green tint on data cells */
.fx-morph-extract {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(60% 40% at 80% 18%, rgba(16, 185, 129, 0.18), transparent 60%),
        radial-gradient(60% 40% at 80% 90%, rgba(16, 185, 129, 0.18), transparent 60%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 400ms var(--fx-ease);
}

.fx-morph[data-stage="scan"] .fx-morph-extract {
    opacity: 1;
}

/* Floating data particles flying out of invoice */
.fx-morph-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 5;
}

.fx-morph-particle {
    position: absolute;
    left: var(--px);
    top: var(--py);
    color: rgba(125, 211, 252, 0.95);
    font-weight: 800;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    text-shadow: 0 0 12px rgba(5, 147, 255, 0.85);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.6);
}

.fx-morph[data-stage="morph"] .fx-morph-particle {
    animation: fx-morph-particle 1100ms cubic-bezier(0.4, 0, 0.2, 1) var(--pd) forwards;
}

@keyframes fx-morph-particle {
    0%   { opacity: 0; transform: translate(-50%, -50%) scale(0.6) translateY(0); }
    25%  { opacity: 1; transform: translate(-50%, -50%) scale(1.15) translateY(-8px); }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(0.4) translateY(-90px); }
}

/* ----- Dashboard ----- */
.fx-morph-dash {
    position: absolute;
    inset: 48px 16px 16px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    padding: 0.7rem 0.65rem;
    background: rgba(255, 255, 255, 0.97);
    border-radius: 14px;
    color: var(--fx-ink);
    box-shadow:
        0 22px 50px rgba(0, 0, 0, 0.35),
        0 0 0 1px rgba(255, 255, 255, 0.6) inset;
    opacity: 0;
    transform: scale(0.94) translateY(14px);
    transition:
        opacity 700ms var(--fx-ease),
        transform 700ms cubic-bezier(0.34, 1.3, 0.64, 1);
    pointer-events: none;
    overflow: hidden;
}

.fx-morph[data-stage="dashboard"] .fx-morph-dash,
.fx-morph[data-stage="full"] .fx-morph-dash {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.fx-morph-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    align-items: center;
    padding: 0.35rem 0.4rem;
    background: var(--fx-bg-soft);
    border-radius: 6px;
    font-size: 0.55rem;
    font-weight: 600;
}

.fx-morph-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--fx-ink);
    padding: 0.18rem 0.4rem;
    border-radius: 4px;
    background: #fff;
    border: 1px solid var(--fx-line);
}

.fx-morph-pill.is-ghost {
    background: transparent;
    border-color: transparent;
    color: var(--fx-mute);
}

.fx-morph-pill i {
    color: var(--fx-mute);
}

.fx-morph-toggle {
    display: inline-flex;
    background: #fff;
    border: 1px solid var(--fx-line);
    border-radius: 4px;
    overflow: hidden;
}

.fx-morph-toggle span {
    padding: 0.18rem 0.4rem;
    color: var(--fx-mute);
    font-size: 0.55rem;
    font-weight: 600;
}

.fx-morph-toggle span.is-active {
    background: var(--fx-blue);
    color: #fff;
}

.fx-morph-banners {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.3rem;
}

.fx-morph-alert {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.55rem;
    font-weight: 600;
    padding: 0.28rem 0.45rem;
    border-radius: 999px;
    border: 1px solid;
}

.fx-morph-alert b {
    margin-left: 0.2rem;
    font-weight: 800;
}

.fx-morph-alert.is-danger {
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.25);
    color: #b91c1c;
}

.fx-morph-alert.is-info {
    background: rgba(5, 147, 255, 0.08);
    border-color: rgba(5, 147, 255, 0.25);
    color: var(--fx-blue-dark);
}

.fx-morph-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.35rem;
}

.fx-morph-card {
    position: relative;
    background: #fff;
    border: 1px solid var(--fx-line);
    border-radius: 8px;
    padding: 0.45rem 0.5rem 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
    overflow: hidden;
    opacity: 0;
    transform: translateY(14px) scale(0.96);
    transition:
        opacity 500ms var(--fx-ease) var(--cd, 0ms),
        transform 500ms cubic-bezier(0.34, 1.3, 0.64, 1) var(--cd, 0ms);
}

.fx-morph[data-stage="dashboard"] .fx-morph-card,
.fx-morph[data-stage="full"] .fx-morph-card {
    opacity: 1;
    transform: none;
}

.fx-morph-card-h {
    font-size: 0.5rem;
    font-weight: 600;
    color: var(--fx-mute);
    display: flex;
    align-items: center;
    gap: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.fx-morph-card-h i {
    color: var(--fx-mute-2);
    font-size: 0.55rem;
}

.fx-morph-card-icon {
    position: absolute;
    top: 0.4rem;
    right: 0.45rem;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.62rem;
    color: #fff;
}

.fx-morph-card-icon.is-amber  { background: linear-gradient(135deg, #f59e0b, #d97706); }
.fx-morph-card-icon.is-green  { background: linear-gradient(135deg, #10b981, #059669); }
.fx-morph-card-icon.is-blue   { background: linear-gradient(135deg, #0593ff, #036cc4); }
.fx-morph-card-icon.is-red    { background: linear-gradient(135deg, #ef4444, #dc2626); }
.fx-morph-card-icon.is-violet { background: linear-gradient(135deg, #a855f7, #7c3aed); }
.fx-morph-card-icon.is-teal   { background: linear-gradient(135deg, #14b8a6, #0d9488); }

.fx-morph-card-num {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-weight: 800;
    font-size: 0.95rem;
    color: var(--fx-ink);
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.fx-morph-card-num.is-positive {
    color: var(--fx-success);
}

.fx-morph-card-cur {
    font-size: 0.5rem;
    color: var(--fx-mute);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.fx-morph-card-foot {
    margin-top: 0.18rem;
    padding-top: 0.22rem;
    border-top: 1px solid var(--fx-bg-soft-2);
    font-size: 0.52rem;
    font-weight: 600;
    color: var(--fx-mute);
    display: flex;
    align-items: center;
    gap: 0.22rem;
}

.fx-morph-card-foot.is-down { color: var(--fx-success); }
.fx-morph-card-foot.is-up   { color: var(--fx-success); }
.fx-morph-card-foot.is-warn { color: var(--fx-danger); }

.fx-morph-charts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.35rem;
    flex: 1;
    min-height: 0;
}

.fx-morph-chart {
    background: #fff;
    border: 1px solid var(--fx-line);
    border-radius: 8px;
    padding: 0.4rem 0.45rem 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    min-height: 0;
}

.fx-morph-chart-h {
    font-size: 0.55rem;
    font-weight: 700;
    color: var(--fx-ink);
    display: flex;
    align-items: center;
    gap: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.fx-morph-chart-h i {
    color: var(--fx-blue);
}

/* Plot area: Y-axis labels + chart canvas */
.fx-morph-chart-plot {
    flex: 1;
    display: grid;
    grid-template-columns: 22px 1fr;
    column-gap: 4px;
    min-height: 0;
    align-items: stretch;
    border-left: 1px solid var(--fx-line);
    border-bottom: 1px solid var(--fx-line);
    padding: 0 0 1px 0;
}

.fx-morph-chart-plot .fx-morph-chart-svg,
.fx-morph-chart-plot .fx-morph-bars {
    grid-column: 2;
    grid-row: 1;
}

.fx-morph-chart-y {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
    padding: 0 2px 0 0;
    font-size: 0.45rem;
    font-weight: 700;
    color: var(--fx-mute);
    line-height: 1;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
}

.fx-morph-chart-x {
    margin-left: 26px;
    display: flex;
    justify-content: space-between;
    font-size: 0.45rem;
    font-weight: 700;
    color: var(--fx-mute);
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    margin-top: 2px;
}

.fx-morph-chart-svg {
    width: 100%;
    flex: 1;
    min-height: 0;
    display: block;
}

.fx-morph-grid line {
    stroke: var(--fx-line);
    stroke-width: 0.5;
    stroke-dasharray: 2 3;
}

.fx-morph-line-area {
    fill: rgba(5, 147, 255, 0.12);
    stroke: none;
    opacity: 0;
    transition: opacity 800ms var(--fx-ease) 600ms;
}

.fx-morph-line {
    fill: none;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 700;
    stroke-dashoffset: 700;
    transition: stroke-dashoffset 1400ms cubic-bezier(0.65, 0, 0.35, 1);
}

.fx-morph-line-income  { stroke: #10b981; transition-delay: 200ms; }
.fx-morph-line-expense { stroke: #f59e0b; stroke-dasharray: 4 3; transition-delay: 350ms; }
.fx-morph-line-net     { stroke: var(--fx-blue); transition-delay: 500ms; }

.fx-morph[data-stage="dashboard"] .fx-morph-line,
.fx-morph[data-stage="full"] .fx-morph-line {
    stroke-dashoffset: 0;
}

.fx-morph[data-stage="dashboard"] .fx-morph-line-area,
.fx-morph[data-stage="full"] .fx-morph-line-area {
    opacity: 1;
}

.fx-morph-chart-legend {
    display: flex;
    gap: 0.5rem;
    font-size: 0.5rem;
    color: var(--fx-mute);
    font-weight: 600;
}

.fx-morph-chart-legend span {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
}

.fx-morph-chart-legend .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
}

.fx-morph-chart-legend .dot-i { background: #10b981; }
.fx-morph-chart-legend .dot-e { background: #f59e0b; }
.fx-morph-chart-legend .dot-n { background: var(--fx-blue); }

/* Bar chart */
.fx-morph-bars {
    flex: 1;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 3px;
    min-height: 0;
    padding: 0 1px;
}

.fx-morph-bar {
    flex: 1;
    height: 0;
    border-radius: 3px 3px 0 0;
    background: linear-gradient(180deg, var(--c, var(--fx-blue)), color-mix(in srgb, var(--c, var(--fx-blue)) 60%, #ffffff));
    transition: height 900ms cubic-bezier(0.34, 1.2, 0.64, 1) var(--bd, 0ms);
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}

.fx-morph[data-stage="dashboard"] .fx-morph-bar,
.fx-morph[data-stage="full"] .fx-morph-bar {
    height: var(--h);
}

.fx-morph-bars-labels {
    margin-left: 26px;
    display: flex;
    justify-content: space-between;
    gap: 3px;
    margin-top: 2px;
    font-size: 0.45rem;
    color: var(--fx-mute);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.fx-morph-bars-labels span {
    flex: 1;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ===== Reduced motion fallback ===== */
@media (prefers-reduced-motion: reduce) {
    .fx-morph-glow,
    .fx-morph-scanline,
    .fx-morph-particle {
        animation: none !important;
    }
    .fx-morph-invoice,
    .fx-morph-dash {
        transition: none !important;
    }
}

/* ==========================================================================
   TRUST MINI-STRIP
   ========================================================================== */
.fx-trust-mini {
    background: var(--fx-bg-soft);
    border-bottom: 1px solid var(--fx-line);
    padding: 1rem 0;
}

.fx-trust-mini-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    color: var(--fx-mute);
    font-size: 0.85rem;
    font-weight: 500;
}

.fx-trust-mini-row span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.fx-trust-mini-row i {
    color: var(--fx-blue);
}

/* ==========================================================================
   SHOWCASE - Shared layout (sticky scrollytelling)
   ========================================================================== */
.fx-showcase {
    padding: 110px 0;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.fx-showcase > .container {
    position: relative;
    z-index: 2;
}

/* Default LIGHT theme – subtle blue+purple radial glow on white (fallback) */
.fx-showcase::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 800px 600px at 5% 100%, rgba(5, 147, 255, 0.14), transparent 55%),
        radial-gradient(ellipse 700px 600px at 100% 0%, rgba(37, 4, 72, 0.10), transparent 55%);
    pointer-events: none;
    z-index: 0;
}

.fx-showcase::after {
    content: '';
    position: absolute;
    top: -120px;
    right: -120px;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.10), transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* ==========================================================================
   FLOATING BRAND ORBS — animated decorative blobs shared by light themes
   ========================================================================== */
@keyframes fx-bg-float {
    from { transform: translate(0, 0); }
    to { transform: translate(-30px, 40px); }
}

@keyframes fx-bg-float-slow {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(20px, -20px) scale(1.05); }
}

@keyframes fx-bg-drift {
    0% { transform: translate(0, 0); }
    33% { transform: translate(40px, -30px); }
    66% { transform: translate(-30px, 40px); }
    100% { transform: translate(0, 0); }
}

@keyframes fx-bg-shimmer {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}


/* ==========================================================================
   SECTION THEME: BLUE (light, electric blue dominant)
   ========================================================================== */
.fx-showcase-blue {
    background:
        linear-gradient(135deg, #ecf6ff 0%, #ffffff 50%, #f3f8ff 100%);
}

.fx-showcase-blue::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 900px 700px at -5% 60%, rgba(5, 147, 255, 0.28), transparent 55%),
        radial-gradient(ellipse 700px 600px at 105% 100%, rgba(37, 4, 72, 0.13), transparent 55%);
    pointer-events: none;
    z-index: 0;
}

.fx-showcase-blue::after {
    content: '';
    position: absolute;
    top: 15%;
    right: -120px;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background:
        radial-gradient(circle, rgba(5, 147, 255, 0.30), transparent 65%);
    filter: blur(50px);
    pointer-events: none;
    z-index: 0;
    animation: fx-bg-float-slow 18s ease-in-out infinite;
}

/* ==========================================================================
   SECTION THEME: PURPLE (light, deep purple dominant)
   ========================================================================== */
.fx-showcase-purple {
    background: transparent;
}

.fx-showcase-purple::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 900px 700px at 110% 0%, rgba(37, 4, 72, 0.26), transparent 55%),
        radial-gradient(ellipse 700px 600px at -10% 100%, rgba(139, 92, 246, 0.20), transparent 55%);
    pointer-events: none;
    z-index: 0;
}

.fx-showcase-purple::after {
    content: '';
    position: absolute;
    top: 40%;
    left: -130px;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background:
        radial-gradient(circle, rgba(139, 92, 246, 0.30), transparent 65%);
    filter: blur(50px);
    pointer-events: none;
    z-index: 0;
    animation: fx-bg-drift 24s ease-in-out infinite;
}

/* ==========================================================================
   SECTION THEME: MESH (multicolor mesh gradient on white)
   ========================================================================== */
.fx-showcase-mesh {
    background:
        radial-gradient(ellipse 55% 60% at 10% 18%, #dbe9ff 0%, transparent 55%),
        radial-gradient(ellipse 50% 60% at 90% 22%, #e9e1ff 0%, transparent 55%),
        radial-gradient(ellipse 70% 70% at 50% 100%, #eef2ff 0%, transparent 55%),
        #ffffff;
}

.fx-showcase-mesh::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 800px 600px at 25% 50%, rgba(5, 147, 255, 0.18), transparent 60%),
        radial-gradient(ellipse 700px 600px at 75% 50%, rgba(99, 102, 241, 0.15), transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.fx-showcase-mesh::after {
    content: '';
    position: absolute;
    bottom: -120px;
    right: 8%;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background:
        radial-gradient(circle, rgba(139, 92, 246, 0.26), transparent 65%);
    filter: blur(48px);
    pointer-events: none;
    z-index: 0;
    animation: fx-bg-float-slow 22s ease-in-out infinite;
}

/* ==========================================================================
   SECTION THEME: SOFT (blue-purple tinted) – formerly fx-showcase-alt
   ========================================================================== */
.fx-showcase-alt,
.fx-showcase-soft {
    background:
        linear-gradient(135deg, #eef1ff 0%, #f4ecff 55%, #fbeffa 100%);
}

.fx-showcase-alt::before,
.fx-showcase-soft::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 900px 700px at 0% 0%, rgba(5, 147, 255, 0.20), transparent 55%),
        radial-gradient(ellipse 800px 700px at 100% 100%, rgba(37, 4, 72, 0.20), transparent 55%);
    pointer-events: none;
    z-index: 0;
}

.fx-showcase-alt::after,
.fx-showcase-soft::after {
    content: '';
    position: absolute;
    top: 8%;
    right: -100px;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.30), transparent 65%);
    filter: blur(48px);
    pointer-events: none;
    z-index: 0;
    animation: fx-bg-drift 26s ease-in-out infinite;
}

/* ==========================================================================
   SECTION THEME: FROST – icy white-blue with crystalline glow
   ========================================================================== */
.fx-showcase-frost {
    background: transparent;
}

/* ==========================================================================
   SECTION PAIR WRAPPER – shared continuous gradient for purple + frost
   ========================================================================== */
.fx-showcase-pair {
    position: relative;
    isolation: isolate;
    background:
        linear-gradient(180deg,
            #f6efff 0%,
            #f4f1ff 35%,
            #eef2ff 65%,
            #f0f1ff 100%);
}

/* Continuous decorative glow that spans BOTH paired sections, with all
   accent points kept FAR from the shared seam (top/bottom corners only). */
.fx-showcase-pair::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 900px 700px at 110% 0%, rgba(37, 4, 72, 0.16), transparent 55%),
        radial-gradient(ellipse 850px 700px at -10% 100%, rgba(5, 147, 255, 0.14), transparent 55%);
    pointer-events: none;
    z-index: 0;
}

.fx-showcase-pair > .fx-showcase {
    background: transparent;
}

/* When sections are paired, suppress the radial glows that hug the shared
   boundary so no horizontal seam appears between them. */
.fx-showcase-pair > .fx-showcase-purple::before {
    background:
        radial-gradient(ellipse 900px 700px at 110% 0%, rgba(37, 4, 72, 0.26), transparent 55%);
}

.fx-showcase-pair > .fx-showcase-purple::after {
    top: 18%;
}

.fx-showcase-pair > .fx-showcase-frost::before {
    background:
        radial-gradient(ellipse 850px 700px at 10% 90%, rgba(99, 102, 241, 0.18), transparent 55%);
}

.fx-showcase-pair > .fx-showcase-frost::after {
    top: 45%;
}

/* When sections are paired, suppress glows that hug the shared seam.
   For Showcase 7 (soft) + Showcase 8 (aurora) pair. */
.fx-showcase-pair > .fx-showcase-soft::before {
    background:
        radial-gradient(ellipse 900px 700px at 0% 0%, rgba(5, 147, 255, 0.20), transparent 55%);
}

.fx-showcase-pair > .fx-showcase-soft::after {
    top: 12%;
}

.fx-showcase-pair > .fx-showcase-aurora::before {
    background:
        radial-gradient(ellipse 950px 750px at 100% 100%, rgba(37, 4, 72, 0.18), transparent 55%);
}

.fx-showcase-pair > .fx-showcase-aurora::after {
    top: 55%;
}

/* Showcase 1 (blue) + Showcase 2 (aurora) – seamless light gradient */
.fx-showcase-pair-blue-aurora {
    background:
        linear-gradient(180deg,
            #ecf6ff 0%,
            #f3f8ff 20%,
            #f7f4ff 46%,
            #f1ecff 72%,
            #eaf3ff 100%);
}

.fx-showcase-pair-blue-aurora::before {
    background:
        radial-gradient(ellipse 920px 720px at -8% 8%, rgba(5, 147, 255, 0.22), transparent 58%),
        radial-gradient(ellipse 900px 700px at 108% 92%, rgba(139, 92, 246, 0.15), transparent 58%);
}

.fx-showcase-pair-blue-aurora > .fx-showcase-blue::before {
    background:
        radial-gradient(ellipse 900px 700px at -5% 12%, rgba(5, 147, 255, 0.20), transparent 55%);
}

.fx-showcase-pair-blue-aurora > .fx-showcase-blue::after {
    top: 6%;
    right: -120px;
}

.fx-showcase-pair-blue-aurora > .fx-showcase-aurora::before {
    background:
        radial-gradient(ellipse 950px 750px at 102% 88%, rgba(37, 4, 72, 0.14), transparent 55%),
        radial-gradient(ellipse 820px 680px at 8% 92%, rgba(5, 147, 255, 0.10), transparent 55%);
}

.fx-showcase-pair-blue-aurora > .fx-showcase-aurora::after {
    top: auto;
    bottom: 8%;
    right: -150px;
}

/* ==========================================================================
   BRIDGE - Visual breaker between Budgets (deep) and Subscriptions (purple)
   ========================================================================== */
.fx-bridge {
    position: relative;
    z-index: 1;
    margin-top: 70px;
    padding-top: 50px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
}

.fx-bridge-eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: rgba(255, 255, 255, 0.78);
    margin-bottom: 0.9rem;
}

.fx-bridge-headline {
    font-size: clamp(1.5rem, 2.6vw, 2.1rem);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.015em;
    color: #fff;
    margin: 0 auto 2.4rem;
    max-width: 760px;
}

.fx-bridge-headline-accent {
    background: linear-gradient(90deg, #ffd166 0%, #ffb347 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.fx-bridge-steps {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 1rem;
    flex-wrap: nowrap;
}

.fx-bridge-card {
    flex: 1 1 0;
    max-width: 260px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 16px;
    padding: 1.4rem 1.2rem 1.3rem;
    box-shadow: 0 18px 40px rgba(10, 1, 25, 0.35);
    color: var(--fx-ink);
    text-align: center;
    transition: transform 0.3s var(--fx-ease), box-shadow 0.3s var(--fx-ease);
}

.fx-bridge-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 48px rgba(10, 1, 25, 0.45);
}

.fx-bridge-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 0.85rem;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
}

.fx-bridge-icon-blue {
    background: linear-gradient(135deg, #0593ff 0%, #2563eb 100%);
}

.fx-bridge-icon-purple {
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
}

.fx-bridge-icon-green {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

/* ==========================================================================
   SHOWCASE 5 & 6 - Balanced column widths + wider text
   ========================================================================== */
#showcase-5 .fx-showcase-text,
#showcase-6 .fx-showcase-text,
#showcase-5 .fx-showcase-text-inner,
#showcase-6 .fx-showcase-text-inner {
    max-width: 540px;
}

.fx-bridge-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--fx-ink);
    margin-bottom: 0.35rem;
    letter-spacing: -0.01em;
}

.fx-bridge-card-text {
    font-size: 0.92rem;
    color: var(--fx-mute);
    line-height: 1.5;
    margin: 0;
}

.fx-bridge-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.2rem;
    flex: 0 0 auto;
    align-self: center;
    animation: fx-bridge-arrow-pulse 2.4s ease-in-out infinite;
}

@keyframes fx-bridge-arrow-pulse {
    0%, 100% { transform: translateX(0); opacity: 0.65; }
    50%       { transform: translateX(6px); opacity: 1; }
}

@media (max-width: 767px) {
    .fx-bridge {
        padding: 50px 0 70px;
    }

    .fx-bridge-steps {
        flex-wrap: wrap;
        gap: 0.85rem;
    }

    .fx-bridge-card {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .fx-bridge-arrow {
        transform: rotate(90deg);
        flex: 1 1 100%;
    }

    @keyframes fx-bridge-arrow-pulse {
        0%, 100% { transform: rotate(90deg) translateX(0); opacity: 0.65; }
        50%       { transform: rotate(90deg) translateX(6px); opacity: 1; }
    }
}

.fx-showcase-frost::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 950px 700px at 80% 10%, rgba(5, 147, 255, 0.18), transparent 55%),
        radial-gradient(ellipse 850px 700px at 10% 90%, rgba(99, 102, 241, 0.18), transparent 55%);
    pointer-events: none;
    z-index: 0;
}

.fx-showcase-frost::after {
    content: '';
    position: absolute;
    top: 12%;
    left: -130px;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background:
        radial-gradient(circle, rgba(196, 181, 253, 0.32), transparent 65%);
    filter: blur(50px);
    pointer-events: none;
    z-index: 0;
    animation: fx-bg-float-slow 22s ease-in-out infinite;
}

/* ==========================================================================
   SECTION THEME: AURORA – elegant lavender drift with deep accent
   ========================================================================== */
.fx-showcase-aurora {
    background:
        linear-gradient(135deg, #faf5ff 0%, #f1ecff 45%, #eaf3ff 100%);
}

.fx-showcase-aurora::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 950px 750px at 100% 100%, rgba(37, 4, 72, 0.18), transparent 55%),
        radial-gradient(ellipse 850px 700px at 0% 0%, rgba(5, 147, 255, 0.16), transparent 55%);
    pointer-events: none;
    z-index: 0;
}

.fx-showcase-aurora::after {
    content: '';
    position: absolute;
    top: 18%;
    right: -150px;
    width: 460px;
    height: 460px;
    border-radius: 50%;
    background:
        radial-gradient(circle, rgba(139, 92, 246, 0.32), transparent 65%);
    filter: blur(55px);
    pointer-events: none;
    z-index: 0;
    animation: fx-bg-drift 28s ease-in-out infinite;
}

/* ==========================================================================
   SECTION THEME: DARK BRAND – full brand gradient with white text
   ========================================================================== */
.fx-showcase-dark {
    background:
        linear-gradient(135deg, #0593ff 0%, #036cc4 30%, #250448 100%);
    color: white;
}

.fx-showcase-dark::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.05) 1px, transparent 1.5px),
        radial-gradient(ellipse 1000px 700px at 15% 20%, rgba(255, 255, 255, 0.16), transparent 50%),
        radial-gradient(ellipse 800px 600px at 90% 85%, rgba(139, 92, 246, 0.32), transparent 55%);
    background-size: 32px 32px, auto, auto;
    background-position: 0 0, 0 0, 0 0;
    pointer-events: none;
    z-index: 0;
}

.fx-showcase-dark::after {
    content: '';
    position: absolute;
    top: -180px;
    right: -100px;
    width: 480px;
    height: 480px;
    border-radius: 50%;
    background:
        radial-gradient(circle, rgba(255, 255, 255, 0.18), transparent 70%);
    filter: blur(40px);
    pointer-events: none;
    z-index: 0;
    animation: fx-bg-float 16s ease-in-out infinite alternate;
}


/* ==========================================================================
   SECTION THEME: DEEP BRAND – inverse gradient (purple-dominant)
   ========================================================================== */
.fx-showcase-deep {
    background:
        linear-gradient(135deg, #250448 0%, #1a0334 35%, #0a0119 65%, #0e3565 100%);
    color: white;
}

.fx-showcase-deep::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.05) 1px, transparent 1.5px),
        radial-gradient(ellipse 1000px 700px at 80% 30%, rgba(139, 92, 246, 0.30), transparent 55%),
        radial-gradient(ellipse 800px 600px at 20% 80%, rgba(5, 147, 255, 0.38), transparent 55%);
    background-size: 36px 36px, auto, auto;
    background-position: 0 0, 0 0, 0 0;
    pointer-events: none;
    z-index: 0;
}

.fx-showcase-deep::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 720px;
    height: 720px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background:
        conic-gradient(from 0deg,
            rgba(5, 147, 255, 0.18),
            rgba(139, 92, 246, 0.22),
            rgba(37, 4, 72, 0.28),
            rgba(99, 102, 241, 0.18),
            rgba(5, 147, 255, 0.18));
    filter: blur(70px);
    pointer-events: none;
    z-index: 0;
    animation: fx-glow-rotate 28s linear infinite;
}

/* ==========================================================================
   DARK + DEEP shared text & component overrides — refined cool palette
   ========================================================================== */
.fx-showcase-dark .fx-showcase-label,
.fx-showcase-deep .fx-showcase-label {
    color: #c4b5fd;
    letter-spacing: 0.18em;
    text-shadow: 0 2px 12px rgba(196, 181, 253, 0.35);
}

.fx-showcase-dark .fx-showcase-title,
.fx-showcase-deep .fx-showcase-title {
    color: white;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.35);
}

.fx-showcase-dark .fx-showcase-desc,
.fx-showcase-deep .fx-showcase-desc {
    color: rgba(255, 255, 255, 0.84);
}

.fx-showcase-dark .fx-showcase-bullets li,
.fx-showcase-deep .fx-showcase-bullets li {
    color: rgba(255, 255, 255, 0.94);
    border-bottom-color: rgba(255, 255, 255, 0.14);
}

.fx-showcase-dark .fx-showcase-bullets i,
.fx-showcase-deep .fx-showcase-bullets i {
    color: #7dd3fc;
}

.fx-showcase-dark .fx-showcase-cta,
.fx-showcase-deep .fx-showcase-cta {
    background: rgba(255, 255, 255, 0.10);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.32);
    backdrop-filter: blur(8px);
}

.fx-showcase-dark .fx-showcase-cta:hover,
.fx-showcase-deep .fx-showcase-cta:hover {
    background: #ffffff;
    color: var(--fx-purple);
    border-color: #ffffff;
    box-shadow: 0 14px 36px rgba(255, 255, 255, 0.22);
}

.fx-showcase-dark .fx-mock-window,
.fx-showcase-deep .fx-mock-window {
    box-shadow:
        0 30px 90px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(255, 255, 255, 0.10);
    position: relative;
    z-index: 1;
}

.fx-showcase-dark .fx-showcase-mock,
.fx-showcase-deep .fx-showcase-mock {
    position: relative;
}

.fx-showcase-dark .fx-showcase-mock::before {
    content: '';
    position: absolute;
    inset: -16px;
    border-radius: calc(var(--fx-radius) + 16px);
    background:
        radial-gradient(circle at 22% 22%, rgba(5, 147, 255, 0.55), transparent 60%),
        radial-gradient(circle at 78% 78%, rgba(139, 92, 246, 0.50), transparent 60%);
    z-index: 0;
    opacity: 0.6;
    filter: blur(30px);
    pointer-events: none;
}

.fx-showcase-deep .fx-showcase-mock::before {
    content: '';
    position: absolute;
    inset: -20px;
    border-radius: calc(var(--fx-radius) + 20px);
    background:
        radial-gradient(circle at 25% 25%, rgba(5, 147, 255, 0.55), transparent 60%),
        radial-gradient(circle at 75% 75%, rgba(196, 181, 253, 0.40), transparent 60%);
    z-index: 0;
    opacity: 0.65;
    filter: blur(34px);
    pointer-events: none;
}

.fx-showcase-grid {
    display: grid;
    /* Text column sizes to content; mock fills the rest — keeps gap even in both layouts */
    grid-template-columns: auto 1fr;
    gap: 60px;
    align-items: start;
    min-width: 0;
}

.fx-showcase-grid-reverse {
    grid-template-columns: 1fr auto;
}

.fx-showcase-grid > * {
    min-width: 0;
}

.fx-showcase-mock {
    min-width: 0;
    max-width: 100%;
}

.fx-showcase-grid-reverse .fx-showcase-text {
    order: 2;
}

.fx-showcase-grid-reverse .fx-showcase-mock {
    order: 1;
}

.fx-showcase-text {
    position: sticky;
    top: 110px;
    align-self: start;
    max-width: 460px;
}

.fx-showcase-text-inner {
    max-width: none;
}

.fx-showcase-label {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--fx-blue);
    margin-bottom: 1rem;
}

.fx-showcase-title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -0.018em;
    color: var(--fx-ink);
    margin: 0 0 1.2rem;
}

.fx-showcase-desc {
    font-size: 1.05rem;
    color: var(--fx-mute);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.fx-showcase-bullets {
    list-style: none;
    padding: 0;
    margin: 0 0 1.75rem;
}

.fx-showcase-bullets li {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.55rem 0;
    color: var(--fx-ink-2);
    font-size: 0.97rem;
    border-bottom: 1px dashed var(--fx-line);
}

.fx-showcase-bullets li:last-child { border-bottom: none; }

.fx-showcase-bullets i {
    color: var(--fx-success);
    margin-top: 4px;
    flex-shrink: 0;
}

.fx-showcase-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--fx-blue);
    font-weight: 700;
    text-decoration: none;
    padding: 0.65rem 1rem;
    border-radius: 8px;
    background: rgba(5, 147, 255, 0.08);
    transition: background 0.2s ease, transform 0.2s ease;
}

.fx-showcase-cta:hover {
    background: rgba(5, 147, 255, 0.14);
    color: var(--fx-blue);
    transform: translateX(3px);
}

/* ----- MOCK WINDOW ----- */
.fx-mock-window {
    background: white;
    border-radius: var(--fx-radius);
    box-shadow: var(--fx-shadow-lg);
    border: 1px solid var(--fx-line);
    overflow: hidden;
    position: relative;
    transform: translateY(0);
    transition: transform 0.4s var(--fx-ease);
    max-width: 100%;
}

.fx-mock-window-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(180deg, #f8fafc, #eef2f7);
    border-bottom: 1px solid var(--fx-line);
    padding: 0.7rem 1rem;
    font-size: 0.85rem;
    color: var(--fx-mute);
}

.fx-mock-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--fx-line-2);
}

.fx-mock-dot:nth-of-type(1) { background: #ff5f57; }
.fx-mock-dot:nth-of-type(2) { background: #febc2e; }
.fx-mock-dot:nth-of-type(3) { background: #28c840; }

.fx-mock-window-title {
    margin-left: 0.6rem;
    font-weight: 600;
    color: var(--fx-ink);
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fx-mock-window-action {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: white;
    border: 1px solid var(--fx-line);
    padding: 0.3rem 0.7rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--fx-blue);
    cursor: default;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.fx-mock-window-action.is-pulse {
    animation: fx-glow 1.4s ease-in-out infinite;
}

@keyframes fx-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(5, 147, 255, 0); }
    50% { box-shadow: 0 0 0 6px rgba(5, 147, 255, 0.18); }
}

.fx-mock-window-body {
    position: relative;
    padding: 1.4rem;
    min-height: 620px;
    overflow: hidden;
}

/* ----- SIM CURSOR ----- */
.fx-sim-cursor {
    position: absolute;
    top: 0;
    left: 0;
    transform: translate(0, 0);
    pointer-events: none;
    z-index: 30;
    color: var(--fx-ink);
    font-size: 1.4rem;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    opacity: 0;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.3));
}

.fx-sim-cursor.is-visible {
    opacity: 1;
}

.fx-sim-cursor.is-clicked::after {
    content: '';
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    border: 2px solid var(--fx-blue);
    animation: fx-cursor-click 0.6s ease-out;
}

@keyframes fx-cursor-click {
    from { transform: scale(0.4); opacity: 1; }
    to { transform: scale(1.6); opacity: 0; }
}

/* ==========================================================================
   SHOWCASE 1 - Invoice Processing
   ========================================================================== */
/* Shuffle button below the invoice stack */
.fx-shuffle-wrap {
    display: flex;
    justify-content: center;
    padding: 1rem 0 0.25rem;
}

.fx-shuffle-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: white;
    border: 1.5px solid var(--fx-blue);
    color: var(--fx-blue);
    border-radius: 999px;
    padding: 0.45rem 1.2rem;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.fx-shuffle-btn:hover {
    background: var(--fx-blue);
    color: white;
    box-shadow: 0 4px 14px rgba(5,147,255,0.25);
}

.fx-shuffle-btn.is-spinning {
    opacity: 0.5;
    pointer-events: none;
}

.fx-shuffle-btn.is-spinning i {
    animation: fx-spin 0.7s linear infinite;
}

/* Stack layout: dropzone on top, summary widget below */
.fx-invoice-stack {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.fx-invoice-stack .fx-dropzone {
    min-height: 85px;
    padding: 0.75rem 1.2rem;
}

[data-mock="invoice"] .fx-mock-window-body {
    min-height: 500px;
    padding: 1rem;
}

[data-mock="bank"] .fx-mock-window-body {
    min-height: auto;
}

[data-mock="projects"] .fx-mock-window-body {
    min-height: auto;
}

/* Summary Widget - always visible, only inner content animates */
.fx-invoice-stack .summary-widget {
    opacity: 1;
}

/* Reserve space so layout does not shift while data types in */
.fx-invoice-stack [data-summary-supplier],
.fx-invoice-stack [data-summary-customer] {
    min-height: 1.4em;
}

.fx-invoice-stack [data-summary-supplier-tax],
.fx-invoice-stack [data-summary-customer-tax] {
    min-height: 1.2em;
}

.fx-invoice-stack [data-summary-amount] {
    min-height: 1.4em;
}

.fx-invoice-stack [data-summary-badge] {
    opacity: 0;
    transform: scale(0.75);
    transition: opacity 0.3s ease, transform 0.3s var(--fx-ease);
    display: inline-block;
}

.fx-invoice-stack [data-summary-badge].is-in {
    opacity: 1;
    transform: scale(1);
}

.fx-invoice-stack [data-cat-badge] {
    opacity: 0;
    transform: translateY(5px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.fx-invoice-stack [data-cat-badge].is-in {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   SHOWCASE 1 - Invoice Items Mock Widget
   ========================================================================== */
.fx-items-mock {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.06);
}

.fx-items-mock-header {
    display: flex;
    align-items: center;
    padding: 0.65rem 1rem;
    background: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--fx-ink);
}

.fx-items-mock-count {
    color: var(--fx-mute);
    font-weight: 400;
}

.fx-items-mock-table-wrap {
    overflow-x: auto;
}

.fx-items-mock-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.78rem;
}

.fx-items-mock-table thead tr {
    background: var(--fx-bg-soft);
    border-bottom: 1px solid #dee2e6;
}

.fx-items-mock-table thead th {
    padding: 0.5rem 0.75rem;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--fx-mute);
    white-space: nowrap;
}

.fx-items-mock-table tbody tr {
    border-bottom: 1px solid #f1f5f9;
    opacity: 0;
    transform: translateX(-16px);
    transition: opacity 0.35s ease, transform 0.35s var(--fx-ease), background 0.15s ease;
}

.fx-items-mock-table tbody tr.is-in {
    opacity: 1;
    transform: translateX(0);
}

.fx-items-mock-table tbody tr:hover {
    background: var(--fx-bg-soft);
}

.fx-items-mock-table tbody td {
    padding: 0.55rem 0.75rem;
    vertical-align: middle;
    color: var(--fx-ink);
}

.fx-items-col-desc {
    min-width: 140px;
}

.fx-items-col-num {
    text-align: right;
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    white-space: nowrap;
    color: var(--fx-ink) !important;
}

.fx-items-col-cat {
    min-width: 130px;
}

.fx-items-col-tags {
    min-width: 80px;
}

.fx-items-badge {
    font-size: 0.65rem !important;
    padding: 0.18rem 0.45rem !important;
    color: white !important;
    margin-right: 0.2rem;
    margin-bottom: 0.15rem;
    display: inline-block;
}

.fx-cat-tag-sm {
    font-size: 0.63rem;
    padding: 0.12rem 0.45rem;
}

/* Tags inside item rows are visible as soon as the row animates in */
.fx-items-mock-table .fx-cat-tag {
    opacity: 1;
    transform: none;
    transition: none;
}

.fx-items-mock-footer {
    padding: 0.5rem 0.75rem;
    border-top: 1px solid #f1f5f9;
    font-size: 0.72rem;
    color: var(--fx-mute);
    background: var(--fx-bg-soft);
}

/* Legacy: keep old grid class but unused */
.fx-invoice-grid {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 1.1rem;
    align-items: stretch;
}

.fx-dropzone {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 2px dashed var(--fx-line-2);
    border-radius: var(--fx-radius);
    background: var(--fx-bg-soft);
    padding: 1.4rem 1.2rem;
    text-align: center;
    color: var(--fx-mute);
    transition: border-color 0.3s ease, background 0.3s ease;
    overflow: hidden;
}

.fx-dropzone.is-active {
    border-color: var(--fx-blue);
    background: rgba(5, 147, 255, 0.05);
}

.fx-dropzone.is-done {
    border-color: var(--fx-success);
    background: rgba(16, 185, 129, 0.05);
}

.fx-dropzone-inner {
    transition: opacity 0.3s ease;
}

.fx-dropzone-inner i { color: var(--fx-blue); margin-bottom: 0.7rem; }
.fx-dropzone-inner h6 { color: var(--fx-ink); font-weight: 600; }

.fx-pdf-thumb {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.4);
    background: white;
    border: 1px solid var(--fx-line);
    border-radius: 10px;
    padding: 0.55rem 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--fx-ink);
    box-shadow: var(--fx-shadow);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.5s var(--fx-ease), opacity 0.3s ease;
}

.fx-pdf-thumb i { color: #dc2626; font-size: 1.2rem; }
.fx-pdf-thumb.is-visible {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}
.fx-pdf-thumb.is-dropped {
    transform: translate(-50%, 0) scale(0.85);
    opacity: 0.6;
}

.fx-processing-bar {
    margin-top: 1.2rem;
    height: 6px;
    background: var(--fx-line);
    border-radius: 999px;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.fx-processing-bar.is-visible { opacity: 1; }

.fx-processing-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--fx-blue), #6366f1, var(--fx-success));
    background-size: 200% 100%;
    border-radius: 999px;
    transition: width 0.4s ease;
    animation: fx-bar-shimmer 1.6s linear infinite;
}

@keyframes fx-bar-shimmer {
    from { background-position: 0% 0; }
    to { background-position: -200% 0; }
}

.fx-processing-steps {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.fx-processing-steps.is-visible { opacity: 1; }

.fx-step {
    flex: 1;
    text-align: center;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--fx-mute);
    padding: 0.45rem 0.3rem;
    border-radius: 8px;
    background: white;
    border: 1px solid var(--fx-line);
    transition: all 0.3s ease;
}

.fx-step i { display: block; margin-bottom: 0.25rem; font-size: 0.95rem; }

.fx-step.is-active {
    color: var(--fx-blue);
    border-color: var(--fx-blue);
    background: rgba(5, 147, 255, 0.07);
}

.fx-step.is-done {
    color: var(--fx-success);
    border-color: var(--fx-success);
    background: rgba(16, 185, 129, 0.08);
}

.fx-extracted {
    background: white;
    border: 1px solid var(--fx-line);
    border-radius: var(--fx-radius);
    padding: 1rem 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.fx-extracted-header {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--fx-blue);
    margin-bottom: 0.3rem;
}

.fx-extracted-fields {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.fx-field {
    display: grid;
    grid-template-columns: 90px 1fr;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.65rem;
    background: var(--fx-bg-soft);
    border-radius: 8px;
    border-left: 3px solid transparent;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.fx-field.is-typed {
    border-left-color: var(--fx-success);
    background: rgba(16, 185, 129, 0.06);
}

.fx-field label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--fx-mute-2);
    font-weight: 700;
    margin: 0;
}

.fx-field-value {
    font-size: 0.88rem;
    color: var(--fx-ink);
    font-weight: 600;
    font-family: 'Consolas', 'Monaco', monospace;
    min-height: 1em;
    word-break: break-all;
}

.fx-recent-list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-top: 0.5rem;
}

.fx-recent-row {
    display: grid;
    grid-template-columns: auto 1fr auto auto auto;
    gap: 0.5rem;
    align-items: center;
    background: var(--fx-bg-soft);
    border-radius: 10px;
    padding: 0.6rem 0.8rem;
    transform: translateX(-30px);
    opacity: 0;
    transition: transform 0.45s var(--fx-ease), opacity 0.45s ease;
}

.fx-recent-row.is-in {
    transform: translateX(0);
    opacity: 1;
}

.fx-recent-row i { color: var(--fx-blue); }
.fx-recent-vendor { font-size: 0.85rem; font-weight: 600; color: var(--fx-ink); }
.fx-recent-amount { font-size: 0.85rem; font-weight: 700; color: var(--fx-blue); }
.fx-recent-badge {
    background: var(--fx-success);
    color: white;
    padding: 0.18rem 0.55rem;
    font-size: 0.65rem;
    font-weight: 700;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* ==========================================================================
   SHOWCASE 2 - Analytics Dashboard
   ========================================================================== */
.fx-analytics-toolbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 0.9rem;
}

.fx-analytics-filter {
    display: inline-flex;
    align-items: center;
    background: white;
    border: 1px solid var(--fx-line);
    border-radius: 8px;
    padding: 0.45rem 0.8rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--fx-ink);
    gap: 0.35rem;
}

.fx-analytics-filter i { color: var(--fx-blue); font-size: 0.8rem; }

.fx-analytics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.7rem;
    margin-bottom: 1rem;
}

.fx-metric-card {
    background: white;
    border: 1px solid var(--fx-line);
    border-radius: 12px;
    padding: 0.85rem;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.fx-metric-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--fx-shadow-sm);
}

.fx-metric-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.9rem;
    margin-bottom: 0.55rem;
}

.fx-metric-expense .fx-metric-icon { background: var(--fx-danger); }
.fx-metric-income .fx-metric-icon { background: var(--fx-success); }
.fx-metric-balance .fx-metric-icon { background: var(--fx-blue); }
.fx-metric-margin .fx-metric-icon { background: #8b5cf6; }

.fx-metric-num {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--fx-ink);
    line-height: 1.1;
}

.fx-metric-label {
    font-size: 0.7rem;
    color: var(--fx-mute);
    margin-top: 0.2rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 600;
}

.fx-metric-sub {
    font-size: 0.75rem;
    color: var(--fx-mute-2);
    margin-top: 0.15rem;
}

.fx-analytics-chart-card {
    background: white;
    border: 1px solid var(--fx-line);
    border-radius: 12px;
    padding: 0.85rem;
}

.fx-analytics-chart-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.6rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--fx-ink);
}

.fx-chart-mini-legend {
    font-size: 0.65rem;
    color: var(--fx-mute-2);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.fx-analytics-chart-body {
    height: 130px;
    position: relative;
}

.fx-analytics-chart-body canvas { width: 100%; height: 100%; }

.fx-widget-catalog {
    position: absolute;
    inset: 1.4rem;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(6px);
    border-radius: var(--fx-radius);
    z-index: 25;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.fx-widget-catalog.is-open {
    opacity: 1;
}

.fx-widget-catalog-head {
    color: white;
    font-weight: 700;
    margin-bottom: 0.85rem;
    font-size: 0.95rem;
}

.fx-widget-catalog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem;
    width: 80%;
    max-width: 360px;
}

.fx-widget-tile {
    background: white;
    border-radius: 10px;
    padding: 0.7rem 0.5rem;
    text-align: center;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--fx-ink);
    border: 1px solid var(--fx-line);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.fx-widget-tile i { display: block; color: var(--fx-blue); font-size: 1.1rem; margin-bottom: 0.3rem; }
.fx-widget-tile-pulse {
    border-color: var(--fx-blue);
    animation: fx-tile-pulse 1.5s ease-in-out infinite;
}

@keyframes fx-tile-pulse {
    0%, 100% { transform: translateY(0); box-shadow: 0 0 0 0 rgba(5, 147, 255, 0); }
    50% { transform: translateY(-4px); box-shadow: 0 8px 20px rgba(5, 147, 255, 0.3); }
}

/* ==========================================================================
   SHOWCASE 2b - Dashboard Mock (real dashboard look)
   ========================================================================== */
.fx-dash-body {
    padding: 0.9rem !important;
    min-height: 560px;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

/* KPI Row */
.fx-dash-kpi-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}

.fx-dash-kpi {
    background: white;
    border: 1px solid var(--fx-line);
    border-radius: 10px;
    padding: 0.6rem 0.65rem;
    overflow: hidden;
}

.fx-dash-kpi-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.25rem;
}

.fx-dash-kpi-label {
    font-size: 0.6rem;
    color: var(--fx-mute);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fx-dash-kpi-icon-sm {
    width: 20px;
    height: 20px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    color: white;
    flex-shrink: 0;
}

.fx-dash-kpi-expense .fx-dash-kpi-icon-sm { background: var(--fx-danger); }
.fx-dash-kpi-income .fx-dash-kpi-icon-sm  { background: var(--fx-success); }
.fx-dash-kpi-balance .fx-dash-kpi-icon-sm { background: var(--fx-blue); }
.fx-dash-kpi-margin .fx-dash-kpi-icon-sm  { background: #8b5cf6; }

.fx-dash-kpi-val {
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--fx-ink);
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fx-dash-kpi-neg { color: var(--fx-danger) !important; }

.fx-dash-kpi-sub {
    font-size: 0.58rem;
    color: var(--fx-mute-2);
    margin-top: 0.1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fx-dash-kpi-spark {
    height: 18px;
    margin-top: 0.3rem;
}

.fx-dash-kpi-expense .fx-dash-kpi-spark { color: rgba(239, 68, 68, 0.5); }
.fx-dash-kpi-income .fx-dash-kpi-spark  { color: rgba(16, 185, 129, 0.5); }
.fx-dash-kpi-balance .fx-dash-kpi-spark { color: rgba(16, 185, 129, 0.5); }
.fx-dash-kpi-margin .fx-dash-kpi-spark  { color: rgba(139, 92, 246, 0.4); }

.fx-dash-kpi-spark svg { width: 100%; height: 100%; }

/* Mid & Bottom rows */
.fx-dash-mid-row {
    display: grid;
    grid-template-columns: 1.65fr 1fr;
    gap: 0.5rem;
}

.fx-dash-bottom-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

/* Generic card */
.fx-dash-card {
    background: white;
    border: 1px solid var(--fx-line);
    border-radius: 10px;
    padding: 0.6rem 0.65rem;
    overflow: hidden;
}

.fx-dash-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.45rem;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--fx-ink);
}

.fx-dash-card-head i { color: var(--fx-blue); margin-right: 0.2rem; }

.fx-dash-card-tag {
    font-size: 0.58rem;
    background: var(--fx-bg-soft-2);
    color: var(--fx-mute);
    padding: 0.1rem 0.4rem;
    border-radius: 999px;
    font-weight: 600;
}

/* Trend chart */
.fx-dash-trend-wrap {
    height: 78px;
    position: relative;
}

.fx-dash-trend-wrap canvas { width: 100% !important; height: 100% !important; }

.fx-dash-chart-legend {
    display: flex;
    gap: 0.65rem;
    margin-top: 0.3rem;
    font-size: 0.6rem;
    color: var(--fx-mute);
    font-weight: 600;
}

.fx-dash-legend-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    margin-right: 0.2rem;
    vertical-align: middle;
}

/* Smart Insights */
.fx-dash-insights {
    display: flex;
    flex-direction: column;
}

.fx-dash-insight-item {
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
    padding: 0.38rem 0.42rem;
    border-radius: 6px;
    margin-bottom: 0.28rem;
    font-size: 0.64rem;
    transition: box-shadow 0.3s ease;
}

.fx-dash-insight-item:last-child { margin-bottom: 0; }

.fx-dash-insight-item i { margin-top: 2px; flex-shrink: 0; font-size: 0.65rem; }

.fx-dash-insight-item strong {
    display: block;
    font-weight: 700;
    line-height: 1.2;
    font-size: 0.64rem;
}

.fx-dash-insight-item small {
    color: inherit;
    opacity: 0.75;
    font-size: 0.58rem;
}

.fx-dash-insight-warn {
    background: rgba(245, 158, 11, 0.1);
    color: #92400e;
}

.fx-dash-insight-warn i { color: var(--fx-warning); }

.fx-dash-insight-info {
    background: rgba(5, 147, 255, 0.08);
    color: var(--fx-ink);
}

.fx-dash-insight-info i { color: var(--fx-blue); }

/* Category bars */
.fx-dash-cat-bars {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.fx-dash-cat-row {
    display: grid;
    grid-template-columns: 62px 1fr 46px;
    align-items: center;
    gap: 0.35rem;
}

.fx-dash-cat-name {
    font-size: 0.6rem;
    color: var(--fx-mute);
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fx-dash-cat-amt {
    font-size: 0.6rem;
    color: var(--fx-ink);
    font-weight: 700;
    text-align: right;
    white-space: nowrap;
}

.fx-dash-bar-track {
    height: 6px;
    background: var(--fx-bg-soft-2);
    border-radius: 3px;
    overflow: hidden;
}

.fx-dash-bar-fill {
    height: 100%;
    width: 0%;
    border-radius: 3px;
    transition: width 0.9s var(--fx-ease);
}

.fx-dash-bottom-row.is-animated .fx-dash-bar-fill {
    width: var(--bw, 0%);
}

/* Top Suppliers */
.fx-dash-sup-list {
    display: flex;
    flex-direction: column;
    gap: 0.28rem;
}

.fx-dash-sup-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.28rem 0.4rem;
    background: var(--fx-bg-soft);
    border-radius: 5px;
    font-size: 0.62rem;
}

.fx-dash-sup-name {
    color: var(--fx-ink);
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    margin-right: 0.35rem;
}

.fx-dash-sup-amt {
    color: var(--fx-blue);
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ==========================================================================
   WIDGET GALLERY APP-STYLE ELEMENTS (wga-* = copied from real app CSS)
   ========================================================================== */

/* Budget vs Actual rows */
.wga-budget-row {
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 8px;
    padding: 9px 10px;
    background: #fff;
    margin-bottom: 6px;
}

.wga-budget-row:last-child { margin-bottom: 0; }

.wga-brow-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.wga-brow-name {
    font-weight: 600;
    color: #0f172a;
    font-size: 0.82rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
}

.wga-brow-pct {
    font-weight: 700;
    font-size: 0.82rem;
    white-space: nowrap;
    margin-left: 6px;
}

.wga-bbar {
    height: 8px;
    border-radius: 999px;
    background: #e2e8f0;
    margin: 5px 0;
    overflow: hidden;
}

.wga-bbar-fill {
    height: 100%;
    border-radius: 999px;
    transition: width 0.3s ease;
}

.wga-brow-sub {
    display: flex;
    justify-content: space-between;
    font-size: 0.72rem;
    color: #64748b;
}

/* Favorites Hall of Fame cards */
.wga-fav-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 9px 11px;
    border-radius: 10px;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border: 1px solid rgba(245, 158, 11, 0.25);
    margin-bottom: 6px;
}

.wga-fav-card:last-child { margin-bottom: 0; }

.wga-fav-rank {
    font-weight: 800;
    font-size: 0.95rem;
    color: #b45309;
    min-width: 28px;
}

.wga-fav-body { min-width: 0; }

.wga-fav-name {
    font-weight: 600;
    color: #0f172a;
    font-size: 0.82rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wga-fav-meta {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    font-size: 0.72rem;
    color: #475569;
    margin-top: 2px;
    align-items: center;
}

.wga-fav-count { color: #b45309; font-weight: 600; }

.wga-streak-badge {
    padding: 1px 7px;
    border-radius: 999px;
    background: rgba(239, 68, 68, 0.14);
    color: #b91c1c;
    font-weight: 600;
    font-size: 0.68rem;
}

.wga-fav-total {
    font-weight: 700;
    color: #0f172a;
    font-size: 0.88rem;
    white-space: nowrap;
}

/* Savings Opportunity rows */
.wga-savings-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 9px 11px;
    border-radius: 10px;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 1px solid rgba(22, 163, 74, 0.25);
    margin-bottom: 6px;
}

.wga-savings-row:last-child { margin-bottom: 0; }

.wga-savings-rank {
    font-weight: 800;
    color: #166534;
    font-size: 0.95rem;
    min-width: 28px;
}

.wga-savings-body { min-width: 0; }

.wga-savings-name {
    font-weight: 600;
    color: #0f172a;
    font-size: 0.82rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wga-savings-suppliers {
    font-size: 0.72rem;
    color: #475569;
    margin: 2px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wga-savings-sup {
    padding: 1px 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.7);
    font-size: 0.7rem;
}

.wga-savings-meta {
    font-size: 0.7rem;
    color: #166534;
}

.wga-savings-amount {
    font-weight: 800;
    color: #166534;
    font-size: 0.95rem;
    white-space: nowrap;
}

/* Store Basket Profile */
.wga-basket-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.wga-basket-card {
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 10px;
    padding: 9px 11px;
    background: #fff;
}

.wga-basket-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 6px;
}

.wga-basket-store {
    font-weight: 600;
    color: #0f172a;
    font-size: 0.85rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
}

.wga-basket-total {
    font-weight: 700;
    color: #0891b2;
    white-space: nowrap;
    font-size: 0.85rem;
}

.wga-basket-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
    margin-bottom: 7px;
}

.wga-basket-stat {
    display: flex;
    flex-direction: column;
    padding: 4px 5px;
    background: #f8fafc;
    border-radius: 6px;
    font-size: 0.72rem;
}

.wga-bstat-lbl { color: #64748b; }
.wga-bstat-val { color: #0f172a; font-weight: 600; }

.wga-basket-items {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.wga-basket-items li {
    display: flex;
    justify-content: space-between;
    padding: 2px 6px;
    background: rgba(14, 165, 233, 0.08);
    border-radius: 4px;
    font-size: 0.72rem;
    color: #0f172a;
}

.wga-bitem-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 70%; }
.wga-bitem-cnt  { color: #0891b2; font-weight: 600; white-space: nowrap; }

/* Upcoming Payments */
.wga-payment-list {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.wga-payment-row {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 7px 3px;
    border-bottom: 1px solid #f1f5f9;
    text-decoration: none;
    color: inherit;
}

.wga-payment-row:last-child { border-bottom: none; }

.wga-pay-date {
    font-size: 0.72rem;
    color: #64748b;
    min-width: 42px;
    font-weight: 500;
}

.wga-pay-icon { font-size: 0.82rem; }

.wga-pay-name {
    flex: 1;
    font-size: 0.82rem;
    font-weight: 500;
    color: #1e293b;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wga-pay-amt {
    font-size: 0.78rem;
    font-weight: 600;
    color: #1e293b;
    white-space: nowrap;
}

.wga-pay-freq {
    font-size: 0.62rem;
    background: #f1f5f9;
    color: #475569;
    padding: 1px 6px;
    border-radius: 4px;
    white-space: nowrap;
}

/* ==========================================================================
   ANALYTICS WIDGET GALLERY
   ========================================================================== */
.fx-wg-section {
    padding: 90px 0;
    background:
        linear-gradient(135deg, #f5f8ff 0%, #ffffff 50%, #f7f1ff 100%);
    border-top: 1px solid var(--fx-line);
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.fx-wg-section > .container {
    position: relative;
    z-index: 2;
}

.fx-wg-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 900px 600px at 100% 0%, rgba(5, 147, 255, 0.18), transparent 55%),
        radial-gradient(ellipse 700px 500px at 0% 100%, rgba(99, 102, 241, 0.18), transparent 55%);
    pointer-events: none;
    z-index: 0;
}

.fx-wg-section::after {
    content: '';
    position: absolute;
    top: 50%;
    left: -130px;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.22), transparent 65%);
    filter: blur(40px);
    pointer-events: none;
    z-index: 0;
    animation: fx-bg-float-slow 24s ease-in-out infinite;
}

.fx-wg-section .fx-section-eyebrow {
    color: var(--fx-blue);
}

.fx-wg-section-desc {
    font-size: 1.05rem;
    color: var(--fx-mute);
    line-height: 1.7;
    margin-top: 0.75rem;
    text-align: center;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

/* Horizontal scroll gallery */
.fx-wg-scroll-wrap {
    position: relative;
    padding: 0 2rem;
}

.fx-wg-scroll {
    display: flex;
    gap: 0.85rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding: 0.5rem 0 1.2rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.fx-wg-scroll::-webkit-scrollbar { display: none; }

.fx-wg-scroll-card {
    flex: 0 0 375px;
    scroll-snap-align: start;
    background: white;
    border: 1.5px solid var(--fx-line-2);
    border-radius: var(--fx-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.07);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
    cursor: default;
}

.fx-wg-scroll-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(5, 147, 255, 0.18);
    border-color: var(--fx-blue);
}

/* Widget card header (matches real dashboard widget header) */
.fx-wgc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.7rem 1rem;
    border-bottom: 1px solid var(--fx-line);
    background: white;
    flex-shrink: 0;
}

.fx-wgc-title-wrap {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.fx-wgc-icon {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background: rgba(5, 147, 255, 0.1);
    color: var(--fx-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.fx-wgc-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--fx-ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fx-wgc-actions {
    display: flex;
    gap: 0.55rem;
    color: var(--fx-mute-2);
    font-size: 0.72rem;
    flex-shrink: 0;
    margin-left: 0.5rem;
}

/* Widget card body — fixed height so ALL cards are the same total size */
.fx-wgc-body {
    height: 222px;
    flex-shrink: 0;
    padding: 0.9rem 1rem;
    background: white;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Thin scrollbar if content overflows */
    scrollbar-width: thin;
    scrollbar-color: var(--fx-line-2) transparent;
}

.fx-wgc-body::-webkit-scrollbar { width: 4px; }
.fx-wgc-body::-webkit-scrollbar-track { background: transparent; }
.fx-wgc-body::-webkit-scrollbar-thumb { background: var(--fx-line-2); border-radius: 2px; }

.fx-wgc-body-chart {
    flex-direction: column;
    align-items: stretch;
    padding: 0.65rem 0.8rem 0.4rem;
    overflow: hidden;
}

/* Chart SVG inside body */
.fx-wgc-svg {
    width: 100%;
    flex: 1;
    display: block;
    overflow: visible;
}

/* Chart legend */
.fx-wgc-legend {
    display: flex;
    gap: 1rem;
    justify-content: center;
    padding-top: 0.4rem;
    font-size: 0.72rem;
    color: var(--fx-mute);
    font-weight: 600;
    flex-shrink: 0;
}

.fx-wgc-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 0.25rem;
    vertical-align: middle;
}

.fx-wgc-dot-dash {
    background: transparent !important;
    border: 2px dashed;
    border-radius: 0;
    width: 14px;
    height: 0;
    vertical-align: middle;
    display: inline-block;
    margin-bottom: 1px;
}

/* Budget list inside widget */
.fx-wgc-budget-list {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    width: 100%;
}

.fx-wgc-brow-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.74rem;
    margin-bottom: 0.25rem;
    gap: 0.5rem;
}

.fx-wgc-brow-head span:first-child {
    color: var(--fx-ink);
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fx-wgc-brow-amt {
    color: var(--fx-mute);
    font-size: 0.7rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.fx-wgc-bpct {
    font-weight: 700;
    font-size: 0.72rem;
}

.fx-wgc-bpct-over { color: var(--fx-danger); }
.fx-wgc-bpct-ok   { color: var(--fx-success); }

.fx-wgc-bbar {
    height: 8px;
    background: var(--fx-bg-soft-2);
    border-radius: 4px;
    overflow: visible;
    position: relative;
}

.fx-wgc-bbar-fill {
    height: 100%;
    border-radius: 4px;
    max-width: 100%;
}

.fx-wgc-bbar-ok   { background: var(--fx-success); }
.fx-wgc-bbar-over { background: var(--fx-danger); }

/* Top Partners horizontal bar list */
.fx-wgc-partners {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    width: 100%;
}

.fx-wgc-prow {
    display: grid;
    grid-template-columns: 110px 1fr;
    align-items: center;
    gap: 0.6rem;
}

.fx-wgc-pname {
    font-size: 0.74rem;
    color: var(--fx-ink);
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fx-wgc-pbar-t {
    height: 12px;
    background: var(--fx-bg-soft-2);
    border-radius: 6px;
    overflow: hidden;
}

.fx-wgc-pbar-f {
    height: 100%;
    background: var(--fx-blue);
    border-radius: 6px;
}

/* Arrow buttons */
.fx-wg-arrow {
    position: absolute;
    top: calc(50% - 0.6rem);
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: white;
    border: 1.5px solid var(--fx-line);
    box-shadow: var(--fx-shadow-sm);
    color: var(--fx-ink);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    cursor: pointer;
    font-size: 0.8rem;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.fx-wg-arrow:hover {
    background: var(--fx-blue);
    color: white;
    border-color: var(--fx-blue);
    transform: translateY(-50%) scale(1.08);
}

.fx-wg-arrow-left { left: -2px; }
.fx-wg-arrow-right { right: -2px; }

/* Show more button */
.fx-wg-more-wrap {
    text-align: center;
    margin-top: 1.6rem;
}

.fx-wg-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    border: 1.5px solid var(--fx-blue);
    color: var(--fx-blue);
    padding: 0.65rem 1.6rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.fx-wg-more-btn:hover {
    background: var(--fx-blue);
    color: white;
    box-shadow: 0 8px 24px rgba(5, 147, 255, 0.28);
}

.fx-wg-more-icon {
    transition: transform 0.35s var(--fx-ease);
    font-size: 0.8rem;
}

.fx-wg-more-btn.is-open .fx-wg-more-icon {
    transform: rotate(180deg);
}

/* Detail (expanded) gallery */
.fx-wg-detail {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.1rem;
    margin-top: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.65s cubic-bezier(0.4,0,0.2,1), opacity 0.4s ease, margin-top 0.35s ease;
}

.fx-wg-detail.is-open {
    max-height: 4000px;
    opacity: 1;
    margin-top: 2rem;
}

/* Shared card styles (used in detail) */
.fx-wg-card {
    background: white;
    border: 1px solid var(--fx-line);
    border-radius: var(--fx-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    box-shadow: 0 2px 12px rgba(15,23,42,0.06);
}

.fx-wg-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 36px rgba(5,147,255,0.14);
    border-color: rgba(5, 147, 255, 0.35);
}

/* Preview area in detail cards — fixed height, scrollable like scroll gallery */
.fx-wg-preview {
    background: var(--fx-bg-soft);
    padding: 0.9rem 1rem;
    height: 222px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--fx-line);
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: var(--fx-line-2) transparent;
}

.fx-wg-preview::-webkit-scrollbar { width: 4px; }
.fx-wg-preview::-webkit-scrollbar-track { background: transparent; }
.fx-wg-preview::-webkit-scrollbar-thumb { background: var(--fx-line-2); border-radius: 2px; }

/* Chart previews in detail cards — no scroll, chart fills space */
.fx-wg-preview-chart {
    flex-direction: column;
    align-items: stretch;
    padding: 0.65rem 0.9rem 0.4rem;
    overflow: hidden;
}

.fx-wgp-svg-full {
    width: 100%;
    flex: 1;
    display: block;
}

/* Info box (description only, no h5) */
.fx-wg-info {
    padding: 0.75rem 1rem;
    border-top: 1px solid var(--fx-line);
    background: white;
}

.fx-wg-info p {
    font-size: 0.82rem;
    color: var(--fx-mute);
    margin: 0;
    line-height: 1.55;
}

/* Widget preview: KPI */
.fx-wgp-kpi-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
    width: 100%;
}

.fx-wgp-kpi {
    border-radius: 10px;
    padding: 0.85rem 0.75rem;
    text-align: center;
}

.fx-wgp-kpi-exp { background: rgba(239, 68, 68, 0.08);  border: 1px solid rgba(239, 68, 68, 0.2); }
.fx-wgp-kpi-inc { background: rgba(16, 185, 129, 0.08); border: 1px solid rgba(16, 185, 129, 0.2); }
.fx-wgp-kpi-bal { background: rgba(5, 147, 255, 0.08);  border: 1px solid rgba(5, 147, 255, 0.2); }
.fx-wgp-kpi-mar { background: rgba(139, 92, 246, 0.08); border: 1px solid rgba(139, 92, 246, 0.2); }

.fx-wgp-kpi-val {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--fx-ink);
}

.fx-wgp-kpi-exp .fx-wgp-kpi-val { color: var(--fx-danger); }
.fx-wgp-kpi-inc .fx-wgp-kpi-val { color: var(--fx-success); }
.fx-wgp-kpi-bal .fx-wgp-kpi-val { color: var(--fx-blue); }
.fx-wgp-kpi-mar .fx-wgp-kpi-val { color: #8b5cf6; }

.fx-wgp-kpi-lbl {
    font-size: 0.65rem;
    color: var(--fx-mute);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 0.2rem;
}

/* Widget preview: Smart Insights */
.fx-wgp-insights {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    width: 100%;
}

.fx-wgp-insight {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.6rem 0.8rem;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
}

.fx-wgp-warn { background: rgba(245, 158, 11, 0.12); color: #92400e; }
.fx-wgp-warn i { color: var(--fx-warning); }
.fx-wgp-info { background: rgba(5, 147, 255, 0.08); color: var(--fx-ink); }
.fx-wgp-info i { color: var(--fx-blue); }

/* Widget preview: Charts */
.fx-wgp-chart-area { width: 100%; }

.fx-wgp-svg {
    width: 100%;
    height: 90px;
    display: block;
}

.fx-wgp-chart-legend {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 0.55rem;
    font-size: 0.75rem;
    color: var(--fx-mute);
    font-weight: 600;
}

.fx-wgp-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    margin-right: 0.25rem;
    vertical-align: middle;
}

/* Widget preview: Horizontal bars */
.fx-wgp-bars {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    width: 100%;
}

.fx-wgp-bar-row {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 0.55rem;
    align-items: center;
    font-size: 0.75rem;
    color: var(--fx-mute);
    font-weight: 600;
}

.fx-wgp-bar-t {
    height: 12px;
    background: var(--fx-bg-soft-2);
    border-radius: 6px;
    overflow: hidden;
}

.fx-wgp-bar-f {
    height: 100%;
    border-radius: 6px;
}

/* Widget preview: Budget */
.fx-wgp-budget {
    background: white;
    border: 1.5px solid var(--fx-line);
    border-radius: 12px;
    padding: 1.1rem 1.2rem;
    width: 100%;
    box-shadow: 0 2px 10px rgba(15,23,42,0.05);
}

.fx-wgp-budget-head {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--fx-ink);
    margin-bottom: 0.65rem;
}

.fx-wgp-budget-nums {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    color: var(--fx-mute);
    margin-bottom: 0.4rem;
    align-items: center;
}

.fx-wgp-budget-pct {
    font-weight: 800;
    color: var(--fx-blue);
    font-size: 1rem;
}

.fx-wgp-budget-bar {
    height: 12px;
    background: var(--fx-line);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 0.55rem;
}

.fx-wgp-budget-fill {
    height: 100%;
    background: var(--fx-success);
    border-radius: 6px;
}

.fx-wgp-budget-foot {
    font-size: 0.74rem;
    color: var(--fx-mute);
}

/* Widget preview: Burn Rate */
.fx-wgp-burnrate {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.65rem;
    width: 100%;
}

.fx-wgp-br-metric {
    background: white;
    border: 1.5px solid var(--fx-line);
    border-radius: 10px;
    padding: 0.85rem 0.6rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(15,23,42,0.05);
}

.fx-wgp-br-val {
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--fx-ink);
    white-space: nowrap;
}

.fx-wgp-neg { color: var(--fx-danger) !important; }

.fx-wgp-br-lbl {
    font-size: 0.62rem;
    color: var(--fx-mute);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 0.25rem;
}

/* Widget preview: Heatmap */
.fx-wgp-heatmap {
    width: 100%;
    font-size: 0.72rem;
}

.fx-wgp-hm-row {
    display: grid;
    grid-template-columns: 58px repeat(5, 1fr);
    gap: 3px;
    margin-bottom: 3px;
    align-items: center;
}

.fx-wgp-hm-head span {
    text-align: center;
    color: var(--fx-mute);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.fx-wgp-hm-row span:first-child {
    color: var(--fx-mute);
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding-right: 3px;
}

.fx-wgp-hm-row span:not(:first-child) {
    height: 22px;
    border-radius: 4px;
    background: rgba(239, 68, 68, calc(var(--a, 0) * 0.7 + 0.05));
    display: block;
}

.fx-wgp-hm-head span:not(:first-child) {
    background: transparent !important;
    height: auto;
}

/* Widget preview: VAT */
.fx-wgp-vat {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.65rem;
    width: 100%;
}

.fx-wgp-vat-col {
    background: var(--fx-bg-soft);
    border-radius: 10px;
    padding: 0.9rem 0.6rem;
    text-align: center;
    border: 1px solid var(--fx-line);
}

.fx-wgp-vat-bal {
    background: rgba(5, 147, 255, 0.08);
    border: 1.5px solid rgba(5, 147, 255, 0.25);
}

.fx-wgp-vat-val {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--fx-ink);
    font-variant-numeric: tabular-nums;
}

.fx-wgp-vat-lbl {
    font-size: 0.62rem;
    color: var(--fx-mute);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 0.2rem;
}

/* CTA below detail gallery */
.fx-wg-detail-cta {
    text-align: center;
    padding: 2.5rem 0 0.5rem;
    display: none;
}

.fx-wg-detail-cta.is-open {
    display: block;
}

.fx-wg-cta-btn {
    background: var(--fx-grad);
    color: white !important;
    border: none;
    padding: 0.95rem 2.2rem;
    border-radius: var(--fx-radius-sm);
    font-weight: 700;
    font-size: 1.05rem;
    box-shadow: 0 10px 32px rgba(5, 147, 255, 0.32);
    transition: transform 0.25s var(--fx-ease), box-shadow 0.25s var(--fx-ease);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.fx-wg-cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 42px rgba(5, 147, 255, 0.45);
    color: white !important;
}

.fx-wg-cta-sub {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: var(--fx-mute);
    margin-bottom: 0;
}

/* ==========================================================================
   SHOWCASE 3 - Subscription Detection
   ========================================================================== */
.fx-sub-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.fx-sub-stat {
    color: white;
    border-radius: 12px;
    padding: 0.85rem;
}

.fx-sub-stat-primary { background: linear-gradient(135deg, #0593ff, #036cc4); }
.fx-sub-stat-success { background: linear-gradient(135deg, #10b981, #047857); }
.fx-sub-stat-warning { background: linear-gradient(135deg, #f59e0b, #d97706); }
.fx-sub-stat-danger { background: linear-gradient(135deg, #ef4444, #b91c1c); }

.fx-sub-stat-num {
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1;
}

.fx-sub-stat-lbl {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 0.3rem;
    font-weight: 600;
}

.fx-sub-cards {
    position: relative;
    background: var(--fx-bg-soft);
    border-radius: var(--fx-radius);
    padding: 0.85rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    overflow: hidden;
    transition: padding 0.4s ease;
}

.fx-sub-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid var(--fx-line);
    border-radius: 14px;
    padding: 0.85rem 0.85rem 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    opacity: 0;
    transform: translateY(18px) scale(0.92);
    transition: transform 0.55s var(--fx-ease), opacity 0.55s var(--fx-ease),
                box-shadow 0.4s var(--fx-ease), border-color 0.4s var(--fx-ease);
}

.fx-sub-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--fx-blue, #2563eb), #0ea5e9);
    opacity: 0.95;
}

.fx-sub-card.is-revealed {
    opacity: 1;
    transform: none;
}

.fx-sub-card-top {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 0.5rem;
}

.fx-sub-status {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.fx-sub-status .fx-sub-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
}

.fx-sub-status-active {
    background: rgba(34, 197, 94, 0.14);
    color: #15803d;
}

.fx-sub-status-active .fx-sub-status-dot {
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18);
}

.fx-sub-card-logo {
    width: 48px;
    height: 48px;
    margin: 0.1rem auto 0.55rem;
    border-radius: 12px;
    background: var(--c, var(--fx-blue));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.fx-sub-card-title-block {
    text-align: center;
    margin-bottom: 0.6rem;
    min-height: 38px;
}

.fx-sub-card-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--fx-ink);
    line-height: 1.15;
    margin-bottom: 0.15rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fx-sub-card-supplier {
    font-size: 0.7rem;
    color: var(--fx-mute);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fx-sub-card-supplier i {
    margin-right: 0.25rem;
    font-size: 0.65rem;
}

.fx-sub-card-meta {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding: 0.55rem 0;
    border-top: 1px dashed var(--fx-line);
    border-bottom: 1px dashed var(--fx-line);
    margin-bottom: 0.65rem;
    flex: 1;
}

.fx-sub-card-meta-row {
    display: grid;
    grid-template-columns: 20px 1fr auto;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.7rem;
    min-width: 0;
}

.fx-sub-card-meta-icon {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(5, 147, 255, 0.1);
    color: var(--fx-blue);
    border-radius: 5px;
    font-size: 0.62rem;
}

.fx-sub-card-meta-label {
    color: var(--fx-mute);
    font-weight: 500;
}

.fx-sub-card-meta-value {
    font-weight: 600;
    color: var(--fx-ink);
    text-align: right;
    line-height: 1.15;
    min-width: 0;
}

.fx-sub-card-meta-value small {
    display: block;
    font-weight: 500;
    font-size: 0.6rem;
    margin-top: 1px;
    color: inherit;
}

.fx-sub-card-meta-value.text-success { color: #16a34a; }
.fx-sub-card-meta-value.text-warning { color: #d97706; }
.fx-sub-card-meta-value.text-danger  { color: #dc2626; }

.fx-sub-badge {
    display: inline-block;
    padding: 0.1rem 0.5rem;
    border-radius: 999px;
    background: var(--fx-blue);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.fx-sub-card-amount {
    margin: 0 -0.85rem;
    padding: 0.6rem 0.85rem 0.7rem;
    text-align: center;
    background: #f9fafb;
    border-top: 1px solid var(--fx-line);
}

.fx-sub-amount-label {
    font-size: 0.58rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--fx-mute);
    font-weight: 700;
    margin-bottom: 0.15rem;
}

.fx-sub-amount-value {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--fx-ink);
    line-height: 1.1;
    letter-spacing: -0.3px;
}

.fx-sub-amount-hint {
    font-size: 0.6rem;
    color: var(--fx-mute);
    margin-top: 0.15rem;
    font-style: italic;
}

.fx-sub-sweep {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(5, 147, 255, 0.18) 50%, transparent 100%);
    height: 80px;
    transform: translateY(-100%);
    pointer-events: none;
    z-index: 5;
}

.fx-sub-sweep.is-running {
    animation: fx-sub-sweep-anim 1.5s ease-in-out forwards;
}

@keyframes fx-sub-sweep-anim {
    from { transform: translateY(-100%); }
    to { transform: translateY(420%); }
}

.fx-sub-toast {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--fx-ink);
    color: white;
    padding: 0.7rem 1rem;
    border-radius: 12px;
    font-size: 0.85rem;
    box-shadow: var(--fx-shadow-lg);
    transform: translateX(120%);
    transition: transform 0.5s var(--fx-ease);
    z-index: 20;
}

.fx-sub-toast.is-visible {
    transform: translateX(0);
}

/* ==========================================================================
   SHOWCASE 1 add-on - Smart Categorization (merged into invoice)
   ========================================================================== */
.fx-extracted-divider {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6366f1;
    margin-top: 0.85rem;
    padding-top: 0.85rem;
    border-top: 1px dashed var(--fx-line);
}

.fx-extracted-divider i { color: #6366f1; }

.fx-cat-suggestion {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(5, 147, 255, 0.08));
    border: 1px solid rgba(99, 102, 241, 0.3);
    padding: 0.6rem 0.85rem;
    border-radius: 10px;
    margin-bottom: 0.5rem;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.fx-cat-suggestion.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.fx-cat-suggestion.is-applied {
    opacity: 0;
    transform: translateY(-6px) scale(0.96);
    pointer-events: none;
}

.fx-cat-suggestion.is-pulsing {
    box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.4);
    animation: fx-suggestion-pulse 1.4s ease-in-out infinite;
}

@keyframes fx-suggestion-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.45); }
    50% { box-shadow: 0 0 0 8px rgba(99, 102, 241, 0); }
}

.fx-cat-suggestion i {
    color: #6366f1;
    font-size: 1rem;
    flex-shrink: 0;
}

.fx-cat-suggestion-info {
    flex: 1;
    min-width: 0;
}

.fx-cat-suggestion small {
    display: block;
    color: var(--fx-mute);
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.fx-cat-suggestion strong {
    display: block;
    color: var(--fx-ink);
    font-size: 0.88rem;
    font-weight: 700;
}

.fx-cat-suggestion strong span {
    color: #6366f1;
    font-weight: 600;
    font-size: 0.76rem;
    margin-left: 0.3rem;
}

.fx-cat-suggestion-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #6366f1;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.18);
    flex-shrink: 0;
}

.fx-cat-suggestion.is-pulsing .fx-cat-suggestion-pulse {
    animation: fx-cat-dot-pulse 1.4s ease-in-out infinite;
}

@keyframes fx-cat-dot-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.6); }
    50% { box-shadow: 0 0 0 6px rgba(99, 102, 241, 0); }
}

.fx-field-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    font-family: 'Inter', sans-serif !important;
}

.fx-cat-tag {
    font-size: 0.72rem;
    font-weight: 600;
    background: rgba(5, 147, 255, 0.08);
    color: var(--fx-blue);
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    border: 1px solid rgba(5, 147, 255, 0.2);
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.fx-cat-tag.is-in {
    opacity: 1;
    transform: translateY(0);
}

.fx-recent-cat-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(99, 102, 241, 0.1);
    color: #6366f1;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    border: 1px solid rgba(99, 102, 241, 0.2);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.fx-recent-cat-badge.is-in {
    opacity: 1;
}

/* ==========================================================================
   SHOWCASE 5 - Partner Management & AI Company Lookup
   ========================================================================== */
.fx-ailk-body {
    background: var(--fx-bg-soft);
    padding: 1.1rem !important;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    min-height: 660px;
    overflow-y: auto;
}

.fx-ailk-body::-webkit-scrollbar { width: 8px; }
.fx-ailk-body::-webkit-scrollbar-thumb {
    background: var(--fx-line-2);
    border-radius: 4px;
}

/* Meta bar */
.fx-ailk-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    background: white;
    border: 1px solid var(--fx-line);
    border-radius: var(--fx-radius-sm);
    padding: 0.55rem 0.85rem;
}

.fx-ailk-meta-left {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: wrap;
    min-width: 0;
}

.fx-ailk-meta-ok { color: var(--fx-success); font-size: 0.95rem; }

.fx-ailk-meta-time {
    font-size: 0.78rem;
    color: var(--fx-ink-2);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.fx-ailk-rerun {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: white;
    border: 1px solid var(--fx-line);
    color: var(--fx-blue);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
    white-space: nowrap;
}

.fx-ailk-rerun:hover {
    border-color: var(--fx-blue);
    background: rgba(5, 147, 255, 0.05);
}

.fx-ailk-rerun.is-spin i {
    animation: fx-ailk-spin 0.8s linear infinite;
}

.fx-ailk-rerun-cost {
    font-size: 0.68rem;
    color: var(--fx-mute);
    font-weight: 500;
    margin-left: 0.15rem;
}

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

/* Hero card */
.fx-ailk-hero {
    background: linear-gradient(135deg, #f8fafc 0%, #eef4ff 100%);
    border: 1px solid var(--fx-line);
    border-radius: var(--fx-radius-sm);
    padding: 1rem;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
    align-items: center;
}

.fx-ailk-hero-id {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    min-width: 0;
}

.fx-ailk-avatar {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: 0.02em;
    box-shadow: 0 6px 18px rgba(99, 102, 241, 0.3);
}

.fx-ailk-hero-text { min-width: 0; }

.fx-ailk-hero-name {
    font-size: 1rem;
    font-weight: 800;
    color: var(--fx-ink);
    line-height: 1.2;
    margin-bottom: 0.3rem;
}

.fx-ailk-hero-desc {
    font-size: 0.78rem;
    color: var(--fx-mute);
    line-height: 1.45;
    margin: 0 0 0.5rem;
}

.fx-ailk-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.fx-ailk-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: white;
    border: 1px solid var(--fx-line);
    color: var(--fx-ink-2);
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 600;
    line-height: 1.4;
}

.fx-ailk-tag i { color: var(--fx-mute); font-size: 0.7rem; }

.fx-ailk-tag-blue {
    background: rgba(5, 147, 255, 0.08);
    border-color: rgba(5, 147, 255, 0.25);
    color: var(--fx-blue);
}

/* Health score ring */
.fx-ailk-health {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    padding: 0.5rem 0.6rem;
    background: white;
    border: 1px solid var(--fx-line);
    border-radius: 12px;
    min-width: 96px;
}

.fx-ailk-health-ring {
    position: relative;
    width: 64px;
    height: 64px;
}

.fx-ailk-health-ring svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.fx-ailk-health-track {
    fill: none;
    stroke: var(--fx-bg-soft-2);
    stroke-width: 6;
}

.fx-ailk-health-fg {
    fill: none;
    stroke: var(--fx-success);
    stroke-width: 6;
    stroke-linecap: round;
    stroke-dasharray: 175.93;
    stroke-dashoffset: 175.93;
    transition: stroke-dashoffset 1.4s var(--fx-ease);
}

.fx-ailk-health-num {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--fx-success);
}

.fx-ailk-health-meta { text-align: center; }

.fx-ailk-health-label {
    font-size: 0.62rem;
    color: var(--fx-mute);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
}

.fx-ailk-health-risk {
    font-size: 0.7rem;
    color: var(--fx-ink-2);
    font-weight: 600;
}

.fx-ailk-health-risk strong {
    color: var(--fx-warning);
    font-weight: 800;
}

/* Stats grid */
.fx-ailk-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.55rem;
}

.fx-ailk-stat {
    position: relative;
    background: white;
    border: 1px solid var(--fx-line);
    border-radius: var(--fx-radius-sm);
    padding: 0.7rem 2.4rem 0.7rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.18rem;
    min-width: 0;
}

.fx-ailk-stat-icon {
    position: absolute;
    top: 0.6rem;
    right: 0.6rem;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.78rem;
}

.fx-ailk-stat-blue   { background: linear-gradient(135deg, #0593ff, #036cc4); }
.fx-ailk-stat-teal   { background: linear-gradient(135deg, #14b8a6, #0f766e); }
.fx-ailk-stat-green  { background: linear-gradient(135deg, #10b981, #047857); }
.fx-ailk-stat-amber  { background: linear-gradient(135deg, #f59e0b, #d97706); }
.fx-ailk-stat-violet { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.fx-ailk-stat-pink   { background: linear-gradient(135deg, #ec4899, #be185d); }

.fx-ailk-stat-label {
    font-size: 0.62rem;
    color: var(--fx-mute);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
}

.fx-ailk-stat-value {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--fx-ink);
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fx-ailk-stat-sub {
    font-size: 0.68rem;
    color: var(--fx-mute);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Section blocks (Summary, Products) */
.fx-ailk-section {
    background: white;
    border: 1px solid var(--fx-line);
    border-radius: var(--fx-radius-sm);
    padding: 0.85rem 1rem;
}

.fx-ailk-section-head {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--fx-ink);
    margin-bottom: 0.55rem;
}

.fx-ailk-section-ok { color: var(--fx-success); }
.fx-ailk-section-icon-soft { color: var(--fx-violet); }

.fx-ailk-summary-quote {
    border-left: 3px solid var(--fx-success);
    background: rgba(16, 185, 129, 0.06);
    padding: 0.55rem 0.75rem;
    font-size: 0.78rem;
    color: var(--fx-ink-2);
    line-height: 1.45;
    border-radius: 0 8px 8px 0;
    margin-bottom: 0.55rem;
}

.fx-ailk-summary-bullets {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.fx-ailk-summary-bullets li {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.45rem;
    font-size: 0.78rem;
    color: var(--fx-ink-2);
    line-height: 1.4;
}

.fx-ailk-summary-bullets li i {
    color: var(--fx-success);
    font-size: 0.7rem;
    margin-top: 0.25rem;
}

/* Products grid */
.fx-ailk-products {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.55rem;
}

.fx-ailk-product {
    background: var(--fx-bg-soft);
    border: 1px solid var(--fx-line);
    border-radius: 10px;
    padding: 0.6rem 0.7rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    min-width: 0;
}

.fx-ailk-product-head {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--fx-ink);
    line-height: 1.2;
}

.fx-ailk-product-tag {
    display: inline-block;
    width: max-content;
    background: rgba(5, 147, 255, 0.1);
    color: var(--fx-blue);
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.12rem 0.4rem;
    border-radius: 4px;
}

.fx-ailk-product-tag-violet {
    background: rgba(139, 92, 246, 0.12);
    color: var(--fx-violet);
}

.fx-ailk-product-desc {
    font-size: 0.7rem;
    color: var(--fx-mute);
    line-height: 1.4;
    margin: 0;
}

.fx-ailk-cite {
    color: var(--fx-blue);
    font-weight: 700;
    margin-left: 0.15rem;
    font-size: 0.65em;
}

/* Re-run pulse animation when "fetching" */
.fx-ailk-body.is-rerunning {
    pointer-events: none;
}
.fx-ailk-body.is-rerunning .fx-ailk-hero,
.fx-ailk-body.is-rerunning .fx-ailk-stats,
.fx-ailk-body.is-rerunning .fx-ailk-section {
    opacity: 0.55;
    transition: opacity 0.3s ease;
}

/* ==========================================================================
   SHOWCASE 6 - Budgets
   ========================================================================== */
.fx-mock-period-nav {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: white;
    border: 1px solid var(--fx-line);
    border-radius: 6px;
    padding: 0.15rem 0.3rem;
    font-size: 0.78rem;
}

.fx-mock-period-nav button {
    background: transparent;
    border: none;
    padding: 0.2rem 0.5rem;
    color: var(--fx-mute);
    cursor: default;
    border-radius: 4px;
    transition: background 0.2s ease, color 0.2s ease;
}

.fx-mock-period-nav button.is-pulse {
    background: rgba(5, 147, 255, 0.12);
    color: var(--fx-blue);
}

.fx-mock-period-nav span {
    font-weight: 700;
    color: var(--fx-ink);
    padding: 0 0.3rem;
}

.fx-budget-summary-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.fx-budget-summary-card {
    background: var(--fx-bg-soft);
    border-radius: 10px;
    padding: 0.7rem 0.85rem;
}

.fx-budget-summary-card small {
    display: block;
    font-size: 0.68rem;
    color: var(--fx-mute);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
}

.fx-budget-summary-card strong {
    font-size: 1.05rem;
    color: var(--fx-ink);
    font-weight: 800;
    margin-top: 0.2rem;
    display: block;
}

.fx-budget-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.7rem;
}

.fx-budget-detail-col {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.fx-budget-card {
    background: white;
    border: 1px solid var(--fx-line);
    border-radius: 12px;
    padding: 0.85rem;
    position: relative;
}

.fx-budget-card-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(5, 147, 255, 0.12);
    color: var(--fx-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    margin-bottom: 0.4rem;
}

.fx-budget-card-icon-success { background: rgba(16, 185, 129, 0.12); color: var(--fx-success); }
.fx-budget-card-icon-warning { background: rgba(245, 158, 11, 0.12); color: var(--fx-warning); }

.fx-budget-card-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--fx-mute);
    font-weight: 700;
}

.fx-budget-card-value {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--fx-ink);
    margin-top: 0.2rem;
}

.fx-budget-forecast-of {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--fx-mute);
    margin-left: 0.3rem;
}

.fx-budget-card-meta {
    display: block;
    font-size: 0.72rem;
    color: var(--fx-mute);
    margin-top: 0.2rem;
}

.fx-budget-bar {
    margin-top: 0.45rem;
    height: 6px;
    background: var(--fx-line);
    border-radius: 999px;
    overflow: hidden;
}

.fx-budget-bar-fill {
    width: 0%;
    height: 100%;
    background: var(--fx-success);
    border-radius: 999px;
    transition: width 0.6s var(--fx-ease), background 0.4s ease;
}

.fx-budget-bar-fill.is-warning { background: var(--fx-warning); }
.fx-budget-bar-fill.is-danger { background: var(--fx-danger); }

.fx-budget-health-row {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-top: 0.3rem;
}

.fx-budget-health-ring {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
}

.fx-budget-health-ring svg {
    width: 100%;
    height: 100%;
    transform: rotate(0deg);
}

.fx-health-bg {
    fill: none;
    stroke: var(--fx-line);
    stroke-width: 3;
}

.fx-health-fg {
    fill: none;
    stroke: var(--fx-success);
    stroke-width: 3;
    stroke-linecap: round;
    transition: stroke-dasharray 0.8s var(--fx-ease), stroke 0.4s ease;
}

.fx-health-fg.is-warning { stroke: var(--fx-warning); }
.fx-health-fg.is-danger { stroke: var(--fx-danger); }

.fx-health-text {
    fill: var(--fx-ink);
    font-size: 8px;
    font-weight: 800;
    text-anchor: middle;
}

.fx-budget-health-label {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--fx-ink);
}

.fx-budget-health-detail {
    font-size: 0.75rem;
    color: var(--fx-mute);
}

.fx-budget-status-badge {
    display: inline-block;
    margin-top: 0.4rem;
    padding: 0.22rem 0.55rem;
    background: rgba(16, 185, 129, 0.15);
    color: var(--fx-success);
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    transition: background 0.4s ease, color 0.4s ease;
}

.fx-budget-status-badge.is-warning {
    background: rgba(245, 158, 11, 0.15);
    color: var(--fx-warning);
}

.fx-budget-status-badge.is-danger {
    background: rgba(239, 68, 68, 0.15);
    color: var(--fx-danger);
}

.fx-budget-card-chart .fx-budget-chart-body {
    height: 130px;
    margin-top: 0.4rem;
}

.fx-budget-card-chart canvas {
    width: 100% !important;
    height: 100% !important;
}

/* ==========================================================================
   BUDGET DETAIL DASHBOARD MOCK (Showcase 3 - Budgets)
   Mirrors the real budget_detail.html layout: 4 summary cards on top,
   2 charts in the middle, and 3 cards (categories, comparison, burn rate)
   at the bottom.
   ========================================================================== */
.fx-bd-body {
    padding: 0.75rem !important;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    min-height: 560px;
}

/* ----- Top: 4 summary cards ----- */
.fx-bd-summary-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}

.fx-bd-summary-card {
    background: white;
    border: 1px solid var(--fx-line);
    border-radius: 10px;
    padding: 0.55rem 0.65rem 0.6rem;
    display: flex;
    flex-direction: column;
    gap: 0.18rem;
    min-height: 96px;
}

.fx-bd-summary-icon {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: rgba(5, 147, 255, 0.12);
    color: var(--fx-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    margin-bottom: 0.1rem;
}

.fx-bd-icon-success { background: rgba(16, 185, 129, 0.12); color: var(--fx-success); }
.fx-bd-icon-warning { background: rgba(245, 158, 11, 0.12); color: var(--fx-warning); }

.fx-bd-summary-label {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--fx-mute);
    font-weight: 700;
}

.fx-bd-summary-value {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--fx-ink);
    line-height: 1.2;
    white-space: nowrap;
}

.fx-bd-summary-meta {
    display: block;
    font-size: 0.62rem;
    color: var(--fx-mute);
    line-height: 1.25;
}

.fx-bd-summary-meta-success {
    color: var(--fx-success);
    font-weight: 600;
}

.fx-bd-summary-meta-success i {
    color: var(--fx-success);
}

/* Health row inside summary card */
.fx-bd-summary-card .fx-budget-health-row {
    margin-top: 0.05rem;
    gap: 0.45rem;
}

.fx-bd-summary-card .fx-budget-health-ring {
    width: 44px;
    height: 44px;
}

.fx-bd-summary-card .fx-budget-health-label {
    font-size: 0.78rem;
}

.fx-bd-summary-card .fx-budget-health-detail {
    font-size: 0.62rem;
}

.fx-bd-summary-card .fx-budget-bar {
    margin-top: 0.35rem;
    height: 5px;
}

/* ----- Middle: 2 chart cards ----- */
.fx-bd-charts-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.fx-bd-chart-card {
    background: white;
    border: 1px solid var(--fx-line);
    border-radius: 10px;
    padding: 0.5rem 0.6rem 0.55rem;
}

.fx-bd-chart-header {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--fx-ink);
    margin-bottom: 0.3rem;
    display: flex;
    align-items: center;
}

.fx-bd-chart-header i { color: var(--fx-blue); }

.fx-bd-chart-body {
    position: relative;
    height: 150px;
}

.fx-bd-chart-body canvas {
    width: 100% !important;
    height: 100% !important;
}

/* ----- Bottom: 3 detail cards ----- */
.fx-bd-bottom-row {
    display: grid;
    grid-template-columns: 1.1fr 1fr 1.15fr;
    gap: 0.5rem;
}

.fx-bd-bottom-card {
    background: white;
    border: 1px solid var(--fx-line);
    border-radius: 10px;
    padding: 0.55rem 0.65rem 0.6rem;
}

.fx-bd-bottom-header {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--fx-ink);
    margin-bottom: 0.4rem;
    display: flex;
    align-items: center;
}

.fx-bd-bottom-header i { color: var(--fx-blue); }

/* Category Breakdown */
.fx-bd-cat-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
}

.fx-bd-cat-chart {
    width: 100%;
    height: 90px;
    position: relative;
}

.fx-bd-cat-chart canvas {
    width: 100% !important;
    height: 100% !important;
}

.fx-bd-cat-legend {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.18rem;
}

.fx-bd-cat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.65rem;
    color: var(--fx-ink-2);
}

.fx-bd-cat-label {
    display: inline-flex;
    align-items: center;
    color: var(--fx-ink);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fx-bd-cat-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    margin-right: 5px;
    flex-shrink: 0;
}

.fx-bd-cat-pct {
    color: var(--fx-mute);
    font-weight: 600;
    white-space: nowrap;
}

.fx-bd-cat-pct small {
    color: var(--fx-mute);
    font-size: 0.92em;
}

/* Period Comparison + Burn Rate (shared row layout) */
.fx-bd-rows {
    display: flex;
    flex-direction: column;
}

.fx-bd-rows-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.32rem 0;
    border-bottom: 1px dashed var(--fx-line);
    font-size: 0.7rem;
    color: var(--fx-mute);
}

.fx-bd-rows-row:last-child { border-bottom: none; }

.fx-bd-rows-row strong {
    color: var(--fx-ink);
    font-weight: 700;
    font-size: 0.74rem;
    white-space: nowrap;
}

.fx-bd-text-mute { color: var(--fx-mute) !important; }
.fx-bd-text-success { color: var(--fx-success) !important; }

.fx-bd-change-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.18rem 0.5rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    background: rgba(16, 185, 129, 0.14);
    color: var(--fx-success);
}

.fx-bd-change-badge.is-up {
    background: rgba(239, 68, 68, 0.14);
    color: var(--fx-danger);
}

.fx-bd-change-badge i { font-size: 0.65rem; }

/* Responsive: stack the budget mock on smaller screens */
@media (max-width: 991.98px) {
    .fx-bd-summary-row {
        grid-template-columns: repeat(2, 1fr);
    }
    .fx-bd-charts-row,
    .fx-bd-bottom-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .fx-bd-summary-row {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   SHOWCASE 6 - Item Price Comparison (Cheaper Alternatives)
   ========================================================================== */
.fx-item-body {
    padding: 1.1rem 1.1rem 1.25rem;
}

.fx-item-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.85rem;
    align-items: center;
    background: white;
    border: 1px solid var(--fx-line);
    border-radius: 12px;
    padding: 0.85rem 1rem;
    margin-bottom: 0.95rem;
}

.fx-item-card-thumb {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    background: linear-gradient(135deg, #f8fafc 0%, #eef2f7 100%);
    color: var(--fx-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    flex-shrink: 0;
    overflow: hidden;
    padding: 4px;
}

.fx-item-card-thumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.fx-item-card-vendor {
    font-size: 0.7rem;
    color: var(--fx-mute);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
}

.fx-item-card-name {
    font-size: 1rem;
    color: var(--fx-ink);
    font-weight: 700;
}

.fx-item-card-price {
    font-size: 0.95rem;
    color: var(--fx-blue);
    font-weight: 700;
}

.fx-item-find-btn {
    background: var(--fx-blue);
    color: white;
    border: none;
    padding: 0.55rem 1rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: default;
    grid-column: 1 / -1;
    margin-top: 0.6rem;
    transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.fx-item-find-btn.is-pulse {
    animation: fx-glow 1.4s ease-in-out infinite;
}

.fx-item-loader {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    padding: 1rem;
    background: var(--fx-bg-soft);
    border-radius: 12px;
    margin-bottom: 1rem;
    color: var(--fx-mute);
    font-size: 0.85rem;
    font-weight: 600;
}

.fx-item-loader.is-running {
    display: flex;
}

.fx-item-loader-ring {
    width: 22px;
    height: 22px;
    border: 3px solid var(--fx-line);
    border-top-color: var(--fx-blue);
    border-radius: 50%;
    animation: fx-spin 0.8s linear infinite;
}

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

.fx-item-alts {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    margin-bottom: 1rem;
}

.fx-item-alt {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.7rem;
    align-items: center;
    background: white;
    border: 1px solid var(--fx-line);
    border-radius: 10px;
    padding: 0.6rem 0.85rem;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.fx-item-alt.is-in {
    opacity: 1;
    transform: translateY(0);
}

.fx-item-alt i {
    color: var(--fx-mute);
    font-size: 1.1rem;
}

.fx-item-alt-info strong {
    display: block;
    color: var(--fx-ink);
    font-size: 0.9rem;
    font-weight: 700;
}

.fx-item-alt-info small {
    color: var(--fx-mute);
    font-size: 0.72rem;
}

.fx-item-alt-price {
    color: var(--fx-blue);
    font-weight: 700;
    font-size: 0.95rem;
}

.fx-item-alt-best {
    border-color: var(--fx-success);
    background: rgba(16, 185, 129, 0.05);
}

.fx-item-alt-best .fx-item-alt-price { color: var(--fx-success); }

.fx-item-savings {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.14), rgba(5, 147, 255, 0.12));
    border: 1px solid rgba(16, 185, 129, 0.28);
    border-radius: 12px;
    padding: 0.85rem;
    color: var(--fx-ink);
    font-size: 1rem;
    opacity: 0;
    transform: scale(0.92);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.fx-item-savings.is-visible {
    opacity: 1;
    transform: scale(1);
}

.fx-item-savings i {
    color: var(--fx-success);
    font-size: 1.3rem;
}

.fx-item-savings strong {
    color: var(--fx-success);
    font-weight: 800;
}

.fx-item-savings small {
    color: var(--fx-mute);
    font-weight: 600;
}

/* --- Market-style cheaper alternatives grid (mirrors in-app widget) --- */
.fx-market-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.7rem;
    margin-bottom: 1rem;
}

.fx-market-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid var(--fx-line);
    border-radius: 14px;
    padding: 0.7rem 0.7rem 0;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.45s ease, transform 0.45s ease,
                box-shadow 0.25s ease, border-color 0.25s ease;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
    cursor: default;
}

.fx-market-card.is-in {
    opacity: 1;
    transform: translateY(0);
}

.fx-market-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--fx-blue), #6366f1);
    opacity: 0.85;
}

.fx-market-card-best {
    border-color: rgba(16, 185, 129, 0.55);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.18);
}

.fx-market-card-best::before {
    background: linear-gradient(90deg, #10b981, #22c55e);
    opacity: 1;
}

.fx-market-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0.3rem 0 0.45rem;
    min-height: 22px;
    gap: 0.4rem;
}

.fx-market-savings {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    padding: 0.22rem 0.55rem;
    border-radius: 999px;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.2px;
    background: rgba(16, 185, 129, 0.14);
    color: #047857;
    white-space: nowrap;
}

.fx-market-savings i { font-size: 0.6rem; }

.fx-market-savings.is-best {
    background: #10b981;
    color: #ffffff;
}

.fx-market-supplier {
    display: inline-flex;
    align-items: center;
    padding: 0.18rem 0.5rem;
    border-radius: 999px;
    font-size: 0.62rem;
    font-weight: 700;
    background: var(--fx-bg-soft-2);
    color: var(--fx-mute);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 60%;
}

.fx-market-image {
    position: relative;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8fafc 0%, #eef2f7 100%);
    border-radius: 10px;
    margin-bottom: 0.55rem;
    color: var(--fx-blue);
    font-size: 2.4rem;
    overflow: hidden;
    padding: 0.45rem;
}

.fx-market-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    transition: transform 0.35s ease;
}

.fx-market-card:hover .fx-market-image img {
    transform: scale(1.05);
}

.fx-market-card-best .fx-market-image {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    color: #047857;
}

.fx-market-title-block {
    flex: 1;
    margin-bottom: 0.5rem;
    min-height: 46px;
}

.fx-market-title {
    font-size: 0.78rem;
    font-weight: 700;
    margin: 0 0 0.25rem;
    color: var(--fx-ink);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.fx-market-rating {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.68rem;
    color: var(--fx-mute);
}

.fx-market-rating .fx-stars {
    color: #f59e0b;
    letter-spacing: 0.5px;
    font-size: 0.7rem;
}

.fx-market-rating .fx-review-count {
    color: var(--fx-mute);
    font-weight: 600;
}

.fx-market-price {
    margin: 0 -0.7rem 0;
    padding: 0.5rem 0.7rem;
    text-align: center;
    background: #f9fafb;
    border-top: 1px solid var(--fx-line);
}

.fx-market-card-best .fx-market-price {
    background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 100%);
    border-top-color: rgba(16, 185, 129, 0.25);
}

.fx-market-price-label {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--fx-mute);
    font-weight: 700;
    margin-bottom: 0.1rem;
}

.fx-market-price-value {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--fx-ink);
    line-height: 1.15;
    letter-spacing: -0.3px;
}

.fx-market-card-best .fx-market-price-value {
    color: #047857;
}

.fx-market-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin: 0 -0.7rem;
    padding: 0.55rem 0.7rem;
    background: #ffffff;
    color: var(--fx-ink);
    font-weight: 700;
    font-size: 0.7rem;
    letter-spacing: 0.2px;
    border-top: 1px solid var(--fx-line);
}

.fx-market-btn i { font-size: 0.65rem; }

@media (max-width: 991.98px) {
    .fx-market-grid { grid-template-columns: repeat(2, 1fr); }
    .fx-market-image { height: 120px; font-size: 2rem; }
}

@media (max-width: 767.98px) {
    .fx-market-grid { grid-template-columns: 1fr; }
    .fx-market-image { height: 150px; }
}

@media (max-width: 575.98px) {
    .fx-market-grid { grid-template-columns: 1fr; gap: 0.6rem; }
    .fx-market-image { height: 170px; font-size: 2.6rem; }
    .fx-market-title-block { min-height: auto; }
}

/* ==========================================================================
   SHOWCASE 8 - Bank Statement Match
   ========================================================================== */
.fx-bank-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid var(--fx-line);
}

.fx-bank-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.32rem 0.7rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
}

.fx-bank-badge-matched {
    background: rgba(16, 185, 129, 0.15);
    color: var(--fx-success);
}

.fx-bank-badge-review {
    background: rgba(245, 158, 11, 0.15);
    color: var(--fx-warning);
}

.fx-bank-badge-unmatched {
    background: var(--fx-bg-soft-2);
    color: var(--fx-mute);
}

.fx-bank-bulk-btn {
    margin-left: auto;
    background: var(--fx-blue);
    color: white;
    border: none;
    padding: 0.4rem 0.9rem;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: default;
    transition: box-shadow 0.3s ease;
}

.fx-bank-bulk-btn.is-pulse {
    animation: fx-glow 1.4s ease-in-out infinite;
}

.fx-bank-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr 0.9fr;
    gap: 0.7rem;
    position: relative;
}

.fx-bank-pdf {
    background: var(--fx-bg-soft);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.fx-bank-pdf-head {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    background: white;
    border-bottom: 1px solid var(--fx-line);
    padding: 0.55rem 0.7rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--fx-ink);
}

.fx-bank-pdf-head i { color: #dc2626; }

.fx-bank-pdf-body {
    position: relative;
    overflow: hidden;
    padding: 0.55rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.fx-bank-pdf-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.5rem;
    background: white;
    border-radius: 6px;
    padding: 0.4rem 0.55rem;
    font-size: 0.7rem;
    color: var(--fx-ink);
    font-family: 'Consolas', 'Monaco', monospace;
}

.fx-bank-pdf-row span:nth-child(2) {
    color: var(--fx-mute);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fx-bank-pdf-row span:nth-child(3) {
    color: var(--fx-danger);
    font-weight: 700;
}

.fx-bank-pdf-scanline {
    position: absolute;
    left: 0;
    right: 0;
    height: 30px;
    top: 0;
    pointer-events: none;
    background: linear-gradient(180deg, transparent, rgba(5, 147, 255, 0.4), transparent);
    transform: translateY(-100%);
}

.fx-bank-pdf-scanline.is-running {
    animation: fx-scanline 1.6s ease-in-out forwards;
}

@keyframes fx-scanline {
    from { transform: translateY(-100%); }
    to { transform: translateY(900%); }
}

.fx-bank-tx-wrap,
.fx-bank-inv-wrap {
    background: white;
    border: 1px solid var(--fx-line);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.fx-bank-tx-head,
.fx-bank-inv-head {
    background: var(--fx-bg-soft);
    border-bottom: 1px solid var(--fx-line);
    padding: 0.55rem 0.75rem;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--fx-ink);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.fx-bank-tx,
.fx-bank-inv {
    padding: 0.55rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    overflow: hidden;
}

.fx-bank-tx-row {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 0.55rem;
    background: var(--fx-bg-soft);
    border-radius: 8px;
    font-size: 0.72rem;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.4s var(--fx-ease);
}

.fx-bank-tx-row.is-in { opacity: 1; transform: translateX(0); }

.fx-bank-tx-row .fx-tx-date { color: var(--fx-mute); font-family: monospace; }
.fx-bank-tx-row .fx-tx-desc { color: var(--fx-ink); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-bank-tx-row .fx-tx-amt { color: var(--fx-danger); font-weight: 700; font-family: monospace; }

.fx-tx-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 999px;
    font-size: 0.7rem;
}

.fx-tx-status-unmatched { background: var(--fx-bg-soft-2); color: var(--fx-mute); }
.fx-tx-status-matched { background: rgba(16, 185, 129, 0.18); color: var(--fx-success); }
.fx-tx-status-review { background: rgba(245, 158, 11, 0.18); color: var(--fx-warning); }

.fx-bank-tx-row.is-converting {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid var(--fx-success);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.fx-bank-inv-card {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.6rem;
    background: var(--fx-bg-soft);
    border-radius: 8px;
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
    border: 1px solid transparent;
    font-size: 0.72rem;
}

.fx-bank-inv-card.is-matched {
    border-color: var(--fx-success);
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.18);
}

.fx-bank-inv-card i { color: var(--fx-blue); }
.fx-bank-inv-card strong { display: block; color: var(--fx-ink); font-weight: 700; font-size: 0.75rem; }
.fx-bank-inv-card small { color: var(--fx-mute); font-size: 0.65rem; }

.fx-bank-link-svg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 5;
}

.fx-bank-link-svg path {
    fill: none;
    stroke: var(--fx-success);
    stroke-width: 1.5;
    stroke-dasharray: 3 4;
    opacity: 0;
    stroke-linecap: round;
    animation: fx-bank-link-in 0.6s ease-out forwards;
}

@keyframes fx-bank-link-in {
    from { opacity: 0; }
    to { opacity: 0.7; }
}

/* ==========================================================================
   SHOWCASE 9 - Project Rules
   ========================================================================== */
.fx-proj-grid {
    display: grid;
    grid-template-columns: 1.05fr 1.1fr;
    gap: 1rem;
    align-items: center;
}

.fx-proj-rule-card {
    background: white;
    border: 1px solid var(--fx-line);
    border-radius: 14px;
    padding: 1rem;
    box-shadow: var(--fx-shadow-sm);
}

.fx-proj-rule-head {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--fx-ink);
    margin-bottom: 0.7rem;
}

.fx-proj-rule-head i { color: var(--fx-blue); }

.fx-proj-rule-group {
    background: var(--fx-bg-soft);
    border-radius: 10px;
    padding: 0.7rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin-bottom: 0.85rem;
}

.fx-proj-rule-row {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    background: white;
    border: 1px solid var(--fx-line);
    border-radius: 8px;
    padding: 0.5rem 0.65rem;
    font-size: 0.78rem;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.fx-proj-rule-row.is-in {
    opacity: 1;
    transform: translateY(0);
}

.fx-proj-rule-field {
    color: var(--fx-blue);
    font-weight: 700;
    background: rgba(5, 147, 255, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
}

.fx-proj-rule-op {
    color: var(--fx-mute);
    font-style: italic;
}

.fx-proj-rule-val {
    color: var(--fx-ink);
    font-weight: 600;
    font-family: 'Consolas', 'Monaco', monospace;
}

.fx-proj-rule-conn {
    align-self: flex-start;
    background: var(--fx-blue);
    color: white;
    font-weight: 800;
    font-size: 0.72rem;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    cursor: default;
    opacity: 0;
    transform: scale(0.6);
    transition: opacity 0.4s ease, transform 0.4s ease, background 0.3s ease;
    letter-spacing: 0.06em;
    margin-left: 0.5rem;
}

.fx-proj-rule-conn.is-in {
    opacity: 1;
    transform: scale(1);
}

.fx-proj-rule-conn.is-or {
    background: #8b5cf6;
}

.fx-proj-apply-btn {
    width: 100%;
    background: var(--fx-blue);
    color: white;
    border: none;
    padding: 0.6rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: default;
    transition: box-shadow 0.3s ease;
}

.fx-proj-apply-btn.is-pulse {
    animation: fx-glow 1.4s ease-in-out infinite;
}

.fx-proj-side {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.fx-proj-all,
.fx-proj-target {
    background: white;
    border: 1px solid var(--fx-line);
    border-radius: 12px;
    overflow: hidden;
}

.fx-proj-all-head,
.fx-proj-target-head {
    background: var(--fx-bg-soft);
    border-bottom: 1px solid var(--fx-line);
    padding: 0.55rem 0.85rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--fx-ink);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.fx-proj-all-head span:last-child {
    margin-left: auto;
    background: var(--fx-bg-soft-2);
    color: var(--fx-mute);
    padding: 0.1rem 0.5rem;
    border-radius: 999px;
    font-size: 0.7rem;
}

.fx-proj-all-list,
.fx-proj-target-list {
    padding: 0.55rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    max-height: 200px;
    overflow-y: auto;
}

.fx-proj-inv {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--fx-bg-soft);
    border-radius: 8px;
    padding: 0.4rem 0.6rem;
    font-size: 0.78rem;
    color: var(--fx-ink);
    transition: transform 0.45s var(--fx-ease), opacity 0.45s ease, background 0.3s ease;
}

.fx-proj-inv i { color: var(--fx-blue); }

.fx-proj-inv.is-flying {
    background: rgba(255, 140, 66, 0.15);
    border: 1px solid #ff8c42;
}

.fx-proj-inv.is-removed {
    opacity: 0;
    transform: translateX(40px) scale(0.9);
}

.fx-proj-target-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-bottom: 1px solid var(--fx-line);
}

.fx-proj-target-stats > div {
    text-align: center;
    padding: 0.55rem 0.3rem;
    border-right: 1px solid var(--fx-line);
}

.fx-proj-target-stats > div:last-child { border-right: none; }

.fx-proj-target-stats strong {
    display: block;
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--fx-ink);
}

.fx-proj-target-stats small {
    font-size: 0.65rem;
    color: var(--fx-mute);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
}

.fx-proj-toast {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--fx-success);
    color: white;
    padding: 0.65rem 1rem;
    border-radius: 12px;
    font-size: 0.85rem;
    box-shadow: var(--fx-shadow-lg);
    transform: translateX(120%);
    transition: transform 0.5s var(--fx-ease);
    z-index: 20;
}

.fx-proj-toast.is-visible {
    transform: translateX(0);
}

/* ==========================================================================
   MORE FEATURES — Brand-mesh light theme
   ========================================================================== */
.fx-more {
    padding: 110px 0;
    background:
        radial-gradient(ellipse 60% 70% at 12% 18%, #e6f1ff 0%, transparent 55%),
        radial-gradient(ellipse 55% 60% at 88% 22%, #ece3ff 0%, transparent 55%),
        radial-gradient(ellipse 70% 70% at 50% 100%, #f3eeff 0%, transparent 55%),
        #ffffff;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.fx-more > .container {
    position: relative;
    z-index: 2;
}

.fx-more::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 1000px 700px at 0% 100%, rgba(5, 147, 255, 0.20), transparent 55%),
        radial-gradient(ellipse 800px 600px at 100% 0%, rgba(99, 102, 241, 0.20), transparent 55%);
    pointer-events: none;
    z-index: 0;
}

.fx-more::after {
    content: '';
    position: absolute;
    top: 25%;
    right: -140px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.26), transparent 65%);
    filter: blur(48px);
    pointer-events: none;
    z-index: 0;
    animation: fx-bg-float-slow 22s ease-in-out infinite;
}

.fx-section-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 3rem;
}

.fx-section-eyebrow {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--fx-blue);
    font-weight: 700;
    margin-bottom: 0.6rem;
}

.fx-section-title {
    font-size: clamp(1.85rem, 3vw, 2.5rem);
    font-weight: 800;
    color: var(--fx-ink);
    line-height: 1.2;
    letter-spacing: -0.018em;
}

.fx-more-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.2rem;
}

.fx-more-card {
    position: relative;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: var(--fx-radius);
    padding: 1.6rem 1.4rem;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow:
        0 4px 20px rgba(15, 23, 42, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transition: transform 0.35s var(--fx-ease),
                box-shadow 0.35s var(--fx-ease),
                border-color 0.35s var(--fx-ease);
    overflow: hidden;
    isolation: isolate;
}

.fx-more-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(5, 147, 255, 0.08) 0%, transparent 50%, rgba(139, 92, 246, 0.08) 100%);
    opacity: 0;
    transition: opacity 0.35s var(--fx-ease);
    z-index: -1;
}

.fx-more-card:hover {
    transform: translateY(-8px);
    box-shadow:
        0 24px 60px rgba(5, 147, 255, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border-color: rgba(5, 147, 255, 0.35);
}

.fx-more-card:hover::before {
    opacity: 1;
}

.fx-more-icon {
    width: 56px;
    height: 56px;
    background: var(--fx-grad);
    border-radius: 14px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    box-shadow: 0 8px 22px rgba(5, 147, 255, 0.28);
}

.fx-more-card h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 0.45rem;
    color: var(--fx-ink);
}

.fx-more-card p {
    font-size: 0.93rem;
    color: var(--fx-mute);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.fx-more-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.fx-more-card li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--fx-ink-2);
    padding: 0.3rem 0;
}

.fx-more-card li i {
    color: var(--fx-success);
    font-size: 0.85rem;
}

.fx-more-card li code {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 0.78rem;
    background: var(--fx-bg-soft-2);
    color: var(--fx-blue-dark);
    padding: 0.05rem 0.35rem;
    border-radius: 4px;
    border: 1px solid var(--fx-line);
}

/* ==========================================================================
   SECURITY STRIP
   ========================================================================== */
.fx-security {
    padding: 110px 0;
    background:
        linear-gradient(135deg, #1a0334 0%, #250448 30%, #0e2a5e 70%, #036cc4 100%);
    color: white;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

/* ==========================================================================
   DARK PAIR - Security + Final CTA shared continuous dark background
   ========================================================================== */
.fx-dark-pair {
    position: relative;
    isolation: isolate;
    background:
        linear-gradient(180deg,
            #1a0334 0%,
            #250448 18%,
            #0e2a5e 38%,
            #036cc4 58%,
            #250448 82%,
            #0a0119 100%);
    color: white;
    overflow: hidden;
}

.fx-dark-pair::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.05) 1px, transparent 1.5px),
        radial-gradient(ellipse 1100px 700px at 50% -5%, rgba(196, 181, 253, 0.18), transparent 55%),
        radial-gradient(ellipse 1000px 700px at 100% 105%, rgba(139, 92, 246, 0.20), transparent 55%);
    background-size: 38px 38px, auto, auto;
    pointer-events: none;
    z-index: 0;
}

.fx-dark-pair > .fx-security,
.fx-dark-pair > .fx-final-cta {
    background: transparent;
}

/* Suppress the radial glows that hug the shared seam between Security and Final CTA */
.fx-dark-pair > .fx-security::before {
    background-image:
        radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.06) 1px, transparent 1.5px),
        radial-gradient(ellipse 1000px 700px at 50% -20%, rgba(196, 181, 253, 0.22), transparent 55%);
    background-size: 40px 40px, auto;
}

.fx-dark-pair > .fx-security::after {
    top: -120px;
}

.fx-dark-pair > .fx-final-cta::before {
    background-image:
        radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.05) 1px, transparent 1.5px),
        radial-gradient(ellipse 800px 600px at 100% 105%, rgba(139, 92, 246, 0.24), transparent 55%);
    background-size: 38px 38px, auto;
}

.fx-security > .container {
    position: relative;
    z-index: 2;
}

.fx-security::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.06) 1px, transparent 1.5px),
        radial-gradient(ellipse 1000px 700px at 50% -20%, rgba(196, 181, 253, 0.22), transparent 55%),
        radial-gradient(ellipse 900px 600px at 0% 100%, rgba(5, 147, 255, 0.32), transparent 55%);
    background-size: 40px 40px, auto, auto;
    background-position: 0 0, 0 0, 0 0;
    pointer-events: none;
    z-index: 0;
}

.fx-security::after {
    content: '';
    position: absolute;
    top: -120px;
    left: 50%;
    width: 580px;
    height: 580px;
    transform: translateX(-50%);
    border-radius: 50%;
    background:
        conic-gradient(from 0deg,
            rgba(5, 147, 255, 0.22),
            rgba(139, 92, 246, 0.22),
            rgba(255, 255, 255, 0.10),
            rgba(99, 102, 241, 0.20),
            rgba(5, 147, 255, 0.22));
    filter: blur(60px);
    pointer-events: none;
    z-index: 0;
    animation: fx-glow-rotate 30s linear infinite;
}

.fx-security .fx-section-eyebrow {
    color: #c4b5fd;
    text-shadow: 0 2px 12px rgba(196, 181, 253, 0.35);
}

.fx-security .fx-section-title {
    color: white;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.fx-security-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.fx-security-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--fx-radius);
    padding: 1.8rem 1.4rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease;
    backdrop-filter: blur(12px);
}

.fx-security-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 50px rgba(5, 147, 255, 0.28);
    border-color: rgba(196, 181, 253, 0.45);
    background: rgba(255, 255, 255, 0.12);
}

.fx-security-card i {
    font-size: 2.2rem;
    color: #c4b5fd;
    margin-bottom: 0.85rem;
    filter: drop-shadow(0 2px 14px rgba(196, 181, 253, 0.35));
}

.fx-security-card h5 {
    font-size: 1.05rem;
    font-weight: 700;
    color: white;
    margin: 0 0 0.45rem;
}

.fx-security-card p {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.78);
    margin: 0;
    line-height: 1.5;
}

/* ==========================================================================
   FINAL CTA — Deep brand-gradient with animated dual glow
   ========================================================================== */
.fx-final-cta {
    position: relative;
    padding: 130px 0;
    background:
        linear-gradient(135deg, #0593ff 0%, #036cc4 25%, #250448 65%, #0a0119 100%);
    color: white;
    text-align: center;
    overflow: hidden;
    isolation: isolate;
}

.fx-final-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.05) 1px, transparent 1.5px),
        radial-gradient(ellipse 1000px 700px at 0% 0%, rgba(5, 147, 255, 0.32), transparent 55%),
        radial-gradient(ellipse 800px 600px at 100% 100%, rgba(139, 92, 246, 0.24), transparent 55%);
    background-size: 38px 38px, auto, auto;
    background-position: 0 0, 0 0, 0 0;
    pointer-events: none;
    z-index: 0;
}

.fx-final-cta-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 900px;
    height: 900px;
    transform: translate(-50%, -50%);
    background:
        conic-gradient(from 0deg,
            rgba(5, 147, 255, 0.24) 0deg,
            rgba(139, 92, 246, 0.22) 90deg,
            rgba(37, 4, 72, 0.30) 180deg,
            rgba(99, 102, 241, 0.22) 270deg,
            rgba(5, 147, 255, 0.24) 360deg);
    filter: blur(40px);
    animation: fx-glow-rotate 22s linear infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes fx-glow-rotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.fx-final-cta-inner { position: relative; z-index: 1; }

.fx-final-cta-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.18;
    margin-bottom: 1.2rem;
    letter-spacing: -0.018em;
}

.fx-final-cta-sub {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.78);
    max-width: 640px;
    margin: 0 auto 2rem;
}

.fx-final-cta-actions {
    display: flex;
    gap: 0.85rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 1.4rem;
}

.fx-final-cta-foot {
    display: block;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.85rem;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1199px) {
    .fx-showcase-grid,
    .fx-showcase-grid-reverse {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .fx-showcase-grid-reverse .fx-showcase-text { order: 1; }
    .fx-showcase-grid-reverse .fx-showcase-mock { order: 2; }

    .fx-showcase-text {
        position: static;
    }

    #showcase-5 .fx-showcase-text,
    #showcase-6 .fx-showcase-text,
    #showcase-5 .fx-showcase-text-inner,
    #showcase-6 .fx-showcase-text-inner,
    .fx-showcase-text,
    .fx-showcase-text-inner {
        max-width: none;
    }
}

@media (max-width: 991px) {
    .fx-hero {
        padding: 120px 0 70px;
    }

    .fx-morph {
        margin-top: 2.5rem;
        max-height: 540px;
    }

    .fx-showcase {
        padding: 70px 0;
    }

    .fx-budget-detail-grid,
    .fx-budget-summary-row,
    .fx-sub-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .fx-analytics-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .fx-dash-kpi-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .fx-dash-mid-row,
    .fx-dash-bottom-row {
        grid-template-columns: 1fr;
    }

    .fx-wg-detail {
        grid-template-columns: repeat(2, 1fr);
    }

    .fx-wg-scroll-wrap {
        padding: 0 1.5rem;
    }

    .fx-bank-grid {
        grid-template-columns: 1fr;
    }

    /* Stacked layout: hide curved SVG links (designed for 3-column desktop grid) */
    .fx-bank-link-svg {
        display: none;
    }

    .fx-bank-pdf {
        display: none;
    }

    .fx-bank-tx-row:has(.fx-tx-status-matched) {
        border-left: 3px solid var(--fx-success);
        padding-left: calc(0.55rem - 3px);
    }

    .fx-bank-tx-row:has(.fx-tx-status-review) {
        border-left: 3px solid var(--fx-warning);
        padding-left: calc(0.55rem - 3px);
    }

    .fx-bank-inv-card.is-matched {
        background: rgba(16, 185, 129, 0.06);
    }

    .fx-cat-grid,
    .fx-invoice-grid,
    .fx-proj-grid {
        grid-template-columns: 1fr;
    }

    .fx-final-cta {
        padding: 80px 0;
    }

    .fx-more,
    .fx-security {
        padding: 70px 0;
    }
}

/* Tablet: 2 subscription cards per row inside full-width mock */
@media (min-width: 768px) and (max-width: 1199px) {
    .fx-sub-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* ==========================================================================
   SHOWCASE 1 - Invoice Stack Responsive
   ========================================================================== */

/* At ≤ 767px the showcase grid is already 1-col, mock is full-width.
   Allow the invoice mock body to grow and scroll vertically. */
@media (max-width: 767px) {
    [data-mock="invoice"] .fx-mock-window-body {
        overflow-y: auto;
        min-height: auto;
        padding: 0.9rem;
    }

    /* Summary: Bootstrap col-md-4 stacks below 768px automatically.
       Force single-column layout and remove right borders. */
    .fx-invoice-stack .summary-col-amount,
    .fx-invoice-stack .summary-col-partners {
        border-right: none !important;
        border-bottom: 1px solid #dee2e6;
    }

    .fx-invoice-stack .summary-col-content {
        min-height: auto !important;
        padding: 0.9rem 1rem !important;
    }

    /* Items table: hide categories column (widest culprit) */
    .fx-items-col-cat {
        display: none;
    }

    .fx-items-mock-table {
        font-size: 0.74rem;
    }

    .fx-items-mock-table thead th,
    .fx-items-mock-table tbody td {
        padding: 0.45rem 0.5rem;
    }

    .fx-items-mock-header {
        font-size: 0.78rem;
        padding: 0.55rem 0.75rem;
    }
}

/* Very small screens: further reduce */
@media (max-width: 480px) {
    [data-mock="invoice"] .fx-mock-window-body {
        padding: 0.65rem;
    }

    .fx-invoice-stack {
        gap: 0.6rem;
    }

    .fx-invoice-stack .fx-dropzone {
        min-height: 75px;
        padding: 0.65rem 0.9rem;
    }

    /* Also hide gross amount column, keep net amount */
    .fx-items-mock-table th:nth-child(3),
    .fx-items-mock-table td:nth-child(3) {
        display: none;
    }

    /* Smaller tags */
    .fx-cat-tag-sm {
        font-size: 0.58rem;
        padding: 0.1rem 0.35rem;
    }
}

@media (max-width: 575px) {
    .fx-hero-actions { flex-direction: column; align-items: stretch; }
    .fx-btn-primary, .fx-btn-ghost { width: 100%; text-align: center; }
    .fx-budget-summary-row,
    .fx-sub-stats,
    .fx-analytics-grid {
        grid-template-columns: 1fr 1fr;
    }
    .fx-sub-cards {
        grid-template-columns: 1fr;
        gap: 0.55rem;
        padding: 0.6rem;
    }
    .fx-sub-card {
        padding: 0.7rem 0.7rem 0;
    }
    .fx-sub-card-amount {
        margin: 0 -0.7rem;
        padding: 0.55rem 0.7rem 0.65rem;
    }
    .fx-sub-amount-value {
        font-size: 1rem;
    }
    .fx-mock-window-body { padding: 1rem; min-height: 360px; }
    /* Invoice mock overrides the global min-height via higher specificity above */
    .fx-pain-line { font-size: 0.95rem; }
    .fx-pain-ticker { padding: 0.85rem 1rem; min-height: 84px; }
    /* Showcase 5 - AI Lookup mock - mobile/tablet */
    .fx-ailk-hero {
        grid-template-columns: 1fr;
    }
    .fx-ailk-hero-id {
        gap: 0.65rem;
    }
    .fx-ailk-avatar {
        width: 44px;
        height: 44px;
        font-size: 1rem;
    }
    .fx-ailk-health {
        flex-direction: row;
        justify-content: center;
        gap: 0.85rem;
        min-width: 0;
        padding: 0.6rem 0.75rem;
    }
    .fx-ailk-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    .fx-ailk-products {
        grid-template-columns: 1fr;
    }
    .fx-ailk-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.4rem;
    }
    .fx-ailk-rerun {
        align-self: flex-end;
    }
    .fx-wg-detail { grid-template-columns: 1fr; }
    .fx-dash-kpi-row { grid-template-columns: 1fr 1fr; }
    .fx-wg-scroll-wrap { padding: 0 1rem; }
}

/* ==========================================================================
   MOBILE POLISH – showcase mocks, widgets, side-by-side card layouts
   ========================================================================== */
@media (max-width: 767px) {
    .fx-showcase-grid,
    .fx-showcase-grid-reverse {
        gap: 1.75rem;
    }

    .fx-showcase-mock {
        width: 100%;
    }

    .fx-mock-window-body {
        min-height: auto !important;
        overflow: visible;
    }

    .fx-dash-body {
        min-height: auto;
    }

    .fx-mock-window-bar {
        flex-wrap: wrap;
        row-gap: 0.35rem;
    }

    .fx-mock-window-action {
        margin-left: 0;
        font-size: 0.7rem;
        padding: 0.25rem 0.55rem;
    }

    .fx-wg-scroll-wrap {
        padding: 0 0.75rem;
        overflow: hidden;
    }

    .fx-wg-scroll-card {
        flex: 0 0 calc(100vw - 2.5rem);
        max-width: calc(100vw - 2.5rem);
    }

    .fx-wg-arrow {
        display: none;
    }

    .fx-item-card,
    .fx-item-alt {
        grid-template-columns: 52px minmax(0, 1fr) auto;
        align-items: center;
    }

    .fx-item-card-thumb {
        width: 52px;
        height: 52px;
    }

    .fx-item-card-name,
    .fx-item-alt-info strong {
        overflow-wrap: anywhere;
    }

    .fx-items-col-desc {
        min-width: 0;
    }

    .fx-processing-steps {
        gap: 0.35rem;
    }

    .fx-step {
        font-size: 0.62rem;
        padding: 0.35rem 0.2rem;
    }

    .fx-sub-card-top,
    .fx-sub-card-meta-row {
        flex-wrap: wrap;
    }

    .fx-fhero-photo-main {
        animation: none;
    }

    .fx-sim-cursor {
        display: none !important;
    }

    .fx-hero.fx-fhero {
        padding: 7.5rem 0 3rem;
    }

    .fx-items-col-desc,
    .fx-items-col-cat,
    .fx-items-col-tags {
        min-width: 0;
    }

    .fx-items-mock-table-wrap {
        -webkit-overflow-scrolling: touch;
    }

    .fx-fhero-sub {
        max-width: none;
    }

    [data-mock="subscriptions"] .fx-mock-window-body {
        min-height: auto;
        overflow: visible;
        padding: 0.75rem;
    }

    [data-mock="subscriptions"] .fx-mock-window-bar {
        flex-wrap: wrap;
    }

    [data-mock="subscriptions"] .fx-mock-window-action {
        margin-left: auto;
    }

    .fx-sub-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.5rem;
    }

    .fx-sub-stat {
        padding: 0.65rem 0.55rem;
    }

    .fx-sub-stat-num {
        font-size: 1.05rem;
    }

    .fx-sub-stat-lbl {
        font-size: 0.58rem;
        line-height: 1.25;
    }

    .fx-sub-cards {
        grid-template-columns: 1fr !important;
        padding: 0.65rem;
        gap: 0.65rem;
    }

    .fx-sub-card {
        padding: 0.75rem 0.75rem 0;
        min-width: 0;
    }

    .fx-sub-card-title,
    .fx-sub-card-supplier {
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
    }

    .fx-sub-card-meta-row {
        grid-template-columns: 20px minmax(0, 1fr) auto;
    }

    .fx-sub-card-meta-value {
        text-align: right;
    }

    .fx-sub-toast {
        top: auto;
        bottom: 0.65rem;
        left: 0.65rem;
        right: 0.65rem;
        font-size: 0.78rem;
        line-height: 1.35;
        transform: translateY(calc(100% + 0.75rem));
    }

    .fx-sub-toast.is-visible {
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .fx-showcase {
        padding: 3.5rem 0;
    }

    .fx-showcase-title {
        font-size: 1.55rem;
    }

    .fx-dash-kpi-val {
        font-size: 0.72rem;
    }

    .fx-dash-kpi-label {
        font-size: 0.55rem;
    }

    .fx-dash-trend-wrap {
        min-height: 120px;
    }
}

/* ==========================================================================
   BILL AI ASSISTANT SHOWCASE MOCK
   ========================================================================== */

[data-mock="bill"] .fx-mock-window-body {
    padding: 0;
    min-height: 560px;
    overflow: hidden;
}

#showcase-2 .fx-showcase-mock {
    width: 100%;
}

.fx-bill-mock-window {
    width: 100%;
    max-width: none;
}

.fx-bill-mock-body {
    position: relative;
    background: #ffffff;
}

.fx-bill-panel-standalone {
    display: flex;
    flex-direction: column;
    min-height: 560px;
    background: #ffffff;
}

.fx-bill-header {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.65rem 0.75rem;
    border-bottom: 1px solid #e2e8f0;
    background: #ffffff;
}

.fx-bill-header-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.fx-bill-header-title {
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
    min-width: 0;
}

.fx-bill-header-title strong {
    font-size: 0.88rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
}

.fx-bill-header-title small {
    font-size: 0.62rem;
    color: #64748b;
    line-height: 1.2;
}

.fx-bill-body {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 0.85rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    min-height: 400px;
    max-height: 480px;
    background: #ffffff;
}

.fx-bill-empty {
    text-align: center;
    padding: 0.75rem 0.35rem 0.25rem;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.fx-bill-empty.is-hidden {
    display: none;
}

.fx-bill-empty-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 0.5rem;
}

.fx-bill-empty-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.25rem;
}

.fx-bill-empty-sub {
    font-size: 0.72rem;
    color: #64748b;
    margin: 0 0 0.75rem;
    line-height: 1.4;
}

.fx-bill-suggestions {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    text-align: left;
}

.fx-bill-suggestion {
    border: 1px solid #c7d2fe;
    background: #eef2ff;
    color: #3730a3;
    border-radius: 10px;
    padding: 0.45rem 0.55rem;
    font-size: 0.68rem;
    line-height: 1.35;
    text-align: left;
    cursor: default;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.fx-bill-suggestion.is-active,
.fx-bill-suggestion.is-pulse {
    background: #e0e7ff;
    border-color: #818cf8;
    transform: scale(1.01);
}

.fx-bill-thread {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.fx-bill-thread[hidden] {
    display: none !important;
}

.fx-bill-msg {
    font-size: 0.78rem;
    line-height: 1.45;
    border-radius: 12px;
    padding: 0.6rem 0.75rem;
    max-width: 100%;
    word-break: break-word;
}

.fx-bill-msg-user {
    align-self: flex-end;
    background: #eef2ff;
    border: 1px solid #c7d2fe;
    color: #1e1b4b;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.fx-bill-msg-user.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.fx-bill-msg-assistant {
    align-self: flex-start;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #0f172a;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.fx-bill-msg-assistant.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.fx-bill-msg-assistant[hidden] {
    display: none !important;
}

.fx-bill-tool-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.62rem;
    font-weight: 600;
    color: #92400e;
    background: #fef3c7;
    border: 1px solid #fde68a;
    border-radius: 999px;
    padding: 0.2rem 0.5rem;
    margin-bottom: 0.45rem;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.fx-bill-tool-pill.is-visible,
.fx-bill-msg-assistant.is-visible .fx-bill-tool-pill {
    opacity: 1;
    transform: translateY(0);
}

.fx-bill-tool-pill[hidden] {
    display: none !important;
}

.fx-bill-msg-content {
    white-space: pre-line;
}

.fx-bill-msg-content-report {
    white-space: normal;
}

.fx-bill-msg-content-report p {
    margin: 0 0 0.5rem;
}

.fx-bill-msg-content-report p:last-child {
    margin-bottom: 0;
}

.fx-bill-msg-content-report strong {
    color: #0f172a;
    font-weight: 700;
}

/* Rich report blocks (mirrors Bill chat Markdown output) */
.fx-bill-report {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.fx-bill-report-part {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.fx-bill-report-part-hidden {
    opacity: 0;
    transform: translateY(8px);
}

.fx-bill-report-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.35rem 0.75rem;
    padding-bottom: 0.35rem;
    border-bottom: 1px solid #e2e8f0;
}

.fx-bill-report-head strong {
    font-size: 0.88rem;
    color: #0f172a;
}

.fx-bill-report-meta {
    font-size: 0.65rem;
    color: #64748b;
}

.fx-bill-report-label {
    font-size: 0.68rem;
    font-weight: 700;
    color: #334155;
    margin-bottom: 0.35rem;
}

.fx-bill-report-kpis {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.45rem;
}

.fx-bill-report-kpi {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.45rem 0.55rem;
}

.fx-bill-report-kpi-val {
    display: block;
    font-size: 0.82rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
}

.fx-bill-report-kpi-lbl {
    display: block;
    font-size: 0.58rem;
    color: #64748b;
    margin-top: 0.1rem;
}

.fx-bill-report-kpi.is-up .fx-bill-report-kpi-val {
    color: #b45309;
}

.fx-bill-report-table-wrap {
    overflow-x: auto;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}

.fx-bill-report table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.68rem;
    margin: 0;
}

.fx-bill-report th,
.fx-bill-report td {
    border-bottom: 1px solid #e2e8f0;
    padding: 0.4rem 0.55rem;
    text-align: left;
    vertical-align: top;
}

.fx-bill-report tr:last-child td {
    border-bottom: none;
}

.fx-bill-report th {
    background: #f8fafc;
    font-weight: 700;
    color: #334155;
    white-space: nowrap;
}

.fx-bill-report td.num,
.fx-bill-report th.num {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.fx-bill-report-chart {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.55rem 0.65rem 0.45rem;
}

.fx-bill-report-chart svg {
    width: 100%;
    height: auto;
    display: block;
}

.fx-bill-report-chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 0.35rem;
    font-size: 0.62rem;
    color: #64748b;
}

.fx-bill-report-chart-legend span {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.fx-bill-report-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.fx-bill-msg-content .fx-bill-cursor {
    display: inline-block;
    width: 2px;
    height: 0.85em;
    background: #4f46e5;
    margin-left: 1px;
    vertical-align: text-bottom;
    animation: fx-bill-blink 0.9s step-end infinite;
}

@keyframes fx-bill-blink {
    50% { opacity: 0; }
}

.fx-bill-footer {
    padding: 0.55rem 0.75rem 0.65rem;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
}

.fx-bill-composer {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.45rem 0.55rem;
    margin-bottom: 0.35rem;
}

.fx-bill-composer-placeholder {
    flex: 1;
    font-size: 0.65rem;
    color: #94a3b8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fx-bill-composer-send {
    color: #4f46e5;
    font-size: 0.75rem;
    opacity: 0.45;
}

.fx-bill-disclaimer {
    display: block;
    font-size: 0.58rem;
    color: #94a3b8;
    line-height: 1.35;
}

.fx-bill-composer.is-typing .fx-bill-composer-placeholder {
    color: #0f172a;
}

.fx-bill-composer.is-active {
    border-color: #818cf8;
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.12);
}

[data-mock="bill"] .fx-mock-window-action {
    cursor: pointer;
    user-select: none;
}

[data-mock="bill"] .fx-mock-window-action.is-spin i {
    animation: fx-spin 0.6s linear;
}

@media (max-width: 767px) {
    .fx-bill-panel-standalone {
        min-height: 480px;
    }

    [data-mock="bill"] .fx-mock-window-body {
        min-height: 480px;
    }

    .fx-bill-body {
        min-height: 320px;
        max-height: 380px;
    }

    .fx-bill-report-kpis {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .fx-sim-cursor {
        display: none !important;
    }

    .fx-pain-text::after {
        display: none;
    }

    .fx-morph[data-stage="invoice"] .fx-morph-invoice,
    .fx-morph[data-stage="scan"] .fx-morph-invoice {
        opacity: 1;
    }

    .fx-morph[data-stage="dashboard"] .fx-morph-dash,
    .fx-morph[data-stage="full"] .fx-morph-dash {
        opacity: 1;
    }

    .fx-final-cta-glow {
        animation: none;
    }
}
