/* ==========================================================================
   IPAYMER DASHBOARD DEMO
   Lifted from the iPaymer marketing site (ipaymer.com/css/styles.css) and
   reduced to the hero mockup: every rule below names a class the mockup
   markup actually uses. Each selector is prefixed with .ipm-demo, because
   the source names are generic (.active, .paid, .warn, .open) and would
   otherwise collide with this site.
   ========================================================================== */

/* iPaymer's :root, re-declared on the wrapper so the mockup keeps its own
   palette without repainting the page around it. */
.ipm-demo {
    --navy: #1a1a2e;
    --navy-light: #16213e;
    --deep-blue: #0f3460;
    --teal: #0c7096;
    --teal-light: #38aee0;
    --teal-bright: #4fc3f7;
    --gold: #F9B233;
    --gold-light: #ffd166;

    --bg-primary: #ffffff;
    --bg-secondary: #f5f6f8;
    --bg-dark: #0a0a1a;
    --bg-card: #ffffff;

    --text-primary: #1a1a2e;
    --text-secondary: #4a5568;
    --text-muted: #7a8499;
    --text-inverse: #ffffff;

    --border: #e0e3ea;
    --border-light: #f0f1f5;

    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;

    --shadow-sm: 0 1px 3px rgba(26, 26, 46, 0.06);
    --shadow-md: 0 4px 16px rgba(26, 26, 46, 0.08);
    --shadow-lg: 0 12px 40px rgba(26, 26, 46, 0.12);
    --shadow-xl: 0 20px 60px rgba(26, 26, 46, 0.15);
    --shadow-glow: 0 0 40px rgba(12, 112, 150, 0.15);

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);

    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.ipm-demo [data-theme="dark"] .tab-btn.active {
    background: var(--bg-card);
}
/* Dark mode, dashboard mockup */
.ipm-demo [data-theme="dark"] .dashboard-mockup {
    border-color: var(--border);
}
.ipm-demo [data-theme="dark"] .mockup-header {
    background: var(--bg-secondary);
    border-color: var(--border);
}
.ipm-demo [data-theme="dark"] .mockup-content {
    background: var(--bg-secondary);
}
.ipm-demo [data-theme="dark"] .dash-bank-card,
.ipm-demo [data-theme="dark"] .funding-card,
.ipm-demo [data-theme="dark"] .dash-panel,
.ipm-demo [data-theme="dark"] .dash-table {
    background: var(--bg-card);
    border-color: var(--border);
}
.ipm-demo [data-theme="dark"] .dash-table-head {
    background: var(--bg-secondary);
    border-color: var(--border);
}
.ipm-demo [data-theme="dark"] .dash-table-row {
    border-color: var(--border);
}
.ipm-demo [data-theme="dark"] .bank-balance,
.ipm-demo [data-theme="dark"] .funding-val,
.ipm-demo [data-theme="dark"] .big-val,
.ipm-demo [data-theme="dark"] .cust-amt,
.ipm-demo [data-theme="dark"] .dash-greeting {
    color: var(--text-primary);
}
.ipm-demo .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.ipm-demo .nav-toggle.active span:nth-child(2) {
    opacity: 0;
}
.ipm-demo .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}
/* === HERO VISUAL / DASHBOARD MOCKUP === */
.ipm-demo .hero-visual {
    position: relative;
    perspective: 1600px;
    margin-right: -180px;
    width: calc(100% + 180px);
}
/* Glow behind dashboard */
.ipm-demo .hero-visual::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 90%;
    height: 80%;
    transform: translate(-50%, -40%);
    background: radial-gradient(ellipse, rgba(12, 112, 150, 0.12), transparent 65%);
    border-radius: 50%;
    pointer-events: none;
    animation: glowPulse 4s ease-in-out infinite;
    z-index: 0;
    filter: blur(30px);
}
.ipm-demo .dashboard-mockup {
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow:
        0 50px 120px rgba(12, 112, 150, 0.15),
        0 20px 50px rgba(26, 26, 46, 0.18),
        inset 0 1px 0 rgba(255,255,255,0.08);
    overflow: hidden;
    transform: rotateY(-8deg) rotateX(6deg) scale(1);
    transform-origin: left center;
    transition: transform 1s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.6s ease;
    animation: dashboardRise 1.8s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both;
    position: relative;
}
.ipm-demo .dashboard-mockup:hover {
    transform: rotateY(-2deg) rotateX(2deg) scale(1.02);
    box-shadow:
        0 60px 150px rgba(12, 112, 150, 0.2),
        0 30px 70px rgba(26, 26, 46, 0.22),
        0 0 80px rgba(12, 112, 150, 0.08),
        inset 0 1px 0 rgba(255,255,255,0.12);
}
.ipm-demo .mockup-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 14px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
}
.ipm-demo .mockup-dots {
    display: flex;
    gap: 5px;
}
.ipm-demo .mockup-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}
.ipm-demo .mockup-dots span:nth-child(1) { background: #ef4444;
}
.ipm-demo .mockup-dots span:nth-child(2) { background: #f59e0b;
}
.ipm-demo .mockup-dots span:nth-child(3) { background: #10b981;
}
.ipm-demo .mockup-title {
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 500;
}
.ipm-demo .mockup-body {
    display: flex;
    min-height: 580px;
}
/* --- Sidebar --- */
.ipm-demo .mockup-sidebar {
    width: 190px;
    background: var(--navy);
    padding: 14px 0;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}
