/* Serrafi UI Styles - Add this to your existing CSS */
/* Last updated: 2024-08-10 15:47:00 - Force cache refresh */

/* ===== NAVBAR VISIBILITY FIX ===== */
/* Prevent Webflow animations from hiding the navbar */
.navbar {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
}

/* Specifically target navbar elements with Webflow IDs */
.navbar[data-w-id="3bd6454c-52bb-0de2-5595-db76573006b0"],
.navbar[data-w-id="b0e91c32-3fac-4056-441a-21d621b3ec51"] {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translate3d(0, 0, 0) !important;
    transition: none !important;
    animation: none !important;
}

/* Override any Webflow animation classes */
.navbar.w-animate,
.navbar.w-animate-fade-in,
.navbar.w-animate-slide-in-top {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translate3d(0, 0, 0) !important;
    transition: none !important;
    animation: none !important;
}

/* ===== PERFORMANCE OPTIMIZATIONS ===== */

/* Reduced motion support for accessibility */
@media (prefers-reduced-motion: reduce) {
    /* Disable all animations for users who prefer reduced motion */
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    /* Specifically disable heavy animations */
    .money-vault.pulsing,
    .transfer-orb {
        animation: none !important;
    }
    
    .sparkline-hover-dot.auto-scanning {
        animation: none !important;
    }
    
    .balance-glow.active {
        animation: none !important;
    }
    
    .skeleton-balance,
    .skeleton-chart,
    .skeleton-transactions,
    .skeleton-filters,
    .skeleton-table,
    .skeleton-vault,
    .skeleton-banks::before,
    .skeleton-banks::after {
        animation: none !important;
    }
    
    .transactions-list {
        animation: none !important;
    }
    
    /* Disable drag tooltip animations for reduced motion users - moved to badge-component.css */
    
    /* Disable info tooltip animations for reduced motion users */
    .cashback-info-tooltip {
        transition: none !important;
    }
}

/* Fonts */
@font-face {
    font-family: 'Switzer';
    src: url('../fonts/Switzer-Variable.ttf') format('truetype');
    font-weight: 100 900;
    font-display: swap;
    font-style: normal;
}

/* Apply Switzer font to body */
body {
    font-family: 'Switzer', system-ui, sans-serif;
    overflow-x: hidden; /* Prevent horizontal scroll globally */
}

/* Ensure html also prevents horizontal overflow */
html {
    overflow-x: hidden;
}

.font-ocra {
    font-family: 'Courier New', 'Monaco', 'Menlo', monospace;
    font-feature-settings: "tnum";
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Brand Colors as CSS Variables */
:root {
    --serrafi-yellow: #F9CC2E;
    --serrafi-dark: #232427;
    --serrafi-accent: #FFD54F;
    --serrafi-purple: #71438E;
    --serrafi-red: #DC5F5F;
    --serrafi-orange: #FBA570;
    --serrafi-gradient: linear-gradient(90deg, #71438E 0%, #DC5F5F 25%, #F9CC2E 75%, #FBA570 100%);
    
    /* Hero Component Design Tokens */
    --hero-graphic-max: 960px;  /* Maximum width for hero graphics */
    --hero-graphic-padding: 0;   /* No internal padding on hero graphic wrapper */
    --hero-section-padding: 2rem; /* Horizontal padding for hero sections */
    --hero-graphic-gap: 3rem;     /* Vertical gap between text and graphic */
}

/* Brand Gradient Text */
.gradient-text {
    background: var(--serrafi-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

/* ===== HERO GRAPHIC COMPONENT ===== */
/* Standardized hero graphic wrapper for consistent sizing and alignment */

.hero-graphic-wrapper {
    width: 100%;
    max-width: var(--hero-graphic-max);
    margin-inline: auto;
    padding: var(--hero-graphic-padding);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Reset margins for direct children */
.hero-graphic-wrapper > * {
    margin: 0;
    width: 100%;
    height: auto;
}

/* Apply to all hero graphic content */
.hero-graphic-wrapper .rewards-card-wrapper,
.hero-graphic-wrapper .payment-flow-wrapper,
.hero-graphic-wrapper .accounts-feature-demo,
.hero-graphic-wrapper .pinwheel-hero,
.hero-graphic-wrapper .dashboard-screenshot-wrapper,
.hero-graphic-wrapper > img {
    padding: 0 !important;
    margin: 0 !important;
    width: 100%;
    max-width: 100%;
    transform: none !important; /* Remove any scaling transforms */
}

/* Standard vertical spacing from text above */
.hero-graphic-wrapper {
    margin-top: var(--hero-graphic-gap);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Mobile responsiveness */
@media (max-width: 991px) {
    :root {
        --hero-graphic-max: 720px;
        --hero-graphic-gap: 2.5rem;
    }
}

@media (max-width: 767px) {
    :root {
        --hero-graphic-max: 100%;
        --hero-graphic-gap: 2rem;
        --hero-section-padding: 1.5rem;
    }
    
    /* Padding should be handled by parent container, not the wrapper itself
       This ensures consistent alignment with other page content */
}

@media (max-width: 479px) {
    :root {
        --hero-graphic-gap: 1.5rem;
        --hero-section-padding: 1rem;
    }
}

/* Override any inline styles or transforms */
.hero-graphic-wrapper * {
    box-sizing: border-box;
}

/* Ensure nested wrappers don't add extra spacing */
.hero-graphic-wrapper .container-right-reverse,
.hero-graphic-wrapper .full-size-treasury {
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* Special handling for the pinwheel cards to maintain their aspect ratio */
.hero-graphic-wrapper .pinwheel-hero {
    margin-top: 0 !important; /* Reset negative margin */
    transform: none !important;
    z-index: 10 !important;
    position: relative !important;
}

/* ===== LAZY LOADING SKELETON STYLES ===== */

/* Optimized skeleton loading animation */
@keyframes shimmer {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: calc(200px + 100%) 0;
    }
}

.lazy-loading-skeleton {
    opacity: 1;
    display: flex;
    transition: opacity 0.3s ease-out;
    /* CSS containment for better performance */
    contain: layout style paint;
}

.accounts-feature-demo.loaded .lazy-loading-skeleton {
    opacity: 0;
    pointer-events: none;
    display: none;
}

.accounts-feature-demo.loaded .interactive-accounts-dashboard,
.accounts-feature-demo.loaded .filter-demo-wrapper,
.accounts-feature-demo.loaded .sweep-demo-wrapper,
.accounts-feature-demo.loaded .account-transfer-demo {
    opacity: 1;
    transform: translateZ(0) translateY(0); /* Force GPU acceleration */
    display: block;
}

.interactive-accounts-dashboard,
.filter-demo-wrapper,
.sweep-demo-wrapper,
.account-transfer-demo {
    opacity: 0;
    transform: translateZ(0) translateY(20px); /* Force GPU acceleration */
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
    display: none;
    /* CSS containment for better performance */
    contain: layout style;
}

/* Skeleton containers - match real content dimensions */
.lazy-loading-skeleton {
    width: 100%;
    padding: 2rem;
    background: rgba(23, 23, 23, 0.3);
    border-radius: 1rem;
    min-height: 350px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Section-specific skeleton adjustments */
.accounts-feature-section.alt .lazy-loading-skeleton {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

[data-lazy-section="section3"] .lazy-loading-skeleton {
    background: rgba(23, 23, 23, 0.8);
    min-height: 500px;
    align-items: center;
    justify-content: space-around;
}

/* Optimized Section 1: Balance Counter Skeleton */
.skeleton-balance {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.1) 25%,
        rgba(255, 255, 255, 0.15) 50%,
        rgba(255, 255, 255, 0.1) 75%
    );
    background-size: 200px 100%;
    animation: shimmer 1.8s infinite linear; /* Slightly slower for better performance */
    width: 100%;
    height: 80px;
    border-radius: 12px;
    will-change: background-position; /* Optimize for animation */
}

.skeleton-chart {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.1) 25%,
        rgba(255, 255, 255, 0.15) 50%,
        rgba(255, 255, 255, 0.1) 75%
    );
    background-size: 200px 100%;
    animation: shimmer 1.8s infinite linear;
    width: 100%;
    height: 140px;
    border-radius: 12px;
    will-change: background-position;
}

.skeleton-transactions {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.1) 25%,
        rgba(255, 255, 255, 0.15) 50%,
        rgba(255, 255, 255, 0.1) 75%
    );
    background-size: 200px 100%;
    animation: shimmer 1.8s infinite linear;
    width: 100%;
    height: 120px;
    border-radius: 12px;
    flex-grow: 1;
    will-change: background-position;
}

/* Section 2: Filter Demo Skeleton */
.skeleton-filters {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.1) 25%,
        rgba(255, 255, 255, 0.15) 50%,
        rgba(255, 255, 255, 0.1) 75%
    );
    background-size: 200px 100%;
    animation: shimmer 1.8s infinite linear;
    width: 100%;
    height: 60px;
    border-radius: 8px;
    will-change: background-position;
}

.skeleton-table {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.1) 25%,
        rgba(255, 255, 255, 0.15) 50%,
        rgba(255, 255, 255, 0.1) 75%
    );
    background-size: 200px 100%;
    animation: shimmer 1.8s infinite linear;
    width: 100%;
    height: 280px;
    border-radius: 8px;
    flex-grow: 1;
    will-change: background-position;
}

/* Section 3: Sweep Demo Skeleton */
.skeleton-vault {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.1) 25%,
        rgba(255, 255, 255, 0.15) 50%,
        rgba(255, 255, 255, 0.1) 75%
    );
    background-size: 200px 100%;
    animation: shimmer 1.8s infinite linear;
    width: 200px;
    height: 100px;
    margin: 0 auto;
    border-radius: 16px;
    will-change: background-position;
}

.skeleton-banks {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.skeleton-banks::before,
.skeleton-banks::after {
    content: '';
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.1) 25%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0.1) 75%
    );
    background-size: 200px 100%;
    animation: shimmer 1.5s infinite linear;
    height: 80px;
    border-radius: 12px;
}

.skeleton-banks::before {
    animation-delay: 0.2s;
}

.skeleton-banks::after {
    animation-delay: 0.4s;
}

/* Responsive skeleton styles */
@media (max-width: 991px) {
    .skeleton-balance {
        height: 100px;
    }
    
    .skeleton-chart {
        height: 140px;
    }
    
    .skeleton-banks {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .skeleton-balance {
        height: 80px;
    }
    
    .skeleton-chart {
        height: 120px;
    }
    
    .skeleton-transactions {
        height: 120px;
    }
    
    .skeleton-table {
        height: 160px;
    }
}

/* Buttons */
.btn-serrafi-primary {
    background-color: var(--serrafi-yellow);
    color: black;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
}

.btn-serrafi-primary:hover {
    background-color: #e6b82a;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btn-serrafi-secondary {
    background-color: var(--serrafi-dark);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
}

.btn-serrafi-secondary:hover {
    background-color: #393a3d;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btn-gradient {
    background: var(--serrafi-gradient);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
}

.btn-gradient:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* Button Sizes */
.btn-sm {
    padding: 8px 16px;
    font-size: 12px;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 16px;
}

.btn-xl {
    padding: 20px 40px;
    font-size: 18px;
}

.btn-full {
    width: 100%;
}

/* Feature Cards */
.feature-card {
    background: transparent;
    border: 2px solid #3B3C3F;
    border-radius: 12px;
    padding: 24px;
    transition: all 0.2s ease;
    cursor: pointer;
    text-decoration: none;
    display: block;
    color: inherit;
}

.feature-card:hover {
    border-color: var(--serrafi-accent);
    background: rgba(255, 213, 79, 0.05);
    transform: translateY(-2px);
}

.feature-card.selected {
    border-color: var(--serrafi-accent);
    box-shadow: 0 0 0 2px var(--serrafi-accent);
    background: rgba(255, 213, 79, 0.05);
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    color: white;
}

.feature-card p {
    font-size: 14px;
    line-height: 1.6;
    color: #D1D5DB;
    margin-bottom: 16px;
}

/* Badges */
.badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
    margin-right: 8px;
    margin-bottom: 4px;
}

.badge-primary {
    background-color: var(--serrafi-yellow);
    color: black;
}

.badge-secondary {
    background-color: var(--serrafi-dark);
    color: white;
}

.badge-accent {
    background: linear-gradient(90deg, var(--serrafi-purple) 0%, var(--serrafi-red) 100%);
    color: white;
}

/* Hero Sections */
.hero {
    text-align: center;
    padding: 80px 20px;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 24px;
    line-height: 1.1;
}

.hero p {
    font-size: 1.25rem;
    color: #D1D5DB;
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Grid Layouts */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin: 40px 0;
}

.feature-grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin: 40px 0;
}

@media (min-width: 768px) {
    .feature-grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-overlay.show {
    display: flex;
}

.modal-content {
    background-color: #18191b;
    padding: 24px;
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    animation: modalFadeIn 0.3s ease-out;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: #9CA3AF;
    font-size: 24px;
    cursor: pointer;
    transition: color 0.2s;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: white;
}

/* Form Elements */
.form-input {
    width: 100%;
    padding: 12px 16px;
    border-radius: 8px;
    background: #374151;
    color: white;
    border: 2px solid #4B5563;
    font-size: 14px;
    transition: border-color 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: var(--serrafi-accent);
}

.form-input::placeholder {
    color: #9CA3AF;
}

/* Animations */
@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

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

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }

.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }

.space-x-4 > * + * { margin-left: 16px; }
.space-y-4 > * + * { margin-top: 16px; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .feature-card {
        padding: 20px;
    }
    
    .btn-lg {
        padding: 14px 28px;
        font-size: 15px;
    }
} 

/* ===== DASHBOARD SCREENSHOT ===== */

.dashboard-screenshot-wrapper {
  width: 70%;
  margin: 0 auto;
  margin-bottom: 3.125rem;
}

.dashboard-screenshot {
  width: 100%;
  height: auto;
  border-radius: 1rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* ===== ACCOUNTS FEATURE SECTIONS ===== */

.accounts-feature-section {
  padding: 5rem 0;
  background: white;
  overflow: visible;
  position: relative;
}

.accounts-feature-section.alt {
  background: #fafafa;
  padding: 8rem 0;
}

.accounts-feature-content {
  display: flex;
  align-items: center;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  overflow: visible;
}

.accounts-feature-content.reverse {
  flex-direction: row-reverse;
}

.accounts-feature-text {
  flex: 1;
}

.accounts-feature-heading {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.accounts-feature-description {
  font-size: 1.125rem;
  line-height: 1.6;
  color: #666;
  margin: 0;
}

.accounts-feature-demo {
  flex: 1;
  max-width: 600px;
  overflow: visible;
  position: relative;
}

/* Override max-width for the first two sections to make cards the same size */
[data-lazy-section="section1"] .accounts-feature-demo,
[data-lazy-section="section2"] .accounts-feature-demo {
  max-width: 600px !important;
  flex: 1 1 auto;
  width: 100%;
}

/* ===== SECTION 1: INTERACTIVE ACCOUNTS DASHBOARD ===== */

.interactive-accounts-dashboard {
  width: 100%;
  padding: 2rem;
  background: rgb(23, 23, 23);
  border-radius: 1rem;
  position: relative;
  z-index: 10;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Live Balance Counter Styles */
.balance-counter-section {
  display: flex;
  align-items: flex-start;
  gap: 3rem;
  margin-bottom: 2.5rem;
  width: 100%;
}

.balance-counter-wrapper {
  position: relative;
  flex: 0 0 auto;
  min-width: 200px;
}

.balance-label {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.balance-amount {
  color: #10B981;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  position: relative;
  z-index: 2;
  /* Optimized transition for better performance */
  transition: color 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: contents; /* Optimize for text changes */
  /* Font optimization for smooth number changes */
  font-variant-numeric: tabular-nums;
}

.balance-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200px;
  height: 80px;
  /* Simplified gradient for better performance */
  background: radial-gradient(ellipse at center, rgba(16, 185, 129, 0.4), transparent 50%);
  opacity: 0;
  border-radius: 50%;
  /* Reduced blur for better performance */
  filter: blur(15px);
  transition: opacity 1s ease-out;
  pointer-events: none;
  z-index: 1;
  /* GPU acceleration */
  will-change: opacity;
}

.balance-glow.active {
  opacity: 0.4;
  animation: pulseGlow 2s ease-out forwards;
}

@keyframes pulseGlow {
  0% { 
    opacity: 0.6; 
    transform: translate3d(-50%, -50%, 0) scale(0.9); /* GPU acceleration */
  }
  50% { 
    opacity: 0.4; 
    transform: translate3d(-50%, -50%, 0) scale(1.1); 
  }
  100% { 
    opacity: 0; 
    transform: translate3d(-50%, -50%, 0) scale(1.3); /* Reduced scale for smoother animation */
  }
}

/* Sparkline Chart Styles */
.sparkline-wrapper {
  flex: 1;
  position: relative;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0.75rem;
  padding: 1rem;
  border: 1px solid rgba(249, 204, 46, 0.2);
  transition: border-color 0.3s ease;
  cursor: crosshair;
  /* CSS containment for better performance */
  contain: layout style;
  /* GPU acceleration */
  transform: translateZ(0);
  will-change: border-color;
}

.sparkline-wrapper:hover {
  border-color: rgba(249, 204, 46, 0.4);
}

#sparkline-canvas {
  width: 100%;
  height: 140px;
  cursor: crosshair;
  display: block;
}

.sparkline-hover-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--serrafi-yellow);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 10px rgba(249, 204, 46, 0.6);
  transition: opacity 0.15s ease;
  z-index: 10;
}

.sparkline-hover-dot.auto-scanning {
  animation: pulseHandle 1s ease-in-out infinite alternate;
}

@keyframes pulseHandle {
  0% { 
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.8;
  }
  100% { 
    transform: translate(-50%, -50%) scale(1.3);
    opacity: 1;
  }
}

.sparkline-hint-label {
  position: absolute;
  top: 10px;
  right: 15px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.65rem;
  font-weight: 500;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sparkline-tooltip {
  position: absolute;
  bottom: -60px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--serrafi-dark);
  border: 1px solid var(--serrafi-yellow);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  color: white;
  font-size: 0.75rem;
  pointer-events: none;
  z-index: 10;
  opacity: 0;
  transition: all 0.2s ease;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  min-width: 120px;
  white-space: nowrap;
  text-align: center;
}

.sparkline-tooltip.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.sparkline-tooltip .tooltip-date {
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: white;
}

.sparkline-tooltip .tooltip-money-in {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.7rem;
  margin-bottom: 0.125rem;
}

.sparkline-tooltip .tooltip-money-out {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.7rem;
}

.sparkline-tooltip .money-in-amount {
  color: #10B981;
}

.sparkline-tooltip .money-out-amount {
  color: #EF4444;
}

@media (max-width: 767px) {
  .sparkline-tooltip {
    max-width: calc(100vw - 2rem) !important;
    white-space: normal !important;
    left: 50% !important;
  }
}

/* Transactions Ticker Styles */
.transactions-ticker-section {
  margin-top: 2rem;
}

.transactions-header {
  color: white;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  letter-spacing: 0.25px;
}

.transactions-ticker {
  overflow: hidden;
  height: 2rem;
  position: relative;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.transactions-list {
  display: flex;
  flex-direction: column;
  animation: scrollTicker 12s linear infinite;
  animation-play-state: running;
}

.transactions-ticker:hover .transactions-list {
  animation-play-state: paused;
}

@keyframes scrollTicker {
  0%, 20% { transform: translateY(0); }
  25%, 45% { transform: translateY(-2rem); }
  50%, 70% { transform: translateY(-4rem); }
  75%, 100% { transform: translateY(-6rem); }
}

.transaction-item {
  display: flex;
  align-items: center;
  padding: 0.5rem 1rem;
  height: 2rem;
  flex-shrink: 0;
}

.transaction-date {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8rem;
  width: 4rem;
  flex-shrink: 0;
}

.transaction-payee {
  color: white;
  font-size: 0.85rem;
  flex: 1;
  margin: 0 1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.transaction-amount {
  font-size: 0.85rem;
  font-weight: 600;
  width: 7rem;
  text-align: right;
  flex-shrink: 0;
}

.transaction-amount.positive {
  color: #10B981;
}

.transaction-amount.negative {
  color: #EF4444;
}

/* ===== SECTION 2: FILTER DEMO ===== */

.filter-demo-wrapper {
  width: 100%;
  background: rgb(23, 23, 23);
  border-radius: 1rem;
  padding: 2rem;
  position: relative;
  box-sizing: border-box;
  /* Optimized box-shadow for better performance */
  box-shadow: 
    0 10px 30px rgba(0, 0, 0, 0.2),
    0 4px 15px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  /* CSS containment for better performance */
  contain: layout style;
  /* GPU acceleration */
  transform: translateZ(0);
}

.filter-controls {
  margin-bottom: 0;
}

.filter-row {
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: 0.75rem;
  align-items: center;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0.5rem 0.5rem 0 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.filter-input {
  padding: 0.5rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.375rem;
  font-size: 0.8rem;
  font-weight: 500;
  transition: all 0.2s ease;
  min-width: auto;
  background: rgba(255, 255, 255, 0.05);
  color: white;
  font-family: 'Switzer', system-ui, sans-serif;
}

.filter-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.filter-input:focus {
  outline: none;
  border-color: var(--serrafi-yellow);
  box-shadow: 0 0 0 2px rgba(249, 204, 46, 0.2);
  background: rgba(255, 255, 255, 0.08);
}

.date-range-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
}

.date-input-group {
  flex: 1;
  position: relative;
  min-width: 0;
  width: 140px;
  height: 34px;
}

.date-separator {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.875rem;
  font-weight: 500;
  margin: 0 0.25rem;
  flex-shrink: 0;
  align-self: center;
}

.date-input {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  color-scheme: dark;
  background: rgba(255, 255, 255, 0.05);
  color: white;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  font-size: 12.8px;
  font-weight: 500;
  transition: none;
  font-family: 'Switzer', system-ui, sans-serif;
  box-sizing: border-box;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  line-height: 16px;
  width: 140px;
  height: 34px;
}

.date-input:focus {
  outline: none !important;
  border-color: var(--serrafi-yellow) !important;
  box-shadow: inset 0 0 0 1px var(--serrafi-yellow) !important;
  background: rgba(255, 255, 255, 0.08) !important;
  transform: none !important;
  outline-offset: 0 !important;
}

.date-input::-webkit-calendar-picker-indicator {
  display: none;
}

.date-input::after {
  content: '📅';
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.6;
  font-size: 12px;
  pointer-events: none;
}

.date-fake-input {
  padding: 8px 32px 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  font-size: 12.8px;
  font-weight: 500;
  transition: all 0.2s ease;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.6);
  font-family: 'Switzer', system-ui, sans-serif;
  cursor: pointer;
  width: 140px;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-sizing: border-box;
  line-height: 16px;
  height: 34px;
  margin: 0;
}

.date-fake-input:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
}

.date-fake-input:focus {
  outline: none;
  border-color: var(--serrafi-yellow);
  box-shadow: inset 0 0 0 1px var(--serrafi-yellow);
  background: rgba(255, 255, 255, 0.08);
}

.date-fake-input::after {
  content: '📅';
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.6;
  font-size: 12px;
  pointer-events: none;
}

.demo-table {
  overflow: hidden;
  border-radius: 0 0 0.5rem 0.5rem;
  border: none;
}