.ipm-demo .sidebar-logo {
    padding: 8px 10px 10px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    margin-bottom: 6px;
}
.ipm-demo .sidebar-logo-img {
    width: 100px;
    height: auto;
    filter: brightness(0) invert(1);
}
.ipm-demo .sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.ipm-demo .sidebar-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    color: rgba(255,255,255,0.45);
    font-size: 12px;
    font-weight: 500;
    transition: var(--transition);
    cursor: default;
}
.ipm-demo .sidebar-item svg {
    width: 18px;
    height: 18px;
}
.ipm-demo .sidebar-item svg {
    flex-shrink: 0;
}
.ipm-demo .sidebar-item.active {
    background: rgba(12, 112, 150, 0.2);
    color: var(--teal-bright);
    border-left: 2px solid var(--teal);
}
.ipm-demo .sidebar-item:not(.active):hover {
    color: rgba(255,255,255,0.7);
}
/* --- Dashboard Content --- */
.ipm-demo .mockup-content {
    flex: 1;
    padding: 18px 24px;
    background: #f8f9fb;
    overflow: hidden;
    position: relative;
}
.ipm-demo .dash-welcome {
    margin-bottom: 8px;
}
.ipm-demo .dash-breadcrumb {
    display: block;
    font-size: 10px;
    color: var(--text-muted);
    margin-bottom: 2px;
}
.ipm-demo .dash-greeting {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: var(--navy);
}
/* Bank card */
.ipm-demo .dash-bank-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 6px;
    padding: 8px 10px;
    margin-bottom: 8px;
}
.ipm-demo .bank-label {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
}
.ipm-demo .bank-balance {
    display: block;
    font-size: 22px;
    font-weight: 800;
    color: var(--navy);
    line-height: 1.2;
}
.ipm-demo .bank-pending {
    font-size: 6px;
    color: var(--text-muted);
}
.ipm-demo .bank-card-right {
    display: flex;
    gap: 4px;
}
.ipm-demo .bank-btn {
    padding: 5px 12px;
    background: var(--teal);
    color: white;
    font-size: 9px;
    font-weight: 600;
    border-radius: 4px;
}
/* Funding row */
.ipm-demo .dash-section-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 6px;
}
.ipm-demo .dash-funding-row {
    display: flex;
    gap: 4px;
    margin-bottom: 8px;
}
.ipm-demo .funding-card {
    flex: 1;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 4px;
    padding: 6px 4px;
    text-align: center;
}
.ipm-demo .funding-val {
    font-size: 10px;
    font-weight: 700;
    color: var(--navy);
}
/* Two-column panels */
.ipm-demo .dash-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-bottom: 8px;
}
.ipm-demo .dash-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 6px;
    padding: 8px;
}
.ipm-demo .dash-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}
.ipm-demo .dash-panel-header > span {
    font-size: 12px;
    font-weight: 700;
    color: var(--navy);
}
.ipm-demo .panel-tabs {
    display: flex;
    gap: 4px;
}
.ipm-demo .panel-tabs span {
    font-size: 5px;
    color: var(--text-muted);
    padding: 1px 4px;
    border-radius: 2px;
    background: var(--bg-secondary);
}
.ipm-demo .panel-tabs span.active {
    background: var(--teal);
    color: white;
}
.ipm-demo .dash-big-numbers {
    display: flex;
    gap: 8px;
    margin-bottom: 4px;
}
.ipm-demo .big-num {
    flex: 1;
}
.ipm-demo .big-label {
    display: block;
    font-size: 10px;
    color: var(--text-muted);
}
.ipm-demo .big-val {
    font-size: 14px;
    font-weight: 800;
    color: var(--navy);
}
.ipm-demo .big-val.warn {
    color: var(--warning);
}
/* Table */
.ipm-demo .dash-table {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 6px;
    overflow: hidden;
}
.ipm-demo .dash-table-head {
    display: grid;
    grid-template-columns: 2fr 2fr 1fr 1.2fr;
    gap: 4px;
    padding: 5px 8px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-light);
}
.ipm-demo .dash-table-head span {
    font-size: 9px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
}
.ipm-demo .dash-table-row {
    display: grid;
    grid-template-columns: 2fr 2fr 1fr 1.2fr;
    gap: 4px;
    padding: 4px 8px;
    border-bottom: 1px solid var(--border-light);
    align-items: center;
}
.ipm-demo .dash-table-row:last-child {
    border-bottom: none;
}
.ipm-demo .cust-name {
    font-size: 10px;
    font-weight: 600;
    color: var(--teal);
}
.ipm-demo .cust-date {
    font-size: 9px;
    color: var(--text-muted);
}
.ipm-demo .cust-badge {
    font-size: 5px;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 3px;
    text-align: center;
    width: fit-content;
}
.ipm-demo .cust-badge.paid {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}
.ipm-demo .cust-badge.failed {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}
.ipm-demo .cust-amt {
    font-size: 10px;
    font-weight: 700;
    color: var(--navy);
    text-align: right;
}
/* === DASHBOARD 3D POP ANIMATIONS === */
/* Panel pop-in with 3D scale */
.ipm-demo .anim-panel {
    opacity: 0;
    transform: translateY(12px) scale(0.92);
    animation: panelPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
.ipm-demo .anim-delay-1 { animation-delay: 0.3s;
}
.ipm-demo .anim-delay-3 { animation-delay: 0.9s;
}
.ipm-demo .anim-delay-4 { animation-delay: 1.1s;
}
.ipm-demo .anim-delay-5 { animation-delay: 1.5s;
}
/* Funding cards pop with bounce */
.ipm-demo .anim-pop {
    opacity: 0;
    transform: scale(0.5) translateY(8px);
    animation: cardPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    animation-delay: var(--pop-delay, 0.6s);
}
/* Table rows slide in from right */
.ipm-demo .anim-slide-row {
    opacity: 0;
    transform: translateX(20px);
    animation: rowSlide 0.4s ease-out forwards;
    animation-delay: var(--row-delay, 1.8s);
}
/* Mini bar chart */
.ipm-demo .dash-mini-chart {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 50px;
    margin-top: 8px;
}
.ipm-demo .mini-bar {
    flex: 1;
    height: var(--h, 50%);
    background: linear-gradient(to top, var(--teal), var(--teal-light));
    border-radius: 1.5px;
    transform-origin: bottom;
    transform: scaleY(0);
    animation: barGrow3d 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    animation-delay: calc(0.9s + var(--i, 0) * 0.07s);
    opacity: 0.8;
}
.ipm-demo .mini-bar:nth-child(1) { --i: 0;
}
.ipm-demo .mini-bar:nth-child(2) { --i: 1;
}
.ipm-demo .mini-bar:nth-child(3) { --i: 2;
}
.ipm-demo .mini-bar:nth-child(4) { --i: 3;
}
.ipm-demo .mini-bar:nth-child(5) { --i: 4;
}
.ipm-demo .mini-bar:nth-child(6) { --i: 5;
}
.ipm-demo .mini-bar:nth-child(7) { --i: 6;
}
.ipm-demo .mini-bar:nth-child(8) { --i: 7;
}
.ipm-demo .mini-bar:nth-child(9) { --i: 8;
}
.ipm-demo .mini-bar.accent {
    background: linear-gradient(to top, var(--gold), var(--gold-light));
    opacity: 1;
}
.ipm-demo .mini-bar.accent { animation-name: barGrow3dAccent;
}
/* Donut chart */
.ipm-demo .dash-donut {
    position: relative;
    width: 72px;
    height: 72px;
    margin: 8px auto 0;
}
.ipm-demo .donut-svg {
    width: 100%;
    height: 100%;
}
.ipm-demo .donut-fill {
    animation: donutDraw 1.5s ease-out 1.2s forwards;
}
.ipm-demo .donut-fill-2 {
    animation: donutDraw2 1s ease-out 2.2s forwards;
}
.ipm-demo .donut-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 11px;
    font-weight: 800;
    color: var(--navy);
    text-align: center;
    line-height: 1.1;
    opacity: 0;
    animation: fadeIn 0.4s ease-out 2s forwards;
}
.ipm-demo .donut-label small {
    font-size: 7px;
    font-weight: 500;
    color: var(--text-muted);
}
/* Bank balance shimmer */
.ipm-demo .bank-balance {
    position: relative;
    overflow: hidden;
}
.ipm-demo .bank-balance::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(12,112,150,0.08), transparent);
    animation: shimmer 3s ease-in-out 2s infinite;
}
/* Animated cursor */
.ipm-demo .mock-cursor {
    position: absolute;
    z-index: 20;
    pointer-events: none;
    transition: top 0.8s cubic-bezier(0.4, 0, 0.2, 1), left 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
    opacity: 0;
}
.ipm-demo .mock-cursor.visible {
    opacity: 1;
    animation: cursorAppear 0.4s ease-out forwards;
}
.ipm-demo .mock-cursor.clicking {
    animation: cursorClick 0.3s ease-out;
}
/* Dashboard top edge highlight */
.ipm-demo .dashboard-mockup::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 10%, rgba(12,112,150,0.4), rgba(56,174,224,0.5), rgba(249,178,51,0.3), transparent 90%);
    z-index: 10;
    animation: edgeShimmer 4s ease-in-out 2s infinite;
}
/* Sidebar items stagger entrance */
.ipm-demo .sidebar-nav .sidebar-item {
    opacity: 0;
    transform: translateX(-10px);
    animation: sidebarSlide 0.4s ease-out forwards;
}
.ipm-demo .sidebar-nav .sidebar-item:nth-child(1) { animation-delay: 0.8s;
}
.ipm-demo .sidebar-nav .sidebar-item:nth-child(2) { animation-delay: 0.85s;
}
.ipm-demo .sidebar-nav .sidebar-item:nth-child(3) { animation-delay: 0.9s;
}
.ipm-demo .sidebar-nav .sidebar-item:nth-child(4) { animation-delay: 0.95s;
}
.ipm-demo .sidebar-nav .sidebar-item:nth-child(5) { animation-delay: 1.0s;
}
.ipm-demo .sidebar-nav .sidebar-item:nth-child(6) { animation-delay: 1.05s;
}
.ipm-demo .sidebar-nav .sidebar-item:nth-child(7) { animation-delay: 1.1s;
}
.ipm-demo .sidebar-nav .sidebar-item:nth-child(8) { animation-delay: 1.15s;
}
.ipm-demo .sidebar-nav .sidebar-item:nth-child(9) { animation-delay: 1.2s;
}
.ipm-demo .sidebar-nav .sidebar-item:nth-child(10) { animation-delay: 1.25s;
}
/* Dashboard welcome fade in */
.ipm-demo .dash-welcome {
    opacity: 0;
    animation: fadeIn 0.5s ease-out 0.7s forwards;
}
/* ============================================
   SCREEN CAROUSEL: dashboard multi-screen
   ============================================ */