.table-header {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.table-body {
  max-height: 300px;
  overflow: hidden;
}

.table-row {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
  opacity: 1;
  transform: translateY(0);
  background: transparent;
  color: white;
  font-size: 0.875rem;
}

.table-row:nth-child(even) {
  background: rgba(255, 255, 255, 0.02);
}

.table-row.filtered-out {
  opacity: 0;
  transform: translateZ(0) translateY(-20px); /* GPU acceleration */
  height: 0;
  padding: 0;
  margin: 0;
  overflow: hidden;
}

.table-row:hover {
  background: rgba(255, 255, 255, 0.08);
}

.table-row .positive {
  color: #10B981;
}

.table-row .negative {
  color: #EF4444;
}

.hidden {
  display: none;
}

/* ===== SECTION 3: SWEEP DEMO (Original for Accounts Page) ===== */

.sweep-demo-wrapper {
  background: rgb(23, 23, 23);
  border-radius: 1rem;
  padding: 3rem;
  position: relative;
  overflow: hidden;
  min-height: 500px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  contain: layout style paint;
  will-change: transform;
}

/* SVG Layer for animated paths */
.money-streams-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.money-vault {
  text-align: center;
  margin-top: 0;
  margin-bottom: 4rem;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 3;
  width: calc(100% - 2rem);
  max-width: calc(900px - 2rem);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  padding: 2rem;
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  will-change: transform, box-shadow;
  contain: layout style;
  transform: translateZ(0);
}

.money-vault.pulsing {
  animation: vaultPulse 2s ease-in-out 6;
}

@keyframes vaultPulse {
  0%, 100% { 
    box-shadow: 
      0 0 20px rgba(249, 204, 46, 0.15),
      0 4px 20px rgba(0, 0, 0, 0.1);
    transform: translateZ(0) scale(1);
  }
  50% { 
    box-shadow: 
      0 0 25px rgba(249, 204, 46, 0.25),
      0 6px 25px rgba(0, 0, 0, 0.15);
    transform: translateZ(0) scale(1.015);
  }
}

.vault-icon {
  margin-bottom: 1rem;
  display: block;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
  will-change: transform;
}

.vault-icon svg {
  width: 48px;
  height: 48px;
  color: white;
  opacity: 0.95;
}

.vault-label {
  color: white;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.vault-amount {
  color: white;
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
}

/* Radial bank layout */
.partner-banks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2rem;
  width: 100%;
  max-width: 900px;
  position: relative;
  z-index: 2;
  padding: 0 1rem;
}

.bank-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  padding: 1.25rem;
  text-align: center;
  transition: all 0.4s ease;
  cursor: pointer;
  position: relative;
  opacity: 0.7;
  backdrop-filter: blur(10px);
}

.bank-item.active {
  opacity: 1;
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 
    0 0 20px rgba(255, 255, 255, 0.15),
    0 8px 32px rgba(0, 0, 0, 0.3);
  transform: scale(1.05) translateY(-4px);
  background: rgba(255, 255, 255, 0.1);
}

.bank-item.active .bank-icon svg {
  opacity: 1;
  color: var(--serrafi-yellow);
}

.bank-item.active .bank-amount {
  color: rgba(134, 239, 172, 0.95);
}

.bank-item:hover {
  opacity: 1;
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.bank-item:hover .bank-icon svg {
  opacity: 1;
  transform: scale(1.05);
  transition: all 0.3s ease;
}

.bank-icon {
  margin-bottom: 0.75rem;
  display: block;
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.2));
}

.bank-icon svg {
  width: 32px;
  height: 32px;
  color: white;
  opacity: 0.9;
}

.bank-name {
  color: white;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.bank-amount {
  color: rgba(134, 239, 172, 0.8);
  font-size: 0.7rem;
  font-weight: 400;
  font-variant: small-caps;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
}

.bank-amount svg {
  width: 14px;
  height: 14px;
  opacity: 0.8;
  flex-shrink: 0;
  color: inherit;
}

/* Enhanced tooltip */
.bank-tooltip {
  position: fixed;
  background: rgba(0, 0, 0, 0.9);
  border: 1px solid var(--serrafi-yellow);
  border-radius: 0.5rem;
  padding: 1rem;
  color: white;
  font-size: 0.875rem;
  z-index: 10000 !important;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  min-width: 200px;
  max-width: 300px;
  display: block;
}

.bank-tooltip.visible {
  opacity: 1 !important;
  pointer-events: auto;
}

.bank-tooltip .tooltip-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  gap: 1rem;
}

.tooltip-bank-name {
  font-weight: 600;
  color: var(--serrafi-yellow);
}

.tooltip-status {
  font-size: 0.75rem;
  color: #10B981;
  background: rgba(16, 185, 129, 0.2);
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  margin-left: 1rem;
}

.tooltip-amount {
  font-size: 1.1rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.5rem;
}

.tooltip-last-sweep {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
}

.sweep-time {
  color: var(--serrafi-yellow);
}

/* Optimized animated money stream particles */
.money-particle {
  fill: var(--serrafi-yellow);
  filter: url(#particle-glow);
  opacity: 0.8;
  transition: opacity 0.1s ease;
  will-change: transform, opacity;
}

.money-particle.premium {
  fill: #FFD700;
}

.money-particle.standard {
  fill: var(--serrafi-yellow);
}

/* ===== SECTION 3: ACCOUNT TRANSFER DEMO (New for Payments Page) ===== */

.account-transfer-demo {
  width: 100%;
  padding: 2rem;
  background: rgb(23, 23, 23);
  border-radius: 1rem;
  position: relative;
  z-index: 10;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  box-sizing: border-box;
  border: 1px solid rgba(255, 255, 255, 0.1);
  min-height: 500px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  contain: layout style paint;
}

/* SVG Layer for animated transfer paths */
.transfer-paths-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
}

/* Account Cards Grid */
.account-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 320px));
  gap: 1.5rem;
  width: 100%;
  max-width: 900px;
  position: relative;
  z-index: 2;
  padding: 0;
  justify-content: center;
}