.ipm-demo .screen-carousel {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}
.ipm-demo .screen-slide {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    pointer-events: none;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0;
}
.ipm-demo .screen-slide.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}
.ipm-demo .screen-slide.exit-left {
    opacity: 0;
    transform: translateX(-30px);
}
/* Generic screen toolbar */
.ipm-demo .scr-toolbar {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}
.ipm-demo .scr-search {
    width: 120px;
    height: 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 4px;
}
.ipm-demo .scr-pages {
    font-size: 7px;
    color: var(--text-muted);
}
.ipm-demo .scr-per-page {
    font-size: 7px;
    color: var(--text-muted);
    margin-left: 4px;
}
.ipm-demo .scr-toolbar-right {
    margin-left: auto;
    display: flex;
    gap: 4px;
}
/* Generic screen table */
.ipm-demo .scr-table {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 6px;
    overflow: hidden;
}
.ipm-demo .scr-table-head {
    display: grid;
    grid-template-columns: 1.5fr 1.2fr 2fr 1fr 1fr 1fr;
    gap: 4px;
    padding: 7px 12px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-light);
    font-size: 9px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
}
.ipm-demo .scr-table-row {
    display: grid;
    grid-template-columns: 1.5fr 1.2fr 2fr 1fr 1fr 1fr;
    gap: 4px;
    padding: 6px 12px;
    border-bottom: 1px solid var(--border-light);
    font-size: 9px;
    color: var(--text-secondary);
    align-items: center;
    transition: background 0.15s;
}
.ipm-demo .scr-table-row:last-child {
    border-bottom: none;
}
.ipm-demo .scr-table-row:hover {
    background: rgba(12, 112, 150, 0.02);
}
.ipm-demo .scr-tag {
    display: inline-block;
    padding: 1px 5px;
    background: rgba(249,178,51,0.1);
    color: var(--gold);
    font-size: 6px;
    font-weight: 700;
    border-radius: 3px;
}
.ipm-demo .scr-tag-teal {
    display: inline-block;
    padding: 1px 5px;
    background: rgba(12,112,150,0.08);
    color: var(--teal);
    font-size: 6px;
    font-weight: 700;
    border-radius: 3px;
}
/* Clickable rows */
.ipm-demo .scr-row-click {
    cursor: pointer;
}
.ipm-demo .scr-row-click:hover {
    background: rgba(12, 112, 150, 0.06) !important;
}
.ipm-demo .scr-row-click .cust-name {
    text-decoration: underline;
    text-decoration-color: transparent;
    transition: text-decoration-color 0.2s;
}
.ipm-demo .scr-row-click:hover .cust-name {
    text-decoration-color: var(--teal);
}
/* Sub-screen (detail views) */
.ipm-demo .screen-sub {
    /* same transitions as screen-slide, handled by JS */
}
/* Customer detail view */
.ipm-demo .cdet-header {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    margin-bottom: 6px;
}
.ipm-demo .cdet-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--teal), var(--deep-blue));
    color: white;
    font-size: 10px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.ipm-demo .cdet-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}
.ipm-demo .cdet-name {
    font-size: 15px;
    font-weight: 800;
    color: var(--navy);
}
.ipm-demo [data-theme="dark"] .cdet-name {
    color: var(--text-primary);
}
.ipm-demo .cdet-meta {
    font-size: 9px;
    color: var(--text-muted);
}
.ipm-demo .cdet-actions {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}
/* Tabs */
.ipm-demo .cdet-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 8px;
    overflow-x: auto;
}
.ipm-demo .cdet-tabs span {
    padding: 5px 7px;
    font-size: 7px;
    font-weight: 500;
    color: var(--text-muted);
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    cursor: default;
}
.ipm-demo .cdet-tabs span.active {
    color: var(--teal);
    border-bottom-color: var(--teal);
    font-weight: 700;
}
/* Section title */
.ipm-demo .cdet-section-title {
    font-size: 11px;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 6px;
}
.ipm-demo [data-theme="dark"] .cdet-section-title {
    color: var(--text-primary);
}
/* Overview grid */
.ipm-demo .cdet-overview {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px 12px;
    margin-bottom: 10px;
    padding: 8px 10px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 6px;
}
.ipm-demo .cdet-field {
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.ipm-demo .cdet-field-label {
    font-size: 8px;
    font-weight: 600;
    color: var(--text-muted);
}
.ipm-demo .cdet-field-val {
    font-size: 9px;
    font-weight: 600;
    color: var(--text-primary);
}
/* Contacts bar */
.ipm-demo .cdet-contacts-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-top: 1px solid var(--border-light);
}
/* Products table columns */
.ipm-demo .scr-cols-products {
    grid-template-columns: 2.5fr 0.8fr 0.8fr 0.8fr 0.6fr 0.8fr 0.7fr !important;
}
/* Invoice detail sub-screen */
.ipm-demo .invd-layout {
    display: grid;
    grid-template-columns: 1fr 200px;
    gap: 10px;
    height: 100%;
}
.ipm-demo .invd-main {
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow-y: auto;
}
.ipm-demo .invd-customer-bar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}
.ipm-demo .invd-cust-name {
    font-size: 13px;
    font-weight: 800;
    color: var(--navy);
    display: block;
}
.ipm-demo [data-theme="dark"] .invd-cust-name { color: var(--text-primary);
}
.ipm-demo .invd-cust-meta {
    font-size: 7px;
    color: var(--text-muted);
    display: block;
}
.ipm-demo .invd-actions-bar {
    display: flex;
    gap: 4px;
}
.ipm-demo .invd-doc {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.03);
}
.ipm-demo [data-theme="dark"] .invd-doc {
    background: var(--bg-card);
    border-color: var(--border);
}
.ipm-demo .invd-doc-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border-light);
}
.ipm-demo .invd-table {
    margin-bottom: 4px;
}
.ipm-demo .invd-table-head {
    display: grid;
    grid-template-columns: 3fr 0.8fr 0.5fr 0.8fr 0.8fr 0.8fr;
    gap: 3px;
    padding: 3px 0;
    border-bottom: 1px solid var(--border);
    font-size: 6px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
}
.ipm-demo .invd-table-row {
    display: grid;
    grid-template-columns: 3fr 0.8fr 0.5fr 0.8fr 0.8fr 0.8fr;
    gap: 3px;
    padding: 4px 0;
    border-bottom: 1px solid var(--border-light);
    font-size: 7px;
    color: var(--text-secondary);
}
/* Invoice list right panel */
.ipm-demo .invd-list {
    background: white;
    border-left: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.ipm-demo [data-theme="dark"] .invd-list {
    background: var(--bg-card);
    border-color: var(--border);
}
.ipm-demo .invd-list-header {
    padding: 8px 10px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.ipm-demo .invd-list-search {
    padding: 6px 10px;
    border-bottom: 1px solid var(--border-light);
}
.ipm-demo .invd-list-search span {
    display: block;
    height: 16px;
    background: var(--bg-secondary);
    border-radius: 4px;
}
.ipm-demo .invd-list-items {
    flex: 1;
    overflow-y: auto;
}
.ipm-demo .invd-list-item {
    padding: 7px 10px;
    border-bottom: 1px solid var(--border-light);
    position: relative;
    cursor: default;
}
.ipm-demo .invd-list-item.active {
    background: rgba(12,112,150,0.04);
    border-left: 2px solid var(--teal);
}
.ipm-demo .invd-li-name {
    font-size: 9px;
    font-weight: 700;
    color: var(--navy);
    display: block;
}
.ipm-demo [data-theme="dark"] .invd-li-name { color: var(--text-primary);
}
.ipm-demo .invd-li-meta {
    font-size: 6px;
    color: var(--text-muted);
    display: block;
}
.ipm-demo .invd-li-amt {
    position: absolute;
    top: 7px;
    right: 10px;
    font-size: 9px;
    font-weight: 700;
    color: var(--navy);
}
.ipm-demo [data-theme="dark"] .invd-li-amt { color: var(--text-primary);
}
/* Invoices table columns */
.ipm-demo .scr-cols-invoices {
    grid-template-columns: 1.1fr 1.2fr 0.7fr 0.5fr 1.2fr 0.7fr 0.9fr 0.8fr 0.8fr !important;
}
/* Create Subscription: multi-step inner pages */
.ipm-demo .csub-inner {
    position: relative;
    height: 100%;
    overflow: hidden;
}
.ipm-demo .csub-cursor {
    position: absolute;
    z-index: 30;
    pointer-events: none;
    opacity: 0;
    filter: drop-shadow(0 2px 3px rgba(0,0,0,0.2));
    transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1), top 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s;
}
.ipm-demo .csub-cursor.visible { opacity: 1;
}
.ipm-demo .csub-cursor.click {
    animation: csubCurClick 0.25s ease-out;
}
.ipm-demo .csub-page {
    display: none;
    animation: csubFadeIn 0.4s ease-out;
}
.ipm-demo .csub-page.csub-page-active {
    display: block;
}
/* Typing animation for customer field */
.ipm-demo .csub-typing {
    color: var(--text-muted);
    font-style: italic;
}
.ipm-demo .csub-typing.filled {
    color: var(--navy);
    font-style: normal;
    font-weight: 600;
    border-color: var(--teal);
}
.ipm-demo [data-theme="dark"] .csub-typing.filled {
    color: var(--text-primary);
}
/* Done step (checkmark) */
.ipm-demo .csub-step.done .csub-step-num {
    background: var(--success);
    color: white;
    font-size: 8px;
}
.ipm-demo .csub-line-fill {
    background: linear-gradient(90deg, var(--teal), var(--border-light)) !important;
}
/* Invoicing table */
.ipm-demo .csub-inv-table {
    margin-bottom: 4px;
}
.ipm-demo .csub-inv-head {
    display: grid;
    grid-template-columns: 2.5fr 0.6fr 0.9fr 0.8fr 0.8fr 0.8fr 0.8fr;
    gap: 4px;
    padding: 5px 0;
    font-size: 7px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    border-bottom: 1px solid var(--border);
}
.ipm-demo .csub-inv-row {
    display: grid;
    grid-template-columns: 2.5fr 0.6fr 0.9fr 0.8fr 0.8fr 0.8fr 0.8fr;
    gap: 4px;
    padding: 6px 0;
    align-items: start;
    font-size: 8px;
    color: var(--text-secondary);
}
/* Product dropdown */
.ipm-demo .csub-product-select {
    position: relative;
}
.ipm-demo .csub-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 4px;
    box-shadow: var(--shadow-lg);
    z-index: 10;
    margin-top: 2px;
    padding: 2px 0;
}
.ipm-demo .csub-dd-item {
    padding: 5px 8px;
    font-size: 7px;
    color: var(--text-secondary);
    cursor: default;
    transition: background 0.15s;
}
.ipm-demo .csub-dd-item:hover,
.ipm-demo .csub-dd-hover {
    background: rgba(12, 112, 150, 0.06);
    color: var(--teal);
}
.ipm-demo .csub-dd-new {
    padding: 5px 8px;
    font-size: 7px;
    color: var(--text-muted);
    border-top: 1px solid var(--border-light);
    font-style: italic;
}
/* Totals */
.ipm-demo .csub-totals {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
    padding: 6px 0;
}
.ipm-demo .csub-total-row {
    display: flex;
    gap: 20px;
    font-size: 7px;
    color: var(--text-secondary);
    align-items: center;
}
.ipm-demo .csub-total-row span:last-child {
    min-width: 60px;
    text-align: right;
    font-weight: 600;
    color: var(--navy);
}
.ipm-demo [data-theme="dark"] .csub-total-row span:last-child {
    color: var(--text-primary);
}
/* Create Subscription form */
.ipm-demo .csub-stepper {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 14px;
    padding: 8px 0;
}
.ipm-demo .csub-step {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}
.ipm-demo .csub-step-num {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--border);
    color: var(--text-muted);
    font-size: 7px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ipm-demo .csub-step.active .csub-step-num {
    background: var(--teal);
    color: white;
}
.ipm-demo .csub-step-label {
    font-size: 8px;
    font-weight: 600;
    color: var(--text-muted);
}
.ipm-demo .csub-step.active .csub-step-label {
    color: var(--navy);
    font-weight: 700;
}
.ipm-demo [data-theme="dark"] .csub-step.active .csub-step-label {
    color: var(--text-primary);
}
.ipm-demo .csub-step-line {
    flex: 1;
    height: 2px;
    background: var(--border-light);
    margin: 0 4px;
    min-width: 10px;
}
.ipm-demo .csub-form-label {
    font-size: 8px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
}
.ipm-demo .csub-select-field {
    padding: 6px 10px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 9px;
    color: var(--navy);
    font-weight: 600;
    background: var(--bg-card);
    margin-bottom: 12px;
}
.ipm-demo [data-theme="dark"] .csub-select-field {
    color: var(--text-primary);
}
.ipm-demo .csub-addr-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.ipm-demo .csub-addr-col {
    padding: 10px;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    background: var(--bg-card);
}
.ipm-demo .csub-addr-title {
    font-size: 8px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 8px;
}
.ipm-demo .csub-field-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.ipm-demo .csub-input {
    padding: 5px 8px;
    border: 1px solid var(--border);
    border-radius: 3px;
    font-size: 8px;
    color: var(--navy);
    background: white;
}
.ipm-demo [data-theme="dark"] .csub-input {
    background: var(--bg-secondary);
    color: var(--text-primary);
}
.ipm-demo .csub-input-light {
    color: var(--text-muted) !important;
    font-style: italic;
}
.ipm-demo .csub-input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
}
.ipm-demo .csub-checkbox {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 8px;
    color: var(--text-secondary);
    margin-top: 6px;
}
.ipm-demo .csub-check {
    width: 12px;
    height: 12px;
    border: 1.5px solid var(--border);
    border-radius: 3px;
    flex-shrink: 0;
    position: relative;
}
.ipm-demo .csub-check.checked {
    background: var(--teal);
    border-color: var(--teal);
}
.ipm-demo .csub-check.checked::after {
    content: '';
    position: absolute;
    top: 1px;
    left: 3px;
    width: 4px;
    height: 6px;
    border: solid white;
    border-width: 0 1.5px 1.5px 0;
    transform: rotate(45deg);
}
.ipm-demo .csub-footer-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    padding-top: 8px;
    border-top: 1px solid var(--border-light);
}
/* Empty state (Agreements etc) */
.ipm-demo .csub-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
}
/* Config step form */
.ipm-demo .csub-config-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 8px;
}
.ipm-demo .csub-config-4col {
    grid-template-columns: 1fr 1fr 1fr 1fr;
}
.ipm-demo .csub-config-field {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.ipm-demo .csub-input-filled {
    color: var(--navy) !important;
    font-style: normal !important;
    font-weight: 600 !important;
}
.ipm-demo [data-theme="dark"] .csub-input-filled {
    color: var(--text-primary) !important;
}
.ipm-demo .csub-email-tag {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 1px 6px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 3px;
    font-size: 7px;
    font-weight: 600;
    color: var(--navy);
}
.ipm-demo [data-theme="dark"] .csub-email-tag {
    color: var(--text-primary);
    background: var(--bg-card);
}
.ipm-demo .csub-textarea {
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 8px;
    color: var(--text-secondary);
    background: var(--bg-card);
    min-height: 50px;
    line-height: 1.5;
}
/* Payment step */
.ipm-demo .csub-radio-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 10px;
}
.ipm-demo .csub-radio {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 9px;
    color: var(--text-secondary);
    padding: 3px 0;
}
.ipm-demo .csub-radio-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--border);
    flex-shrink: 0;
}
.ipm-demo .csub-radio-dot.active {
    border-color: var(--teal);
    background: var(--teal);
    box-shadow: inset 0 0 0 2px white;
}
.ipm-demo .csub-radio-active {
    color: var(--teal);
    font-weight: 600;
}
.ipm-demo .csub-card-box {
    padding: 10px;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    margin-bottom: 10px;
    background: var(--bg-card);
}
.ipm-demo .csub-card-dropdown {
    margin-top: 4px;
    border: 1px solid var(--teal);
    border-radius: 4px;
    background: var(--bg-card);
    overflow: hidden;
}
.ipm-demo .csub-card-option {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 8px;
    font-size: 8px;
    font-weight: 600;
    color: var(--navy);
}
.ipm-demo [data-theme="dark"] .csub-card-option { color: var(--text-primary);
}
.ipm-demo .csub-card-badge {
    padding: 1px 5px;
    background: rgba(12,112,150,0.1);
    color: var(--teal);
    font-size: 6px;
    font-weight: 700;
    border-radius: 3px;
}
/* Preview step: date cards */
.ipm-demo .csub-date-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 8px;
}
.ipm-demo .csub-date-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    background: var(--bg-card);
    text-align: center;
    gap: 2px;
}
.ipm-demo .csub-date-val {
    font-size: 12px;
    font-weight: 900;
    color: var(--navy);
}
.ipm-demo [data-theme="dark"] .csub-date-val { color: var(--text-primary);
}
.ipm-demo .csub-metric-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin-bottom: 8px;
}
.ipm-demo .csub-metric-card-prev {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 6px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    background: var(--bg-card);
    text-align: center;
    gap: 2px;
}
.ipm-demo .csub-metric-val-prev {
    font-size: 11px;
    font-weight: 900;
    color: var(--navy);
}
.ipm-demo [data-theme="dark"] .csub-metric-val-prev { color: var(--text-primary);
}
/* Success overlay */
.ipm-demo .csub-success {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 20;
    animation: csubSuccessFade 0.5s ease-out;
}
.ipm-demo [data-theme="dark"] .csub-success {
    background: rgba(26,26,46,0.95);
}
.ipm-demo .csub-success-circle {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--success), #059669);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    animation: csubSuccessPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.3);
}
.ipm-demo .csub-success-text {
    font-size: 14px;
    font-weight: 800;
    color: var(--success);
    margin-bottom: 3px;
    animation: csubSuccessFade 0.5s ease-out 0.3s both;
}
.ipm-demo .csub-success-sub {
    font-size: 9px;
    color: var(--text-muted);
    animation: csubSuccessFade 0.5s ease-out 0.5s both;
}
/* Subscriptions table columns */
.ipm-demo .scr-cols-subs {
    grid-template-columns: 1.4fr 1.2fr 0.5fr 0.6fr 0.6fr 0.8fr 0.9fr 0.9fr 0.9fr 0.7fr !important;
}
/* Floating notification cards */
.ipm-demo .floating-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
    z-index: 2;
    animation: floatUp 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}