/* Individual Account Card */
.account-card {
  background: rgba(42, 42, 42, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 1rem;
  transition: all 0.3s ease, border-color 500ms ease-out, box-shadow 500ms ease-out, background-color 500ms ease-out;
  cursor: pointer;
  position: relative;
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  will-change: transform, box-shadow;
  max-width: 380px;
  margin: 0 auto;
}

/* Connection Zones - Hidden to avoid visual clutter */
.account-card::before,
.account-card::after {
  display: none;
}

/* Connection indicator animations removed since pseudo-elements are hidden */

.account-card:hover {
  transform: translateY(-4px);
  border-color: rgba(249, 204, 46, 0.4);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Hover pseudo-elements removed since connection indicators are hidden */

.account-card.transferring {
  border-color: var(--serrafi-yellow);
  box-shadow: 
    0 0 20px rgba(249, 204, 46, 0.3),
    0 8px 32px rgba(0, 0, 0, 0.3);
  background: rgba(249, 204, 46, 0.05);
  transform: translateY(0);
  transition: all 0.3s ease, border-color 1200ms ease-out, box-shadow 1200ms ease-out, background-color 1200ms ease-out;
}

.account-card.receiving {
  border-color: var(--serrafi-yellow);
  box-shadow: 
    0 0 20px rgba(249, 204, 46, 0.3),
    0 8px 32px rgba(0, 0, 0, 0.3);
  background: rgba(249, 204, 46, 0.05);
  transform: translateY(0);
  transition: all 0.3s ease, border-color 500ms ease-out, box-shadow 500ms ease-out, background-color 500ms ease-out;
}

/* Account Logo */
.account-logo-wrapper {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-right: 0;
}

.account-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

/* Account Info */
.account-info {
  flex: 1;
  min-width: 0;
  margin-right: 0;
}

.account-name {
  color: white;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
  line-height: 1.3;
}

.account-number {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.75rem;
  margin-bottom: 0.35rem;
  font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
}

.account-balance {
  color: white;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
  transition: all 0.3s ease;
  position: relative;
}

/* Smaller font sizes for external accounts (all except SerraFi) */
.account-card.external-account .account-name {
  font-size: 0.95rem;
}

.account-card.external-account .account-number {
  font-size: 0.8rem;
}

.account-card.external-account .account-balance {
  font-size: 0.9rem;
}

/* Healthcare page specific styling - even smaller headers for external accounts */
.solutions-section-hero .account-card.external-account .account-number {
  font-size: 1rem;
  font-family: 'Switzer', sans-serif;
  font-weight: 500;
}

/* Healthcare page specific styling - reduce right padding to prevent text wrapping */
.solutions-section-hero .account-card.external-account {
  padding-right: 10px;
}

/* Healthcare page specific styling - white background for logo wrappers */
.solutions-section-hero .account-card .account-logo-wrapper {
  background: white;
}

/* Healthcare page specific styling - green color only for Harborcrest cashback balance */
.solutions-section-hero .account-card.serrafi-account .account-balance {
  color: #00F78C;
}

/* Healthcare page specific styling - ensure external account balances stay white */
.solutions-section-hero .account-card.external-account .account-balance {
  color: white;
}

/* Healthcare page specific styling - cashback earned label styling */
.solutions-section-hero .account-card.serrafi-account .account-number {
  font-size: 11px;
  font-family: 'Switzer', sans-serif;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: normal;
  margin-bottom: 0px;
}

/* Healthcare page specific styling - total disbursements label styling (matching cashback earned) */
.solutions-section-hero .account-card.external-account .account-number {
  font-size: 11px;
  font-family: 'Switzer', sans-serif;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: normal;
  margin-bottom: 0px;
}

/* Balance updating animation */
.account-balance.balance-updating {
  color: var(--serrafi-yellow);
}

/* SerraFi Account Styling - removed to match other logos */

/* Transfer Tooltip */
.transfer-tooltip {
  position: fixed;
  background: rgba(0, 0, 0, 0.92);
  border: 1px solid var(--serrafi-yellow);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  color: white;
  font-size: 0.875rem;
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  min-width: 180px;
}

.transfer-tooltip.visible {
  opacity: 1;
  pointer-events: auto;
}

.transfer-tooltip .tooltip-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  gap: 0.75rem;
}

.transfer-type {
  font-weight: 600;
  color: var(--serrafi-yellow);
  font-size: 0.8rem;
}

.transfer-status {
  font-size: 0.7rem;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-weight: 500;
}

.transfer-status.instant {
  color: #10b981;
  background: rgba(16, 185, 129, 0.2);
}

.transfer-status.external {
  color: #6b7280;
  background: rgba(107, 114, 128, 0.2);
}

.transfer-amount {
  font-size: 1rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.25rem;
  font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
}

.transfer-eta {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
}

.eta-time {
  color: var(--serrafi-yellow);
  font-weight: 500;
}

  /* Transfer Animation Elements */
.transfer-orb {
  fill: var(--serrafi-yellow);
  filter: drop-shadow(0 0 8px rgba(249, 204, 46, 0.8)) drop-shadow(0 0 16px rgba(249, 204, 46, 0.4));
  opacity: 0.95;
  will-change: transform, opacity;
  transition: opacity 500ms ease-out;
}

/* All transfer orbs stay golden */
.transfer-orb.instant {
  fill: var(--serrafi-yellow);
  filter: drop-shadow(0 0 8px rgba(249, 204, 46, 0.8)) drop-shadow(0 0 16px rgba(249, 204, 46, 0.4));
}

/* Visual Connection Hints removed since pseudo-elements are hidden */

.transfer-path {
  stroke: rgba(249, 204, 46, 0.6);
  stroke-width: 3;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 8,4;
  opacity: 0;
  will-change: opacity;
  filter: drop-shadow(0 0 4px rgba(249, 204, 46, 0.3));
  transition: opacity 500ms ease-out;
}

/* All transfer paths stay golden */
.transfer-path.instant {
  stroke: rgba(249, 204, 46, 0.6);
  filter: drop-shadow(0 0 4px rgba(249, 204, 46, 0.3));
}

.transfer-path.active {
  opacity: 1;
  animation: pathGlow 2.5s ease-in-out;
}

.transfer-path.fading-out {
  animation: none !important;
  transition: opacity 500ms ease-out !important;
}

@keyframes pathGlow {
  0%, 100% { 
    opacity: 0.6;
    stroke-width: 3;
  }
  50% { 
    opacity: 0.9;
    stroke-width: 4;
  }
}

.stream-path {
  stroke: rgba(249, 204, 46, 0.3);
  stroke-width: 2;
  fill: none;
  opacity: 0.6;
  transition: stroke 0.3s ease, opacity 0.3s ease, stroke-width 0.3s ease;
  /* GPU acceleration */
  will-change: stroke, opacity, stroke-width;
}

.stream-path.highlighted {
  stroke: var(--serrafi-yellow);
  stroke-width: 3;
  opacity: 1;
  /* Use optimized SVG filter instead of CSS filter */
  filter: url(#stream-glow);
}

.replay-button {
  background: var(--serrafi-yellow);
  color: #1a1a1a;
  border: none;
  padding: 1rem 2rem;
  border-radius: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 2rem;
  transition: all 0.2s ease;
  font-size: 0.875rem;
  z-index: 3;
  position: relative;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.replay-button:hover {
  background: #f1b82b;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Responsive Design */
@media (max-width: 991px) {
  .dashboard-screenshot-wrapper {
    width: 90%;
    padding-left: 20px;
    padding-right: 20px;
  }
  
  /* Override for payment interface - allow full width */
  .container-right-reverse .dashboard-screenshot-wrapper {
    width: 100%;
    padding: 0;
    margin: 0 auto;
  }
  
  .accounts-feature-content {
    flex-direction: column;
    gap: 2rem;
  }
  
  .accounts-feature-content.reverse {
    flex-direction: column-reverse;
  }
  
  .accounts-feature-heading {
    font-size: 2rem;
  }
  
  .accounts-feature-demo {
    max-width: none;
    width: 100%;
  }
  
  .big-paragraphs {
    white-space: normal !important;
    font-size: 1rem !important;
    line-height: 1.4 !important;
  }
  
  .section-main.solutions-section-hero {
    padding-bottom: 0 !important;
    margin-bottom: -23rem !important;
  }
  
  .section-main.solutions-section-hero .container[style*="margin-top: 80px"] {
    margin-top: 0px !important;
  }
  
  .section-main.accounts-feature-section {
    margin-top: 0rem !important;
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
  }
  
  .section-main.accounts-feature-section.alt {
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
  }
  
  /* PROPER FIX: Ensure hero section contains its content properly on mobile */
  @media (max-width: 991px) {
    /* Make sure the hero section has enough height to contain the gauge */
    .section-main.solutions-section-hero,
    .section-main.solutions-section-hero.mobile-consistent {
      min-height: auto !important;
      padding-bottom: 6rem !important;
      margin-bottom: 0 !important;
      overflow: visible !important;
    }
    
    /* Ensure the hero flex container doesn't overflow */
    .section-main.solutions-section-hero .hero-flex-container {
      flex-direction: column !important;
      gap: 3rem !important;
      min-height: auto !important;
      margin-bottom: 2rem !important;
    }
    
    /* Contain the gauge graphic properly */
    .section-main.solutions-section-hero .accounts-feature-demo {
      position: relative !important;
      margin-bottom: 2rem !important;
    }
    
    /* Add standard spacing to all accounts feature sections */
    .section-main.accounts-feature-section {
      padding-top: 4rem !important;
      padding-bottom: 4rem !important;
    }
  }
  
  @media (max-width: 768px) {
    .section-main.solutions-section-hero,
    .section-main.solutions-section-hero.mobile-consistent {
      padding-bottom: 4rem !important;
      min-height: auto !important;
    }
    
    .section-main.solutions-section-hero .hero-flex-container {
      gap: 2rem !important;
    }
  }
  
  @media (max-width: 480px) {
    .section-main.solutions-section-hero,
    .section-main.solutions-section-hero.mobile-consistent {
      padding-bottom: 3rem !important;
      min-height: auto !important;
    }
  }
  
  /* Sweep demo responsive (for accounts page) */
  .sweep-demo-wrapper {
    padding: 2rem;
    min-height: 450px;
  }
  
  .money-vault {
    margin-top: 1rem;
    margin-bottom: 3rem;
    padding: 1.5rem;
    width: calc(100% - 2rem);
    max-width: calc(700px - 2rem);
  }
  
  .vault-amount {
    font-size: 1.5rem;
    letter-spacing: 0.02em;
  }
  
  .partner-banks {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1.5rem;
    max-width: 700px;
  }
  
  .bank-item {
    padding: 1rem;
  }
  
  .bank-tooltip {
    min-width: 180px;
    font-size: 0.8rem;
    position: fixed !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    right: auto !important;
    max-width: calc(100vw - 2rem) !important;
  }
  
  /* Account transfer demo responsive (for payments page) */
  .account-transfer-demo {
    padding: 2rem;
    min-height: auto;
  }
  
  .account-cards-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 280px));
    gap: 1.25rem;
    max-width: 750px;
  }
  
  .account-card {
    padding: 1.25rem;
  }
  
  .account-logo-wrapper {
    width: 48px;
    height: 48px;
  }
  
  .account-logo {
    width: 40px;
    height: 40px;
  }
  
  .account-name {
    font-size: 1rem;
  }
  
  .account-number {
    font-size: 0.8rem;
  }
  
  .account-balance {
    font-size: 0.9rem;
  }
  
  .transfer-tooltip {
    min-width: 160px;
    font-size: 0.8rem;
    position: fixed !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    right: auto !important;
    max-width: calc(100vw - 2rem) !important;
  }
  
  .balance-counter-section {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .balance-amount {
    font-size: 1.3rem;
  }
  
  .sparkline-wrapper {
    width: 100%;
  }
  
  .filter-row {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  
  .date-range-wrapper {
    display: none;
  }
  
  .date-separator {
    display: none;
  }
  
  .filter-input {
    min-width: auto;
  }
  
  .partner-banks {
    grid-template-columns: repeat(2, 1fr);
  }

  .account-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .dashboard-screenshot-wrapper {
    width: 95%;
  }
  
  /* Override for payment interface - allow full width */
  .container-right-reverse .dashboard-screenshot-wrapper {
    width: 100%;
    padding: 0;
    margin: 0 auto;
  }
  
  .accounts-feature-section {
    padding: 5rem 0;
  }
  
  .accounts-feature-section.alt {
    padding: 5rem 0;
  }
  
  .balance-amount {
    font-size: 1.2rem;
  }
  
  .transaction-date {
    width: 3rem;
    font-size: 0.7rem;
  }
  
  .transaction-payee {
    font-size: 0.8rem;
  }
  
  .transaction-amount {
    width: 6rem;
    font-size: 0.8rem;
  }
  
.table-header, .table-row {
    grid-template-columns: 0.8fr 1.5fr 0.7fr;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
  }
  
  /* Sweep demo mobile optimization (for accounts page) */
  .partner-banks {
    grid-template-columns: 1fr;
  }
  
  .sweep-demo-wrapper {
    padding: 1.5rem;
    min-height: 350px;
  }
  
  .money-vault {
    margin-top: 0.5rem;
    margin-bottom: 2rem;
    padding: 1rem;
  }
  
  /* Account transfer demo mobile optimization (for payments page) */
  .account-cards-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .account-transfer-demo {
    padding: 1.5rem;
    min-height: auto;
  }
  
  .account-card {
    padding: 1rem;
    flex-direction: column;
    text-align: center;
    gap: 0.75rem;
    max-width: calc(100% - 3rem);
    width: 100%;
  }
  
  /* Mobile connection zones removed since pseudo-elements are hidden */
  
  .account-logo-wrapper {
    width: 44px;
    height: 44px;
    margin: 0 auto;
  }
  
  .account-logo {
    width: 36px;
    height: 36px;
  }
  
  .account-info {
    margin-right: 0; /* Remove extra margin on mobile since layout is vertical */
  }
  
  .account-name {
    font-size: 0.9rem;
  }
  
  .account-number {
    font-size: 0.75rem;
  }
  
  .account-balance {
    font-size: 0.85rem;
  }
  
  .vault-icon {
    font-size: 2.5rem;
  }
  
  .vault-label {
    font-size: 1rem;
  }
  
  .vault-amount {
    font-size: 1.25rem;
  }
  
  .bank-item {
    padding: 0.75rem;
  }
  
  .bank-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
  }
  
  .bank-name {
    font-size: 0.8rem;
  }
  
  .bank-amount {
    font-size: 0.7rem;
  }
  
  .bank-tooltip {
    min-width: 160px;
    font-size: 0.75rem;
    padding: 0.75rem;
    position: fixed !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    right: auto !important;
    max-width: calc(100vw - 1rem) !important;
  }
  
  .tooltip-amount {
    font-size: 1rem;
  }
  
  .replay-button {
    padding: 0.75rem 1.5rem;
    font-size: 0.8rem;
    margin-top: 1.5rem;
  }
} 

/* Stripe Color Effect */
.stripe-hero-background {
    position: absolute;
    top: 320px; /* Position to center with the pinwheel hole */
    left: 50%; /* Center horizontally */
    transform: translateX(-50%); /* Center using transform */
    width: 100vw; /* Use viewport width for full coverage */
    min-width: 100%; /* Ensure minimum coverage */
    height: 100vh; /* Full viewport height */
    z-index: -1;
    background: linear-gradient(
        135deg,
        #667eea 0%,
        #764ba2 25%,
        #f093fb 50%,
        #f5576c 75%,
        #4facfe 100%
    );
    background-size: 300% 300%; /* Reduced from 400% to prevent overflow */
    animation: stripeGradientShift 8s ease-in-out infinite;
    clip-path: polygon(0 0, 100% 0, 100% 20%, 0 70%);
    /* Prevent any content from extending beyond the element */
    contain: layout style paint;
}

@keyframes stripeGradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    25% {
        background-position: 100% 50%;
    }
    50% {
        background-position: 50% 100%;
    }
    75% {
        background-position: 50% 0%;
    }
}

.stripe-title-blend {
    mix-blend-mode: color-burn;
    position: relative;
    z-index: 10;
}

.stripe-title-blend h2 {
    color: #1a1a1a;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    font-size: 4.5rem !important;
}

@media screen and (max-width: 768px) {
    .stripe-title-blend h2 {
        font-size: 3.4rem !important;
        line-height: 1.15 !important;
    }
}

/* Removed - sub-headline now in separate container */

/* Enhanced gradient with more Stripe-like colors */
.stripe-hero-background.enhanced {
    background: linear-gradient(
        135deg,
        #ff6b6b 0%,
        #4ecdc4 15%,
        #45b7d1 30%,
        #96ceb4 45%,
        #feca57 60%,
        #ff9ff3 75%,
        #54a0ff 90%,
        #5f27cd 100%
    );
    background-size: 400% 400%; /* Reduced from 600% to prevent overflow */
    animation: stripeGradientShift 12s ease-in-out infinite;
}

/* Add overflow control to section containers that contain the ribbon */
.section-main {
    overflow-x: hidden;
    position: relative;
}

/* Allow sections on cards page to show stripe extending from above */
html[data-wf-page="68811a4aff365897328f6dac"] .section-main.accounts-feature-section {
    overflow: visible !important;
    position: relative;
    z-index: 1; /* Below the stripe */
}

/* Also allow overflow for containers within these sections */
html[data-wf-page="68811a4aff365897328f6dac"] .section-main.accounts-feature-section .container,
html[data-wf-page="68811a4aff365897328f6dac"] .section-main.accounts-feature-section .w-container {
    overflow: visible !important;
}

/* Ensure the main container doesn't allow horizontal overflow */
.solutions-section-hero {
    overflow-x: hidden;
    position: relative;
}

/* Additional mobile overflow protection for solutions pages */
@media screen and (max-width: 767px) {
    /* Ensure body and html don't allow horizontal scroll on solutions pages */
    html[data-wf-page="68811a4aff365897328f6dac"] {
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }
    
    html[data-wf-page="68811a4aff365897328f6dac"] body {
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }
    
    /* Ensure all container elements prevent horizontal overflow but allow stripe to extend */
    html[data-wf-page="68811a4aff365897328f6dac"] .section-main.solutions-section-hero {
        overflow: visible !important; /* Allow stripe to extend naturally */
        position: relative;
        max-width: 100vw !important; /* Ensure container never exceeds viewport width */
    }
    
    /* Prevent any pseudo-element from causing overflow on solutions pages */
    html[data-wf-page="68811a4aff365897328f6dac"] *::before,
    html[data-wf-page="68811a4aff365897328f6dac"] *::after {
        max-width: calc(100vw + 20px) !important; /* Allow slight overflow but not enough to trigger scroll */
    }
    
    /* Universal overflow prevention for all containers on solutions pages */
    html[data-wf-page="68811a4aff365897328f6dac"] .container,
    html[data-wf-page="68811a4aff365897328f6dac"] .w-container,
    html[data-wf-page="68811a4aff365897328f6dac"] .section-main,
    html[data-wf-page="68811a4aff365897328f6dac"] .main-wrapper {
        overflow-x: hidden !important;
        max-width: 100vw !important;
        box-sizing: border-box !important;
    }
    
    /* Exception: Allow overflow for hero section containers to prevent ribbon and card clipping */
    html[data-wf-page="68811a4aff365897328f6dac"] .section-main.solutions-section-hero,
    html[data-wf-page="68811a4aff365897328f6dac"] .section-main.solutions-section-hero .w-container,
    html[data-wf-page="68811a4aff365897328f6dac"] .section-main.solutions-section-hero .container {
        overflow: visible !important;
    }
}

/* ===== STRIPE SYSTEM ORGANIZATION ===== */
/* 
 * THIS IS THE DEFINITIVE GUIDE TO HOW STRIPES/RIBBONS WORK:
 * 
 * 1. ACCOUNTS PAGE (data-wf-page="6881200e9f6d1ed0395a75fc"):
 *    - Uses the big diagonal stripe-hero-background.enhanced element
 *    - Direction: Left-to-right diagonal gradient with clip-path
 *    - Element: <div class="stripe-hero-background enhanced"></div>
 * 
 * 2. CARDS PAGE (data-wf-page="68811a4aff365897328f6dac"):
 *    - Uses ribbon created with ::before pseudo-element
 *    - Direction: Left-to-right (negative rotation values)
 *    - NO payments-page class on body
 * 
 * 3. PAYMENTS PAGE (data-wf-page="68811a4aff365897328f6dac"):
 *    - Uses ribbon created with ::before pseudo-element  
 *    - Direction: Right-to-left (positive rotation values)
 *    - HAS payments-page class on body
 * 
 * 4. SOLUTIONS PAGES (currently using data-wf-page="68811a4aff365897328f6dac"):
 *    - INCORRECTLY inherit the cards/payments ribbon system
 *    - Should have their own data-wf-page ID to avoid conflicts
 *    - Mobile ribbon widths have been reduced to prevent horizontal scroll
 *    - Pages: auto-sales-service, healthcare-medical, logistics-freight, wholesale-distribution
 * 
 * 5. OTHER PRODUCT PAGES:
 *    - If they have data-wf-page="68811a4aff365897328f6dac": Get ribbon (left-to-right)
 *    - If they have different page ID: Get whatever stripe is defined for that ID
 * 
 * DO NOT CHANGE THIS SYSTEM WITHOUT UPDATING THIS COMMENT!
 */

/* STEP 1: Disable stripe-hero-background for ALL pages except accounts */
html[data-wf-page="68811a4aff365897328f6dac"] .stripe-hero-background.enhanced {
    /* Hide stripe on cards/payments pages - they should use ribbon instead */
    display: none !important;
}

/* Ensure stripe-hero-background is also hidden on mobile for cashback page */
@media screen and (max-width: 991px) {
    html[data-wf-page="68811a4aff365897328f6dac"] .stripe-hero-background,
    html[data-wf-page="68811a4aff365897328f6dac"] .stripe-hero-background.enhanced {
        display: none !important;
    }
}

/* STEP 2: Create ribbon using CSS variables for rotation (default: left-to-right) */
html[data-wf-page="68811a4aff365897328f6dac"] .section-main.solutions-section-hero::before {
    content: '';
    position: absolute;
    top: 390px;
    left: var(--stripe-left, -10%);
    right: var(--stripe-right, auto);
    width: 120%;
    height: 225px;
    z-index: -10;
    background: linear-gradient(
        90deg,
        oklch(60% 0.24 280) 0%,      /* Deep violet - lower lightness, higher chroma */
        oklch(65% 0.26 290) 15%,     /* Purple - lower lightness, higher chroma */
        oklch(70% 0.25 300) 30%,     /* Light purple - lower lightness, higher chroma */
        oklch(75% 0.28 50) 50%,      /* Mango orange - lower lightness, higher chroma */
        oklch(80% 0.27 60) 65%,      /* Orange - lower lightness, higher chroma */
        oklch(85% 0.26 85) 80%,      /* Golden yellow - lower lightness, higher chroma */
        oklch(90% 0.25 95) 100%      /* Bright yellow - lower lightness, higher chroma */
    );
    background-size: 300% 100%;
    transform: rotate(var(--stripe-rotation, 20deg)); /* Use CSS variable for rotation */
    transform-origin: center;
    border-radius: 20px;
    animation: ribbonColorFlow 15s ease-in-out infinite;
    box-shadow: 0 20px 60px rgba(106, 27, 154, 0.3);
    opacity: 0.7 !important;
    filter: saturate(1.08) contrast(1.02);  /* Added saturation and contrast boost */
}

/* STEP 3: Remove old payments override - now using CSS variables */

/* STEP 4: Responsive breakpoints for ribbon system */
@media screen and (max-width: 991px) {
    html[data-wf-page="68811a4aff365897328f6dac"] .section-main.solutions-section-hero::before {
        height: 180px;
        top: 320px;
    }
}

@media screen and (max-width: 767px) {
    html[data-wf-page="68811a4aff365897328f6dac"] .section-main.solutions-section-hero::before {
        height: 150px;
        top: 260px;
        width: 110%; /* Reduced from 130% to prevent mobile overflow */
        border-radius: 15px;
    }
}

@media screen and (max-width: 479px) {
    html[data-wf-page="68811a4aff365897328f6dac"] .section-main.solutions-section-hero::before {
        height: 100px; /* Further reduced height */
        top: 36%; /* Adjusted position - lower to align with pinwheel */
        width: 100%; /* Constrained to viewport width */
        border-radius: 12px;
    }
}

/* ========================================
   MOBILE HERO COMPONENT
   Consistent spacing for mobile hero sections
   across all product and solution pages
   ======================================== */

/* Dynamic Font Scaling Support for Hero Headers */
.solutions-section-hero h2[data-font-scaled="true"] {
    transition: font-size 0.3s ease;
    display: block;
    width: 100%;
    max-width: 100%;
}

/* Ensure hero headers don't have conflicting font-size rules - Mobile fallback only */
@media screen and (max-width: 768px) {
    .solutions-section-hero.mobile-consistent h2 {
        font-size: clamp(1.5rem, 5vw, 4rem); /* Fallback if JS doesn't load */
    }
}

/* Override any existing font-size for scaled headers - MOBILE ONLY */
@media screen and (max-width: 768px) {
    .solutions-section-hero h2[data-font-scaled="true"],
    .solutions-section-hero.mobile-consistent h2[data-font-scaled="true"] {
        /* Font size will be set by JavaScript with !important */
        font-size: initial !important; /* Reset any inherited sizes */
    }
}

/* Mobile-specific hero styling - Applied to all specified pages */
@media screen and (max-width: 767px) {
    /* Product pages: accounts, payments, cards, cashback */
    /* Solution pages: wholesale, healthcare, logistics, auto */
    
    /* Base mobile hero component */
    .mobile-hero-component .section-main.solutions-section-hero,
    .section-main.solutions-section-hero.mobile-consistent {
        padding-top: 40px !important; /* Consistent separation from navbar */
        padding-bottom: 3rem !important;
        padding-left: 20px !important; /* Container padding for edge spacing */
        padding-right: 20px !important; /* Container padding for edge spacing */
        overflow: visible !important;
        min-height: auto !important; /* Fix scrollable container issue */
    }
    
    /* Hero content wrapper - consistent spacing */
    .mobile-hero-component .hero-flex-container,
    .mobile-hero-component .max-width-995,
    .solutions-section-hero.mobile-consistent .hero-flex-container,
    .solutions-section-hero.mobile-consistent .max-width-995 {
        margin: 0 !important; /* Reset all margins including inline styles */
        padding: 0 !important; /* Remove all padding to maximize space for text */
        width: 100% !important; /* Use full width */
        max-width: 100% !important; /* Override any max-width constraints */
    }
    
    /* Override inline styles on mobile */
    .solutions-section-hero.mobile-consistent [style*="margin-top"] {
        margin-top: 0 !important;
    }
    
    /* Ensure w-container doesn't add padding on mobile */
    .solutions-section-hero.mobile-consistent .w-container {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    /* Hero title (h2) spacing */
    .mobile-hero-component .solutions-section-hero h2,
    .solutions-section-hero.mobile-consistent h2 {
        /* Font size controlled by hero-header-font-scaler.js */
        line-height: 1.2 !important;
        margin-bottom: 1rem !important; /* Space between header and subheader */
        margin-top: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding: 0 !important; /* Remove all padding from h2 */
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: manual;
        width: 100% !important; /* Use full width */
    }
    
    /* Hero subtitle/paragraph spacing */
    .mobile-hero-component .solutions-section-hero p,
    .solutions-section-hero.mobile-consistent p {
        font-size: 1.125rem !important;
        line-height: 1.5 !important;
        margin-bottom: 2rem !important; /* Space between subheader and graphic/buttons */
        margin-top: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding: 0 !important; /* Remove all padding */
    }
    
    /* Hero graphic/demo element spacing */
    .mobile-hero-component .accounts-feature-demo,
    .mobile-hero-component .pinwheel-hero,
    .mobile-hero-component .cashback-hero-graphic,
    .solutions-section-hero.mobile-consistent .accounts-feature-demo,
    .solutions-section-hero.mobile-consistent .pinwheel-hero,
    .solutions-section-hero.mobile-consistent .cashback-hero-graphic {
        margin-top: 2rem !important; /* Consistent space from text above */
        margin-bottom: 2rem !important;
    }
    
    /* Flex container mobile adjustments */
    .mobile-hero-component .hero-flex-container,
    .solutions-section-hero.mobile-consistent .hero-flex-container {
        flex-direction: column !important;
        gap: 2rem !important;
        min-height: auto !important;
        align-items: center !important;
        text-align: center !important;
    }
    
    /* Text content container on mobile */
    .mobile-hero-component .hero-flex-container > div:first-child,
    .solutions-section-hero.mobile-consistent .hero-flex-container > div:first-child {
        max-width: 100% !important;
        padding: 0 !important;
    }
    
    /* Button group spacing in hero */
    .mobile-hero-component .button-group,
    .mobile-hero-component .solutions-section-hero .button-group,
    .solutions-section-hero.mobile-consistent .button-group {
        margin-top: 1.5rem !important;
        gap: 1rem !important;
        flex-direction: column !important;
        width: 100% !important;
    }
    
    /* Individual buttons in hero */
    .mobile-hero-component .button,
    .mobile-hero-component .solutions-section-hero .button,
    .solutions-section-hero.mobile-consistent .button {
        width: 100% !important;
        margin: 0 !important;
    }
}

/* Hide SerraFi brand button in footer on mobile devices */
@media screen and (max-width: 767px) {
    .footer-links-block-left .brand {
        display: none !important;
    }
}

/* Extra small mobile devices (max-width: 479px) */
@media screen and (max-width: 479px) {
    .mobile-hero-component .section-main.solutions-section-hero,
    .section-main.solutions-section-hero.mobile-consistent {
        padding-top: 40px !important; /* Maintain 40px separation */
        padding-bottom: 2.5rem !important;
        min-height: auto !important; /* Fix scrollable container issue */
    }
    
    .mobile-hero-component .solutions-section-hero h2,
    .solutions-section-hero.mobile-consistent h2 {
        /* Font size controlled by hero-header-font-scaler.js */
        /* Maintains dynamic scaling even on small screens */
        min-height: auto; /* Prevent empty ruleset warning */
    }
    
    .mobile-hero-component .solutions-section-hero p,
    .solutions-section-hero.mobile-consistent p {
        font-size: 1rem !important;
    }
}

/* Fix navbar and hero text for payments page */
html[data-wf-page="68811a4aff365897328f6dac"] .navbar {
    position: relative !important;
    z-index: 1000 !important;
    display: block !important;
    visibility: visible !important;
}

/* Change navbar text to black for payments page */
html[data-wf-page="68811a4aff365897328f6dac"] .navbar .text-block-4,
html[data-wf-page="68811a4aff365897328f6dac"] .navbar .text-block-2,
html[data-wf-page="68811a4aff365897328f6dac"] .navbar .z-index_1,
html[data-wf-page="68811a4aff365897328f6dac"] .navbar .nav-link,
html[data-wf-page="68811a4aff365897328f6dac"] .navbar .nav-link *,
html[data-wf-page="68811a4aff365897328f6dac"] .navbar .brand,
html[data-wf-page="68811a4aff365897328f6dac"] .navbar .text-block {
    color: #000000 !important;
}

/* Keep button text white for payments page */
html[data-wf-page="68811a4aff365897328f6dac"] .navbar .black-button .z-index_1,
html[data-wf-page="68811a4aff365897328f6dac"] .navbar .black-button *,
html[data-wf-page="68811a4aff365897328f6dac"] .navbar .button-wrapper * {
    color: #ffffff !important;
}

/* Fix hero text blend mode for payments page */
html[data-wf-page="68811a4aff365897328f6dac"] .stripe-title-blend {
    mix-blend-mode: normal !important;
}

html[data-wf-page="68811a4aff365897328f6dac"] .stripe-title-blend h2 {
    color: #1a1a1a !important;
    display: block !important;
    visibility: visible !important;
}

/* Fix button text color on accounts page */
html[data-wf-page="6881200e9f6d1ed0395a75fc"] .navbar .black-button .z-index_1,
html[data-wf-page="6881200e9f6d1ed0395a75fc"] .navbar .black-button *,
html[data-wf-page="6881200e9f6d1ed0395a75fc"] .navbar .button-wrapper * {
    color: #ffffff !important;
}

/* Fix text readability for Accounts page by adjusting background clipping while preserving shimmer */
html[data-wf-page="6881200e9f6d1ed0395a75fc"] .stripe-hero-background.enhanced {
    /* Convert to rotated stripe instead of rhomboid shape */
    clip-path: none !important; /* Remove rhomboid clip-path */
    width: 120% !important; /* Extend beyond viewport */
    height: 250px !important; /* Stripe height */
    top: 320px !important; /* Position to align with hero content */
    left: -10% !important;
    right: auto !important;
    transform: rotate(-18deg) !important; /* Diagonal stripe angle */
    transform-origin: center !important;
    border-radius: 20px !important;
}

/* Mobile-specific fix for accounts page stripe */
@media screen and (max-width: 991px) {
    html[data-wf-page="6881200e9f6d1ed0395a75fc"] .stripe-hero-background.enhanced {
        clip-path: none !important;
        height: 200px !important;
        top: 280px !important;
        transform: rotate(-16deg) !important;
    }
}

@media screen and (max-width: 767px) {
    html[data-wf-page="6881200e9f6d1ed0395a75fc"] .stripe-hero-background.enhanced {
        clip-path: none !important;
        height: 160px !important;
        top: 240px !important;
        transform: rotate(-14deg) !important;
        left: -5% !important;
        width: 110% !important;
    }
}

@media screen and (max-width: 599px) {
    html[data-wf-page="6881200e9f6d1ed0395a75fc"] .stripe-hero-background.enhanced {
        clip-path: none !important;
        height: 130px !important;
        top: 200px !important;
        transform: rotate(-12deg) !important;
        left: 0% !important;
        width: 100% !important;
    }
}

@keyframes ribbonColorFlow {
    0% {
        background-position: 0% 50%;
    }
    25% {
        background-position: 50% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    75% {
        background-position: 50% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* ===== ACCOUNTS PAGE RIBBON ===== */

/* Narrower Ribbon Element for Accounts Page */
html[data-wf-page="6881200e9f6d1ed0395a75fc"] .section-main.solutions-section-hero::after {
    content: '';
    position: absolute;
    bottom: -60px;
    left: -20%;
    width: 150%;
    height: 120px;
    z-index: 1;
    background: linear-gradient(
        90deg,
        oklch(60% 0.24 280) 0%,      /* Deep violet - lower lightness, higher chroma */
        oklch(65% 0.26 290) 15%,     /* Purple - lower lightness, higher chroma */
        oklch(70% 0.25 300) 30%,     /* Light purple - lower lightness, higher chroma */
        oklch(75% 0.28 50) 50%,      /* Mango orange - lower lightness, higher chroma */
        oklch(80% 0.27 60) 65%,      /* Orange - lower lightness, higher chroma */
        oklch(85% 0.26 85) 80%,      /* Golden yellow - lower lightness, higher chroma */
        oklch(90% 0.25 95) 100%      /* Bright yellow - lower lightness, higher chroma */
    );
    background-size: 300% 100%;
    transform: rotate(8deg);
    transform-origin: center;
    border-radius: 15px;
    animation: ribbonColorFlow 15s ease-in-out infinite;
    box-shadow: 0 15px 40px rgba(106, 27, 154, 0.25);
    pointer-events: none;
    opacity: 0.7; /* Set ribbon opacity to 70% */
    filter: saturate(1.08) contrast(1.02);  /* Added saturation and contrast boost */
}

/* Responsive adjustments for the accounts ribbon */
@media screen and (max-width: 991px) {
    html[data-wf-page="6881200e9f6d1ed0395a75fc"] .section-main.solutions-section-hero::after {
        height: 100px;
        bottom: -50px;
        transform: rotate(6deg);
    }
}

@media screen and (max-width: 767px) {
    html[data-wf-page="6881200e9f6d1ed0395a75fc"] .section-main.solutions-section-hero::after {
        height: 80px;
        bottom: -40px;
        left: -25%;
        width: 160%;
        transform: rotate(5deg);
        border-radius: 12px;
    }
}

@media screen and (max-width: 479px) {
    html[data-wf-page="6881200e9f6d1ed0395a75fc"] .section-main.solutions-section-hero::after {
        height: 60px;
        bottom: -30px;
        left: -30%;
        width: 170%;
        transform: rotate(4deg);
        border-radius: 10px;
    }
}

/* Ensure the hero section allows content to flow beyond the background */
.section-main.solutions-section-hero {
    position: relative;
    overflow: visible; /* Allow ribbon to extend beyond section bounds */
    min-height: 100vh;
    margin-top: 0; /* Ensure no gap between header and section */
}

/* Mobile override for cashback page specifically */
@media screen and (max-width: 991px) {
    html[data-wf-page="68811a4aff365897328f6dac"] .section-main.solutions-section-hero,
    html[data-wf-page="68811a4aff365897328f6dac"] .section-main.solutions-section-hero.mobile-consistent {
        min-height: auto !important;
        overflow: visible !important;
        background: transparent !important; /* Remove any background color */
    }
    
    /* Ensure no background on any parent containers */
    html[data-wf-page="68811a4aff365897328f6dac"],
    html[data-wf-page="68811a4aff365897328f6dac"] body {
        background: #ffffff !important; /* Set to white background on mobile */
    }
    
    /* Hide all gradient elements on cashback page mobile */
    html[data-wf-page="68811a4aff365897328f6dac"] .rewards-gradient-ribbon,
    html[data-wf-page="68811a4aff365897328f6dac"] .gradient-mask,
    html[data-wf-page="68811a4aff365897328f6dac"] .gradient-container {
        display: none !important;
    }
}

/* Ensure header is above the background */
.navbar {
    position: relative;
    z-index: 1000;
    background: transparent !important;
    backdrop-filter: none;
}

/* Make all header text crisp white */
.navbar .text-block-4,
.navbar .text-block-2,
.navbar .z-index_1,
.navbar .nav-link,
.navbar .nav-link *,
.navbar .dropdown-inner-link,
.navbar .dropdown-inner-link * {
    color: white !important;
}

/* Make navigation menu text bolder */
.navbar .z-index_1 {
    font-weight: 600 !important;
}

/* Keep original black button styling - just make text white */
.navbar .black-button * {
    color: white !important;
}

/* Override any existing background styles */

/* Consistent navbar padding on mobile - 10px top and bottom */
@media screen and (max-width: 991px) {
  .navbar,
  .navbar.black,
  .navbar.white,
  div[role="banner"].navbar {
    padding-top: .625rem !important; /* 10px */
    padding-bottom: .625rem !important; /* 10px */
  }
  
  /* Mobile logo styling - will be handled by JavaScript */
.brand-logo.mobile-colored {
    /* Additional mobile-specific styling if needed */
}

/* Mobile menu overlay text logo styling */
.mobile-menu-text-logo {
    font-family: inherit;
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.02em;
    text-decoration: none;
    line-height: 1;
    display: inline-block;
}

/* Ensure text logo is white in mobile overlay */
.mobile-menu-header .mobile-menu-text-logo {
    color: #ffffff !important; /* White text for dark mobile menu */
}

/* Responsive sizing for mobile menu text logo */
@media screen and (max-width: 480px) {
    .mobile-menu-text-logo {
        font-size: 1.375rem;
    }
}

@media screen and (max-width: 360px) {
    .mobile-menu-text-logo {
        font-size: 1.25rem;
    }
}



/* Mobile Menu Header with Logo */
.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu-logo {
    flex: 1;
}

.mobile-menu-logo-link {
    display: inline-block;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.mobile-menu-logo-link:hover {
    opacity: 0.8;
}

.mobile-menu-brand-logo {
    height: 2rem;
    width: auto;
    max-width: 120px;
    object-fit: contain;
}

.mobile-menu-close {
    flex-shrink: 0;
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: background-color 0.2s ease;
}

.mobile-menu-close:hover {
    background-color: rgba(255, 255, 255, 0.1);
}
}

/* Remove header border and override any sticky positioning */
.navbar,
.navbar.w-nav,
div[role="banner"].navbar {
    border-bottom: none !important;
    box-shadow: none !important;
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
}

/* Reduce padding on feature sections */
.accounts-feature-section {
    padding-top: 6rem !important;
    padding-bottom: 6rem !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.accounts-feature-section.alt {
    padding-top: 6rem !important;
    padding-bottom: 6rem !important;
}

.accounts-feature-section .container {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* Reduce footer top spacing to balance section spacing */
.footer-subscribe {
    padding-top: 3rem !important;
    margin-top: 0 !important;
}

/* Remove body padding - not needed */

/* Brand Logo Sizing */
.brand-logo {
    height: 2rem; /* Same height as original text logo */
    width: auto; /* Maintain aspect ratio */
    max-width: 200px; /* Prevent it from becoming too wide */
    object-fit: contain;
}

/* Responsive adjustments */
@media screen and (max-width: 1199px) {
    .stripe-hero-background {
        top: 80px; /* Slightly higher on smaller desktops */
        clip-path: polygon(0 0, 100% 0, 100% 25%, 0 65%);
        background-size: 280% 280%; /* Further reduce on smaller screens */
    }
    
    .stripe-hero-background.enhanced {
        background-size: 350% 350%; /* Adjust enhanced version too */
    }
}

@media screen and (max-width: 991px) {
    .stripe-hero-background {
        top: 60px; /* Align with mobile card view */
        clip-path: polygon(0 0, 100% 0, 100% 20%, 0 55%);
        background-size: 250% 250%;
    }
    
    .stripe-hero-background.enhanced {
        background-size: 320% 320%;
    }
}

@media screen and (max-width: 768px) {
    .stripe-hero-background {
        top: 40px; /* Closer alignment on tablets */
        clip-path: polygon(0 0, 100% 0, 100% 18%, 0 52%);
    }
}

@media screen and (max-width: 599px) {
    .stripe-hero-background {
        top: 0; /* Extend to top of page on mobile */
        clip-path: polygon(0 0, 100% 0, 100% 15%, 0 50%);
        background-size: 200% 200%; /* Smallest on mobile to prevent any overflow */
    }
    
    .stripe-hero-background.enhanced {
        background-size: 280% 280%;
    }
    
    .brand-logo {
        height: 2rem; /* Match hamburger menu logo size */
    }
} 

/* ===== SEND MONEY DEMO MODAL STYLES ===== */

/* Modal Styles */
.demo-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.demo-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.demo-modal-content {
  position: relative;
  width: 100%;
  max-width: 700px;
  max-height: 90vh;
  background: #18191b;
  border-radius: 16px;
  overflow: hidden;
  animation: modalSlideIn 0.3s ease-out;
  border: 1px solid rgba(249, 204, 46, 0.2);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.demo-close-button {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 100;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 8px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #9CA3AF;
}

.demo-close-button:hover {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

.demo-container {
  padding: 32px;
  background: #18191b;
  border-radius: 16px;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  font-family: 'Switzer', system-ui, sans-serif;
}

/* Progress Bar */
.progress-bar {
  width: 100%;
  height: 8px;
  background: #4B5563;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 24px;
}

.progress-fill {
  height: 100%;
  transition: width 0.3s ease-out, background-color 0.3s ease-in-out;
  background: linear-gradient(90deg, #8B5CF6 0%, #EC4899 25%, #F59E0B 50%, #EF4444 100%);
}

.progress-fill.success {
  background: linear-gradient(90deg, #10B981 0%, #059669 100%);
}

/* Step Progress */
.step-progress {
  display: flex;
  flex-direction: column;
  margin-bottom: 24px;
}

.step-progress-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 32px;
}

.step-progress-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

.step-label {
  font-weight: 600;
  font-size: 14px;
  text-align: center;
}

.step-label.gradient-text {
  background: linear-gradient(90deg, #71438E 0%, #DC5F5F 25%, #F9CC2E 75%, #FBA570 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

.step-label.text-gray-500 {
  color: #6B7280;
}

.step-label.text-gray-200 {
  color: #E5E7EB;
}

/* Content Area */
.content-area {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.step-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  animation: fadeIn 0.3s ease-in-out;
}

.step-content.hidden {
  display: none;
}

.step-title {
  font-size: 32px;
  font-weight: 700;
  color: white;
  margin-bottom: 24px;
  line-height: 1.2;
}

/* Button Styles */
.btn-primary, .btn-secondary {
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  height: 44px;
  min-width: 100px;
}

.btn-primary {
  background-color: #232427;
  color: white;
}

.btn-primary:hover:not(:disabled) {
  background-color: #393a3d;
}

.btn-primary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.btn-secondary {
  background: transparent;
  border: 1px solid #5A5B5E;
  color: #C8C9CC;
}

.btn-secondary:hover:not(:disabled) {
  background-color: #2C2D30;
}

.btn-secondary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.full-width {
  width: 100%;
}

/* Step Controls */
.step-controls {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
  margin-top: auto;
  padding-top: 32px;
}

/* Search Container */
.search-container {
  margin-bottom: 16px;
}

.search-input-wrapper {
  position: relative;
}

.search-input {
  width: 100%;
  padding: 12px 16px 12px 48px;
  border-radius: 8px;
  background-color: #242528;
  border: 1px solid #3B3C3F;
  color: white;
  transition: border-color 0.2s;
  font-size: 14px;
}

.search-input:focus {
  outline: none;
  border-color: var(--serrafi-accent);
}

.search-input::placeholder {
  color: #9CA3AF;
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #9CA3AF;
  pointer-events: none;
}

/* Recipients Container */
.recipients-container {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  height: 270px;
  margin-bottom: 28px;
}

.recipients-list {
  height: 100%;
  padding: 16px 0;
  space-y: 12px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #393a3d #18191b;
}

.recipients-list::-webkit-scrollbar {
  width: 6px;
}

.recipients-list::-webkit-scrollbar-track {
  background: #18191b;
  border-radius: 3px;
}

.recipients-list::-webkit-scrollbar-thumb {
  background: #393a3d;
  border-radius: 3px;
}

.recipients-list::-webkit-scrollbar-thumb:hover {
  background: #4a4b4e;
}

/* Recipient and Payment Method Cards */
.recipient-card, .payment-method-card {
  background: transparent;
  border: 2px solid #3B3C3F;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.recipient-card:hover, .payment-method-card:hover {
  border-color: rgba(255, 213, 79, 0.5);
}

.recipient-card.selected, .payment-method-card.selected {
  border-color: #FFD54F;
  background: rgba(255, 213, 79, 0.05);
}

.recipient-name, .method-bank-name {
  color: white;
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 12px;
}

/* Payment Method Pills */
.payment-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 9999px;
  border: 1px solid rgba(107, 114, 128, 0.3);
  background: rgba(107, 114, 128, 0.2);
  color: #D1D5DB;
  font-size: 12px;
  font-weight: 600;
  height: 24px;
  margin-right: 8px;
  margin-bottom: 4px;
}

/* Add New Button */
.add-new-container {
  margin-bottom: 32px;
}

.add-new-button {
  border: 2px dashed #666;
  border-radius: 12px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: border-color 0.2s;
  color: #9CA3AF;
  font-weight: 500;
}

.add-new-button:hover {
  border-color: #FFD54F;
}

/* Recipient Info */
.recipient-info {
  background: #2A2B2E;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 24px;
}

.info-label {
  color: #D1D5DB;
  font-size: 14px;
  margin-bottom: 4px;
}

.info-value {
  color: white;
  font-weight: 600;
  font-size: 16px;
}

/* Methods Container */
.methods-container {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  height: 290px;
  margin-bottom: 24px;
}

.methods-list {
  height: 100%;
  padding: 8px 0;
  space-y: 12px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #393a3d #18191b;
}

.methods-list::-webkit-scrollbar {
  width: 6px;
}

.methods-list::-webkit-scrollbar-track {
  background: #18191b;
  border-radius: 3px;
}

.methods-list::-webkit-scrollbar-thumb {
  background: #393a3d;
  border-radius: 3px;
}

.methods-list::-webkit-scrollbar-thumb:hover {
  background: #4a4b4e;
}

/* Payment Summary */
.payment-summary {
  background: #2A2B2E;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 24px;
}

/* Input Groups */
.input-group {
  margin-bottom: 24px;
}

.input-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: white;
  margin-bottom: 8px;
}

.optional-text {
  color: #9CA3AF;
}

.amount-input-wrapper {
  position: relative;
}

.currency-symbol {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #9CA3AF;
  font-size: 18px;
  pointer-events: none;
  z-index: 1;
}

.amount-input {
  width: 100%;
  padding: 12px 16px 12px 32px;
  border-radius: 8px;
  background-color: #242528;
  border: 1px solid #3B3C3F;
  color: white;
  font-size: 18px;
  transition: border-color 0.2s;
}

.amount-input:focus {
  outline: none;
  border-color: #FFD54F;
}

.amount-input::placeholder {
  color: #6B7280;
}

.text-input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 8px;
  background-color: #242528;
  border: 1px solid #3B3C3F;
  color: white;
  transition: border-color 0.2s;
}

.text-input:focus {
  outline: none;
  border-color: #FFD54F;
}

.text-input::placeholder {
  color: #6B7280;
}

.input-error {
  color: #EF4444;
  font-size: 12px;
  margin-top: 4px;
}

.input-error.hidden {
  display: none;
}

/* Review Details */
.review-details {
  space-y: 8px;
  margin-bottom: 32px;
}

.review-details > div {
  margin-bottom: 8px;
  text-align: left;
}

.review-details .text-gray-400 {
  color: #9CA3AF;
}

.review-details .text-white {
  color: white;
}

/* Success State */
.success-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-align: center;
}

.success-icon {
  position: relative;
  width: 64px;
  height: 64px;
  background: #10B981;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
  animation: successPulse 2s infinite;
}

.success-icon::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(16, 185, 129, 0.2);
  border-radius: 50%;
  filter: blur(8px);
  animation: pulse 2s infinite;
}

.success-icon svg {
  position: relative;
  z-index: 1;
  color: white;
}

.success-title {
  font-size: 32px;
  font-weight: 700;
  color: white;
  margin-bottom: 24px;
}

.success-summary {
  background: #2A2B2E;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 24px;
  space-y: 12px;
}

.summary-label {
  font-size: 14px;
  color: #D1D5DB;
  text-align: center;
  margin-bottom: 12px;
}

.summary-amount {
  font-size: 32px;
  font-weight: 700;
  color: white;
  text-align: center;
  margin-bottom: 12px;
}

.success-details {
  space-y: 8px;
  font-size: 14px;
}

.success-details > div {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.success-controls {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: auto;
}

/* Animations */
@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes successPulse {
  0% { 
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
  }
  70% { 
    box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
  }
  100% { 
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}

/* Responsive Design */
@media (max-width: 768px) {
  .demo-modal {
    padding: 16px;
  }
  
  .demo-container {
    padding: 24px;
    min-height: 500px;
  }
  
  .step-title {
    font-size: 24px;
    margin-bottom: 20px;
  }
  
  .step-progress-container {
    padding: 0 16px;
  }
  
  .step-label {
    font-size: 12px;
  }
  
  .recipients-container, .methods-container {
    height: 240px;
  }
  
  .step-controls {
    flex-direction: row;
    gap: 12px;
  }
  
  .btn-primary, .btn-secondary {
    flex: 1;
    min-width: auto;
  }
  
  .success-title {
    font-size: 24px;
  }
  
  .summary-amount {
    font-size: 24px;
  }
  
  .demo-close-button {
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
  }
}

@media (max-width: 480px) {
  .demo-modal {
    padding: 12px;
  }
  
  .demo-container {
    padding: 20px;
  }
  
  .step-title {
    font-size: 20px;
  }
  
  .recipients-container, .methods-container {
    height: 290px;
  }
} 

/* ===== SEND MONEY DEMO MODAL STYLES ===== */

/* Interactive Badge */
.interactive-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
}

.interactive-badge-content {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: #10B981;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.interactive-badge-dot {
  width: 6px;
  height: 6px;
  background: #10B981;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

/* Inline Demo Container */
.demo-container-inline {
  width: 100%;
  max-width: 650px;
  background: #18191b;
  border-radius: 16px;
  padding: 32px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(249, 204, 46, 0.2);
  font-family: 'Switzer', system-ui, sans-serif;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  margin: 20px;
  box-sizing: content-box; /* Ensure width doesn't include padding */
}

/* Responsive design for inline demo */
@media (max-width: 768px) {
  .demo-container-inline {
    transform: scale(1);
    margin: 16px auto;
    padding: 24px;
    width: 390px;
    max-width: 390px;
    box-sizing: content-box; /* Ensure width doesn't include padding */
  }
  
  .interactive-badge {
    top: 12px;
    right: 12px;
  }
  
  .interactive-badge-content {
    padding: 4px 8px;
    font-size: 11px;
  }
  
  .interactive-badge-dot {
    width: 5px;
    height: 5px;
  }
}

@media (max-width: 480px) {
  .demo-container-inline {
    margin: 12px auto;
    padding: 20px;
    border-radius: 12px;
    width: 390px;
    max-width: 390px;
    box-sizing: content-box; /* Ensure width doesn't include padding */
  }
}

/* For very small screens smaller than 430px (390px + 40px padding) */
@media (max-width: 430px) {
  .demo-container-inline {
    width: calc(100vw - 64px); /* Full width minus margins and padding */
    max-width: calc(100vw - 64px);
    box-sizing: content-box;
  }
}

/* Progress Bar */
.demo-container-inline .progress-bar {
  width: 100%;
  height: 8px;
  background: #4B5563;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 24px;
}

.demo-container-inline .progress-fill {
  height: 100%;
  transition: width 0.3s ease-out, background-color 0.3s ease-in-out;
  background: linear-gradient(90deg, #8B5CF6 0%, #EC4899 25%, #F59E0B 50%, #EF4444 100%);
}

.demo-container-inline .progress-fill.success {
  background: linear-gradient(90deg, #10B981 0%, #059669 100%);
}

/* Step Progress */
.demo-container-inline .step-progress {
  display: flex;
  flex-direction: column;
  margin-bottom: 24px;
}

.demo-container-inline .step-progress-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

.demo-container-inline .step-label {
  font-weight: 600;
  font-size: 14px;
  text-align: center;
}

.demo-container-inline .step-label.gradient-text {
  background: linear-gradient(90deg, #71438E 0%, #DC5F5F 25%, #F9CC2E 75%, #FBA570 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

.demo-container-inline .step-label.text-gray-500 {
  color: #6B7280;
}

.demo-container-inline .step-label.text-gray-200 {
  color: #E5E7EB;
}

/* Content Area */
.demo-container-inline .content-area {
  display: flex;
  flex-direction: column;
}

.demo-container-inline .step-content {
  display: flex;
  flex-direction: column;
  animation: fadeIn 0.3s ease-in-out;
}

.demo-container-inline .step-content.hidden {
  display: none;
}

.demo-container-inline .step-title {
  font-size: 28px;
  font-weight: 700;
  color: white;
  margin-bottom: 24px;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

/* Button Styles */
.demo-container-inline .btn-primary, 
.demo-container-inline .btn-secondary {
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  height: 44px;
  min-width: 100px;
  font-family: 'Switzer', system-ui, sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
}

.demo-container-inline .btn-primary {
  background-color: #232427;
  color: white;
}

.demo-container-inline .btn-primary:hover:not(:disabled) {
  background-color: #393a3d;
}

.demo-container-inline .btn-primary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.demo-container-inline .btn-secondary {
  background: transparent;
  border: 1px solid #5A5B5E;
  color: #C8C9CC;
}

.demo-container-inline .btn-secondary:hover:not(:disabled) {
  background-color: #2C2D30;
}

.demo-container-inline .btn-secondary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.demo-container-inline .full-width {
  width: 100%;
}

/* Step Controls */
.demo-container-inline .step-controls {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
  margin-top: auto;
  padding-top: 16px;
}

/* Search Container */
.demo-container-inline .search-container {
  margin-bottom: 16px;
}

.demo-container-inline .search-input-wrapper {
  position: relative;
}

.demo-container-inline .search-input {
  width: 100%;
  padding: 12px 16px 12px 48px;
  border-radius: 8px;
  background-color: #242528;
  border: 1px solid #3B3C3F;
  color: white;
  transition: border-color 0.2s;
  font-size: 14px;
  font-family: 'Switzer', system-ui, sans-serif;
  box-sizing: border-box;
}

.demo-container-inline .search-input:focus {
  outline: none;
  border-color: #FFD54F;
}

.demo-container-inline .search-input::placeholder {
  color: #9CA3AF;
}

.demo-container-inline .search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #9CA3AF;
  pointer-events: none;
}

.demo-container-inline .search-icon svg {
  width: 16px;
  height: 16px;
}

/* Recipients Container */
.demo-container-inline .recipients-container {
  position: relative;
  border-radius: 8px;
  height: 240px;
  margin-bottom: 32px;
}

.demo-container-inline .recipients-list {
  height: 100%;
  padding: 16px 0;
  overflow: visible;
}

/* Recipient and Payment Method Cards */
.demo-container-inline .recipient-card, 
.demo-container-inline .payment-method-card {
  background: transparent;
  border: 2px solid #3B3C3F;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.demo-container-inline .recipient-card:hover, 
.demo-container-inline .payment-method-card:hover {
  border-color: rgba(255, 213, 79, 0.5);
}

.demo-container-inline .recipient-card.selected, 
.demo-container-inline .payment-method-card.selected {
  border-color: #FFD54F;
  background: rgba(255, 213, 79, 0.05);
}

/* Payment Method Pills */
.demo-container-inline .payment-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 9999px;
  border: 1px solid rgba(107, 114, 128, 0.3);
  background: rgba(107, 114, 128, 0.2);
  color: #D1D5DB;
  font-size: 12px;
  font-weight: 600;
  height: 24px;
  margin-right: 8px;
  margin-bottom: 4px;
}

.demo-container-inline .payment-pill svg {
  width: 12px;
  height: 12px;
}

/* Recipient Info */
.demo-container-inline .recipient-info {
  background: #2A2B2E;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 24px;
}

.demo-container-inline .info-label {
  color: #D1D5DB;
  font-size: 14px;
  margin-bottom: 4px;
}

.demo-container-inline .info-value {
  color: white;
  font-weight: 600;
  font-size: 16px;
}

/* Methods Container */
.demo-container-inline .methods-container {
  position: relative;
  border-radius: 8px;
  margin-bottom: 32px;
}

.demo-container-inline .methods-list {
  padding: 8px 0;
}

/* Payment Summary */
.demo-container-inline .payment-summary {
  background: #2A2B2E;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 24px;
}

/* Input Groups */
.demo-container-inline .input-group {
  margin-bottom: 24px;
}

.demo-container-inline .input-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: white;
  margin-bottom: 8px;
}

.demo-container-inline .optional-text {
  color: #9CA3AF;
}

.demo-container-inline .amount-input-wrapper {
  position: relative;
}

.demo-container-inline .currency-symbol {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #9CA3AF;
  font-size: 18px;
  pointer-events: none;
  z-index: 1;
}

.demo-container-inline .amount-input {
  width: 100%;
  padding: 12px 16px 12px 32px;
  border-radius: 8px;
  background-color: #242528;
  border: 1px solid #3B3C3F;
  color: white;
  font-size: 18px;
  transition: border-color 0.2s;
  font-family: 'Switzer', system-ui, sans-serif;
  box-sizing: border-box;
}

.demo-container-inline .amount-input:focus {
  outline: none;
  border-color: #FFD54F;
}

.demo-container-inline .amount-input::placeholder {
  color: #6B7280;
}

.demo-container-inline .text-input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 8px;
  background-color: #242528;
  border: 1px solid #3B3C3F;
  color: white;
  transition: border-color 0.2s;
  font-family: 'Switzer', system-ui, sans-serif;
  box-sizing: border-box;
}

.demo-container-inline .text-input:focus {
  outline: none;
  border-color: #FFD54F;
}

.demo-container-inline .text-input::placeholder {
  color: #6B7280;
}

.demo-container-inline .input-error {
  color: #EF4444;
  font-size: 12px;
  margin-top: 4px;
}

.demo-container-inline .input-error.hidden {
  display: none;
}

/* Review Details */
.demo-container-inline .review-details {
  margin-bottom: 32px;
}

.demo-container-inline .review-details > div {
  margin-bottom: 8px;
  text-align: left;
}

/* Success State */
.demo-container-inline .success-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-align: center;
}

.demo-container-inline .success-icon {
  position: relative;
  width: 64px;
  height: 64px;
  background: #10B981;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
  animation: successPulse 2s infinite;
}

.demo-container-inline .success-icon::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(16, 185, 129, 0.2);
  border-radius: 50%;
  filter: blur(8px);
  animation: pulse 2s infinite;
}

.demo-container-inline .success-icon svg {
  position: relative;
  z-index: 1;
  color: white;
  width: 32px;
  height: 32px;
}

.demo-container-inline .success-title {
  font-size: 28px;
  font-weight: 700;
  color: white;
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}

.demo-container-inline .success-summary {
  background: #2A2B2E;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 24px;
}

.demo-container-inline .summary-label {
  font-size: 14px;
  color: #D1D5DB;
  text-align: center;
  margin-bottom: 12px;
}

.demo-container-inline .summary-amount {
  font-size: 28px;
  font-weight: 700;
  color: white;
  text-align: center;
  margin-bottom: 12px;
}

.demo-container-inline .success-details {
  font-size: 14px;
}

.demo-container-inline .success-details > div {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.demo-container-inline .success-controls {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: auto;
}

/* Responsive adjustments for demo container */
@media (max-width: 768px) {
  .demo-container-inline .step-title {
    font-size: 20px;
    margin-bottom: 20px;
  }
  
  .demo-container-inline .recipients-container {
    height: 300px; /* Increased from 220px to accommodate both recipient cards */
  }
  
  .demo-container-inline .step-controls {
    flex-direction: row;
    gap: 12px;
  }
  
  .demo-container-inline .btn-primary, 
  .demo-container-inline .btn-secondary {
    flex: 1;
    min-width: auto;
  }
  
  .demo-container-inline .success-title {
    font-size: 24px;
  }
  
  .demo-container-inline .summary-amount {
    font-size: 24px;
  }
}

@media (max-width: 480px) {
  .demo-container-inline .step-title {
    font-size: 20px;
  }
  
  .demo-container-inline .recipients-container {
    height: 280px; /* Increased from 200px to accommodate both recipient cards on small screens */
  }
}

/* ===== PAYMENT TIMELINE VISUALIZATION ===== */

.payment-timeline-section {
  background: rgb(24, 25, 27);
  border-radius: 20px;
  padding: 32px;
  margin: 20px 0;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  position: relative;
  z-index: 2;
}

.timeline-title {
  color: white;
  font-size: 24px;
  font-weight: 600;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.status-chip {
  background: linear-gradient(135deg, #ff6b6b 0%, #ff8e8e 100%);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
  position: relative;
  overflow: hidden;
  will-change: background, box-shadow;
  display: flex;
  align-items: center;
  gap: 6px;
}

.status-chip.settled {
  background: linear-gradient(135deg, #40e094 0%, #32d082 100%);
  box-shadow: 0 4px 12px rgba(64, 224, 148, 0.4);
}

.status-chip::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.status-chip.settled::before {
  left: 100%;
}

.status-checkmark {
  opacity: 0;
  transform: scale(0);
  transition: all 0.3s ease;
  will-change: transform, opacity;
  width: 0;
  margin-left: 0;
}

.status-chip.settled .status-checkmark {
  opacity: 1;
  transform: scale(1);
  width: 16px;
  margin-left: 6px;
}

.timeline-container {
  position: relative;
  z-index: 2;
}

.timeline-track {
  margin-bottom: 20px;
  opacity: 0;
  animation: slideInUp 0.6s ease forwards;
  will-change: transform, opacity;
}

.timeline-track:nth-child(1) { animation-delay: 0.1s; }
.timeline-track:nth-child(2) { animation-delay: 0.2s; }
.timeline-track:nth-child(3) { animation-delay: 0.3s; }

.track-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.track-label {
  color: white;
  font-size: 16px;
  font-weight: 600;
}

.fednow-track .track-label {
  color: #40e094;
  text-shadow: 0 0 10px rgba(64, 224, 148, 0.5);
}

.track-time {
  color: #94a3b8;
  font-size: 14px;
  font-weight: 500;
}

.fednow-track .track-time {
  color: #40e094;
  font-weight: 600;
}

.track-line {
  position: relative;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

.track-progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  border-radius: 4px;
  width: 0%;
  transition: width 0.3s ease;
  will-change: width;
  transform: translateZ(0);
}

.fednow-progress {
  background: linear-gradient(90deg, #40e094 0%, #32d082 100%);
  box-shadow: 0 0 15px rgba(64, 224, 148, 0.6);
}

.ach-progress {
  background: linear-gradient(90deg, #64748b 0%, #475569 100%);
}

.wire-progress {
  background: linear-gradient(90deg, #f59e0b 0%, #d97706 100%);
}

.payment-token {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translate(-50%, -50%);
  font-size: 18px;
  z-index: 3;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
  transition: all 0.3s ease;
}

.fednow-token {
  animation: fedNowRace 1s ease-out forwards;
  filter: drop-shadow(0 0 10px rgba(64, 224, 148, 0.8));
}

.ach-token {
  animation: achCrawl 8s linear forwards;
}

.wire-token {
  animation: wireCrawl 4s ease-out forwards;
}

.timeline-controls {
  margin-top: 24px;
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.timeline-replay-btn {
  background-color: #232427;
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  height: 44px;
  min-width: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Switzer', system-ui, sans-serif;
}

.timeline-replay-btn:hover:not(:disabled) {
  background-color: #393a3d;
}

.timeline-replay-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.timeline-replay-btn span {
  margin-right: 8px;
}

/* Animation Keyframes */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fedNowRace {
  0% {
    left: 0%;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.3);
    filter: drop-shadow(0 0 20px rgba(64, 224, 148, 1));
  }
  100% {
    left: 100%;
    transform: translate(-50%, -50%) scale(1);
    filter: drop-shadow(0 0 15px rgba(64, 224, 148, 0.8));
  }
}

@keyframes achCrawl {
  0% {
    left: 0%;
  }
  100% {
    left: 30%;
  }
}

@keyframes wireCrawl {
  0% {
    left: 0%;
  }
  100% {
    left: 60%;
  }
}

/* Progress Bar Animations */
.fednow-progress.animated {
  animation: progressFill 2s ease-out forwards;
}

.ach-progress.animated {
  animation: progressFillSlow 8s linear forwards;
}

.wire-progress.animated {
  animation: progressFillMedium 4s ease-out forwards;
}

@keyframes progressFill {
  from { width: 0%; }
  to { width: 100%; }
}

@keyframes progressFillSlow {
  from { width: 0%; }
  to { width: 30%; }
}

@keyframes progressFillMedium {
  from { width: 0%; }
  to { width: 60%; }
}

/* Responsive Design */
@media (max-width: 768px) {
  .payment-timeline-section {
    padding: 24px 20px;
    box-shadow: none !important;
  }
  
  .timeline-title {
    font-size: 20px;
  }
  
  .timeline-header {
    display: none !important; /* Hide header on mobile */
  }
  
  .track-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  
  .payment-token {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .payment-timeline-section {
    padding: 20px 16px;
  }
  
  .timeline-title {
    font-size: 18px;
  }
  
  .track-label {
    font-size: 14px;
  }
  
  .track-time {
    font-size: 12px;
  }
  
  .timeline-replay-btn {
    padding: 10px 20px;
    font-size: 13px;
  }
}

/* ===== MOBILE PAYMENT CARDS CAROUSEL ===== */

/* Mobile payment cards carousel - hidden by default, shown on mobile */
.payment-cards-mobile {
  display: none;
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
}

.payment-cards-container {
  display: flex;
  transition: transform 0.3s ease-in-out;
  width: 500%; /* 5 cards × 100% viewport width each */
  padding: 0 16px; /* Add 16px padding on each side */
  gap: 16px; /* 16px gap between cards */
  box-sizing: border-box;
}

.payment-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 1.5rem;
  width: calc(85vw - 32px); /* Cards are 85% of viewport width minus padding */
  box-sizing: border-box;
  flex-shrink: 0;
  margin: 0;
  min-width: 260px; /* Minimum width to ensure readability */
  max-width: 340px; /* Maximum width to prevent cards from being too wide */
}

/* Hide duplicate card from screen readers */
.payment-card.infinite-loop-duplicate {
  /* aria-hidden should be set in HTML, not CSS */
  pointer-events: none; /* Prevent interaction with duplicate card */
}

.payment-card:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Carousel navigation dots */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0 24px; /* Add horizontal padding for dots spacing */
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  padding: 0;
}

.carousel-dot.active {
  background: rgba(255, 255, 255, 0.9);
  transform: scale(1.25);
}

/* Swipe indicators */
.swipe-indicator {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
  opacity: 0;
  pointer-events: none;
}

.swipe-indicator.left {
  left: 10px;
}

.swipe-indicator.right {
  right: 10px;
}

.payment-cards-mobile:hover .swipe-indicator {
  opacity: 0.7;
  pointer-events: auto;
}

.swipe-indicator:hover,
.swipe-indicator:focus {
  opacity: 1;
  background: rgba(0, 0, 0, 0.7);
  outline: 2px solid #F9CC2E;
  outline-offset: 2px;
}

/* Accessibility improvements */
.carousel-dot:focus {
  outline: 2px solid #F9CC2E;
  outline-offset: 2px;
}

.payment-cards-mobile[tabindex="0"]:focus {
  outline: 2px solid #F9CC2E;
  outline-offset: 2px;
  border-radius: 12px;
}

/* Smooth scrolling for reduced motion users */
@media (prefers-reduced-motion: reduce) {
  .payment-cards-container {
    transition: none;
  }
}

.payment-card-header {
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 0.75rem;
}

.payment-card-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.payment-card-details {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.payment-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
}

.payment-detail-label {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.payment-detail-value {
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.875rem;
  text-align: right;
}

/* Feature icons for mobile cards */
.payment-detail-label::before {
  content: '';
  width: 16px;
  height: 16px;
  opacity: 0.7;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  flex-shrink: 0;
}

/* Speed icon */
.payment-detail-label.speed::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='13,2 3,14 12,14 11,22 21,10 12,10 13,2'%3E%3C/polygon%3E%3C/svg%3E");
}

/* Availability icon */
.payment-detail-label.availability::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cpolyline points='12,6 12,12 16,14'%3E%3C/polyline%3E%3C/svg%3E");
}

/* Cost icon */
.payment-detail-label.cost::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='12' y1='1' x2='12' y2='23'%3E%3C/line%3E%3Cpath d='M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6'%3E%3C/path%3E%3C/svg%3E");
}

/* Best for icon */
.payment-detail-label.best-for::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Ccircle cx='12' cy='12' r='6'%3E%3C/circle%3E%3Ccircle cx='12' cy='12' r='2'%3E%3C/circle%3E%3C/svg%3E");
}

/* ===== PAYMENT COMPARISON TABLE STYLES ===== */

.payment-comparison-wrapper {
  width: 100%;
  max-width: 100%;
  background: rgb(23, 23, 23);
  border-radius: 1rem;
  padding: 32px;
  position: relative;
  box-sizing: border-box;
  box-shadow: 
    0 10px 30px rgba(0, 0, 0, 0.2),
    0 4px 15px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  contain: layout style;
  transform: translateZ(0);
}

.comparison-table {
  width: 100%;
  overflow-x: visible;
}

.payments-grid {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  background: transparent;
  font-family: 'Switzer', system-ui, sans-serif;
  table-layout: fixed;
}

.payments-grid thead th {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 18px 32px;
  text-align: center;
  border-bottom: 2px solid rgba(255, 255, 255, 0.15);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  vertical-align: middle;
}

/* Feature column header stays left-aligned */
.payments-grid thead th:first-child {
  text-align: left;
}

/* Hide the feature header text */
.payments-grid thead th.feature-column {
  color: transparent;
  font-size: 0;
}

.payments-grid thead th:last-child {
  border-right: none;
}

.payments-grid thead th:first-child {
  border-top-left-radius: 8px;
}

.payments-grid thead th:last-child {
  border-top-right-radius: 8px;
}

.payments-grid thead th.fednow-column {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9);
  position: relative;
}

.payments-grid tbody td {
  padding: 18px 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  color: white;
  font-size: 0.875rem;
  line-height: 1.4;
  vertical-align: middle;
  transition: all 0.2s ease;
  height: 80px;
  max-height: 80px;
}

/* Ensure all value cells are centered */
.payments-grid tbody td:not(.feature-label) {
  display: table-cell;
  vertical-align: middle;
  text-align: center;
}

.payments-grid tbody td:last-child {
  border-right: none;
}

/* Removed duplicate - handled below */

.payments-grid tbody tr:hover td {
  background: rgba(255, 255, 255, 0.04);
}

.payments-grid tbody tr {
  height: 80px;
}

.payments-grid tbody tr.alt-row td {
  background: rgba(255, 255, 255, 0.02);
}

.payments-grid tbody tr.alt-row:hover td {
  background: rgba(255, 255, 255, 0.06);
}

.payments-grid .feature-label {
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.03);
  border-right: 2px solid rgba(255, 255, 255, 0.1);
  position: relative;
  text-align: left;
}

/* Column width distribution for fixed table layout */
.payments-grid thead th:nth-child(1) { width: 20%; }
.payments-grid thead th:nth-child(2) { width: 20%; }
.payments-grid thead th:nth-child(3) { width: 20%; }
.payments-grid thead th:nth-child(4) { width: 20%; }
.payments-grid thead th:nth-child(5) { width: 20%; }

.payments-grid .payment-value {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  position: relative;
  text-align: center;
  vertical-align: middle;
}

/* Equal styling for all columns */

/* Column hover effects */
.payments-grid tbody td:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* Removed specific FedNow column hover styling */

/* Add subtle SVG icons for each feature */
.payments-grid .feature-label {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  text-align: left;
}

.payments-grid .feature-label::before {
  content: '';
  width: 16px;
  height: 16px;
  opacity: 0.7;
  transition: all 0.2s ease;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  flex-shrink: 0;
}

/* Speed icon - Zap/Lightning */
.payments-grid tbody tr:nth-child(1) .feature-label::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='13,2 3,14 12,14 11,22 21,10 12,10 13,2'%3E%3C/polygon%3E%3C/svg%3E");
}

/* Availability icon - Clock */
.payments-grid tbody tr:nth-child(2) .feature-label::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Cpolyline points='12,6 12,12 16,14'%3E%3C/polyline%3E%3C/svg%3E");
}

/* Cost icon - Dollar Sign */
.payments-grid tbody tr:nth-child(3) .feature-label::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='12' y1='1' x2='12' y2='23'%3E%3C/line%3E%3Cpath d='M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6'%3E%3C/path%3E%3C/svg%3E");
}

/* Best for icon - Target */
.payments-grid tbody tr:nth-child(4) .feature-label::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'%3E%3C/circle%3E%3Ccircle cx='12' cy='12' r='6'%3E%3C/circle%3E%3Ccircle cx='12' cy='12' r='2'%3E%3C/circle%3E%3C/svg%3E");
}

/* Hover animation for icons */
.payments-grid tbody tr:hover .feature-label::before {
  opacity: 1;
  transform: scale(1.1);
}

/* Removed cost highlighting for consistency */

/* Stacked centered layout for payment comparison section */
.accounts-feature-content.stacked-centered {
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2rem; /* Reduced from 3rem to fix excessive spacing */
  max-width: none;
  width: 100%;
  overflow: visible;
  padding: 0 20px;
  box-sizing: border-box;
}

.accounts-feature-text.centered {
  max-width: 800px;
  margin: 0 auto;
}

.accounts-feature-demo.centered {
  max-width: 85vw;
  margin: 0 auto;
  width: 100%;
  min-width: 1080px;
  overflow: visible;
}

/* Responsive design */
@media (min-width: 1441px) {
  .accounts-feature-demo.centered {
    max-width: 1400px;
  }
}

@media (max-width: 1440px) {
  .accounts-feature-demo.centered {
    max-width: 90vw;
  }
}

@media (max-width: 1200px) {
  .accounts-feature-demo.centered {
    min-width: auto;
    max-width: 95vw;
  }
  
  .card-features-section {
    max-width: 100%;
    padding: 0 20px;
  }
  
  .card-features-grid {
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .feature-panel {
    min-width: 280px;
    max-width: 320px;
    flex: 1 1 calc(33.333% - 12px);
  }
}

@media (max-width: 1100px) {
  .feature-panel {
    flex: 1 1 calc(50% - 8px);
    min-width: 300px;
    max-width: 400px;
  }
}

@media (max-width: 991px) and (min-width: 768px) {
  .payment-comparison-wrapper {
    padding: 24px;
  }
  
  .payments-grid {
    max-width: 100%;
  }
  
  .payments-grid thead th,
  .payments-grid tbody td {
    padding: 14px 16px;
    font-size: 0.8rem;
    height: 70px;
  }
  
  .payments-grid tbody tr {
    height: 70px;
  }
  
  /* Maintain alignment on tablet */
  .payments-grid thead th:not(:first-child) {
    text-align: center;
  }
  
  .payments-grid tbody td:not(.feature-label) {
    text-align: center;
    vertical-align: middle;
  }
  
  .payments-grid thead th {
    font-size: 0.75rem;
  }
  
  /* Ensure cards are hidden on tablet */
  .payment-cards-mobile {
    display: none;
  }
}

@media (max-width: 767px) {
  .payment-comparison-wrapper {
    padding: 24px 0; /* Remove horizontal padding, keep vertical */
    overflow-x: visible;
    box-shadow: none !important;
  }
  
  /* Hide table on mobile */
  .comparison-table {
    display: none;
  }
  
  /* Show mobile cards */
  .payment-cards-mobile {
    display: flex;
  }
  
  .accounts-feature-content.stacked-centered {
    gap: 2rem;
    padding: 0 15px;
  }
  
  .accounts-feature-demo.centered {
    min-width: auto;
    max-width: 100%;
  }
  
  .card-features-section {
    padding: 0 15px;
  }
  
  /* Make the "Spin up new cards instantly" section demo take full mobile width */
  [data-lazy-section="section3"] .accounts-feature-demo {
    max-width: 100%;
    width: 100%;
  }
}

/* Small mobile adjustments */
@media (max-width: 480px) {
  .payment-comparison-wrapper {
    padding: 1rem 0; /* Remove horizontal padding, keep vertical */
  }
  
  .payment-cards-container {
    padding: 0 16px; /* Maintain 16px padding on small screens */
    gap: 16px; /* Maintain 16px gap between cards */
  }
  
  .payment-card {
    padding: 1.25rem;
    margin: 0;
    width: calc(85vw - 32px); /* Cards are 85% of viewport width minus padding */
    min-width: 260px; /* Minimum width to ensure readability */
    max-width: 340px; /* Maximum width to prevent cards from being too wide */
  }
  
  .payment-card-title {
    font-size: 1rem;
  }
  
  .payment-detail-label,
  .payment-detail-value {
    font-size: 0.8rem;
  }
  
  .carousel-dots {
    margin-top: 0.75rem;
    padding: 0 1rem; /* Adjust padding for small screens */
  }
  
  .carousel-dot {
    width: 6px;
    height: 6px;
  }
  
  .swipe-indicator {
    width: 35px;
    height: 35px;
    font-size: 16px;
  }
  
  .accounts-feature-content.stacked-centered {
    gap: 1.5rem;
  }
  

}

/* Enhanced accessibility */
.payments-grid:focus-within {
  outline: 2px solid #F9CC2E;
  outline-offset: 2px;
}

.payments-grid td:focus {
  outline: 2px solid #F9CC2E;
  outline-offset: -2px;
  background: rgba(249, 204, 46, 0.1);
}

/* Print styles */
@media print {
  .payment-comparison-wrapper {
    background: white;
    border: 1px solid #000;
    box-shadow: none;
  }
  
  .payments-grid thead th {
    background: #f5f5f5;
    color: #000;
  }
  
  .payments-grid tbody td {
    color: #000;
    background: transparent;
  }
  
  .payments-grid tbody tr.alt-row td {
    background: #f9f9f9;
  }
}

/* ===== MOBILE TYPOGRAPHY OVERRIDES ===== */

/* Global mobile header styling - consistent 28px font for all page headers */
@media screen and (max-width: 767px) {
    h2.font-weight-600:not([data-font-scaled="true"]),
    h2.accounts-feature-heading:not([data-font-scaled="true"]) {
        font-size: 1.75rem !important; /* 28px */
        font-weight: 600 !important;
        font-family: 'Switzer', system-ui, sans-serif !important;
        line-height: 1.2em !important;
        letter-spacing: 0rem !important;
    }
    
    /* Payments page hero headline - specific override if needed */
    .solutions-section-hero .stripe-title-blend h2.font-weight-600:not([data-font-scaled="true"]) {
        font-size: 1.75rem !important; /* Same as global now */
        line-height: 1.2em !important;
        letter-spacing: 0rem !important;
    }
    
    /* Remove top margin on mobile */
    .solutions-section-hero .stripe-title-blend {
        margin-top: 0 !important;
    }
    
    /* Make send money modal wider on mobile - remove side margins */
    .demo-container-inline {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    /* Add space below hero modal to prevent cutoff - PAYMENTS PAGE ONLY */
    html[data-wf-page="68811a4aff365897328f6dac"] .section-main.accounts-feature-section[data-lazy-section="section1"] {
        margin-top: 180px !important;
        padding-top: 60px !important;
    }
    
    /* Remove top margin for logistics-freight page on mobile */
    html[data-wf-page="68811a4aff365897328f6dac"] .section-main.accounts-feature-section[data-lazy-section="section1"] {
        margin-top: 0 !important;
    }
    
    /* Make SerraFi logo black on mobile - but not the colored mobile version */
    .brand-logo:not(.mobile-colored) {
        filter: brightness(0) !important;
    }
    
    /* Ensure mobile colored logo shows properly */
    .brand-logo.mobile-colored {
        filter: none !important;
    }
    
    /* Gradient backgrounds already hidden at tablet/mobile breakpoints */
    
    /* Remove box shadow from modal on mobile */
    .demo-container-inline,
    .modal-content {
        box-shadow: none !important;
    }
    
    /* Prevent button text wrapping and adjust padding on mobile */
    .demo-container-inline .btn-primary,
    .demo-container-inline .btn-secondary {
        padding: 12px 18px !important;
        white-space: nowrap !important;
    }
}

@media screen and (max-width: 480px) {
    /* Even smaller for very small screens */
    .solutions-section-hero .stripe-title-blend h2.font-weight-600:not([data-font-scaled="true"]) {
        font-size: 1.75rem !important; /* Smaller but still readable */
        line-height: 1.3em !important;
        letter-spacing: -0.01rem !important;
    }
}

/* ===== CARD FEATURES STYLES ===== */

.accounts-feature-text.centered {
  text-align: center;
  max-width: 600px;
  margin: 0 auto; /* Removed 40px bottom margin that was causing excessive spacing */
  /* Remove any min-height that might be causing excessive spacing */
  min-height: auto !important;
  height: auto !important;
}

/* Control Section with Gradient Background */
.control-section {
  position: relative;
  background: #ffffff; /* keep white background */
  overflow: visible;
  overflow-x: clip; /* Prevent horizontal scrollbars while allowing vertical overflow */
  min-height: 600px; /* Ensure the section has height for the gradient */
}

/* Add gradient background using ::before pseudo-element */
.control-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 40px;
  right: 40px;
  height: 500px;
  border-radius: 32px 32px 0 0;
  opacity: 0.4;
  z-index: 0;
  pointer-events: none;
  
  /* Multi-layer gradient system for depth and smoothness */
  background-image:
    /* 1. Subtle noise texture for organic feel */
    url("data:image/svg+xml,%3Csvg viewBox='0 0 64 64' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.03'/%3E%3C/svg%3E"),
    /* 2. Enhanced radial highlight at top center */
    radial-gradient(
      circle at 50% 10%,
      rgba(255, 255, 255, 0.2) 0%,
      rgba(255, 255, 255, 0.1) 25%,
      transparent 50%
    ),
    /* 3. Secondary radial glow for depth */
    radial-gradient(
      ellipse 1000px 400px at center top,
      rgba(255, 255, 255, 0.08) 0%,
      transparent 60%
    ),
    /* 4. Main horizontal color ramp in LCH color space */
    linear-gradient(
      to right,
      color(display-p3 0.2 0.4 0.8) 0%,     /* Blue in P3 */
      color(display-p3 0.7 0.3 0.4) 33%,    /* Red in P3 */
      color(display-p3 0.9 0.8 0.2) 67%,    /* Yellow in P3 */
      color(display-p3 0.9 0.5 0.5) 100%    /* Pink in P3 */
    ),
    /* 5. Fallback gradient for non-P3 browsers */
    linear-gradient(
      to right,
      #162CB9 0%,
      #DC5F5F 33%,
      #F9CC2E 67%,
      #FF9090 100%
    );
  
  background-size: 
    100% 100%,
    100% 100%,
    100% 100%,
    100% 100%,
    100% 100%;
  
  background-position: center;
  background-repeat: no-repeat;
  
  /* Fade out effect - solid at top, transparent at bottom */
  -webkit-mask-image: linear-gradient(to bottom, black 0%, black 40%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 0%, black 40%, transparent 100%);
}

/* Ensure content sits above gradient background */
.control-section .w-layout-blockcontainer {
  position: relative;
  z-index: 1;
}

/* Fix excessive spacing in gradient background sections across all pages */
.section-main.accounts-feature-section.control-section {
  padding-top: 3rem !important; /* Reduced from 4rem */
  padding-bottom: 3rem !important; /* Reduced from 4rem */
}

/* Additional spacing adjustment for gradient sections on larger screens */
@media (min-width: 992px) {
  .section-main.accounts-feature-section.control-section {
    padding-top: 2.5rem !important;
    padding-bottom: 2.5rem !important;
  }
}

/* Ensure tighter spacing for stacked-centered content globally */
.accounts-feature-content.stacked-centered {
  gap: 1.5rem !important; /* Further reduced for tighter spacing */
}

/* Increase font weight for all feature headings and descriptions */
.accounts-feature-heading {
  font-weight: 500;
}

.accounts-feature-description {
  font-weight: 500;
}

.gradient-container {
  position: absolute;
  top: 0;
  left: 40px;
  right: 40px;
  height: 500px; /* Explicit height instead of bottom: 0 */
  border-radius: 32px 32px 0 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.gradient-mask {
  position: absolute;
  top: 0;
  left: 40px;
  right: 40px;
  height: 500px; /* Explicit height instead of bottom: 0 */
  pointer-events: none;
  border-radius: 32px 32px 0 0;
  overflow: hidden;
  opacity: 1; /* Temporarily full opacity for testing */
  z-index: 0;
  
  /* Test - simple gradient to verify it's working */
  background: linear-gradient(to right, #667eea, #764ba2, #f093fb, #f5576c, #4facfe);

  /* Multi-layer gradient system for depth and smoothness */
  background-image:
    /* 1. Subtle noise texture for organic feel */
    url("data:image/svg+xml,%3Csvg viewBox='0 0 64 64' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.03'/%3E%3C/svg%3E"),
    /* 2. Enhanced radial highlight at top center */
    radial-gradient(
      circle at 50% 10%,
      rgba(255, 255, 255, 0.2) 0%,
      rgba(255, 255, 255, 0.1) 25%,
      transparent 50%
    ),
    /* 3. Secondary radial glow for depth */
    radial-gradient(
      ellipse 1000px 400px at center top,
      rgba(255, 255, 255, 0.08) 0%,
      transparent 60%
    ),
    /* 4. Main horizontal color ramp in LCH color space */
    linear-gradient(
      to right,
      color(display-p3 0.2 0.4 0.8) 0%,     /* Blue in P3 */
      color(display-p3 0.7 0.3 0.4) 33%,    /* Red in P3 */
      color(display-p3 0.9 0.8 0.2) 67%,    /* Yellow in P3 */
      color(display-p3 0.9 0.5 0.5) 100%    /* Pink in P3 */
    ),
    /* 5. Fallback gradient for non-P3 browsers */
    linear-gradient(
      to right,
      #162CB9 0%,
      #DC5F5F 33%,
      #F9CC2E 67%,
      #FF9090 100%
    ),
    /* 6. Subtle secondary color layer for depth */
    linear-gradient(
      135deg,
      rgba(22, 44, 185, 0.2) 0%,
      rgba(220, 95, 95, 0.15) 25%,
      rgba(249, 204, 46, 0.15) 50%,
      rgba(255, 144, 144, 0.2) 100%
    );

  background-repeat: repeat, no-repeat, no-repeat, no-repeat, no-repeat, no-repeat;
  background-size: 64px 64px, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%;

  /* Soften with blur to reduce banding and create glow */
  filter: blur(40px);
  
  /* Subtle animation for living feel */
  animation: drift 120s ease-in-out infinite;
  
  /* CSS mask for vertical fade only (clip-path handles rounded corners) */
  mask: linear-gradient(
    to bottom,
    rgba(0,0,0, 1) 0%,    /* fully visible at top */
    rgba(0,0,0, 0.9) 15%, /* gentle start */
    rgba(0,0,0, 0.5) 30%, /* more pronounced fade */
    rgba(0,0,0, 0.1) 40%, /* nearly gone */
    rgba(0,0,0, 0) 50%    /* completely transparent */
  );
  -webkit-mask: linear-gradient(
    to bottom,
    rgba(0,0,0, 1) 0%,
    rgba(0,0,0, 0.9) 15%,
    rgba(0,0,0, 0.5) 30%,
    rgba(0,0,0, 0.1) 40%,
    rgba(0,0,0, 0) 50%
  );
}

/* Subtle drift animation for living background */
@keyframes drift {
  0%, 100% { 
    background-position: 0 0, 0% 0%, 0% 0%, 0% 0%, 0% 0%, 0% 0%; 
    filter: blur(40px) hue-rotate(0deg);
  }
  25% { 
    background-position: 16px 0, 20% 0%, 10% 0%, 25% 0%, 20% 0%, 15% 0%; 
    filter: blur(45px) hue-rotate(2deg);
  }
  50% { 
    background-position: 32px 0, 40% 0%, 20% 0%, 50% 0%, 40% 0%, 30% 0%; 
    filter: blur(35px) hue-rotate(0deg);
  }
  75% { 
    background-position: 48px 0, 60% 0%, 30% 0%, 75% 0%, 60% 0%, 45% 0%; 
    filter: blur(42px) hue-rotate(-2deg);
  }
}

/* Animation Styles */
.feature-panel {
  opacity: 0;
  transform: translate3d(0, 15px, 0);
  will-change: transform, opacity;
}

.feature-panel.animated {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition: opacity 300ms cubic-bezier(0.4, 0.0, 0.2, 1), 
              transform 300ms cubic-bezier(0.4, 0.0, 0.2, 1);
}

.feature-panel.animation-complete {
  will-change: auto;
}

.category-row.animation-complete {
  will-change: auto;
}

.amount-input {
  transition: all 0.1s ease;
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  transition: filter 500ms ease;
}

.card-image.locked {
  filter: blur(4px) opacity(0.6);
}

.lock-lottie {
  opacity: 0;
  transform: scale(0);
  transition: opacity 500ms ease, transform 500ms ease;
}

.lock-lottie.animated {
  opacity: 1;
  transform: scale(1);
}

.category-row {
  opacity: 0;
  transform: translate3d(0, 12px, 0);
  will-change: transform, opacity;
  transition: opacity 250ms cubic-bezier(0.4, 0.0, 0.2, 1), 
              transform 250ms cubic-bezier(0.4, 0.0, 0.2, 1);
}

.category-row.animated {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.category-row.animated.highlight-border {
  animation: expandYellowBorder 180ms ease-out forwards;
}

@keyframes expandYellowBorder {
  0% {
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: none;
  }
  100% {
    border-color: rgba(249, 204, 46, 0.3);
    box-shadow: 0 0 0 2px rgba(249, 204, 46, 0.1);
  }
}

@keyframes shadowBloom {
  0% {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  }
  100% {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
  }
}

.feature-panel.shadow-bloom {
  animation: shadowBloom 200ms cubic-bezier(0.4, 0.0, 0.2, 1) forwards;
}

.card-features-section {
  position: relative;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0;
  overflow: visible;
}

.card-features-grid {
  display: flex;
  gap: 20px;
  width: 100%;
  justify-content: center;
  align-items: flex-start;
  overflow: visible;
}

.feature-panel {
  background: rgb(23, 23, 23);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  flex: 1 1 0;
  min-width: 280px;
  max-width: 340px;
  height: 305px !important;
  max-height: 305px !important;
  min-height: 305px !important;
  box-sizing: border-box;
}

.feature-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

/* Ensure lock panel maintains exact height */
.feature-panel.lock-panel {
  height: 305px !important;
  max-height: 305px !important;
  min-height: 305px !important;
}

/* Allow panel content to expand naturally while maintaining panel height */
.feature-panel {
  overflow: visible;
}

.panel-header {
  margin-bottom: 20px;
}

.panel-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
  line-height: 1.4;
}

.panel-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
  justify-content: flex-start;
  max-height: none;
  overflow: visible;
}

.panel-content.centered {
  align-items: center;
  text-align: center;
  justify-content: center;
}

/* Control Groups */
.control-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.control-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #ffffff;
  margin: 0;
  text-align: left;
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Select Styling */
.select-wrapper {
  position: relative;
  pointer-events: none;
}

.custom-select {
  width: 100%;
  padding: 12px 16px;
  background: rgba(42, 42, 42, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #ffffff;
  font-size: 0.875rem;
  appearance: none;
  transition: all 0.2s ease;
  pointer-events: none;
}

.custom-select:focus {
  outline: none;
  border-color: #F9CC2E;
  box-shadow: 0 0 0 3px rgba(249, 204, 46, 0.1);
}

.select-arrow {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #a5b3c1;
}

/* Toggle Switch */
.toggle-switch {
  position: relative;
  width: 44px;
  height: 24px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  transition: 0.3s;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background: #ffffff;
  border-radius: 50%;
  transition: 0.3s;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle-switch.active .toggle-slider,
.toggle-switch input:checked + .toggle-slider {
  background: #F9CC2E;
  border-color: #F9CC2E;
}

.toggle-switch.active .toggle-slider:before,
.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(20px);
}

/* Amount Input */
.amount-input-wrapper {
  position: relative;
  display: flex;
  /* align-items: center; */ /* REMOVED to fix dollar sign alignment */
  background: #262a30;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.currency-symbol {
  position: absolute;
  left: 12px;
  color: #a5b3c1;
  font-weight: 500;
  z-index: 1;
}

.amount-input {
  width: 100%;
  padding: 12px 16px 12px 32px;
  background: rgba(42, 42, 42, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease;
  pointer-events: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}

.amount-display {
  width: 100%;
  padding: 12px 16px 12px 32px;
  background: rgba(42, 42, 42, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease;
  pointer-events: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  min-height: 20px;
  box-sizing: border-box;
  text-align: left;
  display: flex;
  align-items: center;
}

.amount-input:focus {
  outline: none;
  border-color: #F9CC2E;
  box-shadow: 0 0 0 3px rgba(249, 204, 46, 0.1);
}

/* Virtual Card */
.virtual-card {
  position: relative;
  width: 240px;
  height: 150px;
  margin: 20px 0;
  max-height: none;
  overflow: visible;
}

.lock-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: transparent;
  width: 200px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 500ms ease;
  overflow: visible;
}

.lock-overlay.visible {
  opacity: 1;
}

.lock-icon {
  color: #ffffff;
}

/* Control Buttons */
.card-controls {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.control-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(42, 42, 42, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #a5b3c1;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.control-btn.active {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  border-color: #ef4444;
  color: #ffffff;
}

/* Categories List */
.categories-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.category-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: rgba(42, 42, 42, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  transition: all 0.2s ease;
}

.category-row.active {
  background: rgba(249, 204, 46, 0.1);
  border-color: rgba(249, 204, 46, 0.3);
}

.category-toggle {
  position: relative;
}

.category-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.checkbox-custom {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.checkbox-custom::after {
  content: '✓';
  color: #ffffff;
  font-size: 10px;
  font-weight: bold;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.category-toggle input:checked + .checkbox-custom {
  background: #F9CC2E;
  border-color: #F9CC2E;
}

.category-toggle input:checked + .checkbox-custom::after {
  opacity: 1;
}

.category-icon {
  color: #a5b3c1;
  display: flex;
  align-items: center;
}

.category-row.active .category-icon {
  color: #F9CC2E;
}

.category-label {
  flex: 1;
  font-size: 0.875rem;
  font-weight: 500;
  color: #ffffff;
}

/* Responsive Design */
@media (max-width: 1024px) {
  /* Hide gradient background on tablet and mobile */
  .gradient-container,
  .gradient-mask {
    display: none !important;
  }
  
  /* Remove gradient background styling from control section */
  .control-section::before {
    display: none !important;
  }
  
  .card-features-grid {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }
  
  .feature-panel {
    min-width: auto;
    max-width: 100%;
    width: 100%;
    flex: none;
  }
}

@media (max-width: 768px) {
  /* Gradient already hidden by tablet breakpoint above */
  
  /* Fix control section overflow on mobile */
  .control-section {
    overflow-x: hidden !important;
    overflow-y: visible !important;
  }
  
  .control-section .accounts-feature-content {
    overflow: visible !important;
  }
  
  .control-section .accounts-feature-demo {
    overflow: visible !important;
  }
  
  .card-features-section {
    overflow: visible !important;
    max-width: 100%;
    padding: 0;
  }
  
  .card-features-grid {
    flex-direction: column;
    align-items: center;
    gap: 16px;
    overflow: visible !important;
  }
  
  .feature-panel {
    padding: 20px;
    max-width: 100%;
    width: 100%;
    min-width: auto;
    flex: none;
    box-shadow: none !important;
  }
  
  /* Remove shadows from solution page case cards and workflow elements on mobile */
  .case-card:hover,
  .flow-step-card:hover {
    box-shadow: none !important;
  }
  
  .payment-flow-container {
    box-shadow: none !important;
  }
  
  .virtual-card {
    width: 200px;
    height: 125px;
  }
  
  .card-background {
    padding: 12px;
  }
  
  .card-number {
    font-size: 0.95rem;
  }
  
  .control-btn {
    padding: 8px 12px;
    font-size: 0.8rem;
  }
}

/* ===== REWARDS HERO SECTION STYLES ===== */

.section-main.rewards-hero-section {
  background: #ffffff !important;
  color: #1a1c20 !important;
  padding: 120px 20px 80px;
  position: relative;
  overflow: hidden;
  margin-top: 60px;
}

.rewards-hero-content {
  text-align: center;
  margin-bottom: 60px;
}

.rewards-headline {
  font-size: 3.5rem;
  font-weight: 700;
  color: #1a1c20 !important;
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
  font-family: 'Switzer', system-ui, -apple-system, sans-serif;
}

.rewards-subheading {
  font-size: 1.25rem;
  color: #6b7280 !important;
  line-height: 1.6;
  margin-bottom: 0;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.rewards-button-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.rewards-btn-primary,
.rewards-btn-secondary {
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.rewards-btn-primary {
  background: #232427;
  color: #ffffff;
  border: 2px solid transparent;
}

.rewards-btn-primary:hover {
  background: #393a3d;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(35, 36, 39, 0.2);
}

.rewards-btn-secondary {
  background: transparent;
  color: #232427;
  border: 2px solid #e5e7eb;
}

.rewards-btn-secondary:hover {
  border-color: #232427;
  background: rgba(35, 36, 39, 0.04);
}

/* Rewards Card Module */
.rewards-card-wrapper {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

.rewards-gradient-ribbon {
  position: absolute;
  top: -100px;
  left: -150px;
  right: -150px;
  height: 350px;
  background: linear-gradient(135deg,
    oklch(85% 0.25 90 / 0.15) 0%,    /* vibrant yellow - lower lightness, higher chroma */
    oklch(75% 0.28 50 / 0.12) 30%,   /* vibrant orange - lower lightness, higher chroma */
    oklch(70% 0.26 25 / 0.10) 60%,   /* vibrant coral - lower lightness, higher chroma */
    oklch(65% 0.24 300 / 0.08) 100%  /* vibrant purple - lower lightness, higher chroma */
  );
  filter: blur(80px) saturate(1.08) contrast(1.02);  /* Added saturation and contrast boost */
  pointer-events: none;
  z-index: 0;
  transform: rotate(-12deg);
}

/* CRITICAL: Hide expensive gradient elements on cashback page (all screen sizes) */
/* Safari performance: blur(80px) is extremely expensive and causes stuttering */
html[data-wf-page="68811a4aff365897328f6dac"] .rewards-gradient-ribbon,
html[data-wf-page="68811a4aff365897328f6dac"] .gradient-mask,
html[data-wf-page="68811a4aff365897328f6dac"] .gradient-container {
  display: none !important;
}

/* CRITICAL: Disable infinite gradient animation on cashback page (all screen sizes) */
/* Safari performance: infinite background-position animation causes constant repaints */
html[data-wf-page="68811a4aff365897328f6dac"] .section-main.solutions-section-hero::before {
  animation: none !important;
  background-position: 0% 50% !important;
}

/* CRITICAL: Disable backdrop-filter on navbar for Safari performance */
/* Safari performance: backdrop-filter with blur is extremely expensive during scrolling */
@supports (-webkit-backdrop-filter: blur(1px)) {
  html[data-wf-page="68811a4aff365897328f6dac"] .navbar.white {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background-color: rgba(255, 255, 255, 0.95) !important;
  }
}

/* Mobile: Hide gradient ribbon completely and fix corner clipping */
@media (max-width: 768px) {
  .rewards-gradient-ribbon {
    display: none !important; /* Remove colored gradient background on mobile */
  }
  
  /* Disable the diagonal background stripe on mobile to prevent corner clipping */
  html[data-wf-page="68811a4aff365897328f6dac"] .section-main.solutions-section-hero::before {
    display: none !important;
  }
  
  /* Fix corner clipping issues on mobile by ensuring containers don't clip */
  .hero-graphic-wrapper,
  .rewards-card-wrapper {
    overflow: visible !important;
  }
  
  /* Ensure the rewards card renders properly on mobile */
  .rewards-card {
    overflow: visible !important;
    /* Force proper border radius rendering */
    -webkit-border-radius: 24px;
    -moz-border-radius: 24px;
    border-radius: 24px;
    /* Ensure card stays above the diagonal background stripe */
    position: relative;
    z-index: 10 !important;
  }
  
  /* Ensure parent containers also have proper stacking context */
  .hero-graphic-wrapper {
    position: relative;
    z-index: 5;
  }
  
  .rewards-card-wrapper {
    position: relative;
    z-index: 6;
  }
  
  /* Gradient backgrounds already hidden globally at tablet/mobile breakpoints */
  
  /* Direct placement of rewards-card on mobile (no wrappers) */
  .container-right-reverse.full-size-treasury > .rewards-card {
    margin: 0 auto;
    max-width: 90%;
    width: 100%;
  }
}

.rewards-card {
  background: #18191b;
  border-radius: 24px;
  padding: 42px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  position: relative;
  z-index: 1;
  overflow: hidden; /* Keep hidden for desktop */
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease-out forwards;
  animation-delay: 0.3s;
}

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

.rewards-card-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

/* Eyebrow Text */
.rewards-eyebrow {
  font-size: 11px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7); /* White at 70% opacity */
  margin: 0;
  letter-spacing: 1.5px; /* Increased tracking */
  font-variant: small-caps;
  font-family: 'Switzer', system-ui, -apple-system, sans-serif;
}

/* Amount Container */
.rewards-amount-container {
  margin-bottom: 14px;
}

/* Amount Display */
.rewards-amount-wrapper {
  display: flex;
  align-items: baseline;
  justify-content: center;
  font-family: ui-monospace, 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
  transition: opacity 0.3s ease;
}

.rewards-prefix {
  font-size: 52px;
  font-weight: 400;
  color: #ffffff; /* White to match the numbers */
  margin-right: 4px;
  line-height: 1;
  font-family: ui-monospace, 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
  font-variant-numeric: tabular-nums lining-nums;
  font-feature-settings: "tnum", "lnum";
}

.rewards-whole {
  font-size: 52px;
  font-weight: 800; /* Ultra-bold */
  color: #ffffff;
  line-height: 1;
  font-family: ui-monospace, 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
  font-variant-numeric: tabular-nums lining-nums;
  font-feature-settings: "tnum", "lnum";
}

.rewards-decimal {
  font-size: 60%; /* ~60% size for cents */
  font-weight: 400;
  color: #ffffff;
  line-height: 1;
  vertical-align: baseline;
  position: relative;
  top: -0.15em; /* Slightly raised */
  font-family: ui-monospace, 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
  font-variant-numeric: tabular-nums lining-nums;
  font-feature-settings: "tnum", "lnum";
}

/* Projection Text */
.rewards-projection {
  text-align: center;
  margin-bottom: 20px;
  margin-top: 12px; /* Added top margin for separation */
  font-size: 12px; /* reduced by ~1pt */
  color: rgba(255, 255, 255, 0.7); /* 70% white */
  font-family: 'Switzer', system-ui, -apple-system, sans-serif;
  font-style: italic; /* Italicized */
  letter-spacing: -0.02em;
  white-space: nowrap;
}

/* Progress Bar */
.rewards-progress-bar {
  position: relative;
  width: 100%;
  height: 3px; /* Thin 3px line */
  margin-bottom: 32px;
}

.rewards-progress-labels {
  position: absolute;
  top: -16px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.4); /* Faint labels */
  font-family: ui-monospace, 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
  font-variant-numeric: tabular-nums;
}

.progress-label-left,
.progress-label-right {
  line-height: 1;
}

.rewards-progress-track {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.25) 100%);
  border-radius: 2px;
}

.rewards-progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background: transparent; /* Remove fill background */
  border-radius: 2px;
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.rewards-progress-coin {
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  background: #18191b; /* Dark background matching card */
  border: 2px solid rgba(255, 255, 255, 0.3); /* Light inner stroke */
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5); /* Dark outer stroke */
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s ease-out 0.7s, left 0.2s ease-out, right 0.2s ease-out;
}

/* When progress is at start, position coin at track beginning */
.rewards-progress-fill.at-start .rewards-progress-coin {
  right: auto;
  left: -6px;
}

.rewards-progress-fill.animated {
  /* Width will be set by JavaScript to accurate percentage */
  /* Using ease-out curve to match number animation: 1 - Math.pow(1 - progress, 3) */
  transition: width 1.5s ease-out;
}

.rewards-progress-fill.animated .rewards-progress-coin {
  opacity: 1;
}

/* Coin dot styling - no animation needed */

/* Chips Row */
.rewards-chips-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-bottom: 24px;
  padding: 24px 0; /* Top and bottom padding for the entire block */
}

.rewards-chip-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.rewards-chip-item.animated {
  opacity: 1;
  transform: translateY(0);
}

.rewards-chip {
  height: 60px; /* Increased height for two lines */
  width: 160px; /* Fixed width for equal-sized pills */
  padding: 8px 16px;
  background: #2b2d30; /* Soft charcoal background */
  border: 1px solid rgba(255, 255, 255, 0.1); /* Faint 10% white stroke */
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.chip-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px; /* Small gap between label row and amount */
}

.chip-top-row {
  display: flex;
  align-items: center;
  gap: 6px; /* Space between icon and label */
}

/* Hover effects removed per design requirements */
/* .rewards-chip-item:hover .rewards-chip {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.1);
}

.rewards-chip-item:hover .chip-label {
  font-weight: 700;
} */

.rewards-chip-item.highlighted .rewards-chip {
  border-color: rgba(255, 255, 255, 0.1); /* Same consistent neutral treatment */
  background: #2b2d30; /* Same soft charcoal background */
}

.chip-icon {
  width: 12px;
  height: 12px;
  color: #ffffff; /* Bright white for crisp legibility */
  flex-shrink: 0;
}

.chip-label {
  font-size: 14px;
  font-weight: 500;
  color: #ffffff; /* Bright white for crisp legibility */
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: font-weight 0.2s ease;
}

.chip-amount {
  font-size: 0.8em; /* 80% size to cut clutter */
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85); /* 85% opacity for supporting data */
  font-family: ui-monospace, 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
  font-variant-numeric: tabular-nums;
  text-align: center;
  line-height: 1;
}

/* Meta Row */
.rewards-meta-row {
  text-align: center;
  margin-top: 24px;
}

.rewards-meta-line {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
  line-height: 1.6;
  font-family: 'Switzer', system-ui, -apple-system, sans-serif;
}

.rewards-meta-line + .rewards-meta-line {
  margin-top: 8px;
}

.rewards-meta-row .rewards-meta-line.growth {
  display: inline-block !important;
  background: rgba(34, 197, 94, 0.15) !important; /* Soft green background */
  color: #22c55e !important; /* Green text */
  font-weight: 600 !important;
  padding: 8px 20px !important; /* Significantly increased padding to match badge styling */
  border-radius: 12px !important; /* Capsule shape */
  font-size: 11px !important;
  line-height: 1.2 !important;
  margin: 0 !important;
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  .rewards-card,
  .rewards-chip-item,
  .rewards-progress-fill,
  .rewards-progress-coin {
    animation: none !important;
    opacity: 1;
    transform: none;
    transition: none;
  }
  
  .rewards-chip-item.animated {
    opacity: 1;
    transform: none;
  }
  
  .rewards-progress-fill.animated {
    /* No transition needed for reduced motion */
    transition: none;
  }
  
  .rewards-progress-fill.animated .rewards-progress-coin {
    opacity: 1;
    animation: none !important;
  }
  
  /* Old glowPulse animation removed - using flat coin design */
}

/* Responsive Design */
@media (max-width: 768px) {
  .rewards-hero-section {
    padding: 80px 20px 60px;
  }
  
  .rewards-headline {
    font-size: 2.5rem;
  }
  
  .rewards-subheading {
    font-size: 1.1rem;
  }
  
  .rewards-button-group {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }
  
  .rewards-btn-primary,
  .rewards-btn-secondary {
    width: 100%;
    justify-content: center;
  }
  
  .rewards-card {
    padding: 36px 28px;
    /* Ensure proper border radius rendering on tablet/mobile */
    overflow: visible;
    /* Force GPU acceleration for smoother rendering and fix corner clipping */
    transform: translateZ(0);
    /* Ensure consistent border-radius rendering across browsers */
    border-radius: 24px;
    -webkit-border-radius: 24px;
    -moz-border-radius: 24px;
    /* Fix potential masking/clipping issues on mobile */
    mask-image: radial-gradient(white, black);
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    /* Ensure proper compositing */
    will-change: transform;
  }
  
  .rewards-prefix,
  .rewards-whole {
    font-size: 40px;
  }
  
  .rewards-prefix {
    color: #ffffff; /* White to match the numbers */
  }
  
  .rewards-decimal {
    font-size: 65%;
    top: 0.12em;
  }
  
  .rewards-projection {
    margin-bottom: 16px;
    font-size: 11px;
  }
  
  .rewards-chips-row {
    gap: 12px;
  }
  
  .rewards-chip {
    height: 54px; /* Slightly smaller on tablet */
    padding: 6px 14px;
  }
  
  .chip-label {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .rewards-headline {
    font-size: 2rem;
  }
  
  .rewards-card {
    padding: 32px 24px;
    /* Ensure proper border radius rendering on mobile */
    overflow: visible;
    /* Force GPU acceleration for smoother rendering and fix corner clipping */
    transform: translateZ(0);
    /* Ensure consistent border-radius rendering across browsers */
    border-radius: 20px;
    -webkit-border-radius: 20px;
    -moz-border-radius: 20px;
    /* Fix potential masking/clipping issues on mobile */
    mask-image: radial-gradient(white, black);
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    /* Ensure proper compositing */
    will-change: transform;
  }
  
  .rewards-prefix,
  .rewards-whole {
    font-size: 30px;
  }
  
  .rewards-prefix {
    color: #ffffff; /* White to match the numbers */
  }
  
  .rewards-decimal {
    font-size: 65%;
    top: 0.1em;
  }
  
  .rewards-chips-row {
    flex-direction: row;
    gap: 6px; /* Even smaller gap for mobile */
    justify-content: center;
    flex-wrap: nowrap; /* Prevent wrapping */
    max-width: 100%; /* Ensure it doesn't exceed container width */
    overflow: visible; /* Ensure tiles aren't clipped */
    margin-top: -20px; /* Move tiles up by 20px */
  }
  
  .rewards-chip {
    height: 50px; /* Smaller on mobile */
    width: 90px; /* Much narrower to fit three horizontally */
    padding: 4px 6px; /* Even more reduced padding for tighter layout */
    flex-shrink: 0; /* Prevent shrinking */
  }
  
  .chip-label {
    font-size: 10px; /* Even smaller font for mobile */
    line-height: 1.1;
  }
  
  .chip-amount {
    font-size: 11px; /* Smaller amount text */
    line-height: 1.0;
  }
  
  /* Cards slide mobile modifications */
  .slideshow-cards-preview .scp-header,
  .scp-header {
    display: none !important;
  }
  
  .scp-th-actions,
  .scp-td-actions {
    display: none;
  }
  
  /* Hide card icons on mobile only */
  .scp-card-info svg {
    display: none;
  }
  
  /* Adjust card column spacing and redistribute column widths */
  .scp-td-card {
    padding-left: 0.5rem; /* Move card content slightly left */
  }
  
  .scp-th:nth-child(1) { width: 17%; }  /* Name - reduced by 2% */
  .scp-th:nth-child(2) { width: 14%; }  /* Card - reduced by 4% to narrow table */
  .scp-th:nth-child(3) { width: 24%; }  /* Limit */
  .scp-th:nth-child(4) { width: 36%; }  /* Locks - increased by another 2% */
  
  /* Remove borders/boxes around lock buttons on mobile */
  .scp-lock-tag,
  .scp-add-lock-btn {
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
  }
}

/* Cards slide top spacing reduction - use negative margin approach */
.slideshow-cards-preview .scp-table-wrapper {
  margin-top: -20px !important;
}

/* ===== CASHBACK TIER SLIDER STYLES ===== */

/* Cashback Tier Slider Wrapper */
.cashback-tier-wrapper {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Cashback Tier Card - Matching rewards card style */
.cashback-tier-card {
  background: #18191b;
  border-radius: 24px;
  padding: 32px 40px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  position: relative;
  z-index: 1;
  overflow: visible;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease-out forwards;
  animation-delay: 0.3s;
}

.cashback-tier-content {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ===== ZONE 1: MONTHLY SPEND (TOP) ===== */
.tier-spend-zone {
  text-align: center;
  margin-bottom: 4px; /* Reduced from 8px to tighten spacing */
}

.tier-spend-amount {
  font-size: 54px;
  font-weight: 900;
  color: #ffffff;
  line-height: 0.9;
  font-family: ui-monospace, 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
  margin-bottom: 4px; /* Reduced from 8px to bring "Monthly Spend" closer */
  transition: all 0.2s ease;
  letter-spacing: -0.02em;
}

.tier-spend-label {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  font-family: 'Switzer', system-ui, -apple-system, sans-serif;
  letter-spacing: 0.01em;
  text-transform: none;
}

/* ===== ZONE 2: INTERACTIVE SLIDER (MIDDLE) ===== */
.tier-slider-zone {
  position: relative;
  padding: 16px 0; /* Reduced from 24px to make card more compact */
  overflow: visible; /* Ensure thumb and tooltip can extend beyond zone */
}

/* Tier Status Pill Container */
.tier-status-pill-container {
  display: flex;
  justify-content: center;
  margin-top: 16px;
  margin-bottom: 0;
  min-height: 20px; /* Reserve space to prevent layout shift */
}

/* Tier Status Pill - Using existing pill component */
.tier-status-pill {
  opacity: 0;
  transform: translateY(-10px) scale(0.9);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.tier-status-pill.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Slider Container */
.tier-slider-container {
  position: relative;
  padding: 8px 20px; /* Add vertical padding for 16px thumb */
}

.tier-slider-track {
  position: relative;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.2s ease;
  overflow: visible; /* Allow thumb to extend beyond track */
}

.tier-slider-track:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* Progress Fill - Solid brand green left of thumb */
.tier-progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: #22c55e;
  border-radius: 2px;
  width: 49.54%;
  transition: none;
  z-index: 1;
}

/* Only apply transition when not dragging */
.tier-progress-fill:not(.dragging) {
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Progress Remaining - Dark grey right of thumb */
.tier-progress-remaining {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  width: 50.46%;
  transition: none;
  z-index: 1;
}

/* Only apply transition when not dragging */
.tier-progress-remaining:not(.dragging) {
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Slider Handle - Minimal Hero Style */
.tier-slider-handle {
  position: absolute;
  top: 50%;
  left: 49.54%;
  transform: translate(-50%, -50%);
  width: 16px;
  height: 16px;
  cursor: grab;
  z-index: 2;
  transition: none;
  outline: none;
}

/* Only apply transition when not dragging */
.tier-slider-handle:not(.dragging) {
  transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tier-slider-handle:active {
  cursor: grabbing;
}

.tier-slider-handle:focus {
  outline: 2px solid rgba(34, 197, 94, 0.5);
  outline-offset: 4px;
}

.tier-handle-dot {
  width: 100%;
  height: 100%;
  background: #18191b; /* Panel color inside */
  border: 2px solid #ffffff; /* White ring */
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.3), 0 2px 4px rgba(0, 0, 0, 0.1); /* Better contrast */
  border-radius: 50%;
  transition: all 0.2s ease;
}

.tier-slider-handle:hover .tier-handle-dot {
  transform: scale(1.1);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.3);
}

.tier-slider-handle:active .tier-handle-dot {
  transform: scale(0.95);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4);
}

/* Drag Tooltip - Styling moved to badge-component.css */

/* Tooltip arrow styling removed - not needed for pill-shaped tooltip */

/* Drag Tooltip - Uses default badge-component styling for consistency */
#tier-drag-tooltip.badge-component {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 12px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
  transform: translateX(-50%) translateY(-4px);
  z-index: 20;
  pointer-events: none;
  margin-right: 0;
  margin-bottom: 0;
}

#tier-drag-tooltip.badge-component.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

#tier-drag-tooltip.badge-component.fade-out {
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(-4px);
  transition: opacity 0.5s ease, visibility 0.5s ease, transform 0.3s ease;
}

/* Tier Markers Container */
.tier-markers-container {
  position: relative;
  margin-top: 16px;
  height: 45px;
}

.tier-marker {
  position: absolute;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1;
}

.tier-marker-tick {
  width: 2px;
  height: 16px;
  background: rgba(255, 255, 255, 0.4);
  margin-bottom: 8px;
  border-radius: 1px;
}

.tier-marker-labels {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.tier-marker-amount {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 3px;
  font-family: ui-monospace, 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
  white-space: nowrap;
  line-height: 1;
  letter-spacing: -0.01em;
}

.tier-marker-rate {
  font-size: 11px;
  font-weight: 500;
  color: #22c55e;
  font-family: 'Switzer', system-ui, -apple-system, sans-serif;
  white-space: nowrap;
  line-height: 1;
}

/* ===== ZONE 3: PROJECTED CASHBACK (BOTTOM) - THE PAYOFF ===== */
.tier-projection-zone {
  text-align: center;
  margin-top: 0px !important; /* Reduced from 4px to bring closer to gauge - UPDATED */
}

.tier-projection-amount {
  font-size: 42px !important; /* Reduced from 54px to make smaller */
  font-weight: 900;
  color: #22c55e;
  font-family: ui-monospace, 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
  line-height: 0.9;
  transition: all 0.3s ease;
  letter-spacing: -0.02em;
  text-shadow: 0 1px 2px rgba(34, 197, 94, 0.1);
}

.tier-projection-label {
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 6px;
  font-family: 'Switzer', system-ui, -apple-system, sans-serif;
  letter-spacing: 0.01em;
}

.tier-projection-note {
  font-size: 11px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.45);
  font-family: 'Switzer', system-ui, -apple-system, sans-serif;
  font-style: italic;
  letter-spacing: 0;
  max-width: 280px;
  margin: 0 auto;
}

/* Projection Amount Wrapper with Info Badge */
.tier-projection-amount-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

/* Info Badge */
.cashback-info-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  cursor: help;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.cashback-info-badge:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
}

.info-icon {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  font-family: 'Switzer', system-ui, -apple-system, sans-serif;
  line-height: 1;
}

.cashback-info-badge:hover .info-icon {
  color: rgba(255, 255, 255, 0.9);
}

/* Simple bulletproof tooltip */
.simple-cashback-tooltip {
  position: fixed !important;
  background: #000000 !important;
  color: white !important;
  padding: 20px !important;
  border-radius: 8px !important;
  border: 1px solid rgba(230, 232, 235, 0.3) !important;
  font-size: 14px !important;
  line-height: 1.4 !important;
  z-index: 999999 !important;
  pointer-events: none !important;
  opacity: 0 !important;
  transition: opacity 0.2s ease !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8) !important;
  max-width: 320px !important;
  font-family: system-ui, sans-serif !important;
}

.simple-cashback-tooltip.show {
  opacity: 1 !important;
}

.tooltip-title {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 12px 0;
  font-family: 'Switzer', system-ui, -apple-system, sans-serif;
}

.tier-breakdown {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.tier-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tier-range {
  font-size: 13px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.8);
  font-family: 'Switzer', system-ui, -apple-system, sans-serif;
}

.tier-boost {
  font-size: 13px;
  font-weight: 500;
  font-family: 'Switzer', system-ui, -apple-system, sans-serif;
}

.tier-boost.neutral {
  color: rgba(255, 255, 255, 0.5);
}

.tier-boost.positive {
  color: #22c55e;
}

.tooltip-note {
  font-size: 11px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.6);
  font-family: 'Switzer', system-ui, -apple-system, sans-serif;
  line-height: 1.4;
  margin: 0;
}

.cashback-info-tooltip .tooltip-arrow {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid #2a2d31;
}

/* Responsive Design */
@media (max-width: 768px) {
  /* Remove wrapper styling on mobile - content displays directly */
  .cashback-tier-wrapper {
    position: static;
    max-width: none;
    margin: 0;
    padding: 0;
  }
  
  .cashback-tier-card {
    padding: 28px 24px;
  }
  
  .cashback-tier-content {
    gap: 20px;
  }
  
  .tier-spend-amount {
    font-size: 48px;
  }
  
  .tier-spend-label {
    font-size: 13px;
  }
  
  .tier-slider-track {
    height: 3px;
  }
  
  .tier-slider-handle {
    width: 14px;
    height: 14px;
  }
  
  .tier-projection-amount {
    font-size: 36px !important; /* Reduced from 42px to make smaller */
  }
  
  .tier-projection-amount-wrapper {
    gap: 8px;
  }
  
  .cashback-info-badge {
    width: 18px;
    height: 18px;
  }
  
  .info-icon {
    font-size: 11px;
  }
  
  .cashback-info-tooltip {
    min-width: 260px;
    padding: 14px;
    margin-bottom: 6px;
  }
  
  .tier-projection-label {
    font-size: 14px;
  }
  
  .tier-marker-amount {
    font-size: 13px;
  }
  
  .tier-marker-rate {
    font-size: 11px;
  }
  
  .tier-marker-tick {
    height: 16px;
    width: 2px;
  }
}

@media (max-width: 480px) {
  .cashback-tier-card {
    padding: 24px 20px;
    border-radius: 20px;
  }
  
  .cashback-tier-content {
    gap: 18px;
  }
  
  .tier-spend-amount {
    font-size: 40px;
    margin-bottom: 6px;
  }
  
  .tier-spend-label {
    font-size: 12px;
  }
  
  .tier-slider-zone {
    padding: 14px 0;
    overflow: visible;
  }
  
  .tier-status-pill-container {
    margin-bottom: 12px;
  }
  
  .tier-slider-track {
    height: 3px;
  }
  
  .tier-slider-container {
    padding: 6px 16px; /* Smaller vertical padding for mobile */
  }
  
  .tier-slider-handle {
    width: 12px;
    height: 12px;
  }
  
  .tier-projection-amount {
    font-size: 32px !important; /* Reduced from 36px to make smaller */
    margin-bottom: 8px;
  }
  
  .tier-projection-label {
    font-size: 13px;
  }
  
  .tier-projection-note {
    font-size: 10px;
  }
  
  .tier-marker-amount {
    font-size: 12px;
  }
  
  .tier-marker-rate {
    font-size: 10px;
  }
  
  .tier-marker-tick {
    height: 14px;
    width: 1px;
  }
  
  .tier-markers-container {
    height: 55px;
    margin-top: 28px;
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  .cashback-tier-card,
  .tier-status-pill,
  .tier-slider-handle,
  .tier-progress-fill,
  .tier-projection-amount {
    animation: none !important;
    transition: none !important;
  }
}

/* ===== NEW VIRTUAL CARD MODAL STYLES ===== */

/* Modal Container */
.card-modal-demo {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 600px;
    padding: 40px 20px;
    background: transparent;
}

/* Virtual Card Modal */
.virtual-card-modal {
    background: #1a1c20;
    border-radius: 8px;
    box-shadow: 
        0 4px 6px rgba(0, 0, 0, 0.05),
        0 10px 25px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.05);
    width: 100%;
    max-width: 480px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.virtual-card-modal:hover {
    box-shadow: 
        0 8px 12px rgba(0, 0, 0, 0.08),
        0 20px 40px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

/* Modal Header */
.modal-header {
    padding: 24px 24px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    letter-spacing: -0.01em;
}

.modal-close {
    color: #9ca3af;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.modal-close:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

/* Modal Content */
.modal-content {
    padding: 24px;
}

/* Form Groups */
.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.form-label {
    display: block;
    color: #e5e7eb;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-label.updating {
    color: var(--serrafi-accent);
    transform: scale(1.02);
}

/* Select Wrapper */
.select-wrapper {
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.custom-select {
    width: 100%;
    background: #262a30;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px 40px 12px 12px;
    color: #ffffff;
    font-size: 14px;
    appearance: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
}

.custom-select:focus {
    border-color: var(--serrafi-accent);
    box-shadow: 0 0 0 3px rgba(255, 213, 79, 0.1);
}

.select-arrow {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dropdown Options */
.dropdown-options {
    position: absolute;
    top: calc(100% - 3px);
    left: 0;
    right: 0;
    background: #262a30;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: none;
    border-radius: 0 0 12px 12px;
    padding-bottom: 8px;
    max-height: 0;
    overflow: hidden;
    z-index: 10;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.dropdown-option {
    display: flex;
    gap: 16px;
    padding: 6px 12px;
    min-height: 44px;
    align-items: center;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    border-radius: 8px;
    border: 1px solid transparent;
}

/* Hover states disabled to prevent movement */
.dropdown-option:hover {
    /* No hover effects */
}

.dropdown-option.selected {
    color: rgba(255, 255, 255, 0.9);
    background: transparent;
    position: relative;
}

.dropdown-option.selected::before {
    content: '';
    position: absolute;
    top: 4px;
    left: 6px;
    right: 6px;
    bottom: 10px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    z-index: -1;
}

/* Enhanced dropdown options with descriptions */
.dropdown-option {
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: left;
    align-items: flex-start;
}

.option-title {
    font-size: 15px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
}

.option-description {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 400;
    line-height: 1.4;
}

/* Description hover states disabled */
.dropdown-option:hover .option-description {
    /* No hover effects */
}

.dropdown-option.selected .option-description {
    color: rgba(255, 255, 255, 0.6);
}

/* Animation states for user interaction simulation */
.dropdown-option.user-hovering {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    margin: 4px 6px;
    border-radius: 6px;
    transform: none !important;
    transition: all 0.2s ease;
}

.dropdown-option.user-selecting {
    background: transparent;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dropdown-option.user-selecting::before {
    content: '';
    position: absolute;
    top: 4px;
    left: 6px;
    right: 6px;
    bottom: 10px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    z-index: -1;
}

/* All click/active states disabled to prevent movement */
.dropdown-option:active,
.dropdown-option:focus,
.dropdown-option:active:focus {
    /* No click/active effects */
}

/* Nuclear option - completely static dropdown options */
.dropdown-option,
.dropdown-option:hover,
.dropdown-option:active,
.dropdown-option:focus,
.dropdown-option.user-hovering {
    transform: none !important;
    transition: none !important;
    animation: none !important;
    margin: 0 !important;
    padding: 16px 12px !important;
    position: static !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    border-radius: 0 !important;
    background: transparent !important;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    will-change: auto !important;
}

/* Allow selected and user-selecting states to have relative positioning for pseudo-elements */
.dropdown-option.selected,
.dropdown-option.user-selecting {
    transform: none !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    animation: none !important;
    margin: 0 !important;
    padding: 16px 12px !important;
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    border-radius: 0 !important;
    background: transparent !important;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    will-change: auto !important;
}

.dropdown-option.user-selecting .option-description {
    color: rgba(255, 255, 255, 0.6);
}

/* Amount Input Wrapper */
.amount-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: #262a30;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.currency-symbol {
    color: #9ca3af;
    font-size: 14px;
    font-weight: 500;
    padding: 12px 8px 12px 0;
    user-select: none;
}

.amount-input {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    padding: 12px 12px 12px 23px;
    flex: 1;
    outline: none;
    min-width: 0;
}

.amount-input::placeholder {
    color: #6b7280;
}

/* Assignee Wrapper */
.assignee-wrapper {
    display: flex;
    align-items: center;
    background: #262a30;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 8px 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.assignee-avatar {
    margin-right: 12px;
}

.avatar-placeholder {
    width: 32px;
    height: 32px;
    background: var(--serrafi-accent);
    color: #1a1c20;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.assignee-input {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 14px;
    flex: 1;
    outline: none;
}

.assignee-input::placeholder {
    color: #6b7280;
}

/* Issue Card Button */
.form-actions {
    margin-top: 32px;
}

.issue-card-btn {
    width: 100%;
    background: #374151;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 14px 24px;
    color: #9ca3af;
    font-size: 14px;
    font-weight: 600;
    cursor: not-allowed;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
}

.issue-card-btn:not(:disabled) {
    background: linear-gradient(135deg, var(--serrafi-accent) 0%, #e6c547 100%);
    color: #1a1c20;
    cursor: pointer;
    border-color: var(--serrafi-accent);
}

.issue-card-btn:not(:disabled):hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 213, 79, 0.3);
}

.btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.issue-card-btn:not(:disabled):hover .btn-shine {
    left: 100%;
}

/* ===== ANIMATION CLASSES FOR THREE-BEAT SEQUENCE ===== */

/* Beat 1: Dropdown Pulse and Open */
@keyframes dropdownPulse {
    0% { 
        border-color: rgba(255, 255, 255, 0.1);
        box-shadow: none;
    }
    25% { 
        border-color: var(--serrafi-accent);
        box-shadow: 0 0 0 3px rgba(255, 213, 79, 0.2);
    }
    50% { 
        border-color: var(--serrafi-accent);
        box-shadow: 0 0 0 6px rgba(255, 213, 79, 0.1);
    }
    100% { 
        border-color: var(--serrafi-accent);
        box-shadow: 0 0 0 3px rgba(255, 213, 79, 0.1);
    }
}

@keyframes dropdownArrowRotate {
    0% { transform: translateY(-50%) rotate(0deg); }
    100% { transform: translateY(-50%) rotate(180deg); }
}

@keyframes dropdownExpand {
    0% { 
        max-height: 0;
        opacity: 0;
    }
    100% { 
        max-height: 240px;
        opacity: 1;
    }
}

.dropdown-pulse-active .custom-select {
    animation: dropdownPulse 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.dropdown-pulse-active .select-arrow {
    animation: dropdownArrowRotate 0.3s cubic-bezier(0.4, 0, 0.2, 1) 0.6s forwards;
}

.dropdown-pulse-active .dropdown-options {
    animation: dropdownExpand 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.8s forwards;
}

/* Beat 2: Spend Limit Glow and Count */
@keyframes limitFieldGlow {
    0% { 
        border-color: rgba(255, 255, 255, 0.1);
        box-shadow: none;
    }
    25% { 
        border-color: var(--serrafi-accent);
        box-shadow: 0 0 0 3px rgba(255, 213, 79, 0.15);
    }
    100% { 
        border-color: var(--serrafi-accent);
        box-shadow: 0 0 0 3px rgba(255, 213, 79, 0.1);
    }
}

@keyframes numberCount {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 1; }
}

.limit-glow-active {
    animation: limitFieldGlow 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    animation-fill-mode: forwards;
}

.number-counting {
    animation: numberCount 0.1s ease-in-out;
}

/* Beat 3: Assignee Typing and Button Flash */
@keyframes assigneeFieldGlow {
    0% { 
        border-color: rgba(255, 255, 255, 0.1);
        box-shadow: none;
    }
    30% { 
        border-color: var(--serrafi-accent);
        box-shadow: 0 0 0 3px rgba(255, 213, 79, 0.15);
    }
    100% { 
        border-color: var(--serrafi-accent);
        box-shadow: 0 0 0 3px rgba(255, 213, 79, 0.1);
    }
}

@keyframes typeWriter {
    0% { width: 0; }
    100% { width: 100%; }
}

@keyframes buttonFlash {
    0% { 
        background: #374151;
        color: #9ca3af;
        border-color: rgba(255, 255, 255, 0.1);
        transform: scale(1);
    }
    50% { 
        background: linear-gradient(135deg, var(--serrafi-accent) 0%, #e6c547 100%);
        color: #1a1c20;
        border-color: var(--serrafi-accent);
        transform: scale(1.02);
        box-shadow: 0 4px 20px rgba(255, 213, 79, 0.4);
    }
    100% { 
        background: linear-gradient(135deg, var(--serrafi-accent) 0%, #e6c547 100%);
        color: #1a1c20;
        border-color: var(--serrafi-accent);
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(255, 213, 79, 0.2);
    }
}

.assignee-glow-active {
    animation: assigneeFieldGlow 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    animation-fill-mode: forwards;
}

.typing-active {
    overflow: hidden;
    white-space: nowrap;
    animation: typeWriter 1.2s steps(20, end);
}

.button-flash-active {
    animation: buttonFlash 0.8s ease-out;
}

@keyframes typing-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Forcefully disable the pseudo-element causing the input issue */
.typing-cursor::after,
.amount-input.typing-cursor::after {
  display: none !important;
  content: none !important;
}

@keyframes typing-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ————————————————————————————————- */
/* ———— VIRTUAL CARD MODAL SUCCESS ———— */
/* ————————————————————————————————- */

.issue-card-btn {
  position: relative;
  overflow: hidden;
}

.btn-text,
.btn-success-container {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.btn-success-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transform: translateY(10px);
}

.btn-success-icon {
  transform: scale(0);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  top: 2px;
}

.btn-success-text {
  opacity: 0;
  transform: translateY(5px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  transition-delay: 0.1s;
}

/* Success state */
.issue-card-btn.is-success .btn-text {
  opacity: 0;
  transform: translateY(-10px);
}

.issue-card-btn.is-success .btn-success-container {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.1s;
}

.issue-card-btn.is-success .btn-success-icon {
  transform: scale(1);
  transition-delay: 0.2s;
}

.issue-card-btn.is-success .btn-success-text {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.3s;
}

/* ————————————————————————————————- */
/* ———— VIRTUAL CARD MODAL UNIFORM HEIGHT ———— */
/* ————————————————————————————————- */

#virtual-card-modal .form-group .select-wrapper,
#virtual-card-modal .form-group .amount-input-wrapper,
#virtual-card-modal .form-group .assignee-wrapper,
#homepage-virtual-card-modal .form-group .select-wrapper,
#homepage-virtual-card-modal .form-group .amount-input-wrapper,
#homepage-virtual-card-modal .form-group .assignee-wrapper {
  height: 48px;
}

/* ———— CASHBACK COMPARISON ANIMATION ———— */
/* ————————————————————————————————- */

.cashback-comparison-section {
  background: rgb(24, 25, 27);
  border-radius: 16px;
  padding: 0;
  margin: 0;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
}

.comparison-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
}

.payment-panel {
  padding: 32px;
  position: relative;
  transition: opacity 0.3s ease;
  display: flex;
  flex-direction: column;
}

.payment-panel.credit-panel {
  background: rgba(255, 255, 255, 0.02);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.payment-panel.serrafi-panel {
  background: rgba(255, 255, 255, 0.03);
}

.panel-title {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 20px 0;
}

.transaction-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  min-height: 32px;
}

.transaction-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 400;
}

.transaction-value {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  text-align: right;
}

.transaction-value.amount {
  font-size: 16px;
  font-weight: 600;
  color: white;
}

.card-value {
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-logo {
  height: 16px;
  width: auto;
  object-fit: contain;
}

.transaction-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 16px 0;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.status-badge.failed {
  background: rgba(255, 107, 107, 0.1);
  color: #ff6b6b;
}

.status-badge.success {
  background: rgba(64, 224, 148, 0.1);
  color: #40e094;
}

.status-icon {
  font-size: 12px;
}

/* Initial states for animation */
.status-badge {
  opacity: 0;
}

.reason-row {
  opacity: 0;
}

.cashback-row {
  opacity: 0;
  /* Fix vertical alignment with reason row */
  transform: translateY(0px) !important;
  position: relative !important;
  /* Remove any potential border effects */
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  /* Force proper alignment */
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
}

.cashback-value {
  font-size: 16px;
  font-weight: 600;
  color: #40e094;
}

.cashback-plus {
  font-size: 14px;
}

.cashback-amount {
  transition: all 0.3s ease;
}

/* Animation states */
.payment-panel.dimmed {
  opacity: 0.5;
  transition: opacity 0.6s ease;
}

.serrafi-panel.active {
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  transition: background 0.6s ease, box-shadow 0.6s ease;
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .comparison-panels {
    grid-template-columns: 1fr;
  }
  
  .payment-panel.credit-panel {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
}

@media (max-width: 767px) {
  .payment-panel {
    padding: 24px;
  }
  
  .transaction-value.amount {
    font-size: 15px;
  }
  
  .cashback-value {
    font-size: 15px;
  }
}

/* ===== MINI CASHBACK TABLE STYLES ===== */

/* Mini Cashback Table Container */
.mini-cashback-table {
  background: #1b1c1f;
  border-radius: 12px;
  font-family: inherit;
  color: #fff;
  max-width: 100%;
  overflow: hidden;
}

/* Total Row Styling */
.mini-cashback-total-row {
  background-color: rgba(255, 255, 255, 0.02);
  border-top: 2px solid rgba(255, 255, 255, 0.1);
}

.mini-cashback-total-row td {
  padding: 12px 12px;
  font-weight: 600;
  color: #ffffff;
}

.mini-cashback-total-row td:first-child {
  text-align: left;
  color: #9ca3af;
  font-weight: 500;
}

.mini-cashback-total-row td:last-child {
  text-align: right;
  font-weight: 700;
  font-size: 16px;
  color: #22c55e;
}

/* Table Wrapper */
.mini-cashback-table-wrapper {
  overflow: hidden;
  border-radius: 8px;
  background: #232427;
  height: 208px; /* Desktop height: header(36) + tbody(108) + gap(20) + overlay(44) */
  position: relative;
}

/* Fixed total overlay outside table flow */
.mini-cashback-total-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;
  background-color: #232427;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  height: 44px;
  box-sizing: border-box;
}

.mini-cashback-total-overlay .label {
  color: #9ca3af;
  font-weight: 500;
  font-size: 14px;
}

.mini-cashback-total-overlay .value {
  font-weight: 700;
  font-size: 14px;
  color: #22c55e;
}

/* Table Styles */
.mini-cashback-table-content {
  width: 100%;
  font-size: 13px;
  border-collapse: collapse;
  margin: 0;
  position: relative;
}

.mini-cashback-table-content thead tr {
  color: #9ca3af;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: #232427;
}

.mini-cashback-table-content th {
  text-align: left;
  padding: 8px 12px;
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  height: 36px; /* Slightly shorter header */
}

/* Right-align the Cashback header */
.mini-cashback-table-content th:last-child {
  text-align: right;
}

.mini-cashback-table-content td {
  padding: 8px 12px;
  white-space: nowrap;
}

/* Align merchant names to the left and cashback numbers to the right */
.mini-cashback-table-content td:first-child {
  text-align: left;
}

.mini-cashback-table-content td:last-child {
  text-align: right;
}

.mini-cashback-table-content tbody tr:last-child td {
  border-bottom: none;
  padding-bottom: 12px; /* Add extra bottom padding to last row for better spacing */
}

.mini-cashback-table-content tbody tr {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  height: 36px; /* Slightly shorter rows */
  will-change: transform; /* Optimize for transform animations */
}

.mini-cashback-table-content tbody tr.new-row {
  opacity: 0;
  transform: translateY(40px);
  animation: slideInFromBottom 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.mini-cashback-table-content tbody tr.slide-up {
  animation: slideUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.mini-cashback-table-content tbody tr.slide-out {
  animation: slideOutTop 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Placeholder row styling */
.mini-cashback-table-content tbody tr.placeholder-row {
  opacity: 0.3;
  color: #6b7280;
}

.mini-cashback-table-content tbody tr.placeholder-row td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.mini-cashback-table-content tbody tr.highlight {
  background: rgba(34, 197, 94, 0.15);
  animation: highlightPulse 1.6s ease-out forwards;
}

/* Smooth table scroll animations */
@keyframes scrollTableFeed {
  0% { transform: translateY(0); }
  100% { transform: translateY(-40px); }
}

/* Mobile-specific scroll animation for 2 rows */
@media (max-width: 768px) {
  @keyframes scrollTableFeed {
    0% { transform: translateY(0); }
    100% { transform: translateY(-28px); }
  }
}

/* Highlight Animation */
@keyframes highlightPulse {
  0% {
    background: rgba(34, 197, 94, 0.3);
  }
  70% {
    background: rgba(34, 197, 94, 0.15);
  }
  100% {
    background: transparent;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  /* Force mobile styles with high specificity */
  html body .mini-cashback-table {
    padding: 12px;
  }
  
  html body .mini-cashback-table-wrapper {
    height: 200px !important; /* Increased height to ensure all content is visible */
    min-height: 200px !important;
  }
  
  .mini-cashback-table-content {
    font-size: 12px;
  }
  
  .mini-cashback-table-content th,
  .mini-cashback-table-content td {
    padding: 8px 10px;
  }
  
  /* Override padding for tbody cells to improve spacing */
  .mini-cashback-table-content tbody td {
    padding: 6px 10px !important; /* Compact padding to fit 3 rows */
  }
  
  /* Adjust tbody height for 3 rows on mobile with proper spacing */
  html body .mini-cashback-table-content tbody {
    height: 96px !important; /* 3 rows × 32px = 96px (allowing for padding and line-height) */
    max-height: 96px !important;
    margin-bottom: 16px !important; /* Spacing to prevent overlap with footer */
  }
  
  /* Ensure consistent row heights on mobile - override desktop rules */
  html body .mini-cashback-table-content tbody tr,
  html body .mini-cashback-table-content tbody tr.transaction-row {
    height: 32px !important; /* Proper row height to fit 3 rows with padding */
  }
  
  /* Override desktop header height for mobile */
  html body .mini-cashback-table-content thead tr,
  html body .mini-cashback-table-content thead th {
    height: 32px !important; /* Match mobile row height */
  }
  
  /* Ensure proper vertical alignment in cells */
  .mini-cashback-table-content tbody td {
    vertical-align: middle;
    line-height: 1.2;
    overflow: visible;
  }
  
  /* Ensure tbody can display all rows properly */
  .mini-cashback-table-content tbody {
    overflow: visible !important;
    min-height: 96px;
    height: 96px !important;
    max-height: 96px !important;
  }
  
  /* Force mobile table layout */
  .mini-cashback-table-content {
    table-layout: fixed;
  }
  
  /* Ensure all mobile overrides are applied */
  .mini-cashback-table-content tbody tr {
    height: 32px !important;
    min-height: 32px !important;
    max-height: 32px !important;
    display: table-row !important;
  }
  
  /* Force mobile table to show exactly 3 rows */
  html body .mini-cashback-table-content tbody {
    display: table-row-group !important;
    overflow: visible !important;
    clip: auto !important;
    clip-path: none !important;
  }
  
  /* Ensure no rows are hidden or clipped */
  .mini-cashback-table-content tbody tr.transaction-row {
    display: table-row !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: 32px !important;
    min-height: 32px !important;
    max-height: 32px !important;
  }
  

  
  /* Adjust spacing for better visual balance */
  .mini-cashback-table-content tbody tr:first-child td {
    padding-top: 4px !important; /* Minimal space at top */
  }
  
  .mini-cashback-table-content tbody tr:last-child td {
    padding-bottom: 0px !important; /* No extra space at bottom */
  }
  
  /* Disable all animations and transforms on mobile for static table */
  .mini-cashback-table-content tbody,
  .mini-cashback-table-content tbody tr,
  .mini-cashback-table-content tbody.scrolling {
    animation: none !important;
    transform: none !important;
    transition: none !important;
  }
  
  /* Ensure mobile table rows are completely static */
  .mini-cashback-table-content tbody tr.transaction-row {
    animation: none !important;
    transform: none !important;
    transition: none !important;
  }
  
  /* Override any scrolling class that might be added by JavaScript */
  .mini-cashback-table-content tbody.scrolling {
    animation: none !important;
    transform: none !important;
    transition: none !important;
  }
  
  /* Ensure the table body itself never animates on mobile */
  .mini-cashback-table-content tbody {
    animation: none !important;
    transform: none !important;
    transition: none !important;
  }
  
  /* Additional mobile stability rules */
  .mini-cashback-table-content tbody tr {
    position: static !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
  
  /* Prevent any JavaScript-added classes from affecting mobile display */
  .mini-cashback-table-content tbody tr.new-row,
  .mini-cashback-table-content tbody tr.slide-up,
  .mini-cashback-table-content tbody tr.slide-out,
  .mini-cashback-table-content tbody tr.highlight {
    animation: none !important;
    transform: none !important;
    transition: none !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  .mini-cashback-table-content tbody tr {
    transition: none;
    opacity: 1;
    transform: none;
  }
  
  .mini-cashback-table-content tbody tr.highlight {
    animation: none;
  }
}

/* Keep header fixed: never animate */
.mini-cashback-table-content thead tr {
  transition: none !important;
  animation: none !important;
  transform: none !important;
}

/* Keep total overlay fixed: never animate */
.mini-cashback-total-overlay {
  transition: none !important;
  animation: none !important;
  transform: none !important;
}

/* Layering to prevent overlap during animations */
.mini-cashback-table-content thead,
.mini-cashback-table-content tfoot {
  position: relative;
  z-index: 2;
}

.mini-cashback-table-content tbody {
  position: relative;
  z-index: 1;
  overflow: hidden;
  height: 108px; /* Exactly 3 rows * 36px on desktop */
  max-height: 108px;
  margin-bottom: 8px; /* Add space between tbody and total overlay */
}

/* Fixed total row height for consistent layout */
.mini-cashback-total-row td {
  height: 36px;
}

/* Clean table rows without individual animations */
.mini-cashback-table-content tbody tr.transaction-row {
  height: 36px;
}

/* Smooth table body animation when scrolling */
.mini-cashback-table-content tbody.scrolling {
  animation: scrollTableFeed 400ms cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Animations enabled for transaction rows */

/* Keep header fully fixed */
.mini-cashback-table-content thead tr {
  transform: none !important;
}

/* Keep fixed row heights for layout */
.mini-cashback-table-content th,
.mini-cashback-table-content tbody tr {
  height: 36px;
}

/* Maintain fixed wrapper height for animations */
.mini-cashback-table-wrapper {
  height: 208px !important; /* Desktop height: header(36) + tbody(108) + gap(20) + overlay(44) */
}

@media (max-width: 768px) {
  .mini-cashback-table-wrapper {
    height: 200px !important; /* Increased height to ensure all content is visible */
    min-height: 200px !important;
  }
  
  /* Disable scrolling animation on mobile - show static table */
  .mini-cashback-table-content tbody.scrolling {
    animation: none !important;
    transform: none !important;
  }
  
  /* Ensure mobile table body doesn't have any transform animations */
  .mini-cashback-table-content tbody {
    transform: none !important;
  }
}

/* Fixed column layout for mini cashback table */
.mini-cashback-table-content {
  table-layout: fixed;
}

.mini-cashback-table-content colgroup col.merchant-col { width: 60%; }
.mini-cashback-table-content colgroup col.amount-col { width: 40%; }

/* Strong right-align on amount column - ALL last-child cells */
.mini-cashback-table-content th:last-child,
.mini-cashback-table-content td:last-child {
  text-align: right !important;
}

/* Additional right alignment for amount cells with class */
.mini-cashback-table-content td.amount-cell {
  text-align: right !important;
}
.mini-cashback-table-content td.amount-cell .amount {
  display: inline-flex;
  justify-content: flex-end;
  width: 100%;
}

/* Fallback: right-align last column */
.mini-cashback-table-content th:last-child,
.mini-cashback-table-content td:last-child {
  text-align: right !important;
}

/* Robust right-edge alignment for amount cells */
.mini-cashback-table-content td.amount-cell {
  text-align: right !important;
}
.mini-cashback-table-content td.amount-cell .amount {
  display: block;
  width: auto;
  margin-left: auto; /* pushes block to the right regardless of parent alignment */
  text-align: right;
}

/* Ensure table rows in mini cashback table are real table rows (not flex) */
.mini-cashback-table-content tr.transaction-row {
  display: table-row !important;
  width: 100% !important;
}
.mini-cashback-table-content tr.transaction-row > td {
  display: table-cell !important;
  width: auto !important;
}

/* Make tbody rows fill the table width */
.mini-cashback-table-content tbody tr {
  width: 100%;
}
.mini-cashback-table-content td {
  width: auto;
}
.mini-cashback-table-content colgroup col.merchant-col { width: 60% !important; }
.mini-cashback-table-content colgroup col.amount-col { width: 40% !important; }

/* ===== WORKS ANYWHERE TILE - INDUSTRY ICONS GRID ===== */
.industry-icons-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(4, 1fr);
  gap: 12px;
  width: 100%;
  height: 100%;
  padding: 20px;
  padding-top: 0px;
  margin-top: -20px;
  box-sizing: border-box;
  max-height: none;
  overflow: visible;
}

.industry-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.industry-icon.visible {
  opacity: 1;
  transform: scale(1);
}

.industry-icon.glow {
  animation: iconGlow 1.8s ease-out;
}

@keyframes iconGlow {
  0% {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: none;
  }
  16.7% {
    background: rgba(255, 213, 79, 0.15);
    border-color: rgba(255, 213, 79, 0.4);
    box-shadow: 0 0 20px rgba(255, 213, 79, 0.3);
  }
  50% {
    background: rgba(255, 213, 79, 0.25);
    border-color: rgba(255, 213, 79, 0.6);
    box-shadow: 0 0 30px rgba(255, 213, 79, 0.5);
  }
  100% {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: none;
  }
}

@keyframes iconOpacityGlow {
  0% { opacity: 0.7; }
  50% { opacity: 1; }
  100% { opacity: 0.7; }
}

.industry-icon img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: brightness(1) invert(1);
  opacity: 0.7;
  transition: filter 0.3s ease, opacity 0.3s ease;
}

.industry-icon.glow img {
  filter: brightness(1) invert(1);
  animation: iconOpacityGlow 1.8s ease-out;
}

/* ===== MOBILE STYLES FOR INDUSTRY ICONS GRID ===== */
@media (max-width: 768px) {
  .virtual-card {
    width: 100%;
    height: auto;
    min-height: 200px;
    max-height: none;
    margin: 16px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
  }
  
  .industry-icons-grid {
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(5, 1fr);
    gap: 8px 8px;
    row-gap: 16px;
    padding: 16px;
    padding-top: 0px;
    margin-top: -16px;
    justify-items: center;
    align-items: center;
    width: 100%;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
    place-items: center;
    max-height: none;
    overflow: visible;
  }
  
  .industry-icon {
    width: 40px;
    height: 40px;
  }
  
  .industry-icon img {
    width: 20px;
    height: 20px;
  }
}

/* ===== UNLOCK HIGHER REWARDS TILE - PROGRESS BAR ===== */
.simple-progress-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  height: 100%;
  padding: 0 20px 20px 20px;
  box-sizing: border-box;
}

.tier-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin: 0 auto 8px auto;
  padding: 12px 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(249, 204, 46, 0.1);
  box-shadow: 0 0 12px rgba(249, 204, 46, 0.2);
  width: 160px;
  min-width: 160px;
}

.tier-boost {
  font-size: 24px;
  font-weight: 700;
  color: #22C55E;
  line-height: 1;
}

.tier-label {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  text-align: center;
}

.progress-bar-wrapper {
  position: relative;
  width: 100%;
}

.progress-bar-track {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #22C55E 0%, #059669 100%);
  border-radius: 4px;
  width: 0%;
  /* transition removed - JavaScript handles the animation timing */
}

.milestones {
  position: relative;
  margin-top: 12px;
  height: 20px;
}

.milestone {
  position: absolute;
  transform: translateX(-50%);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
  white-space: nowrap;
}

.current-amount {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
}

.current-amount span:last-child {
  color: #22C55E;
  font-weight: 600;
}

/* ===== CASHBACK MOBILE CARD VIEW STYLES ===== */

/* Hide/Show based on screen size */
.desktop-only {
  display: block;
}

.mobile-only {
  display: none;
}

@media (max-width: 991px) {
  .desktop-only {
    display: none;
  }
  
  .mobile-only {
    display: block;
  }
}

/* Mobile Card Container */
.cb-cards-wrapper {
  width: 100%;
  max-width: 100%;
  padding: 0;
}

.cb-cards-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0;
}

/* Transaction Card */
.cb-transaction-card {
  background: #232427;
  border: 1px solid #393a3d;
  border-radius: 12px;
  padding: 16px;
  position: relative;
  transition: all 0.3s ease;
  cursor: pointer;
  user-select: none;
}

.cb-transaction-card:hover {
  background: #27282c;
  border-color: #4a4b4f;
}

.cb-transaction-card:active {
  transform: scale(0.98);
}

.cb-transaction-card[data-expanded="true"] {
  background: #2a2b2f;
  border-color: #4a4b4f;
}

/* Card Main Content */
.cb-card-main {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Row 1: Merchant + Amount */
.cb-card-row-1 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-right: 32px; /* Make room for the chevron */
}

.cb-card-merchant {
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-right: 12px;
}

.cb-card-amount {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Row 2: Date + Cashback Chips */
.cb-card-row-2 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-right: 0; /* No padding needed - chips should align with amount above */
}

.cb-card-date {
  font-size: 13px;
  color: #9ca3af;
  font-weight: 400;
}

.cb-card-chips {
  display: flex;
  gap: 6px;
  align-items: center;
}

.cb-card-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.cb-chip-percent {
  background: rgba(147, 197, 253, 0.15);
  color: #93c5fd;
  border: 1px solid rgba(147, 197, 253, 0.25);
}

.cb-chip-dollar {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.25);
}

/* Expand Button - Remove absolute positioning since we'll change approach */
.cb-card-expand-btn {
  display: none; /* Hide the button, we'll use the whole card as clickable */
}

/* Visual indicator for expandable cards - iOS style chevron */
.cb-transaction-card::after {
  content: '';
  position: absolute;
  right: 16px; /* Align with the right edge of the chips/amount */
  top: 20px; /* Vertically centered with merchant/amount row */
  transform: rotate(-45deg); /* Points right when collapsed */
  width: 8px;
  height: 8px;
  border-right: 2px solid #6b7280;
  border-bottom: 2px solid #6b7280;
  transition: all 0.3s ease;
  pointer-events: none;
}

.cb-transaction-card[data-expanded="true"]::after {
  transform: rotate(45deg); /* Points down when expanded */
  top: 20px; /* Keep same position when expanded */
}

.cb-transaction-card:hover::after {
  border-color: #9ca3af;
}

/* Card Details (Expandable) */
.cb-card-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, margin-top 0.3s ease;
  margin-top: 0;
}

.cb-transaction-card[data-expanded="true"] .cb-card-details {
  max-height: 200px;
  margin-top: 12px;
}

.cb-card-detail-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.cb-card-detail-row:first-child {
  padding-top: 12px;
}

.cb-detail-label {
  font-size: 12px;
  color: #6b7280;
  font-weight: 400;
}

.cb-detail-value {
  font-size: 12px;
  color: #d1d5db;
  font-weight: 500;
  text-align: right;
}

/* Tablet Adjustments */
@media (min-width: 481px) and (max-width: 768px) {
  .cb-transaction-card {
    padding: 18px;
  }
  
  .cb-card-merchant {
    font-size: 17px;
  }
  
  .cb-card-amount {
    font-size: 17px;
  }
  
  .cb-card-date {
    font-size: 14px;
  }
  
  .cb-card-chip {
    padding: 4px 10px;
    font-size: 13px;
  }
}

/* Small Mobile Adjustments */
@media (max-width: 480px) {
  .cb-transaction-card {
    padding: 14px;
  }
  
  .cb-transaction-card::after {
    right: 14px; /* Align with the right edge of the chips/amount */
    top: 18px; /* Vertically centered with merchant/amount row on small screens */
    width: 7px;
    height: 7px;
  }
  
  .cb-transaction-card[data-expanded="true"]::after {
    top: 18px; /* Keep same position when expanded */
  }
  
  .cb-card-row-1 {
    flex-wrap: wrap;
    gap: 4px;
    padding-right: 28px; /* Adjust for smaller chevron spacing */
  }
  
  .cb-card-row-2 {
    padding-right: 0; /* No padding needed - chips should align with amount above */
  }
  
  .cb-card-merchant {
    font-size: 15px;
    flex: 1 1 auto;
    min-width: 0;
  }
  
  .cb-card-amount {
    font-size: 15px;
  }
  
  .cb-card-chips {
    gap: 4px;
  }
  
  .cb-card-chip {
    padding: 2px 6px;
    font-size: 11px;
  }
}