.ipm-demo .float-1 {
    bottom: 50px;
    left: -20px;
    animation-delay: 1.8s;
}
.ipm-demo .float-2 {
    top: 30px;
    right: -15px;
    animation-delay: 2.2s;
}
/* Floating card subtle bounce */
.ipm-demo .floating-card {
    animation: floatUp 0.8s ease-out forwards, floatBounce 5s ease-in-out 3s infinite;
}
.ipm-demo .fc-title {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}
.ipm-demo .fc-amount {
    display: block;
    font-size: 17px;
    font-weight: 700;
    color: var(--navy);
}
.ipm-demo .fc-positive {
    color: var(--success);
}
.ipm-demo .tab-btn.active {
    background: var(--bg-card);
    color: var(--teal);
    box-shadow: var(--shadow-sm);
}
.ipm-demo .tab-panel.active {
    display: grid;
}
.ipm-demo .role-metric-value.warn {
    color: var(--warning);
}
.ipm-demo .inv-si.active {
    background: var(--teal);
}
.ipm-demo .inv-doc-badge.paid {
    background: rgba(16,185,129,0.1);
    color: var(--success);
}
.ipm-demo .inv-prod-name {
    color: var(--navy);
    font-weight: 600;
    font-size: 6px;
}
.ipm-demo .inv-prod-name small {
    font-weight: 400;
    color: var(--text-muted);
    font-size: 5px;
}
.ipm-demo .inv-cust.active {
    background: rgba(12,112,150,0.04);
    border-left: 2px solid var(--teal);
}
.ipm-demo .inv-cust-badge.paid {
    background: rgba(16,185,129,0.1);
    color: var(--success);
}
.ipm-demo .inv-cust-badge.failed {
    background: rgba(239,68,68,0.1);
    color: var(--danger);
}
.ipm-demo .wal-tx-badge.failed {
    background: rgba(239,68,68,0.12);
    color: #ef4444;
}
.ipm-demo .dash-greeting {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 2px 2px 4px;
}
.ipm-demo .dash-welcome {
    font-size: 9px;
    font-weight: 800;
    color: var(--navy);
}
.ipm-demo .dash-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}
.ipm-demo .dash-tab.active {
    background: white;
    color: var(--navy);
    box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}
.ipm-demo .dash-chip.warn {
    background: rgba(239,68,68,0.12);
    color: #ef4444;
}
@media (max-width: 600px) {
.ipm-demo .dash-two-col { grid-template-columns: 1fr;
}
}
/* Metrics */
.ipm-demo .sub-metrics {
    display: flex;
    gap: 4px;
    padding: 8px 12px;
    background: white;
    border-bottom: 1px solid var(--border-light);
}
.ipm-demo .sub-metric-card {
    flex: 1;
    text-align: center;
    padding: 6px 4px;
    background: var(--bg-secondary);
    border-radius: 4px;
}
.ipm-demo .sub-metric-label {
    display: block;
    font-size: 5px;
    color: var(--text-muted);
    margin-bottom: 2px;
}
.ipm-demo .sub-metric-val {
    display: block;
    font-size: 9px;
    font-weight: 800;
    color: var(--navy);
}
.ipm-demo .sub-metric-val.warn {
    color: var(--warning);
}
.ipm-demo .sub-tabs span.active {
    color: var(--teal);
    border-bottom-color: var(--teal);
    font-weight: 700;
}
@media (max-width: 768px) {
.ipm-demo .sub-metrics {
        flex-wrap: wrap;
}
.ipm-demo .sub-metric-card {
        min-width: calc(33% - 4px);
}
}
.ipm-demo .est-item.active {
    background: rgba(12,112,150,0.04);
    border-left: 2px solid var(--teal);
}
.ipm-demo .pkg-pay-tab.active {
    background: var(--navy);
    color: white;
    border-color: var(--navy);
}
.ipm-demo .sj-checkbox.checked {
    background: var(--teal);
    border-color: var(--teal);
}
.ipm-demo .sj-checkbox.checked::after {
    content: '';
    position: absolute;
    top: 1px;
    left: 3px;
    width: 4px;
    height: 6px;
    border: solid white;
    border-width: 0 1.5px 1.5px 0;
    transform: rotate(45deg);
}
.ipm-demo .po-badge {
    display: inline-block;
    padding: 1px 5px;
    border-radius: 3px;
    font-size: 5px;
    font-weight: 700;
    text-transform: uppercase;
    width: fit-content;
}
.ipm-demo .po-badge.open {
    background: rgba(245,158,11,0.1);
    color: var(--warning);
}
.ipm-demo .po-badge.paid {
    background: rgba(16,185,129,0.1);
    color: var(--success);
}
.ipm-demo .po-badge.refund {
    background: rgba(239,68,68,0.1);
    color: var(--danger);
}
.ipm-demo .po-page.active {
    background: var(--teal);
    color: white;
    border-color: var(--teal);
}
.ipm-demo .animate-in {
    opacity: 0;
    transform: translateY(30px);
    animation: animateIn 0.8s ease-out forwards;
}
.ipm-demo .animate-in:nth-child(1) { animation-delay: 0.1s;
}
.ipm-demo .animate-in:nth-child(2) { animation-delay: 0.2s;
}
.ipm-demo .animate-in:nth-child(3) { animation-delay: 0.3s;
}
.ipm-demo .animate-in:nth-child(4) { animation-delay: 0.4s;
}
.ipm-demo .animate-in:nth-child(5) { animation-delay: 0.5s;
}
.ipm-demo .animate-in:nth-child(6) { animation-delay: 0.6s;
}
@media (max-width: 1024px) {
.ipm-demo .hero-visual {
        margin-right: 0;
        width: 100%;
        max-width: 800px;
        margin-left: auto;
        margin-right: auto;
}
.ipm-demo .dashboard-mockup {
        transform: rotateY(0deg) rotateX(6deg) scale(0.98);
        transform-origin: center top;
}
.ipm-demo .dashboard-mockup:hover {
        transform: rotateY(0deg) rotateX(1deg) scale(1);
}
.ipm-demo .mockup-sidebar {
        width: 120px;
}
.ipm-demo .mockup-body {
        min-height: 420px;
}
}
@media (max-width: 768px) {
.ipm-demo .nav-links.open {
        display: flex;
        flex-direction: column;
        width: 100%;
        background: var(--bg-card);
        padding: 6px 18px 8px;
        gap: 0;
        border-top: 1px solid var(--border-light);
        animation: navMenuIn 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}
.ipm-demo .nav-links.open > li {
        width: 100%;
        position: relative;
        margin: 1px 0;
}
.ipm-demo .nav-links.open > li > a {
        display: block;
        width: 100%;
        padding: 14px 14px;
        font-size: 15px;
        font-weight: 600;
        color: var(--text-primary);
        text-decoration: none;
        border-radius: 10px;
        transition: color 0.2s ease, background 0.2s ease;
        position: relative;
}
.ipm-demo .nav-links.open > li > a:hover,
.ipm-demo .nav-links.open > li > a:active {
        color: var(--teal);
        background: rgba(12, 112, 150, 0.06);
}
.ipm-demo .nav-links.open a::after { display: none;
}
.ipm-demo .nav-links.open .nav-dropdown-toggle {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        cursor: pointer;
        user-select: none;
}
.ipm-demo .nav-links.open .nav-dropdown-toggle svg {
        transition: transform 0.3s ease;
        color: var(--text-muted);
        flex-shrink: 0;
}
.ipm-demo .nav-links.open .nav-dropdown.open > .nav-dropdown-toggle {
        color: var(--teal);
        background: rgba(12, 112, 150, 0.06);
}
.ipm-demo .nav-links.open .nav-dropdown.open > .nav-dropdown-toggle svg {
        transform: rotate(180deg);
        color: var(--teal);
}
.ipm-demo .nav-dropdown:hover .nav-dropdown-menu,
.ipm-demo .nav-dropdown.open .nav-dropdown-menu {
        display: block;
        transform: none;
        opacity: 1;
        visibility: visible;
        animation: subMenuIn 0.26s cubic-bezier(0.4, 0, 0.2, 1);
}
.ipm-demo .nav-dropdown:hover:not(.open) .nav-dropdown-menu {
        display: none;
}
.ipm-demo .nav-actions.open {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        width: 100%;
        padding: 6px 18px 18px;
        background: var(--bg-card);
        border-bottom: 1px solid var(--border-light);
        box-shadow: 0 16px 40px -16px rgba(15, 52, 96, 0.16);
        flex-wrap: nowrap;
        justify-content: flex-start;
        animation: navMenuIn 0.28s cubic-bezier(0.4, 0, 0.2, 1) 0.05s both;
}
.ipm-demo .nav-actions.open .btn-ghost,
.ipm-demo .nav-actions.open .btn-primary-sm {
        width: 100%;
        flex: none;
        text-align: center;
        justify-content: center;
        padding: 13px 18px;
        font-size: 14px;
        font-weight: 700;
        border-radius: 10px;
}
.ipm-demo .nav-actions.open .btn-ghost {
        border: 1px solid var(--border);
        background: transparent;
}
.ipm-demo .nav-actions.open .theme-toggle {
        align-self: flex-end;
        order: -1;
        margin: 0 -4px 2px 0;
}
.ipm-demo .nav-actions.open #chatWithUs,
.ipm-demo #chatWithUs {
        display: none !important;
}
.ipm-demo [data-theme="dark"] .nav-links.open,
.ipm-demo [data-theme="dark"] .nav-actions.open {
        background: var(--bg-card);
        box-shadow: 0 16px 40px -16px rgba(0, 0, 0, 0.5);
}
.ipm-demo .hero-visual {
        max-width: 100%;
}
.ipm-demo .mockup-body {
        min-height: 300px;
}
.ipm-demo .mockup-sidebar {
        width: 40px;
}
.ipm-demo .sidebar-item span,
.ipm-demo .sidebar-logo {
        display: none;
}
.ipm-demo .sidebar-item {
        justify-content: center;
        padding: 7px 0;
}
.ipm-demo .mockup-body {
        min-height: 300px;
}
.ipm-demo .dash-table {
        display: none;
}
.ipm-demo .mockup-sidebar {
        width: 36px;
}
.ipm-demo .sidebar-item span,
.ipm-demo .sidebar-logo {
        display: none;
}
.ipm-demo .sidebar-item {
        justify-content: center;
        padding: 7px 0;
}
.ipm-demo .dash-table {
        display: none;
}
.ipm-demo .floating-card {
        display: none;
}
}
@media (max-width: 480px) {
.ipm-demo .mockup-sidebar {
        width: 36px;
}
.ipm-demo .sidebar-item span,
.ipm-demo .sidebar-logo {
        display: none;
}
.ipm-demo .sidebar-item {
        justify-content: center;
        padding: 7px 0;
}
.ipm-demo .dash-funding-row {
        flex-wrap: wrap;
}
.ipm-demo .dash-two-col {
        grid-template-columns: 1fr;
}
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.4; transform: translate(-50%, -40%) scale(1); }
    50% { opacity: 0.8; transform: translate(-50%, -40%) scale(1.06); }
}
@keyframes dashboardRise {
    0% {
        opacity: 0;
        transform: rotateY(-20deg) rotateX(15deg) translateX(60px) translateY(40px) scale(0.85);
    }
    35% {
        opacity: 1;
    }
    100% {
        opacity: 1;
        transform: rotateY(-8deg) rotateX(6deg) translateX(0) translateY(0) scale(1);
    }
}
@keyframes panelPop {
    0% { opacity: 0; transform: translateY(12px) scale(0.92); }
    60% { opacity: 1; transform: translateY(-3px) scale(1.02); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes cardPop {
    0% { opacity: 0; transform: scale(0.5) translateY(8px); }
    70% { opacity: 1; transform: scale(1.08) translateY(-2px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes rowSlide {
    0% { opacity: 0; transform: translateX(20px); }
    100% { opacity: 1; transform: translateX(0); }
}
@keyframes barGrow3d {
    0% { transform: scaleY(0) rotateX(40deg); opacity: 0; }
    60% { transform: scaleY(1.15) rotateX(-5deg); opacity: 1; }
    100% { transform: scaleY(1) rotateX(0deg); opacity: 0.8; }
}
@keyframes barGrow3dAccent {
    0% { transform: scaleY(0) rotateX(40deg); opacity: 0; }
    60% { transform: scaleY(1.15) rotateX(-5deg); opacity: 1; }
    100% { transform: scaleY(1) rotateX(0deg); opacity: 1; }
}
@keyframes donutDraw {
    0% { stroke-dashoffset: 88; }
    100% { stroke-dashoffset: 25; }
}
@keyframes donutDraw2 {
    0% { opacity: 0; stroke-dashoffset: 10; }
    100% { opacity: 0.7; stroke-dashoffset: -40; }
}
@keyframes fadeIn {
    to { opacity: 1; }
}
@keyframes shimmer {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}
@keyframes cursorAppear {
    from { opacity: 0; transform: scale(0.6); }
    to { opacity: 1; transform: scale(1); }
}
@keyframes cursorClick {
    0% { transform: scale(1); }
    50% { transform: scale(0.8); }
    100% { transform: scale(1); }
}
@keyframes edgeShimmer {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}
@keyframes sidebarSlide {
    to { opacity: 1; transform: translateX(0); }
}
@keyframes csubCurClick {
    0% { transform: scale(1); }
    50% { transform: scale(0.75); }
    100% { transform: scale(1); }
}
@keyframes csubFadeIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes csubSuccessFade {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes csubSuccessPop {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}
@keyframes floatBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
@keyframes floatUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes animateIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   HOST WIRING
   The mockup is built for iPaymer's hero: it hangs off the right edge of the
   viewport and tilts in 3D. Inside a laptop screen it has to sit square and
   fill the frame instead.
   ========================================================================== */
.ipm-demo {
  position: absolute;
  inset: 0;
  overflow: hidden;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  text-align: left;
}

/* Their hero pulls the mockup 180px past the right edge and adds a glow
   behind it. Neither belongs in a laptop screen. */
.ipm-demo .hero-visual {
  position: absolute;
  inset: 0;
  margin-right: 0;
  width: 100%;
  perspective: none;
}
.ipm-demo .hero-visual::before {
  display: none;
}

/* Flat, not tilted, and filling the screen. The inline transform on the
   element is theirs, so this has to outrank it. */
.ipm-demo .dashboard-mockup {
  position: absolute;
  inset: 0;
  width: 100%;
  max-width: none;
  margin: 0;
  border-radius: 0;
  border: 0;
  box-shadow: none;
  transform: none !important;
  display: flex;
  flex-direction: column;
}
/* Their own browser chrome: ours is outside this, so one bar is enough. */
.ipm-demo .mockup-header {
  display: none;
}
.ipm-demo .mockup-body {
  flex: 1;
  min-height: 0;
}
.ipm-demo .mockup-content {
  min-height: 0;
}

/* The floating cards are positioned against the viewport-width hero and land
   outside the screen here. */
.ipm-demo .floating-card {
  display: none;
}
/* .ipm-demo is absolutely positioned, so it contributes no height and the
   laptop screen would collapse to nothing. The pane is what holds it open,
   the same way the Claritask pane does. */
.kore-demo__pane[data-demo-pane="ipaymer"] {
  min-height: 780px;
}
@media (max-width: 900px) {
  .kore-demo__pane[data-demo-pane="ipaymer"] {
    min-height: 620px;
  }
}
