/* 1. Design Tokens & Variables (Paystro Branding) */
:root {
    --paystro-green: #2AB67A;
    --paystro-navy: #0F172A; /* Rich Dark Navy */
    --paystro-navy-lighter: #0f2b6d;
    --paystro-darker: #020617;
    --navy-light: #1E293B;
    --white: #ffffff;
    --gray-bg: #F8FAFC;
    --text-light: #64748b;
    --container-width: 1200px;

    /* Font Swap */
    --font-main: 'Plus Jakarta Sans', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Prevent horizontal overflow globally */
html, body {
    max-width: 100%;
    overflow-x: clip; /* 'clip' fixes the scroll issue without killing sticky. CRITICAL: Sticky won't work if this is 'hidden' */
    position: relative;
}

/* Fix for the Demo Badge Section */
section {
    max-width: 100%;
    box-sizing: border-box;
}

/* Global Image Safety Rule */
img {
    max-width: 100%;
    height: auto;
}

model-viewer {
    background-color: transparent;
    --poster-color: transparent;
}

/* Padding to IDs so the header doesn't cover them */
section[id] {
    scroll-margin-top: 100px;
}

body {
    font-family: var(--font-main);
    background: var(--white);
    color: var(--paystro-navy);
    line-height: 1.6;
    letter-spacing: -0.015em; /* Slightly tighter for a professional look */
    -webkit-font-smoothing: antialiased; /* Makes fonts look sharper/cleaner */
}

h1, h2, h3, h4, .brand-logo {
    font-family: var(--font-main);
    font-weight: 800; /* Extra bold for main titles */
    letter-spacing: -0.03em; /* Tighter spacing for a high-end SaaS look */
    line-height: 1.2;
}

h1 {font-size: 3.5rem; margin-top: 25px; line-height: 1.1; letter-spacing: -0.03em;}

p { font-weight: 200;}


.container {
    width: 100%; /* Use 100% for mobile */
    max-width: 1200px; /* Only expand to 1200px on desktop */
    margin: 0 auto;
    padding: 0 20px; /* Adds a safety gutter so text doesn't touch the phone edge */
}

/* --- LAYOUT UTILITIES --- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.text-center { text-align: center; }
.highlight { color: var(--paystro-green); }
.text-green {
    color: var(--paystro-green);
    font-weight: 700;
    position: relative;
    display: inline-block;
}
.text-navy {
    color: var(--paystro-navy-lighter);
    font-weight: 700;
    position: relative;
    display: inline-block;
}
/* In your main.css */
.bold-navy {
    font-weight: 700;
    color: var(--paystro-navy);
}

/* Optional: Add a subtle underline for extra emphasis */
.text-green::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgba(42, 182, 122, 0.2);
    z-index: -1;
}

/* --- HEADER & NAV --- */

header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: var(--paystro-navy);
    backdrop-filter: blur(10px); /* Adds a premium "glass" effect if you use semi-transparent Navy */
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Ensure the header has the sticky properties defined */
.main-header {
    position: -webkit-sticky; /* Support for Safari */
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--paystro-navy); /* Must have a background color or it will be transparent */
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    height: 100px;
    padding-top: 20px;
    padding-bottom: 20px;
}

.navbar {


    display: flex;
    align-items: center;
    justify-content: flex-start; /* Aligns all items to the left */
    gap: 30px; /* Adds space between the logo, links, and buttons */
}

.brand-logo {
    color: white;
    font-weight: 800;
    font-size: 1.5rem;
    text-decoration: none;
    letter-spacing: -1px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.8rem;
}

.nav-links a {
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
}

.nav-links a:hover { color: var(--paystro-green); }

/* --- ACTIVE STATE STYLING --- */
.nav-links li a {
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 5px 0;
    position: relative;
}

/* Green text for Hover and Active */
.nav-links li a:hover,
.nav-links li a.active {
    color: var(--paystro-green);
}

/* Underline effect for Active link */
.nav-links li a.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--paystro-green);
    border-radius: 2px;
}

/* --- RESPONSIVE FIX --- */
@media (max-width: 992px) {
    /* Ensure the header has the sticky properties defined */
    .main-header {
    height: 90px;
    }
}

/* Dropdown Menu Styling */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    background: var(--navy-light);
    min-width: 240px; /* Slightly wider for better breathing room */
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    border-radius: 12px;

/* 1. Remove horizontal padding from the container */
padding: 10px 0;

top: 100%;
left: 0;
overflow: hidden; /* Ensures the hover background doesn't 'leak' past the rounded corners */
z-index: 1000;
}

.dropdown-content a {
color: white;
display: block;
text-decoration: none;
font-size: 0.95rem;
transition: all 0.2s ease;

/* 2. Put the padding on the link itself */
padding: 12px 20px;
margin: 20px;

width: 100%; /* Force it to take the full width of the dropdown */
}

.dropdown-content a:hover {
/* 3. The background will now fill the entire row */
background: white;
color: var(--paystro-green) !important;
width: 100%; /* Force it to take the full width of the dropdown */
padding: 20px;
margin: 0;
}

/* 4. Active item inside the dropdown */
.dropdown-content a.active {
    background: rgba(42, 182, 122, 0.15);
    color: var(--paystro-green) !important;
    font-weight: 600;
}

.dropdown:hover .dropdown-content {
    display: block;
    /* 5. Optional: adds a tiny animation so it "pops" in */
    animation: fadeInDown 0.2s ease-out;
}

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

/* --- HEADER NAVIGATION POLISH --- */

.nav-cta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: 0 !important; /* Overrides any previous 'auto' margin */
}

/* 1. Login Link - Subtle & Professional */
.nav-login-link {
    color: #ffffff !important; /* White text to contrast with Navy bg */
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 8px 12px;
    transition: all 0.3s ease;
    opacity: 0.9; /* Slightly softer than pure white */
}

.nav-login-link:hover {
    color: var(--paystro-green) !important; /* Turns Green on hover */
    opacity: 1;
}

/* 2. Sign Up Button - Paystro Green Brand Color */
.nav-signup-btn {
    background-color: var(--paystro-green);
    color: white !important; /* Ensure text stays white */
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 14px rgba(42, 182, 122, 0.25); /* Brand glow */
    border: none;
    display: inline-block;
    max-width: 200px;
}

.nav-signup-btn:hover {
    transform: translateY(-2px);
    background-color: #24a36d; /* Slightly darker green for depth */
    box-shadow: 0 6px 20px rgba(42, 182, 122, 0.35);
}

/* Target the arrow span specifically */
.dropdown-arrow {
    display: inline-block; /* Required for transform to work */
    transform: scale(0.7); /* Adjust this value (0.7 = 70% size) as needed */
    margin-left: 4px;      /* Adds a tiny bit of breathing room from the text */
    vertical-align: middle; /* Ensures it stays vertically centered with the text */
}

/* --- MOBILE HAMBURGER MENU STYLING --- */

/* 1. Hide the checkbox and btn by default on desktop */
#nav-check, .nav-btn {
    display: none;
}

@media (max-width: 992px) {
    /* 1. Target .navbar instead of .nav-container */
    .navbar {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important; /* Pushes logo left, button right */
        align-items: center !important;
        width: 100%;
        padding: 0 20px; /* Gutter for the screen edges */
    }

    /* 2. Reset the logo to ensure it stays on the left */
    .brand-logo {
        margin: 0 !important;
        flex-shrink: 0; /* Prevents logo from squishing */
    }

    /* 3. Force the hamburger button to stay on the right */
    .nav-btn {
        display: flex !important;
        position: static !important; /* Removes any absolute positioning */
        margin-left: auto !important; /* Extra insurance to push it right */
        z-index: 1001;
        cursor: pointer;
    }

    /* 4. Ensure the hidden elements don't take up space in the row */
    #nav-check {
        display: none !important;
    }

    /* 1. Hide nav-links by default and position them for the mobile menu */
    .nav-links {
        flex-direction: column;
        position: fixed;
        top: 100px; /* Adjust based on your header height */
        left: 0;
        width: 100%;
        height: calc(100vh - 100px);
        background: var(--paystro-navy);
        padding: 40px 30px 40px 50px;
        z-index: 999;
        display: none;
        justify-content: flex-start;
        list-style: none;
        gap: 15px;
        align-items: flex-start !important; /* Forces all children to the left */
        text-align: left !important;
    }

    /* 2. Show the links when the hamburger checkbox is checked */
    #nav-check:checked ~ .nav-links {
    display: flex !important; /* Forces the menu to appear only when checked */
    }

    /* 4. Ensure the actual hamburger icon (label) is visible */
    .nav-btn > label {
        display: inline-block;
        width: 30px;
        height: 30px;
        cursor: pointer;
    }

    /* Hide the desktop-only buttons */
    .desktop-cta { display: none !important; }

    /* Hide the desktop version of the CTA buttons */
    .navbar > .nav-cta {
        display: none !important;
    }

/* Target the specific list item holding the CTA buttons */
.mobile-cta-item {
    width: 100%;
    display: flex;
    justify-content: flex-start !important; /* Pushes content to the left */
    margin-left: 0 !important;
    padding-left: 0 !important;

}

/* Ensure the nav-cta div itself doesn't have centering or 'auto' margins */
.mobile-cta-item .nav-cta {
    display: flex;
    justify-content: flex-start !important;
    gap: 15px; /* Keeps space between Login and Sign-up buttons */
    margin: 0 !important;
    width: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-direction: column;
}

/* 4. Reset the individual buttons to ensure no external margins push them */
.nav-login-link, .nav-signup-btn {
    margin: 0 !important;
}
    .nav-btn label {
        width: 30px;
        height: 24px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        cursor: pointer;
    }

    .nav-btn label span {
        display: block;
        width: 100%;
        height: 2px;
        background-color: #ffffff; /* Explicitly white for Navy background */
        transition: all 0.3s ease-in-out;
    }

    /* 2. Hamburger to 'X' Animation */
    #nav-check:checked ~ .nav-btn label span:nth-child(1) {
        transform: translateY(11px) rotate(45deg);
    }
    #nav-check:checked ~ .nav-btn label span:nth-child(2) {
        opacity: 0;
    }
    #nav-check:checked ~ .nav-btn label span:nth-child(3) {
        transform: translateY(-11px) rotate(-45deg);
    }

    #nav-check:checked ~ .nav-links {
        left: 0;
    }

    /* 1. Fix the "Transparent" Dropdown Issue */
   .dropdown-content {
        position: static; /* Unstacks the menu so it pushes other links down */
        display: none;    /* Hidden until JS toggle */
        background-color: #1e293b; /* A lighter Navy so it stands out from the bg */
        width: 30%;
        padding: 10px 0;
        border-radius: 8px;
        box-shadow: none;
        margin: 5px 0 0 0;
        top: 0%;
        left: 0;
    }

    .dropdown-content a {
        padding: 10px 14px !important;
        color: #94a3b8 !important; /* Softer gray for sub-links */
        font-size: 0.8rem !important;
        margin: 0;
    }

.nav-login-link {
    color: #ffffff !important;
    text-align: left;
    font-weight: 600;

}

.nav-signup-btn {
    background-color: var(--paystro-green) !important;
    color: white !important;
    text-align: left;
    padding: 15px;
    border-radius: 5px;
    font-weight: 700;

   }
}

/* 3. Hide the mobile-only list item on Desktop */
@media (min-width: 993px) {
    .mobile-cta-item {
       display: none;
    }
}

/* Buttons */
.btn-primary {
    background: var(--paystro-green);
    color: white;
    padding: 0.8rem 1.8rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.btn-link {
    color: white;
    text-decoration: none;
    margin-right: 1.5rem;
    font-weight: 500;
}

.btn-lg { padding: 1rem 2.5rem; font-size: 1.1rem; border-radius: 10px; }


.gradient-text {
    /* The Gradient: From Paystro Green to a slightly brighter mint */
    background: linear-gradient(135deg, #2AB67A 0%, #4ade80 100%);

    /* This "clips" the background to the text itself */
    -webkit-background-clip: text;
    background-clip: text;

    /* This makes the actual text color transparent so the background shows through */
    -webkit-text-fill-color: transparent;
    color: transparent;

    /* Performance boost for the clipping effect */
    display: inline-block;
    background-size: 200% auto;
    animation: textShine 4s linear infinite;
}

@keyframes textShine {
    to { background-position: 200% center; }
}

/* --- UPDATED CENTERED HERO --- */
.hero-ryd {
    padding: 40px 0 0 0; /* Reduced bottom padding as image will provide space */
    color: var(--white);
    text-align: center; /* Centers all text elements */
    overflow: hidden; /* This prevents any internal glow or patterns from leaking out */
    width: 100%;
    margin-top: -150px;
    position: relative; /* Required for the pattern to anchor */
    background-color: var(--paystro-navy);

}

.hero-ryd::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    /* Use the image as a background */
    background-image: url('../img/paystro-green-wavy.jpg');
    background-size: cover;
    background-position: center;

    /* SUCCESS: This now points to the correct animation below */
    animation: kenBurnsWaves 10s ease-in-out infinite alternate;

    /* Performance & Blending */
    opacity: 0.2;
    mix-blend-mode: screen;

    /* Fades the edges so there are no hard corners */
    mask-image: radial-gradient(circle, rgba(0,0,0,1) 30%, rgba(0,0,0,0) 90%);
    -webkit-mask-image: radial-gradient(circle, rgba(0,0,0,1) 30%, rgba(0,0,0,0) 90%);

    pointer-events: none;
    z-index: 0;
}

/* THE KEN BURNS EFFECT - Keep this exactly as is */
@keyframes kenBurnsWaves {
    0% {
        transform: scale(1.0) translate(0, 0);
    }
    100% {
        transform: scale(1.15) translate(2%, -2%);
    }
}

/* Ensure your hero content stays ABOVE the pattern */
.hero-ryd .container {
    position: relative;
    z-index: 1;
}

/* --- HERO LAYOUT FIX --- */
.hero-ryd .container.grid-2-centered {
    display: grid;
    grid-template-columns: 1.2fr 1fr; /* Side by side */
    align-items: center;
    gap: 60px;
    padding: 30px 0;
}

.hero-content {
    max-width: 850px; /* Limits width to keep text readable when centered */
    margin: 0 auto;
}

/* Vertical Separator for Hero Section (Desktop Only) */
@media (min-width: 993px) {
    .hero-content {
        position: relative; /* Anchor for the pseudo-element */
    }

    .hero-content::after {
        content: "";
        position: absolute;
        right: -20px; /* Positions line exactly in the center of the 60px gap */
        top: 60%;
        transform: translateY(-50%);
        width: 3px;
        height: 500px; /* Adjust this value for the desired line length */
        background-color: var(--paystro-green); /* Uses your brand green */
        opacity: 0.4; /* Subtle aesthetic look so it's not too harsh */
    }
}

/* Ensure the line is hidden on mobile/tablets where the layout stacks vertically */
@media (max-width: 992px) {
    .hero-content::after {
        display: none;
    }
}

.hero-content h1 {
    margin-bottom: 1.5rem;
    font-weight: 700;
    font-size: 3.2rem;
    margin-top: 25px;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.hero-content p {
    color: #94a3b8;
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin: 25px auto;
    font-size: 1.1rem; /* Larger than standard text */
    font-weight: 600;   /* Semi-bold */
    line-height: 1.4;
    letter-spacing: -0.01em;
}

.hero-btns {
    display: flex;
    justify-content: center; /* Centers buttons */
    align-items: center;
    gap: 15px; /* Use gap instead of margin-left for better control */
    margin-top: 35px;
}

#hero-subtitle {
    transition: opacity 0.5s ease-in-out;
}

#static-headline {
    transition: all 0.3s ease;
}

.hero-visual {
    width: 100%;
    display: flex;
    justify-content: center;
    flex-direction: column; /* Force vertical stacking */
    align-items: center;    /* Center both badge and model */
    min-height: 700px;      /* Increased to accommodate badge + model */
    padding-top: 70px;
    max-width: 1000px;
    position: relative;
}

@keyframes badgePulse {
    0% { box-shadow: 0 0 0 0 rgba(42, 182, 122, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(42, 182, 122, 0); }
    100% { box-shadow: 0 0 0 0 rgba(42, 182, 122, 0); }
}

/* Badge container styles */
.hero-app-badges {
    margin-top: 10px; /* Space below the laptop */
    text-align: center;
    width: 100%;
    z-index: 10;
}

.hero-app-badges h3 {
    font-size: 1.2rem;
    color: var(--white);
    margin-bottom: 5px;
    font-weight: 700;
}

.hero-app-badges p {
    font-size: 0.95rem;
    color: #e2e8f0;
    margin-bottom: 20px;
}

/* Horizontal row for the two images */
.hero-badge-row {
    display: flex;
    justify-content: center;
    gap: 15px;
    width: 100%;
}

.hero-badge-row img {
    height: 30px;
    width: auto;
    transition: transform 0.2s ease;
}

.hero-badge-row img:hover {
    transform: translateY(-3px);
}

/* Responsive Alignment */
@media (max-width: 992px) {
    .hero-visual {
        display: flex;
        flex-direction: column;
        align-items: center; /* Centers the badge and model on mobile */
        text-align: center;
        margin-top: -150px !important; /* Pulls the laptop UP toward the buttons */
    }

}

/* --- HERO SPECIFIC LAPTOP STYLING --- */
.laptop-wrapper-hero {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 2000px;
}

.hero-laptop-device {
    width: 100%;
    max-width: 1000px;
    position: relative;
    z-index: 2;
    animation: heroLaptopFloat 6s ease-in-out infinite;

    /* THE GREEN GLOW */
    /* This creates a soft, multi-layered green aura around the silver frame */
    filter: drop-shadow(0 0 15px rgba(42, 182, 122, 0.4))
            drop-shadow(0 0 30px rgba(42, 182, 122, 0.2));
}

@keyframes heroLaptopFloat {
    0%, 100% {
        transform: translateY(0) rotateX(1deg);
        filter: drop-shadow(0 0 15px rgba(42, 182, 122, 0.3));
    }
    50% {
        transform: translateY(-15px) rotateX(-1deg);
        /* The glow gets slightly stronger at the peak of the float */
        filter: drop-shadow(0 0 25px rgba(42, 182, 122, 0.5));
    }
}

/* Metallic Silver Frame */
.hero-laptop-screen-frame {
    background: linear-gradient(135deg, #e2e8f0 0%, #ffffff 45%, #cbd5e1 100%);
    padding: 8px;
    border-radius: 12px 12px 0 0;
    box-shadow: inset 0 1px 1px rgba(255,255,255,1);
}

/* Black Bezel around the screen */
.hero-laptop-bezel {
    background: #0f172a; /* Deep navy/black bezel */
    padding: 12px 12px 22px 12px;
    border-radius: 6px 6px 0 0;
    position: relative;
}

.hero-laptop-webcam {
    width: 5px;
    height: 5px;
    background: #334155;
    border-radius: 50%;
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
}

.hero-laptop-display {
    position: relative;
    background: #000;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border: 1px solid #1e293b;
}

.hero-laptop-display img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Metallic Base Section */
.hero-laptop-base {
    height: 10px;
    background: linear-gradient(to bottom, #cbd5e1 0%, #94a3b8 100%);
    border-radius: 0 0 12px 12px;
    width: 106%;
    margin-left: -3%;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.hero-laptop-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: rgba(0,0,0,0.08);
    border-radius: 0 0 4px 4px;
}

/* Background Aura */
.hero-laptop-glow {
    position: absolute;
    width: 130%;
    height: 130%;
    background: radial-gradient(circle, rgba(42, 182, 122, 0.15) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    filter: blur(50px);
}

/* Animation */
@keyframes heroLaptopFloat {
    0%, 100% { transform: translateY(0) rotateX(1deg); }
    50% { transform: translateY(-15px) rotateX(-1deg); }
}

/* Ensure hotspots work within this new container */
.hero-laptop-display .hotspot-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.hero-laptop-display .view-button {
    position: absolute;
    pointer-events: auto;
    z-index: 20;
}

/* Ensure the laptop base doesn't push the screen width on mobile */
@media (max-width: 768px) {
    .hero-laptop-base {
        width: 100%; /* Reset from 106% to 100% on phones */
        margin-left: 0;
    }

    .hero-laptop-device {
        max-width: 90%; /* Give it a little breathing room */
        margin: 0 auto;
    }

    .hero-laptop-glow {
        width: 100%; /* Constrain the aura so it doesn't bleed out */
    }
}

@media (max-width: 768px) {
    /* 2. Shrink the visual container height */
    .hero-visual {
        margin-top: -150px !important; /* Pulls the laptop UP toward the buttons */
        width: 100%;
        display: flex;
        justify-content: center;
    }

    /* 3. Adjust the laptop wrapper height */
    .laptop-wrapper-hero {
        perspective: none; /* Depth isn't as visible on small screens */
        padding: 0;
        width: 95%; /* Keeps it from touching the screen edges */
    }

    /* 4. Fix the Display Aspect Ratio for mobile */
    .hero-laptop-display {
        aspect-ratio: 16 / 10; /* Ensures it doesn't get too 'tall' */
        max-height: 300px; /* Forces a shorter height on phones */
    }

    /* 5. Scale the Hotspots */
    .view-button {
        transform: scale(0.5); /* Smaller dots for smaller screens */
    }
}


/* --- LAPTOP CONTAINER --- */
.laptop-container {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.laptop-frame {
    position: relative;
    width: 100%;
    max-width: 600px;
    border-radius: 12px;
    background: #000; /* Laptop Bezel */
    padding: 10px;
    box-shadow: 0 50px 100px -20px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
    animation: floatLaptop 6s ease-in-out infinite; /* High-end floating effect */
    z-index: 2;
}

.dashboard-img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    display: block;
}

/* --- THE GLOW --- */
.laptop-glow {
    position: absolute;
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(42, 182, 122, 0.15) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    filter: blur(40px);
    z-index: 1;
}

/* The label that appears on hover */
.annotation {
    background-color: var(--paystro-navy);
    color: white;
    font-size: 0.70rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 15px;
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    max-width: 150px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    border: 1px solid var(--paystro-green);
    text-decoration: none;
    text-align: center;
    line-height: 1.4;
    transition: transform 0.2s ease;
}

/* --- RESPONSIVE ANNOTATIONS (INDEX.PHP) --- */

@media (max-width: 768px) {
    .annotation {
        /* Increase font size slightly to counter the parent scale() */
        font-size: 0.8rem;
        padding: 6px 10px;

        /* Adjust positioning to avoid overlapping the hotspot dot */
        top: 15px;

        /* Limit width further for small screens */
        max-width: 120px;
        white-space: normal; /* Allow text to wrap if it's a long label */
        border-radius: 7px;
    }

    /* Force visibility on mobile when the user taps the button */
    /* Mobile hover is tricky; this ensures the label pops up on touch */
    .view-button:active .annotation {
        opacity: 1;
        pointer-events: auto;
        transform: translateX(-50%) translateY(5px);
    }
}

@media (max-width: 480px) {
    .annotation {
        font-size: 0.5rem;
        max-width: 100px;
        padding: 4px 8px;
        /* Counter-act heavy scaling if the hero laptop is very small */
        transform: translateX(-50%) scale(1.1);
    }

    /* Ensure the annotation doesn't slide off the left/right screen edges */
    .view-button .annotation {
        left: 50%;
        right: auto;
    }
}

/* --- HOTSPOT PULSE --- */
.hotspot-overlay {
    position: absolute;
    top: 0px; left: 0; width: 100%; height: 100%; margin-top: 4%;
}


/* Add a pulsing glow to the hotspot dots to make them look "Smart" */
.view-button {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    border: none;
    background-color: #f8923f;
    box-shadow: 0 0 10px var(--paystro-green);
    cursor: pointer;
    z-index: 50;
}

.view-button:hover .annotation {
    opacity: 1;
}

/* Pulsing effect for the green dots */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(42, 182, 122, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(42, 182, 122, 0); }
    100% { box-shadow: 0 0 0 0 rgba(42, 182, 122, 0); }
}

.view-button {
    animation: pulse 2s infinite;
}


/* --- ANIMATIONS --- */
@keyframes floatLaptop {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 992px) {
    .hero-ryd .container.grid-2-centered {
        grid-template-columns: 1fr; /* Stack on mobile */
        text-align: center;
        padding: 60px 20px;
    }

    .hero-btns { justify-content: center; }

}

@media (max-width: 768px) {
    .grid-2-centered {
        display: block; /* Stacks the hero text and laptop vertically */
        width: 100%;
    }
}

@media (max-width: 768px) {
    /* 1. Reduce overall section padding */
    .hero-ryd {
        padding: 60px 0 20px 0 !important; /* Tightens top/bottom space */
        margin-top: -50px !important; /* Smaller offset for mobile headers */
        max-height: auto;
        margin-bottom: -180px !important; /* Smaller offset for mobile headers */
    }

    /* 2. Remove bottom margin from the text container */
    .hero-content {
        margin-bottom: 20px !important; /* Pulls the laptop up closer to the buttons */
        text-align: center;
    }

    /* 3. Adjust the grid gap */
    .hero-ryd .container.grid-2-centered {
        display: flex;
        flex-direction: column;
        gap: 30px !important; /* Specifically controls the distance between text and laptop */
        padding-top: 20px;
    }

    /* 4. Scale the laptop slightly so it doesn't feel too tall */
    .hero-laptop-device {
        transform: scale(0.9);
        margin-top: 0;
    }
}

/* --- HOTSPOT GUIDE AND HOVER ANNOTATION/TOOLTIP --- */

/* Ensure the hotspot itself is a trigger */
.demo-hotspot {
    position: absolute !important;
    width: 14px !important;
    height: 14px !important;
    background-color: #f8923f !important;
    border-radius: 50% !important;
    z-index: 9999 !important;
    cursor: help !important; /* Forces the '?' cursor */
    pointer-events: auto !important; /* CRITICAL: Must be auto to detect hover */
    box-shadow: 0 0 0 0 rgba(248, 146, 63, 0.7);
    animation: pulse-orange 0.5s infinite;
}

/* Tooltip Text */
.demo-hotspot::after {
    content: "Click button";
    position: absolute;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #0F172A;
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Show Tooltip on Hover */
.demo-hotspot:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Position variants for the hotspots */
.hotspot-top-right { top: -20px; right: 42%; }
.hotspot-top-left { top: -5px; left: -5px; }

@keyframes pulse-orange {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(248, 146, 63, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(248, 146, 63, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(248, 146, 63, 0);
    }
}

/* Ensure parent buttons are relative for positioning */
.btn-approve, .btn-approve-sm, btn-add, .btn-reset, .btn-download {
    position: relative !important;
    overflow: visible !important; /* Parent button needs to allow the tooltip to be seen */
}

/* Positioning helper used in your PHP */
.hotspot-top-right {
    top: -7px !important;
    right: -7px !important;
}


@media (max-width: 992px) {
    /* 5. Scale the Hotspots */
    .demo-hotspot {
        transform: scale(0.2); /* Smaller dots for smaller screens */
    }
}

@media (max-width: 768px) {
    /* 5. Scale the Hotspots */
    .demo-hotspot {
        transform: scale(0.2); /* Smaller dots for smaller screens */
    }
}



/* Floating Annotation Alert */
.scroll-annotation {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #0F172A;
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    z-index: 10000;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    pointer-events: none;
    border: 1px solid rgba(255,255,255,0.1);
}

.scroll-annotation.active {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.scroll-annotation i {
    color: #f8923f; /* Using your orange brand color */
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-5px);}
    60% {transform: translateY(-3px);}
}

/* --- RESPONSIVE SCROLL ANNOTATION --- */
@media (max-width: 768px) {
    .scroll-annotation {
        width: 90%; /* Take up most of the screen width on mobile */
        bottom: 20px; /* Bring it slightly closer to the edge */
        padding: 10px 15px; /* Compact padding */
        font-size: 0.85rem; /* Smaller text for mobile */
        gap: 8px;
        border-radius: 12px; /* Less rounded, more like a mobile notification */
        justify-content: center; /* Center the icon and text */
    }

    .scroll-annotation i {
        font-size: 1rem;
    }

    /* Optional: If the laptop wrapper has scaling,
       ensure the fixed annotation ignores it */
    .demo-scaler .scroll-annotation {
        transform: translateX(-50%) translateY(100px); /* Reset transform for mobile hidden state */
    }

    .demo-scaler .scroll-annotation.active {
        transform: translateX(-50%) translateY(0); /* Slide up on mobile */
    }
}

/* For ultra-small devices */
@media (max-width: 480px) {
    .scroll-annotation {
        font-size: 0.75rem;
        padding: 8px 12px;
    }
}



.floating-mockup {
    width: 100%;
    height: auto;
    box-shadow: 0 50px 100px rgba(0,0,0,0.5);
    border-radius: 12px 12px 0 0; /* Rounded top corners for a "docked" look */
    transition: transform 0.5s ease;
}

.floating-mockup:hover {
    transform: perspective(1000px) rotateX(0deg); /* flattens on hover */
}

.badge-pill {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(42, 182, 122, 0.15);
    color: var(--paystro-green);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.click-badge-pill span {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(42, 182, 122, 0.15);
    color: var(--paystro-green);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    margin-top: 10px;
}

.btn-outline {
    border: 2px solid rgba(255,255,255,0.2);
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.btn-outline:hover {
    border-color: var(--paystro-green);
    background: rgba(42, 182, 122, 0.1);
}

/* --- TYPEWRITER CURSOR --- */
.cursor {
    color: var(--paystro-green);
    font-weight: 200;
    animation: blink 0.7s infinite;
    margin-left: 5px;
}

@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 1; }
}

/* Ensure the green text has a fixed minimum height so the page doesn't "jump" */
#typed-text {
    min-height: 1.2em;
    display: inline-block;
}

.btn-primary, .btn-secondary {
    font-family: var(--font-main);
    font-weight: 600;
    border-radius: 12px; /* Increased from 8px for that friendlier feel */
    padding: 12px 24px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}


/* --- SECONDARY BUTTON STYLING --- */
.btn-secondary {
    display: inline-flex; /* Use inline-flex to align icon and text perfectly */
    align-items: center;
    justify-content: center; /* FIX: Centers the icon and text inside the button */
    padding: 14px 30px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    background: transparent;
    color: var(--paystro-navy);
    border: 2px solid #e2e8f0;

    /* Ghost Style */
    background: transparent;
    color: white;
    border: 2px solid #e2e8f0; /* Soft gray border */
    margin-left: 15px;       /* Spacing for desktop */
    gap: 10px;               /* Adds a clean space between the icon and text */
}

/* Icon Animation */
.btn-secondary i {
    transition: transform 0.3s ease;
    font-size: 0.95rem;
    color: var(--paystro-green); /* The icon stays brand green for a pop of color */
    padding-right: 7px;
}

.btn-secondary:hover {
    border-color: var(--paystro-green);
    background: var(--paystro-navy);
    color: var(--paystro-green);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(15, 23, 42, 0.1);
}

/* When the button turns navy on hover, make the icon white */
.btn-secondary:hover i {
    color: white;
    transform: scale(1.1);
}


@media (max-width: 600px) {
    .hero-btns {
        flex-direction: column;
        align-items: stretch;
    }
    .btn-secondary {
        margin-left: 0; /* Reset margin for vertical stack */
        text-align: center;
        align-items: center;
    }
}

/* --- BUTTON RESPONSIVE FIX --- */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 2.2em;
   }

   .hero-content p {
    font-size: 1.1em;
}

    .hero-btns {
        display: flex;
        flex-direction: column; /* Stacks buttons vertically on mobile */
        gap: 15px;
        align-items: center;    /* Centers the stack */
        margin-bottom: 10px;
    }

    .btn-secondary, .btn-primary {
         font-size: 0.8em;
    }
}

/* --- BUTTON RESPONSIVE FIX --- */
@media (max-width: 768px) {
    .hero-btns {
        display: flex;
        flex-direction: column; /* Stacks buttons vertically on mobile */
        gap: 15px;
        align-items: center;    /* Centers the stack */
        margin-bottom: 10px;
    }

    .btn-secondary, .btn-primary {
        margin-left: 0 !important; /* FIX: Removes the side-push on mobile */
        width: 100%;               /* Optional: Makes buttons full width for easier thumb-tap */
        max-width: 300px;          /* Prevents buttons from getting too wide */
    }
}

/* Button Polish */
.btn-primary {
    background-color: var(--paystro-green);
    color: white;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(42, 182, 122, 0.3);
}

.update-bar {
    background-color: var(--paystro-green);
    width: 0%;
    height: 100%;
    border-radius: 25px;
    transition: width 0.3s;
}


/* Instant Load for Hero (Overriding Reveal) */
.no-reveal {
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
}



/* --- HERO TEXT ROTATOR --- */
.ryd-text-rotator {
    display: inline-flex;
    flex-direction: column;
    height: 1.2em; /* Matches line height */
    overflow: hidden;
    vertical-align: top;
}

.ryd-text-rotator span {
    display: block;
    height: 1.2em;
    animation: rotateText 9s infinite;
}

@keyframes rotateText {
    0%, 20% { transform: translateY(0); }
    25%, 45% { transform: translateY(-1.2em); }
    50%, 70% { transform: translateY(-2.4em); }
    75%, 95% { transform: translateY(-1.2em); } /* Smoothly moves back up */
    100% { transform: translateY(0); }
}

/* --- INFINITE LOGO SLIDER --- */
.ryd-logo-section {
    padding: 60px 0;
    background: var(--white);
    border-bottom: 1px solid #edf2f7;
    overflow: hidden;
}

.ryd-logo-section p {
    padding-bottom: 20px;
    color: #0f2b6d;
    font-size: 1.5em;
    font-family: var(--font-main);
    font-weight: 800; /* Extra bold for main titles */
    letter-spacing: -0.03em; /* Tighter spacing for a high-end SaaS look */
    line-height: 1.2;
    text-transform: none;
}

.section-tag {
    text-align: center;
    font-size: 0.75rem;
    letter-spacing: 2px;
    color: #94a3b8;
    margin-bottom: 2rem;
}

.ryd-logo-slider {
    width: 100%;
    position: relative;
    display: flex;
    overflow: hidden;
}

.ryd-logo-track {
    display: flex;
    width: calc(250px * 10); /* 250px per logo * total logos (including duplicates) */
    animation: scrollLogos 30s linear infinite;
}

.ryd-logo-track img {
    width: 180px;
    height: auto;
    margin: 0 40px;
    filter: grayscale(100%);
    opacity: 0.5;
    transition: 0.3s;
}

.ryd-logo-track img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

@keyframes scrollLogos {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-180px * 5 - 80px * 5)); } /* Moves by exactly half the track width */
}

/* Pause animation on hover for better UX */
.ryd-logo-slider:hover .ryd-logo-track {
    animation-play-state: paused;
}

/* --- TRUST STRIP --- */
.trust-strip {
    padding: 60px 0;
    background: var(--white);
    border-bottom: 1px solid #edf2f7;
    text-align: center;
}

.trust-strip p {
    font-size: 0.75rem;
    letter-spacing: 2px;
    color: #94a3b8;
    margin-bottom: 2.5rem;
}

.logo-grid {
    display: flex;
    justify-content: center;
    gap: 5rem;
    opacity: 0.6;
    filter: grayscale(100%);
}

.logo-grid img { height: 35px; width: auto; }


/* --- VALUE PILLARS --- */
.value-pillars {
    padding: 100px 0;
    background: #F1FDF8;
    color: var(--white);
}

.section-title h2 { font-size: 2.5rem; margin-bottom: 4rem; }

.pillar-card {
    background: var(--white);
    padding: 3.5rem 2.5rem;
    border-radius: 24px;
    border: 1px solid #e2e8f0;
    transition: 0.4s;


}

.pillar-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.08);
}

.pillar-tag {
    color: var(--paystro-green);
    font-weight: 800;
    font-size: 0.7rem;
    letter-spacing: 1.5px;
    display: block;
    margin-bottom: 1.5rem;
}

.pillar-card h3 { font-size: 1.6rem; margin-bottom: 1rem; color: var(--paystro-navy); }
.pillar-card p { color: var(--text-light); }

/* Responsive Grid for Mobile */
@media (max-width: 992px) {

    .section-title h2 { font-size: 2.2rem; }
}


.api-section {
    background-color: var(--paystro-navy);
    padding: 40px 20px; /* Added side padding for mobile safety */
    color: white;
    overflow: hidden;
}

.api-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.api-content h2 {
    margin-top: 20px;
    margin-bottom: 20px;
    line-height: 30px;
}

.api-content ul {
    margin-left: 50px;
}

/* Fix for spacing above the button */
.api-description {
    margin-bottom: 25px;
    line-height: 1.7;
    color: #94a3b8; /* Soft blue-grey for readability */
    font-size: 1rem;
}

.api-cta {
    margin-top: 35px; /* Creates clear space above View Documentation */
}

/* 1. Remove the default black bullets */
.api-features {
    list-style: none; /* This is the "magic" line that removes the dots */
    padding: 0;
    margin-top: 20px;
}

/* 2. Align the icon and text in a straight line */
 .api-features li {
    display: flex;
    align-items: center; /* Vertical center alignment */
    gap: 12px;           /* Space between icon and text */
    margin-bottom: 12px; /* Space between each list item */
    font-weight: 200;
    margin-top: 0px;
    margin-left: 30px;
    }


/* Responsive Grid for Mobile */
@media (max-width: 992px) {
    .api-grid {
        grid-template-columns: 1fr; /* Stack vertically */
        gap: 50px;
        text-align: center;
    }

    .api-content {
        text-align: center;
    }

    .api-features {
        display: inline-block;
        text-align: left;
    }

    /* 2. Align the icon and text in a straight line */
   .api-features li {
        margin-left: 0px;
    }

    h2 {
        font-size: 2rem;
    }
}

.text-green { color: var(--paystro-green); }

.badge {
    background: rgba(42, 182, 122, 0.1);
    color: var(--paystro-green);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

/* --- BRANDED CHECK CIRCLE --- */
.fa-check-circle {
    color: var(--paystro-green); /* The main circle color */
    background: white; /* Prevents background bleed through */
    border-radius: 100%;
    position: relative;
}

/* To create the solid green circle with a white tick effect: */
.branded-tick {
    color: white !important;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.3em; /* Adjust size as needed */
    height: 1.3em;
    font-size: 1rem;
}

/* Code Terminal Styling */
/* --- CODE WINDOW CONTAINER --- */
.code-window {
    background: #0B1222; /* Deep Dark Navy */
    border-radius: 16px;
    overflow: hidden; /* Keeps the header and body contained */
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    font-family: 'Fira Code', 'Courier New', monospace; /* Monospace for code */
    border-left: 3px solid var(--paystro-green); /* Your #2AB67A highlight */
    max-width: 100%; /* Prevents it from pushing past parent container */
}

.code-window pre {
    margin: 0;
    padding: 20px;
    overflow-x: auto;
    white-space: pre;
    font-family: 'Fira Code', monospace;
    font-size: 14px;
    line-height: 1.6;

    /* Forces the code to start with some "breathing room" */
    display: block;
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .code-window pre {
        /* 1. Change to flex to allow centering */
        display: flex;
        justify-content: center;

        /* 2. Reset padding to be even on both sides */
        padding: 20px;

        /* 3. Ensure the inner code block doesn't shrink, keeping lines intact */
        overflow-x: auto;
    }

    .code-window code {
        /* 4. This is the secret: allow the code to be centered
              but prevent it from squashing narrower than its longest line */
        display: inline-block;
        text-align: left; /* Keep code text left-aligned */
        margin: 0 auto;   /* Center the block itself */
    }
}

@media (max-width: 768px) {
    /* Style the scrollbar to be centered in the view */
    .code-window pre::-webkit-scrollbar {
        height: 5px;
    }

    .code-window pre::-webkit-scrollbar-track {
        background: transparent;
        /* Adds invisible margins to the scrollbar track to 'center' the handle */
        margin: 0 20%;
    }

    .code-window pre::-webkit-scrollbar-thumb {
        background: var(--paystro-green);
        border-radius: 10px;
    }
}

/* Custom Scrollbar for Chrome/Safari to make it look "Centered" and Thick */
.code-window pre::-webkit-scrollbar {
    height: 6px; /* Thicker for easier mobile scrubbing */
}

.code-window pre::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    margin: 0 20%; /* This visually 'centers' the scrollbar track */
    border-radius: 10px;
}

.code-window pre::-webkit-scrollbar-thumb {
    background: var(--paystro-green);
    border-radius: 10px;
}

.code-body {
    padding: 40px;            /* Increased padding to "center" the visual weight */
    display: flex;            /* Use flex to help with internal alignment */
    justify-content: center;  /* Centers the code block horizontally */
    align-items: flex-start;  /* Keeps code starting from the top */
    overflow-x: auto;
    background: #0B1222;      /* Ensuring the Dark Navy background stays consistent */
}

.code-body pre {
    margin: 0 auto;           /* Centers the pre block itself */
    white-space: pre;
    word-wrap: normal;
    font-family: 'Fira Code', monospace; /* Highly recommended for the "Rydoo/Stripe" look */
    font-size: 15px;          /* Slightly larger for better readability */
    line-height: 1.7;         /* More vertical space between lines of code */
}

/* Styling the Scrollbar */
.code-body::-webkit-scrollbar {
    height: 6px;              /* Slightly thicker for easier use */
}

.code-body::-webkit-scrollbar-thumb {
    background: var(--paystro-green); /* Uses your #2AB67A brand color */
    border-radius: 10px;
}

/* --- HEADER BAR --- */
.code-header {
    background: rgba(255, 255, 255, 0.03);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px 12px 0 0;
}

.dots {
    display: flex;
    gap: 8px;
}

.dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dots span:nth-child(1) { background: #FF5F56; } /* Mac-style close */
.dots span:nth-child(2) { background: #FFBD2E; } /* Mac-style minimize */
.dots span:nth-child(3) { background: #27C93F; } /* Mac-style expand */

.tab {
    margin-left: 20px;
    color: #94a3b8;
    font-size: 13px;
    font-weight: 500;
}


/* --- SYNTAX HIGHLIGHTING (Paystro Theme) --- */
.code-body {
    padding: 25px;
    line-height: 1.6;
    font-size: 14px;
}

.code-keyword { color: #c678dd; } /* Purple for keywords */
.code-function { color: #61afef; } /* Blue for functions */
.code-string { color: #2AB67A; }   /* Paystro Green for strings */
.code-comment { color: #5c6370; font-style: italic; }
.code-number { color: #d19a66; }   /* Orange for numbers */
.code-key { color: #e06c75; }      /* Red for JSON keys */


/* --- UTILITY: SECTION SPACING --- */
.section-spacer {
    padding-top: 20px;
    padding-bottom: 40px;
    background: #fff;
}

/* --- POLISHED LIGHT WEBHOOK CARD --- */
.webhook-card.light-theme {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.05);
    position: relative;
    /* Create faint gray grid lines using a linear-gradient */
    background-image:
        linear-gradient(#f1f5f9 1px, transparent 1px),
        linear-gradient(90deg, #f1f5f9 1px, transparent 1px);
    background-size: 20px 20px;
}

.webhook-card.light-theme .webhook-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 12px;
    margin-bottom: 20px;
}

/* Status Badge for Light Theme */
.webhook-card.light-theme .status-badge {
    background: #ecfdf5; /* Very light green */
    color: var(--paystro-green);
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    border: 1px solid rgba(42, 182, 122, 0.2);
    display: flex;
    align-items: center;
    gap: 6px;
}

.webhook-card.light-theme .dot {
    height: 6px;
    width: 6px;
    background-color: var(--paystro-green);
    border-radius: 50%;
    display: inline-block;
}

/* Typography for the Light Card */
.webhook-card.light-theme .event-type {
    color: var(--paystro-navy); /* Dark Navy for contrast */
    font-family: 'Fira Code', monospace;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.webhook-card.light-theme .detail-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f8fafc;
    font-size: 14px;
    color: #64748b; /* Slate gray for keys */
}

.webhook-card.light-theme .detail-row span:last-child {
    color: var(--paystro-navy); /* Dark navy for values */
    font-weight: 600;
}


/* Webhook Card Styling */
.webhook-card {
    background: #1e293b;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid rgba(42, 182, 122, 0.2);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.status-badge {
    background: rgba(42, 182, 122, 0.1);
    color: var(--paystro-green);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
}
.event-type { font-weight: bold; font-size: 1.2rem; margin: 15px 0; }
.detail-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.05); }


/* --- LIGHT WEBHOOK CARD STYLING --- */
.webhook-card.light-theme {
    background: #ffffff; /* Almost white */
    border: 1px solid #e2e8f0; /* Faint gray border */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    background-image: linear-gradient(#f8fafc 1px, transparent 1px),
                      linear-gradient(90deg, #f8fafc 1px, transparent 1px);
    background-size: 20px 20px; /* Faint gray grid lines */
}

.webhook-card.light-theme .webhook-header {
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.webhook-card.light-theme .status-badge {
    background: #ecfdf5;
    color: var(--paystro-green);
    border: 1px solid rgba(42, 182, 122, 0.2);
}

.webhook-card.light-theme .event-type {
    color: var(--paystro-navy);
    font-family: 'Fira Code', monospace;
    font-size: 1.1rem;
}

.webhook-card.light-theme .detail-row {
    color: var(--text-light);
    border-bottom: 1px solid #f1f5f9;
}

.webhook-card.light-theme .detail-row span:last-child {
    color: var(--paystro-navy);
    font-weight: 600;
}

/* --- POLISHED FLOW SECTION --- */
.flow-container {
    display: flex;
    justify-content: space-between;
    margin-top: 60px;
    position: relative;
}

/* The connecting line between steps */
/* Ensure the connecting line stays behind the circles */
.flow-container::before {
    content: '';
    position: absolute;
    top: 30px; /* Aligns with the middle of your 60px circle */
    left: 15%;
    right: 15%;
    height: 3px; /* Slightly thicker for better visibility */
    background: var(--paystro-green); /* Changed to Paystro Green */
    z-index: 1;
}

/* Ensure the circles sit on top of the line */
.flow-step {
    flex: 1;
    z-index: 2;
    padding: 0 20px;
    text-align: center;
    position: relative;
    background: transparent; /* Changed to allow the line to connect to circles */
}

.step-circle {
    width: 60px;
    height: 60px;
    background: white; /* Keeps the circle solid */
    border: 2px solid var(--paystro-green);
    color: var(--paystro-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 auto 25px;
    position: relative;
    z-index: 3;
    box-shadow: 0 0 0 8px white; /* This "glow" creates the gap between the line and the number */
}

.flow-step h3 {
    margin-bottom: 10px;
    color: var(--paystro-navy);
}

.flow-step p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Mobile adjustments for Flow Section */
@media (max-width: 768px) {
    .flow-container { flex-direction: column; gap: 40px; }
    .flow-container::before { display: none; }
}


/* Flowchart Styling */
.flow-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}
.flow-step { text-align: center; position: relative; }
.step-num {
    font-size: 3rem; font-weight: 800; color: rgba(42, 182, 122, 0.15);
    position: absolute; top: -20px; left: 50%; transform: translateX(-50%);
}

/* --- LOGO SCROLL SECTION --- */
.logo-label {
    font-size: 0.75rem;
    letter-spacing: 2px;
    color: #94a3b8;
    margin-bottom: 40px;
    text-transform: uppercase;
    font-weight: 700;
}

.logo-slider {
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
    position: relative;
    background: #ffffff;
}

/* Create a fade effect on the left and right edges */
.logo-slider::before,
.logo-slider::after {
    content: "";
    height: 100%;
    position: absolute;
    width: 200px;
    z-index: 2;
    pointer-events: none;
}

.logo-slider::before {
    left: 0;
    background: linear-gradient(to right, white 0%, transparent 100%);
}

.logo-slider::after {
    right: 0;
    background: linear-gradient(to left, white 0%, transparent 100%);
}

.logo-track {
    display: flex;
    width: calc(250px * 10); /* Should be [Width of img + margin] * [Total number of imgs] */
    animation: scrollLogos 30s linear infinite;
}

.logo-track img {
    width: 150px;
    height: auto;
    margin: 0 50px;
    filter: grayscale(100%);
    opacity: 0.5;
    transition: all 0.4s ease;
    object-fit: contain;
}

.logo-track img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

/* Infinite Scroll Animation */
@keyframes scrollLogos {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-250px * 5)); } /* Move by exactly half the track width (the original set) */
}

/* Pause when user hovers to look at a logo */
.logo-slider:hover .logo-track {
    animation-play-state: paused;
}

/* The White Square Container */
.logo-box {
    width: 120px;               /* Fixed width */
    height: 120px;              /* Fixed height (making it a square) */
    background: #ffffff;        /* White background */
    display: flex;
    align-items: center;        /* Centers logo vertically */
    justify-content: center;    /* Centers logo horizontally */
    padding: 20px;              /* Padding so the logo doesn't touch the edges */
    border-radius: 12px;        /* Rounded corners */
    box-shadow: 0 4px 12px rgba(0,0,0,0.05); /* Subtle shadow to make them pop */
    margin: 0 15px;             /* Space between the squares */
    flex-shrink: 0;             /* Prevents the square from squishing in the slider */
}

/* The Logo Image itself */
.logo-box img {
    max-width: 100%;            /* Won't go wider than the square */
    max-height: 100%;           /* Won't go taller than the square */
    width: auto;
    height: auto;
    object-fit: contain;        /* Ensures the whole logo is visible without distortion */
    filter: grayscale(100%);    /* Optional: Makes logos grey */
    opacity: 0.7;               /* ...and fades them slightly */
    transition: all 0.3s ease;
}

/* Optional: Color on hover */
.logo-box:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* --- ECOSYSTEM BAR --- */
/* --- ECOSYSTEM MARQUEE ANIMATION --- */
.ecosystem-bar {
    padding-top: 40px;
    background: var(--white);
    border-top: 1px solid #edf2f7;
    overflow: hidden;
    text-align: center;
    border-bottom: 1px solid #edf2f7;
    padding-bottom: 30px;
}

.ecosystem-bar p {
    padding-bottom: 20px;
    color: #0f2b6d;
    font-size: 1.7em;
    font-family: var(--font-main);
    font-weight: 800; /* Extra bold for main titles */
    letter-spacing: -0.03em; /* Tighter spacing for a high-end SaaS look */
    line-height: 1.2;
    text-transform: none;
}

/* --- ECOSYSTEM LOGO MARQUEE --- */
.ryd-marquee {
    overflow: hidden;
    padding: 30px 0;
    background: var(--white);
    position: relative;
    display: flex;
}

.ryd-marquee-track {
    display: flex;
    width: calc(250px * 14); /* Holder width * number of logos */
    animation: scrollMarquee 30s linear infinite;
}

/* The Rectangular Holder */
.logo-holder {
    flex-shrink: 0;
    width: 200px; /* Uniform Width */
    height: 100px; /* Uniform Height - Slightly bigger */
    margin: 0 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border: 1px solid #f1f5f9; /* Subtle border */
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
}

.logo-holder img {
    max-width: 140px; /* Image size within holder */
    max-height: 60px;
    width: auto;
    height: auto;
    filter: grayscale(100%); /* Greyscale by default for a clean look */
    opacity: 0.6;
    transition: all 0.3s ease;
}

/* Hover Effect: Turn to color and add shadow */
.logo-holder:hover {
    border-color: var(--paystro-green);
    box-shadow: 0 10px 25px rgba(42, 182, 122, 0.1);
    transform: translateY(-5px);
}

.logo-holder:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* Marquee Animation */
@keyframes scrollMarquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-250px * 7)); }
}

/* Adjust section tag for this section */
.section-tag {
    text-align: center;
    font-size: 0.75rem;
    letter-spacing: 2px;
    color: #94a3b8;
    text-transform: uppercase;
    font-weight: 700;
}

/* --- SCROLL REVEAL STYLES --- */

/* The initial hidden state */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1); /* Smooth "S-curve" motion */
    visibility: hidden;
}

/* The state when the script triggers it */
.reveal.active {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

/* Staggering effect: If you want cards inside a section to pop in one by one */
.reveal.active .pillar-card:nth-child(1) { transition-delay: 0.1s; }
.reveal.active .pillar-card:nth-child(2) { transition-delay: 0.3s; }
.reveal.active .pillar-card:nth-child(3) { transition-delay: 0.5s; }

/* --- READY TO SCALE SECTION --- */

.cta-content h2 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.text-navy { color: var(--paystro-navy); }

.cta-content p {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 3rem;
    opacity: 0.9;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 4rem;
}

/* Contrast button for the green background */
.btn-navy-lg {
    background: var(--paystro-navy);
    color: white;
    padding: 1.2rem 2.5rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: 0.3s;
}

.btn-navy-lg:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.2);
}

.btn-outline-white {
    border: 2px solid white;
    color: white;
    padding: 1.2rem 2.5rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
}

/* App Badges & Microsoft Logo */
.cta-extras {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 3rem;
    max-width: 900px;
    margin: 0 auto;
}

.cta-extras p {
    font-size: 0.7rem;
    letter-spacing: 1px;
    font-weight: 800;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.app-badges {
    margin-top: -10px;
}

.app-badges h3 {
    font-size: 1.7rem;
    letter-spacing: 1px;
    margin-bottom: 30px;
}

.badge-row { display: flex; gap: 10px; }
.store-link { height: 40px; width: auto; cursor: pointer; }
.ms-logo { height: 100px; width: auto; }

/* Responsive adjustments for the CTA */
@media (max-width: 768px) {
    .cta-content h2 { font-size: 2.5rem; }
    .cta-actions { flex-direction: column; }
    .cta-extras { flex-direction: column; gap: 2rem; }
}

/* --- TESTIMONIALS MOTION --- */
.testimonials {
    padding: 50px 0;
    background: var(--white);
    overflow: hidden;
}

.testimonial-slider {
    margin-top: 4rem;
    display: flex;
    overflow: hidden;
}

.testimonial-track {
    display: flex;
    gap: 2rem;
    animation: scrollTestimonials 50s linear infinite; /* Slower for readability */
    animation-play-state: running; /* Explicitly keep it running */
}

.testimonial-card {
    flex-shrink: 0;
    width: 400px;
    background: var(--gray-bg);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    transition: 0.3s;
}

.testimonial-card:hover {
    border-color: var(--paystro-green);
    background: white;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

/* Prevent testimonials from getting 'stuck' on focus/active states on mobile */
.testimonial-card,
.testimonial-card * {
    outline: none !important;
    -webkit-tap-highlight-color: transparent;
}

/* Ensure the slider container doesn't stop animations when touched */
.testimonials-section .swiper-wrapper,
.testimonials-section .slick-track {
    pointer-events: auto;
    will-change: transform;
}

.quote {
    font-size: 1rem;
    font-style: italic;
    color: var(--paystro-navy);
    margin-bottom: 2rem;
    line-height: 1.5;
    font-weight: 200;
}

.client-info strong {
    display: block;
    color: var(--paystro-navy);
    font-size: 1rem;
}

.client-info span {
    color: var(--paystro-green);
    font-size: 0.85rem;
    font-weight: 600;
}

/* Loop Animation */
@keyframes scrollTestimonials {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* Pause on hover so users can read a specific quote */
.testimonial-slider:hover .testimonial-track {
    animation-play-state: paused;
}

/* CHANGE TO THIS (Disable pause on mobile): */
@media (min-width: 1025px) {
    .testimonial-track:hover {
        animation-play-state: paused;
    }
}
@media (max-width: 1024px) {
    .testimonial-track {
        animation-play-state: running !important; /* Forces it to keep moving on touch */
    }
}

/* 3. Disable the "Sticky Tap" on mobile */
@media (max-width: 768px) {
    .testimonial-track:active,
    .testimonial-track:focus {
        animation-play-state: running !important;
    }

    .testimonial-card {
        /* Prevents the grey 'tap' highlight box on mobile */
        -webkit-tap-highlight-color: transparent;
        outline: none;
    }
}


/* --- MOBILE RESPONSIVENESS --- */
#nav-check { display: none; }

@media (max-width: 1024px) {
    .grid-2, .grid-3 { grid-template-columns: 1fr; text-align: center; }

    .hero-content h1 { font-size: 2.8rem; }


    .floating-mockup {
        transform: none;
        margin-top: 4rem;
    }

    .logo-grid { gap: 2rem; flex-wrap: wrap; }
}

@media (max-width: 1100px) and (min-width: 993px) {
    .nav-links {
        gap: 1rem; /* Reduce spacing so it fits on smaller desktops */
    }
    .nav-links a {
        font-size: 0.85rem; /* Slightly smaller font */
    }
    .navbar {
        gap: 15px;
    }
}


/* --- CTA SECTION (GREEN) --- */
.ryd-cta-section {
    background-color: var(--paystro-green); /* Majorly featuring brand color */
    padding: 100px 0;
    color: white;
    text-align: center;
}

.btn-white {
    background: white;
    color: var(--paystro-green);
    padding: 15px 35px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    transition: 0.3s;
}

.btn-outline-white {
    border: 2px solid white;
    color: white;
    padding: 13px 35px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    margin-left: 15px;
}

/* --- FOOTER (NAVY) --- */
.main-footer {
    background-color: var(--paystro-navy);
    padding: 80px 0 30px;
    color: #94a3b8; /* Soft gray-blue text for legibility on navy */
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-brand p {
    margin: 20px 0;
    font-size: 0.95rem;
}

.footer-links h4 {
    color: white;
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 12px;
    font-size: 1rem;
}

.footer-links ul li a {
    color: #94a3b8;
    text-decoration: none;
    transition: 0.3s;
}

.footer-links ul li a:hover {
    color: var(--paystro-green);
}

.footer-bottom {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 0.85rem;
}


/* --- FOOTER RESPONSIVE FIX --- */
@media (max-width: 768px) {

    .main-footer {
        padding: 20px 0 20px;
    }

    /* 1. Change the grid/flex from row to column */
    .footer-grid,
    .footer-container {
        display: flex;
        flex-direction: column;
        gap: 20px; /* Adds space between the logo, links, and contact info */
        text-align: left; /* Optional: set to 'center' if you want a centered mobile footer */
        padding: 10px 10px;
    }

    /* 2. Ensure each column takes full width */
    .footer-col,
    .footer-section {
        width: 100% !important;
        max-width: none !important;
    }

    /* 3. Adjust logo alignment on mobile */
    .footer-logo {
        margin-bottom: 10px;
    }

    /* 4. Fix social links alignment */
    .social-links {
        justify-content: flex-start; /* Aligns icons to the left on mobile */
        margin-top: 15px;
    }

    .cta-btns {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
    .btn-outline-white { margin-left: 0; }

    .footer-bottom {
        flex-direction: column-reverse; /* Puts Copyright at the bottom, Links at the top */
        gap: 15px;
        text-align: center;
        padding: 20px 0;
    }

    .footer-bottom-links {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
    }
}

/* --- BACK TO TOP BUTTON --- */

.back-to-top {
    position: fixed;
    bottom: 110px;  /* Moved up to clear the chat bubble + chat window space */
    right: 38px;  /* Slightly more centered than the bubble for visual balance */
    width: 45px;
    height: 45px;
    background-color: var(--paystro-navy);
    color: white !important; /* Ensure the arrow stays white */
    border-radius: 50%;
    display: flex; /* Keep this as flex */
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(42, 182, 122, 0.3);
    z-index: 10000; /* Higher than everything else */

    /* The Fix: Initial state should be invisible */
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease-in-out;
}

.back-to-top:hover {
    background-color: var(--paystro-green); /* Changes to Navy on hover */
    transform: translateY(-5px);
    color: white;
}

/* This class is triggered by the JavaScript below */
/* Class to show the button when scrolling */
.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* --- BACK TO TOP RESPONSIVE OPTIMIZATION --- */
@media (max-width: 768px) {
    .back-to-top {
        bottom: 100px; /* Move it closer to the corner for mobile thumb reach */
        right: 20px;
        width: 45px;  /* Slightly smaller for small screens */
        height: 45px;
        font-size: 1rem;

        /* Ensure it remains fixed even on mobile */
        position: fixed !important;

        /* Add a backdrop blur for a premium glass effect on mobile */
        backdrop-filter: blur(4px);
    }
}


/* ==========================================================================
   ABOUT PAGE STYLES (about.php)
   ========================================================================== */

/* 1. About Hero Section */
.about-hero {
    padding: 40px 0 0 0; /* Reduced bottom padding as image will provide space */
    color: var(--white);
    text-align: center; /* Centers all text elements */
    overflow: hidden; /* This prevents any internal glow or patterns from leaking out */
    width: 100%;
    margin-top: 0px;
    position: relative; /* Required for the pattern to anchor */
    background-color: var(--paystro-navy);

}

.about-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    /* Use the image as a background */
    background-image: url('../img/paystro-green-wavy.jpg');
    background-size: cover;
    background-position: center;

    /* SUCCESS: This now points to the correct animation below */
    animation: kenBurnsWaves 10s ease-in-out infinite alternate;

    /* Performance & Blending */
    opacity: 0.2;
    mix-blend-mode: screen;

    /* Fades the edges so there are no hard corners */
    mask-image: radial-gradient(circle, rgba(0,0,0,1) 30%, rgba(0,0,0,0) 90%);
    -webkit-mask-image: radial-gradient(circle, rgba(0,0,0,1) 30%, rgba(0,0,0,0) 90%);

    pointer-events: none;
    z-index: 0;
}

/* THE KEN BURNS EFFECT - Keep this exactly as is */
@keyframes kenBurnsWaves {
    0% {
        transform: scale(1.0) translate(0, 0);
    }
    100% {
        transform: scale(1.15) translate(2%, -2%);
    }
}

.about-badge-pill {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(42, 182, 122, 0.15);
    color: var(--paystro-green);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    margin-bottom: 1.5rem;
}

.about-hero h1 {
    font-size: 3.2rem;
    margin-top: 25px;
    line-height: 1.1;
    letter-spacing: -0.03em;
    font-weight: 800;
}

.about-hero .feature-lead {
    max-width: 700px;
    margin: 25px auto;
    color: #94a3b8;
    font-size: 1.25rem;
    padding-bottom: 20px;
}

/* 2. About Vision & Edge Section */
.about-vision {
    padding: 100px 0;
    background: var(--white);
}

.about-vision h2 {
    font-size: 2.5rem;
    color: var(--paystro-navy);
    margin-top: 20px;
}

.about-mission-badge-pill {
    background: rgba(42, 182, 122, 0.1);
    color: #2AB67A;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.2em;
}

.about-grid-2-centered {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 80px;
}

.about-visual-box {
    background: var(--gray-bg);
    border-radius: 24px;
    padding: 40px;
    border: 1px solid #e2e8f0;
    transition: transform 0.3s ease;
}

.about-visual-box:hover {
    transform: translateY(-5px);
}

.about-visual-box i {
    font-size: 4rem;
    color: var(--paystro-green);
    margin-bottom: 20px;
}

.about-text h2 {
    font-size: 2.5rem;
    margin: 15px 0 25px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

/* --- ABOUT PAGE VALUES GRID --- */

.about-values {
    background: var(--gray-bg);
    padding: 100px 0;
}

.about-values h2 {
    font-size: 2.5rem;
    color: var(--paystro-navy);
    margin-top: 20px;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
}

.value-card {
    background: rgba(42, 182, 122, 0.05);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(15, 23, 42, 0.05);
    transition: all 0.3s ease;
    text-align: left;
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
    border-color: var(--paystro-green);
}

.value-icon i {
    width: 30px;
    height: 30px;
    background: rgba(42, 182, 122, 0.1);
    color: var(--paystro-green);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 25px;
}

.value-card h3 {
    color: var(--paystro-navy);
    font-size: 1.25rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.value-card p {
    color: var(--text-light);
    font-size: 0.9rem;

}
/* --- PARTNERSHIP LOGO TICKER --- */
.logo-ticker {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 50px;
    opacity: 0.6;
    filter: grayscale(100%);
}

.logo-item img {
    height: 35px; /* Consistent height for all logos */
    width: auto;
    transition: opacity 0.3s;
}

.logo-item img:hover {
    opacity: 1;
    filter: grayscale(0%);
}

/* --- FINAL ABOUT CTA --- */
.cta-box-about {
    flex: 1;
    padding: 60px;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
}

.cta-box-about.primary {
    background: var(--paystro-green);
    color: white;
}

.cta-box-about.secondary {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
}

.cta-box-about h3 { font-size: 2rem; margin: 0; }
.cta-box-about p { font-size: 1.1rem; opacity: 0.9; margin-bottom: 10px; }

.btn-main-green {
    background: var(--paystro-navy);
    color: white;
    padding: 15px 35px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    transition: 0.3s;
}

.btn-main-green:hover { background: white; color: var(--paystro-navy); }

/* 6. Responsive Adjustments for About Page */
@media (max-width: 992px) {

    .about-vision {
        padding: 40px 0;

    }

    .about-hero .feature-lead {
        max-width: 700px;
        margin: 25px auto;
        color: #94a3b8;
        font-size: 1.0rem;
        padding-bottom: 20px;
    }

    .about-values {
        background: var(--gray-bg);
        padding: 40px 0;
    }

    .about-grid-2-centered {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-text {
        text-align: center;
    }

    .benefits-highlight-row {
        grid-template-columns: 1fr;
    }

    .stat-card h3 {
        font-size: 2.8rem;
    }
}

/* Mobile Stack for CTAs */
@media (max-width: 768px) {
    .container { flex-direction: column; }
    .logo-ticker {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
        place-items: center;
    }
}

@media (max-width: 768px) {
    .about-final-cta div[style*="font-size: 20rem"] {
        font-size: 8rem !important; /* Shrinks the background text for mobile */
    }
}

/* 4. The Impact "Numbers" Section */
.about-impact {
    padding: 100px 0;
    background: var(--paystro-navy);
    color: var(--white);
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
}

.stat-card {
    text-align: center;
    padding: 40px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    transition: background 0.3s ease;
}

.stat-card:hover {
    background: rgba(255,255,255,0.05);
}

.stat-card h3 {
    font-size: 3.5rem;
    color: var(--paystro-green);
    margin-bottom: 10px;
    font-weight: 800;
}

.stat-card h4 {
    margin-bottom: 10px;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--white);
}

.stat-card p {
    font-size: 0.9rem;
    color: #94a3b8;
}

/* 5. Benefits Highlights */
.benefits-highlight-row {
    margin-top: 50px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.benefit-pill {
    background: rgba(42, 182, 122, 0.05);
    padding: 30px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 20px;
    border: 1px solid rgba(42, 182, 122, 0.1);
}

.benefit-pill i {
    font-size: 2rem;
    color: var(--paystro-green);
}

.benefit-pill h5 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: var(--white);
}

/* 6. Responsive Adjustments for About Page */
@media (max-width: 992px) {
    .about-hero h1 {
        font-size: 2.5rem;
    }

    .about-grid-2-centered {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-text {
        text-align: center;
    }

    .benefits-highlight-row {
        grid-template-columns: 1fr;
    }

    .stat-card h3 {
        font-size: 2.8rem;
    }
}


/* ==========================================================================
   FAQ PAGE STYLES (faqs.php)
   ========================================================================== */

   .faq-hero {
    background: var(--gray-bg);
    padding: 40px 0;
    text-align: center;
}

.faq-hero h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-top: 20px;
    letter-spacing: -0.03em;
}

.faq-wrapper {
    max-width: 800px;
    margin: 60px auto;
}

.faq-category {
    margin-bottom: 50px;
}

.faq-category h3 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-light);
    margin-bottom: 25px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 10px;
}

/* Accordion Item Styling */
.faq-item {
    background: var(--white);
    border-radius: 12px;
    margin-bottom: 15px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item:hover {
    border-color: var(--paystro-green);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.faq-question {
    padding: 24px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--paystro-navy);
}

.faq-question i {
    font-size: 0.9rem;
    color: var(--text-light);
    transition: transform 0.3s ease, color 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: #fdfdfd;
}

.faq-answer p {
    padding: 0 30px 24px 30px;
    color: var(--text-light);
    line-height: 1.7;
}

/* Active State */
.faq-item.active {
    border-color: var(--paystro-green);
}

.faq-item.active .faq-question {
    color: var(--paystro-green);
}

.faq-item.active .faq-answer {
    max-height: 500px; /* Large enough for any answer */
}

.faq-item.active i {
    color: var(--paystro-green);
    transform: rotate(0deg);
}

/* Still have questions CTA */
.faq-cta {
    padding: 100px 0;
}

.cta-box {
    background: var(--paystro-navy);
    padding: 60px;
    border-radius: 30px;
    text-align: center;
    color: var(--white);
}

.cta-box h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.cta-box p {
    color: #94a3b8;
    margin-bottom: 30px;
}

.cta-btns {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Responsive FAQ */
@media (max-width: 768px) {
    .faq-hero h1 { font-size: 2.5rem; }
    .faq-question { padding: 20px; font-size: 1rem; }
    .cta-box { padding: 40px 20px; }
    .cta-btns { flex-direction: column; }
}


/* ==========================================================================
   PRICING PAGE STYLES
   ========================================================================== */
   .pricing-hero {
    background: #F8FAFC;
    padding: 40px 0 60px;
    text-align: center;
}

.pricing-hero h1 {
    font-size: 3.5rem;
    margin-top: 20px;
    color: #0F172A;
    letter-spacing: -2px;
}

.pricing-hero p {
    color: #64748b;
    opacity: 1;
    position: relative;
    font-size: 1.1rem;
    max-width: 700px;
    margin: 20px auto;
}


.pricing-badge-pill {
    display: inline-block;
    padding: 6px 16px;
    background: #64748b;
    color: white;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    margin-bottom: 1.5rem;
    top: 1rem;
    mix-blend-mode: normal;
    opacity: 1;
    position: relative;
}

.price-grid {
    display: grid;
    align-items: start;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
}

/* Responsive Stacking */
@media (max-width: 992px) {
    .price-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
}

/* Responsive FAQ */
@media (max-width: 992px) {
    .pricing-hero h1 {
        font-size: 3rem;
    }

    .pricing-hero p {
        font-size: 1rem;
    }

}

/* ==========================================================================
   CONTACT PAGE STYLES
   ========================================================================== */

/* --- CONTACT PAGE LAYOUT --- */
.contact-main-section {
    padding-bottom: 100px;
    margin-top: 40px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

/* Responsive Stacking */
@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    .contact-main-section {
        padding-bottom: 60px;
    }
}

/* Info Column Styles */
.contact-methods-list {
    margin-top: 40px;
}

.contact-method-item {
    margin-bottom: 30px;
    display: flex;
    gap: 20px;
    align-items: center;
}

.contact-method-icon {
    width: 50px;
    height: 50px;
    background: #f1f5f9;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--paystro-green);
}

.contact-method-text h4 {
    margin: 0;
    font-size: 1.1rem;
}

.contact-method-text p {
    margin: 0;
    color: #64748b;
}

.contact-response-card {
    background: var(--paystro-navy);
    padding: 30px;
    border-radius: 16px;
    color: white;
    margin-top: 50px;
}

.response-label {
    font-size: 0.85rem;
    opacity: 0.7;
    margin-bottom: 10px;
}

.response-time {
    margin: 0;
    font-size: 1.5rem;
    color: var(--paystro-green);
}

.response-note {
    font-size: 0.8rem;
    opacity: 0.6;
    margin-top: 10px;
}

/* Form Card Styles */
.contact-form-card {
    background: white;
    border: 1px solid #e2e8f0;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.05);
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

@media (max-width: 600px) {
    .contact-form .form-row {
        grid-template-columns: 1fr;
    }
}

.contact-form .form-field {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--paystro-navy);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    outline: none;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: var(--paystro-green);
}

.btn-main-cta-standalone2 {
    width: 100%;
    border: none;
    cursor: pointer;
    background-color: var(--paystro-green);
    color: white;
    padding: 15px;
    border-radius: 12px;
    font-weight: 700;
    transition: transform 0.2s ease;
}

.btn-main-cta-standalone2:hover {
    transform: translateY(-2px);
    background-color: var(--paystro-navy);
}

.btn-main-cta-standalone2 i {
    margin-left: 10px;
    font-size: 0.8rem;
}


/* ==========================================================================
   INTERACTIVE DEMO STYLES
   ========================================================================== */

.demo-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 20px;
    border-radius: 16px;
    margin: 25px 0;
    max-width: 400px;
}

.demo-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

.demo-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--paystro-navy);
}

/* The Switch - Custom Toggle */
.paystro-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

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

.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #cbd5e1;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
}

input:checked + .slider {
    background-color: var(--paystro-green);
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

/* Status Card */
.status-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    border-radius: 10px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.status-card.manual {
    background: #fff;
    border: 1px dashed #cbd5e1;
    color: #64748b;
}

.status-card.automated {
    background: rgba(42, 182, 122, 0.1);
    border: 1px solid var(--paystro-green);
    color: var(--paystro-green);
    transform: scale(1.02);
}

/* Smart Budgeting Calculator Styles */
.budget-demo-box {
    background: var(--white);
    border: 1px solid #e2e8f0;
    padding: 25px;
    border-radius: 20px;
    margin: 30px 0;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.calc-input-group {
    margin-bottom: 20px;
}

.calc-input-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--paystro-navy);
    text-transform: uppercase;
    margin-bottom: 8px;
}

.calc-input-group input[type="number"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-weight: 600;
}

.calc-input-group input[type="range"] {
    width: 100%;
    accent-color: var(--paystro-green);
    cursor: pointer;
}

.slider-val {
    text-align: right;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-light);
    margin-top: 5px;
}

/* Status Indicator */
.budget-status {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.status-icon {
    font-size: 1.5rem;
}

.status-msg strong {
    display: block;
    font-size: 1rem;
}

.status-msg span {
    font-size: 0.85rem;
    opacity: 0.9;
}

/* Dynamic States */
.budget-status.safe {
    background: rgba(42, 182, 122, 0.1);
    color: var(--paystro-green);
    border: 1px solid var(--paystro-green);
}

.budget-status.danger {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid #ef4444;
    animation: shake 0.4s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Demo Download Button */
.btn-demo-download {
    background: var(--paystro-navy);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-demo-download:hover {
    background: var(--paystro-navy-lighter);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(15, 23, 42, 0.2);
}

.btn-demo-download:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-demo-download i {
    color: var(--paystro-green);
}

/* Real-time Notification Toast */
.notification-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--paystro-navy);
    color: white;
    padding: 16px 20px;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    z-index: 9999;
    transform: translateY(150%);
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border-left: 4px solid #ef4444; /* Alert Red */
}

.notification-toast.show {
    transform: translateY(0);
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.toast-icon {
    font-size: 1.5rem;
    color: #ef4444;
}

.toast-text strong {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.toast-text p {
    font-size: 0.8rem;
    color: #94a3b8;
    margin: 0;
}

.toast-close {
    background: transparent;
    border: none;
    color: #64748b;
    font-size: 1.2rem;
    cursor: pointer;
    margin-left: 10px;
    transition: color 0.2s;
}

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

/* Approval Demo Styles */
.approval-demo-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px;
    margin: 25px 0;
}

.demo-header {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e2e8f0;
}

.queue-count {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--paystro-navy);
}

.approval-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.approval-item {
    background: white;
    padding: 12px 16px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: all 0.4s ease;
}

.item-info strong {
    display: block;
    font-size: 0.9rem;
    color: var(--paystro-navy);
}

.item-info span {
    font-size: 0.75rem;
    color: var(--text-light);
}

.btn-approve {
    background: var(--paystro-green);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-approve:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.btn-reset {
    background: var(--paystro-green);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-reset:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.btn-backfeatures:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.empty-queue {
    text-align: center;
    padding: 20px;
    color: var(--paystro-green);
}

.empty-queue i {
    font-size: 2rem;
    margin-bottom: 10px;
}

/* High Priority Flagging */
.approval-item.priority-flag {
    border: 2px solid #ef4444 !important;
    background: rgba(239, 68, 68, 0.05) !important;
    animation: alertSlide 0.4s ease-out;
    /* ADD THIS LINE: This allows the removal animation to work */
    transition: all 0.4s ease !important;
}

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

.priority-badge {
    background: #ef4444;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 800;
    margin-bottom: 4px;
    animation: badgePulse 1.5s infinite;
    display: inline-block;
}

@keyframes badgePulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* Update the Override button for flagged items */
.priority-flag .btn-approve {
    background: var(--paystro-navy);
}

.priority-flag .btn-approve:hover {
    background: #ef4444;
}

/* Audit Trail Styling */
.audit-trail-container {
    background: #0F172A; /* Match Paystro Navy */
    border-radius: 12px;
    margin-top: 20px;
    overflow: hidden;
    font-family: 'Courier New', Courier, monospace; /* Monospaced for that "log" feel */
    /* Force Scrollbar visibility for Audit Trail */
    /* Ensure the container has a max-height and overflow set */
    max-height: 400px;
    overflow-y: scroll !important; /* Forces the scroll area */
    scrollbar-width: thin; /* For Firefox */
    scrollbar-color: #cbd5e1 #f1f5f9; /* For Firefox (thumb, track) */
}

/* Custom Scrollbar for Chrome, Safari, and Edge */
.audit-trail-container::-webkit-scrollbar {
    width: 8px; /* Width of the vertical scrollbar */
    display: block !important;
}

.audit-trail-container::-webkit-scrollbar-track {
    background: #f1f5f9; /* The track (background) of the scrollbar */
    border-radius: 10px;
}

.audit-trail-container::-webkit-scrollbar-thumb {
    background-color: #cbd5e1; /* The actual draggable bar */
    border-radius: 10px;
    border: 2px solid #f1f5f9; /* Creates padding effect */
}

.audit-trail-container::-webkit-scrollbar-thumb:hover {
    background-color: #94a3b8; /* Darkens when user hovers over it */
}

/* --- RESPONSIVE AUDIT TRAIL SCROLLBAR --- */
@media (max-width: 768px) {
    /* 1. Make the track slightly narrower to save space */
    .audit-trail-container::-webkit-scrollbar {
        width: 5px !important;
    }

    /* 2. Increase the contrast of the thumb for better visibility on small screens */
    .audit-trail-container::-webkit-scrollbar-thumb {
        background-color: #94a3b8 !important; /* A bit darker than desktop */
        border: none !important; /* Remove border to make the 5px bar solid */
    }

    /* 3. Adjust container height for mobile viewports */
    .audit-trail-container {
        max-height: 300px; /* Shorter height so it doesn't take the whole screen */
        -webkit-overflow-scrolling: touch; /* Ensures smooth "momentum" scrolling on iOS */
    }
}

.audit-header {
    background: #1E293B;
    padding: 10px 15px;
    color: #94a3b8;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: space-between; /* Pushes button to the right */
}

.audit-log {
    padding: 15px;
    max-height: 200px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.log-entry {
    font-size: 0.8rem;
    line-height: 1.4;
    padding-left: 10px;
    border-left: 2px solid #334155;
}

.log-time {
    color: #64748b;
    margin-right: 8px;
}

.log-entry p { margin: 0; color: #e2e8f0; display: inline; }
.log-entry strong { color: white; }

/* Entry Types */
.log-entry.success { border-left-color: var(--paystro-green); }
.log-entry.danger { border-left-color: #ef4444; }
.log-entry.warning { border-left-color: #f59e0b; }
.log-entry.info { border-left-color: #3b82f6; }

/* Update this in main.css */
.btn-export {
    background: transparent;
    border: 1px solid #2AB67A; /* Paystro Green */
    color: #2AB67A;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.7rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s ease;
}

.btn-export:hover {
    background: #2AB67A;
    color: white;
}

/* Hide the button when generating the PDF so it doesn't appear in the document */
.hide-for-pdf {
    display: none !important;
}

/* Fix for the PDF content rendering */
.pdf-log-content .log-entry {
    background: #1E293B !important;
    border-left: 4px solid #2AB67A !important; /* Branded accent */
    margin-bottom: 10px !important;
    padding: 15px !important;
    border-radius: 4px !important;
}

.pdf-log-content .log-time {
    color: #2AB67A !important;
    font-weight: bold !important;
    display: block !important;
    margin-bottom: 5px !important;
}

.pdf-log-content p {
    color: #ffffff !important;
    margin: 0 !important;
}

/* Audit Trail Feature Card Styling */
.audit-feature {
    border: 1px solid #e2e8f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.audit-feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.1);
    border-color: var(--paystro-green);
}

.audit-feature h3 {
    color: var(--paystro-navy);
    margin-bottom: 15px;
    font-size: 1.25rem;
}

.audit-feature .card-icon {
    background: rgba(42, 182, 122, 0.1);
    color: var(--paystro-green);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.feature-list li {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.feature-list i {
    color: var(--paystro-green);
    margin-top: 3px;
}

.audit-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--paystro-navy);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Preview Button */
.btn-preview {
    background: transparent;
    border: 1px solid var(--paystro-green);
    color: var(--paystro-green);
    padding: 6px 15px;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-preview:hover {
    background: rgba(42, 182, 122, 0.1);
}

/* Modal Styling */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: #0F172A; /* Paystro Navy */
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #1E293B;
    overflow-y: auto;
    position: relative;
}

.modal-close {
    position: absolute;
    right: 20px; top: 15px;
    color: #94a3b8;
    font-size: 28px;
    cursor: pointer;
}

/* Demo Stepper Styling */
.demo-workflow-container {
    max-width: 1000px;
    margin: 40px auto;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.1);
    overflow: hidden;
}

.workflow-steps {
    display: flex;
    background: var(--paystro-navy);
    padding: 20px;
}

.step {
    flex: 1;
    text-align: center;
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 600;
    position: relative;
}

.step.active {
    color: var(--paystro-green);
}

.demo-viewport {
    padding: 40px;
    min-height: 500px;
}

.demo-sidebar {
    margin-left: 0px;
    min-height: 500px;
}

.demo-stage { display: none; }
.demo-stage.active {
    display: block;
    animation: fadeIn 0.5s ease forwards;
}

.btn-demo-link {
    display: inline-block;
    margin-top: 15px;
    color: var(--paystro-green);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: gap 0.3s;
}

.btn-demo-link:hover { gap: 15px; text-decoration: underline; }

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

@keyframes pulse-red {
    0% { box-shadow: 0 0 0 0 rgba(15, 23, 42, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(15, 23, 42, 0); }
    100% { box-shadow: 0 0 0 0 rgba(15, 23, 42, 0); }
}

.btn-override-pulse {
    animation: pulse-red 2s infinite;
    border: 2px solid #ef4444 !important; /* Subtle red border to hint at the violation */
}

.btn-back-features:hover {
    background: transparent !important;
    color: #0F172A !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(15, 23, 42, 0.1);
}

.btn-main-cta-standalone {
    text-decoration: none;
    background: #2AB67A;
    color: white;
    display: block; /* Makes it fill the container */
    text-align: center;
    padding: 20px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 10px 25px rgba(42, 182, 122, 0.3);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid #2AB67A;
}

.btn-main-cta-standalone:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(42, 182, 122, 0.4);
    background: #239a67;
    border-color: #239a67;
}

.btn-main-cta-standalone i {
    margin-right: 10px;
    font-size: 1.2rem;
}

#budget-progress {
    transition: width 0.4s ease, background-color 0.4s ease;
}

/* ==========================================================================
   LAPTOP DEMO STYLING
   ========================================================================== */

/* 1. The Scaling Container */
.demo-scaler {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 0; /* Space above and below the laptop */
    overflow-x: hidden;
}

.laptop-wrapper {
    transform: scale(0.9); /* Slightly larger for better readability */
    transform-origin: top center;
    margin-bottom: -120px;
    max-width: 1100px;
    width: 100%;
}

/* 2. The Internal Screen (The "Glass") */
.laptop-content {
    background: #fff;
    height: 650px; /* Shorter height to force buttons into view */
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    /* ADDING PADDING AT THE BOTTOM */
    padding-bottom: 40px;
}

.demo-badge-pill {
    display: inline-block;
    padding: 6px 16px;
    background: #64748b;
    color: white;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    margin-bottom: 0.7rem;
    margin-top: 1.5rem;
    max-width: 500px;
    mix-blend-mode: normal;
    opacity: 1;
}

/* 3. Ensure the Demo Container fills the space correctly */
.demo-workflow-container {
    height: 100%;
    display: flex;
    flex-direction: column;
    margin: 0 !important; /* Remove outer margins to fit the bezel */
    border-radius: 0 !important; /* Flush with browser chrome */
    box-shadow: none !important;
}

.demo-viewport {
    flex: 1;
    padding: 30px;
    padding-bottom: 60px; /* Extra padding so buttons don't touch the bezel */
}

/* 3. The Browser Address Bar (Chrome) */
.browser-header {
    background: #f1f5f9;
    height: 40px;
    display: flex;
    align-items: center;
    padding: 0 15px;
    border-radius: 8px 8px 0 0;
    border-bottom: 1px solid #e2e8f0;
}

.browser-dots { display: flex; gap: 6px; margin-right: 15px; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.red { background: #ff5f56; } .yellow { background: #ffbd2e; } .green { background: #27c93f; }

.browser-address-bar {
    background: white;
    flex: 1;
    height: 24px;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    padding: 0 10px;
    font-size: 11px;
    color: #94a3b8;
    font-family: sans-serif;
}

/* 4. The Laptop Base */
.laptop-base {
    height: 18px;
    background: #cbd5e1; /* Silver base */
    border-radius: 0 0 50px 50px;
    width: 106%;
    margin-left: -3%;
    position: relative;
    box-shadow: 0 12px 20px rgba(0,0,0,0.15);
}

/* On Desktop: keep the laptop wrapper. On Mobile: remove the scale and padding */
@media (max-width: 992px) {
    .laptop-wrapper {
        transform: none !important; /* Disables the JS scaling for mobile */
        width: 100% !important;
        padding: 10px !important;
        border: none !important;
        box-shadow: none !important;
        background: transparent !important;
    }

    .laptop-screen {
        border-radius: 12px;
        overflow: hidden;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    /* Change the 280px 1fr grid to a single column stack */
    .laptop-content .container > div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        display: flex !important;
        flex-direction: column;
        gap: 20px !important;
        margin-top: 20px !important;
    }
}

@media (max-width: 992px) {
    .demo-sidebar {
        width: 100%;
        position: static; /* If it was sticky, disable it for mobile stacking */
        margin-bottom: -300px;
        margin-top: -50px;
    }

    .demo-main-grid {
        grid-template-columns: 1fr !important;
    }

    /* Target the stat cards (the row with Total Payouts, etc.) */
    .laptop-content div[style*="display: grid"] {
        grid-template-columns: 1fr !important; /* Force cards to stack */
        gap: 15px !important;
    }

    /* Ensure tables can scroll horizontally if they are too wide */
    .laptop-content .table-responsive,
    .laptop-content table {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* 5. RESPONSIVENESS: Scaling for smaller screens */
@media (max-width: 1024px) {
    .laptop-wrapper { transform: scale(0.9); }
}

@media (max-width: 768px) {
    /* Hide the laptop frame on mobile to keep the demo usable */
    .laptop-screen { padding: 0; border-radius: 12px; }
    .laptop-base, .browser-header { display: none; }
    .laptop-content { height: auto; border: none; overflow: visible !important; }
}

/* ==========================================================================
   FEATURES PAGE STYLING
   ========================================================================== */

/* Feature Grid & Categories */
.feature-category-group {
    margin-bottom: 60px;
}

.category-header {
    margin-bottom: 40px;
    border-left: 4px solid #2AB67A;
    padding-left: 20px;
}

.category-header h2 {
    font-size: 1.8rem;
    color: #0F172A;
    margin-bottom: 5px;
}

.category-header p {
    color: #64748b;
    font-size: 1rem;
}


/* Feature Card Styling */
.feature-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 40px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    border-color: #2AB67A;
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.05);
}

.feature-card.highlighted {
    background: #0F172A;
    color: white;
}

.feature-card.highlighted h3,
.feature-card.highlighted p {
    color: white;
}

.feature-card.highlighted .card-icon {
    background: rgba(42, 182, 122, 0.2);
    color: #2AB67A;
}

/* Card Elements */
.card-icon {
    width: 60px;
    height: 60px;
    background: #f1f5f9;
    color: #0F172A;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 25px;
}

.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.feature-card p {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1; /* Pushes the button to the bottom */
}

.card-bullets {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.card-bullets li {
    font-size: 0.85rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0.8;
}

.card-bullets li::before {
    content: "•";
    color: #2AB67A;
    font-weight: bold;
}

/* View Demo Button */
.btn-card-demo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    background: #2AB67A;
    color: white;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    transition: 0.3s;
}

.btn-card-demo:hover {
    background: #239a67;
    gap: 15px; /* Visual "slide" effect for the arrow */
}

/* Status Badges (Beta / Soon) */
.status-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.beta {
    background: #e0e7ff; /* Soft Indigo */
    color: #4338ca;
    border: 1px solid #c7d2fe;
}

.status-badge.soon {
    background: #fef3c7; /* Soft Amber */
    color: #92400e;
    border: 1px solid #fde68a;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
}


/* Specific Platform Card adjustments */
.feature-grid.platforms .feature-card {
    padding: 30px;
    text-align: center;
    align-items: center;
}

.feature-grid.platforms .card-icon {
    margin-right: 0;
}

.feature-gridp.platforms {
    display: flex;
    flex-wrap: nowrap; /* Ensures items stay in one row */
    overflow-x: auto;  /* Optional: adds a scrollbar if content is too wide */
    flex-direction: row;
    gap: 30px; /* Space between every child div */
    justify-content: space-between;
}

.feature-gridp.platforms .feature-card {
    padding: 30px;
    text-align: center;
    align-items: center;
}

.feature-gridp.platforms .card-icon {
    margin-right: 0;
}

@media (max-width: 768px) {
    .feature-gridp.platforms {
        /* 1. Switch from horizontal to vertical */
        flex-direction: column;

        /* 2. Overide the 'nowrap' to allow vertical expansion */
        white-space: normal;

        /* 3. Ensure the container doesn't try to scroll sideways anymore */
        overflow-x: visible;

        /* 4. Optional: Add spacing between the stacked items */
        gap: 20px;
    }
}

/* Ensure icons in highlighted cards pop */
.feature-card.highlighted .status-badge.soon {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: rgba(255, 255, 255, 0.2);
}

/* Z-Pattern Alternating Layout */
.feature-item {
    padding: 50px 0;
    border-bottom: 1px solid #f1f5f9;
}

.feature-flex {
    display: flex;
    align-items: center;
    gap: 80px;
}


/* Content Styling */
.feature-icon-small {
    width: 40px;
    height: 40px;
    background: #f1f5f9;
    color: #2AB67A;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-content h2 {
    font-size: 2.2rem;
    color: #0F172A;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.feature-content p {
    font-size: 1.1rem;
    color: #64748b;
    margin-bottom: 25px;
    line-height: 1.7;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin-bottom: 35px;
}

.feature-list li {
    margin-bottom: 12px;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 12px;
}

.feature-list li::before {
    content: "✓";
    color: #2AB67A;
    font-weight: 900;
}

/* Image Placeholders */
.image-placeholder {
    background: #f8fafc;
    border: 2px dashed #e2e8f0;
    border-radius: 24px;
    height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    transition: 0.3s;
}

.image-placeholder i {
    font-size: 4rem;
    margin-bottom: 15px;
    opacity: 0.3;
}

.image-placeholder-glow {
    background: #0F172A;
    border-radius: 24px;
    height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #2AB67A;
    box-shadow: 0 20px 40px rgba(42, 182, 122, 0.15);
}

.image-placeholder-glow i { font-size: 4rem; margin-bottom: 15px; }

/* Category Dividers */
.category-divider {
    background: #f8fafc;
    padding: 40px 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.category-divider span {
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 2px;
    color: #94a3b8;
}

/* RESPONSIVE LOGIC */
@media (max-width: 992px) {
    .feature-flex,
    .feature-item:nth-child(even) .feature-flex {
        flex-direction: column !important;
        text-align: center;
        gap: 40px;
    }

    .feature-icon-small { margin: 0 auto 20px; }

    .feature-list li { justify-content: center; }

    .btn-card-demo { margin: 0 auto; }

    .image-placeholder, .image-placeholder-glow {
        height: 300px;
    }
}

/* Sticky Nav Container */
.features-sticky-nav {
    top: 70px; /* Offset to sit right below your main site header */
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px); /* Modern frosted glass effect */
    border-bottom: 1px solid #e2e8f0;
    padding: 30px 0;
    display: block;
    position: -webkit-sticky; /* Support for Safari */
    position: sticky;
    z-index: 1000; /* Must be higher than the content below */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.sticky-nav-list {
    display: flex;
    justify-content: center;
    gap: 30px;
    list-style: none;
    margin: 30px;
    padding: 0;

    /* These three lines enable horizontal scrolling on mobile */
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling for iPhone */
}

/* Hide the scrollbar for a cleaner look while keeping the scroll ability */
.sticky-nav-list::-webkit-scrollbar {
    display: none;
}

.sticky-nav-list a {
    text-decoration: none;
    color: #64748b;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 10px 0;
    transition: 0.3s;
    border-bottom: 2px solid transparent;
}

.sticky-nav-list a:hover,
.sticky-nav-list a.active {
    color: #2AB67A;
    border-bottom: 2px solid #2AB67A;
}
/* Ensure the active state is prominent */
.sticky-nav-list li a.active {
    color: var(--paystro-green) !important;
    border-bottom: 2px solid var(--paystro-green);
    opacity: 1;
}

/* Target the specific back link in the sticky nav */
.sticky-nav-list .back-home-link {
    color: var(--paystro-green) !important; /* Matches your current green */
    border-bottom: none !important;
    transition: color 0.3s ease, transform 0.3s ease;
    font-weight: 700;
}

/* The Hover State */
.sticky-nav-list .back-home-link:hover {
    color: var(--paystro-navy) !important; /* Switches to Navy */
    transform: translateX(-5px); /* Optional: tiny nudge to the left for the arrow */
}

@media (max-width: 768px) {
    .back-home-link {
        font-size: 11px;
        padding-right: 10px;
        border-right: 1px solid #e2e8f0;
    }

    .sticky-nav-list li a {
        font-size: 13px; /* Slightly smaller text to fit more links on screen */
    }
}

/* Ensure sections don't hide under the sticky nav when clicking links */
.category-divider, .feature-item {
    scroll-margin-top: 200px; /* Adjust this so the sticky nav doesn't overlap titles */
}

/* Hide on mobile for better space management, or use horizontal scroll */
@media (max-width: 768px) {
    .sticky-nav-list {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 5px;
        gap: 20px;
        -webkit-overflow-scrolling: touch;
    }
    .sticky-nav-list li {
        flex: 0 0 auto;
    }
}

    /* 1. Features Hero Section */
    .feature-hero {
        padding: 40px 0 0 0; /* Reduced bottom padding as image will provide space */
        color: var(--white);
        text-align: center; /* Centers all text elements */
        overflow: hidden; /* This prevents any internal glow or patterns from leaking out */
        width: 100%;
        margin-top: 0px;
        position: relative; /* Required for the pattern to anchor */
        background-color: var(--paystro-green);
        height: 300px;
    }

    .feature-hero::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;

        /* Use the image as a background */
        background-image: url('../img/paystro-green-wavy.jpg');
        background-size: cover;
        background-position: center;

        /* SUCCESS: This now points to the correct animation below */
        animation: kenBurnsWaves 10s ease-in-out infinite alternate;

        /* Performance & Blending */
        opacity: 0.7;
        mix-blend-mode: screen;

        /* Fades the edges so there are no hard corners */
        mask-image: radial-gradient(circle, rgba(0,0,0,1) 30%, rgba(0,0,0,0) 90%);
        -webkit-mask-image: radial-gradient(circle, rgba(0,0,0,1) 30%, rgba(0,0,0,0) 90%);

        pointer-events: none;
        z-index: 0;
    }

    /* THE KEN BURNS EFFECT - Keep this exactly as is */
    @keyframes kenBurnsWaves {
        0% {
            transform: scale(1.0) translate(0, 0);
        }
        100% {
            transform: scale(1.15) translate(2%, -2%);
        }
    }

    .feature-hero h1 {
        color: #0f2b6d;
        opacity: 1;
        position: relative;
        font-size: 3.2rem;
        margin-top: 10px;
        letter-spacing: -2px;
    }


    .feature-hero p {
        color: #64748b;
        opacity: 1;
        position: relative;
        font-size: 1.1rem;
        max-width: 700px;
        margin: 20px auto;
    }


    .features-badge-pill {
        display: inline-block;
        padding: 6px 16px;
        background: #64748b;
        color: white;
        border-radius: 100px;
        font-size: 0.8rem;
        font-weight: 700;
        letter-spacing: 0.2em;
        margin-bottom: 1.5rem;
        margin-top: 2.2rem;
        mix-blend-mode: normal;
        opacity: 1;
        position: relative;

    }

/* Ensures images stay within their columns and look crisp */
.feature-mockup {
    width: 100%;
    height: auto;
    border-radius: 20px; /* Matches the placeholder roundness */
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.1); /* Adds depth to your screenshots */
    display: block;
    transition: transform 0.3s ease;
}

/* Subtle hover effect for a premium feel */
.feature-mockup:hover {
    transform: translateY(-5px);
}

@media (max-width: 992px) {
    .feature-hero {
        height: 500px;
        }
    }


@media (max-width: 768px) {
.feature-hero {
    height: 500px;
    }
}


/* ==========================================================================
   SERVICES PAGE STYLES
   ========================================================================== */

    /* --- SERVICES SIDEBAR REFINEMENT --- */

    .services-sidebar {
        position: sticky;
        top: 120px;                       /* Ensures it doesn't hug the top of the screen and Keeps sidebar visible as you scroll */
        padding-right: 20px;              /* Internal padding for the sidebar itself */
        height: fit-content;
    }

    /* Make the active sidebar link pop with your brand green */
    .sidebar-nav .services-nav-link.active {
        color: var(--paystro-green) !important;
        background: rgba(42, 182, 122, 0.1); /* Subtle green tint */
        border-left: 3px solid var(--paystro-green);
        font-weight: 700;
        transition: all 0.3s ease;
    }

    .sidebar-nav {
        display: flex;
        flex-direction: column; /* Force links to sit vertically */
        gap: 8px;
    }

    .sidebar-nav a {
        color: var(--paystro-navy) !important;
    }

    .nav-group-title {
        font-size: 0.7rem;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 1.5px;
        color: #94a3b8;
        margin: 25px 0 10px 15px;
    }

    .services-nav-link.active {
        color: var(--paystro-green);
        background: rgba(42, 182, 122, 0.08); /* Light green tint */
        border-right: 3px solid var(--paystro-green);
        font-weight: 700;
    }

    .services-nav-link {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 14px 20px;
        text-decoration: none;
        color: var(--paystro-navy);
        font-weight: 600;
        border-radius: 10px;
        transition: all 0.3s ease;
        border-left: 4px solid transparent;
        background: transparent;
    }

    .services-nav-link i {
        width: 20px;
        font-size: 1.1rem;
        color: #94a3b8;
    }

    /* Hover & Active States */
    .services-nav-link:hover {
        background: #f1f5f9;
        color: var(--paystro-green);
    }

    .services-nav-link.active {
        background: rgba(42, 182, 122, 0.1);
        color: var(--paystro-green);
        border-left-color: var(--paystro-green);
    }

    .services-nav-link.active i {
        color: var(--paystro-green);
    }


    /* --- SERVICES GRID SPACING --- */

.services-badge-pill {
    display: inline-block;
    padding: 6px 16px;
    background: #64748b;
    color: white;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    margin-bottom: 1.5rem;
    margin-top: 2.2rem;
    mix-blend-mode: normal;
    opacity: 1;
    position: relative;

}

    /* 1. Services Hero Section */
.services-hero {
    padding: 40px 0 0 0; /* Reduced bottom padding as image will provide space */
    color: var(--white);
    text-align: center; /* Centers all text elements */
    overflow: hidden; /* This prevents any internal glow or patterns from leaking out */
    width: 100%;
    margin-top: 0px;
    position: relative; /* Required for the pattern to anchor */
    background-color: var(--paystro-green);
    height: 300px;
}

.services-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    /* Use the image as a background */
    background-image: url('../img/paystro-green-wavy.jpg');
    background-size: cover;
    background-position: center;

    /* SUCCESS: This now points to the correct animation below */
    animation: kenBurnsWaves 10s ease-in-out infinite alternate;

    /* Performance & Blending */
    opacity: 0.7;
    mix-blend-mode: screen;

    /* Fades the edges so there are no hard corners */
    mask-image: radial-gradient(circle, rgba(0,0,0,1) 30%, rgba(0,0,0,0) 90%);
    -webkit-mask-image: radial-gradient(circle, rgba(0,0,0,1) 30%, rgba(0,0,0,0) 90%);

    pointer-events: none;
    z-index: 0;
}

/* THE KEN BURNS EFFECT - Keep this exactly as is */
@keyframes kenBurnsWaves {
    0% {
        transform: scale(1.0) translate(0, 0);
    }
    100% {
        transform: scale(1.15) translate(2%, -2%);
    }
}

    .services-page-container {
        display: grid !important;
        visibility: visible !important;
        opacity: 1 !important;
        grid-template-columns: 280px 1fr; /* Sidebar width vs Flexible Content */
        gap: 100px;                       /* Increased gap from 60px to 100px for more air */
        padding: 60px 0;                  /* More vertical padding */
        align-items: start;
        background: var(--white); /* Or var(--gray-bg) */
        margin-top: -20px;
    }

    /* --- CONTENT AREA REFINEMENT --- */
    .services-content {
        max-width: 850px;
        width: 100%;             /* CRITICAL: Ensures the container doesn't have 0 width */
        display: flex;
        flex-direction: column;
        gap: 50px;
        top: 0px;
        margin-top: 0px;
       /* Ensure the container itself is never hidden */
        opacity: 1 !important;
        visibility: visible !important;
        position: relative;
        z-index: 1;
    }


    /* ---SERVICE SECTION REFINEMENT--- */

    .services-item {
        margin-top: 40px;             /* More space between different feature sections */
        scroll-margin-top: 120px;         /* Ensures smooth scroll doesn't hit the header */
    }

    /* Styling for the Sub-title Pitch */
   .services-lead {
        font-size: 1.25rem; /* Larger than standard text */
        font-weight: 600;   /* Semi-bold */
        color: var(--paystro-green); /* Using Paystro Brand Green */
        margin-bottom: 15px;
        line-height: 1.4;
        letter-spacing: -0.01em;
    }

    .services-list {
        list-style: none;
        padding: 0;
        margin: 20px 0;
    }

    .services-list li {
        font-size: 0.9rem;
        color: var(--text-light);
        margin-bottom: 12px;
        margin-left: 30px;
        display: flex;
        align-items: flex-start;
        gap: 10px;
    }

    .services-list i {
        color: var(--paystro-green);
        margin-top: 3px;
    }

    /* Ensure the main description has some breathing room */
    .services-text p:not(.services-lead) {
        color: var(--text-light);
        font-size: 1.05rem;
    }

    .services-text h2 {
        font-size: 2.2rem;
        margin-bottom: 20px;
        color: var(--paystro-navy-lighter)!important;
    }

    .services-image img {
        width: 100%;
        height: auto;
        object-fit: cover;
        border-radius: 12px;
        box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08); /* Subtle Navy-tinted shadow */
    }

    /* Responsive Logic for Tablet and Mobile */
    @media (max-width: 992px) {
        /* 1. Reset the grid to a single column stack */
        .services-page-container {
            grid-template-columns: 1fr;
            gap: 40px;          /* Reduce the massive 100px gap for mobile */
            padding: 40px 20px; /* Add side padding so text doesn't touch screen edges */
        }

        .services-hero {
            height: 400px;
        }

        .services-item {
            margin-top: 20px;             /* More space between different feature sections */
        }

        /* 2. Hide the sidebar navigation to save space on mobile */
        .services-sidebar {
            display: none;
        }

        /* 3. Ensure content takes full available width */
        .services-content {
            max-width: 100%;
            width: 100%;
            margin: 0;
        }

        /* 4. Adjust feature titles and text for smaller screens */
        .services-text h2 {
            font-size: 1.8rem;
            text-align: center; /* Optional: center headers for better mobile look */
        }

        .services-text p {
            text-align: center;
            font-size: 1rem;
        }

        /* 5. Center the checkmark list on mobile */
        .services-list {
            display: inline-block;
            text-align: left;
            width: 100%;
            padding-left: 10%; /* Slight offset to look centered but remain readable */
        }

        /* 6. Ensure images don't overflow */
        .services-image img {
            margin-top: 20px;
            border-radius: 12px;
        }
    }



/* --- USE CASE SECTIONS --- */
.use-case-item {
    padding: 120px 0;
    overflow: hidden;
}

/* Subtle Green with Minimalist Geometry */
.use-case-item.alternate-bg {
    background-color: #F1FDF8;
    background-image: radial-gradient(#2AB67A15 1px, transparent 1px);
    background-size: 32px 32px; /* Clean, minimal grid pattern */
}

.use-case-flex {
    display: flex;
    align-items: center;
    gap: 100px;
}

/* Z-Pattern logic */
.use-case-item:nth-child(even) .use-case-flex {
    flex-direction: row-reverse;
}

/* Image & Floating Quote Container */
.image-wrapper {
    position: relative;
    width: 100%;
}

.main-use-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 30px;
    box-shadow: 0 40px 80px rgba(15, 23, 42, 0.08);
}

/* --- QUOTES ON THE LEFT SIDE --- */

/* --- UPDATED: POSITION & SLIDE-IN ANIMATION --- */

.floating-quote-card {
    position: absolute;
    /* --- HEIGHT ADJUSTMENT --- */
    bottom: -50px;         /* Increase this (e.g., 50px) to move the quote higher up the image */
    left: -20px;          /* Consistently on the left */
    right: auto;

    background: white;
    padding: 20px 30px;
    border-radius: 20px;
    max-width: 320px;
    box-shadow: 0 25px 50px rgba(15, 23, 42, 0.12);
    border-left: 5px solid var(--paystro-green);
    z-index: 2;

    /* Prepare for animation: Start invisible and shifted left */
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* When the parent section is 'revealed' via scroll */
.use-case-item.reveal.active .floating-quote-card {
    opacity: 1;
    transform: translateX(0);
    /* Slight delay so the image appears first, then the quote slides over it */
    transition-delay: 0.3s;
}

/* Ensure even sections stay on the left side too */
.use-case-item:nth-child(even) .floating-quote-card {
    right: auto;
    left: -20px;
}

/* REMOVE OR COMMENT OUT THIS SECTION:
   This forces even quote sections to the left.
*/
/* .use-case-item:nth-child(even) .floating-quote-card {
    right: auto;
    left: -20px;
}
*/

.floating-quote-card i {
    color: var(--paystro-green);
    font-size: 1.5rem;
    margin-bottom: 15px;
    display: block;
}

.floating-quote-card p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--paystro-navy);
    font-weight: 500;
    margin-bottom: 10px;
}

.quote-author {
    display: block;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
}

/* Typography & Content */
.use-case-content {
    flex: 1;
}

.use-category {
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--paystro-green);
    font-size: 0.8rem;
    margin-bottom: 15px;
    display: block;
}

.use-case-content h2 {
    font-size: 2.8rem;
    color: var(--paystro-navy-lighter);
    line-height: 1.1;
    letter-spacing: -0.04em; /* Tight, premium international spacing */
    margin-bottom: 25px;
}

.use-case-content p {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--text-light);
    margin-bottom: 30px;
    letter-spacing: -0.01em;
}

.use-bullets {
    list-style: none;
    padding: 0;
}

.use-bullets li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    font-weight: 600;
    color: var(--paystro-navy);
}

.use-bullets li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--paystro-green);
    font-weight: 900;
}

/* Footer Callout */
.many-more-callout {
    text-align: center;
    padding: 80px 0;
    background: #F8FAFC;
    border-top: 1px solid #e2e8f0;
}

.many-more-callout p {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--paystro-navy);
    margin-bottom: 15px;
    letter-spacing: -0.02em;
}

/* RESPONSIVE HANDLING */
@media (max-width: 992px) {
    .use-case-flex, .use-case-item:nth-child(even) .use-case-flex {
        flex-direction: column;
        gap: 60px;
        text-align: center;
    }
    .floating-quote-card {
        position: relative;
        bottom: 0;
        left: 0 !important;
        margin: -40px auto 0;
        max-width: 90%;
        transform: translateY(20px); /* Slide up on mobile instead of side */
    }
    .use-case-item.reveal.active .floating-quote-card {
        transform: translateY(0);
    }
    .main-use-image {
        height: 350px;
    }
}

.many-more-callout {
    text-align: center;
    padding: 100px 0;
    background: #F8FAFC;
    border-top: 1px solid #e2e8f0;
}

.many-more-callout p {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--paystro-navy);
    margin-bottom: 35px;
    letter-spacing: -0.02em;
    font-family: var(--font-main);
}

/* THE NEW BUTTON STYLE */
.btn-capabilities {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    padding: 18px 40px;
    border: 2px solid var(--paystro-green);
    background-color: var(--paystro-green);
    color: var(--white);
    border-radius: 50px; /* Modern pill shape */
    font-weight: 800;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1.5px; /* International high-end spacing */
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
}

.btn-capabilities .btn-arrow {
    transition: transform 0.3s ease;
}

/* Hover States */
.btn-capabilities:hover {
    background-color: var(--paystro-navy);
    color: white;
    box-shadow: 0 15px 30px rgba(15, 23, 42, 0.15);
    transform: translateY(-3px);
}

.btn-capabilities:hover .btn-arrow {
    transform: translateX(5px); /* Arrow moves slightly to the right */
}

/* Responsive adjustment */
@media (max-width: 768px) {
    .btn-capabilities {
        padding: 15px 30px;
        font-size: 0.85rem;
        width: 100%;
        justify-content: center;
    }
}

/* --- CHAT BUTTON --- */

.paystro-chat-wrapper {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    font-family: var(--font-main);

}

.chat-bubble {
    width: 60px;
    height: 60px;
    background: var(--paystro-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(42, 182, 122, 0.3);
    position: relative;
    transition: transform 0.3s ease;
}

.chat-bubble:hover { transform: scale(1.1); }

.chat-status {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 12px;
    height: 12px;
    background: #4ade80;
    border: 2px solid white;
    border-radius: 50%;
}

.chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 320px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.15);
    overflow: hidden;

    /* Animation setup */
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px); /* Small slide-up effect */
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); /* Professional smooth curve */
}

.chat-window.active { display: block; animation: slideUp 0.4s ease; }

/* The 'Visible' state */
#chatWindow.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.chat-header {
    background: var(--paystro-navy);
    color: white;
    padding: 20px;
}

.chat-header h4 { margin: 0; font-size: 1rem; }
.chat-header p { margin: 0; font-size: 0.75rem; opacity: 0.7; }

/* Style for the Close Button */
.wp-close-btn {
    position: absolute;
    top: 10px;
    right: 12px;
    background: none;
    border: none;
    color: white; /* Matches the green header text/icon color */
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s;
    z-index: 10;
}

.wp-close-btn:hover {
    opacity: 1;
}

.chat-body { padding: 20px; }
.chat-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    margin-top: 10px;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.9rem;
    transition: 0.3s;
}

.chat-btn.whatsapp { background: #25D366; color: white; }
.chat-btn.demo { background: var(--gray-bg); color: var(--paystro-navy); }

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

/* 3. Adjust for Mobile */
@media (max-width: 768px) {
    .paystro-chat-wrapper {
        right: 15px;
        bottom: 20px;
    }
}

/* 1. Ensure the container doesn't cut off the scaled content */
.feature-image {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow: visible; /* Allow tooltips/hotspots to show */
    perspective: 1000px; /* Optional: adds depth */

}

/* FLIP LOGIC: Every second feature will have image on right */
.feature-item:nth-child(even) .feature-flex {
    flex-direction: row-reverse;
}

.feature-image, .feature-content {
    flex: 1;
}


/* 2. Update the Mockup Base */
.dashboard-mockup {
    background: #020617;
    border-radius: 12px;
    display: flex;
    overflow: hidden;
    height: 400px; /* Keep desktop height */
    width: 100%;   /* Fill the container */
    min-width: 800px; /* Preserve the "Desktop" layout internally */
    box-shadow: 0 40px 100px rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.05);
    transition: transform 0.3s ease;
    transform-origin: top center;
    justify-content: center; /* Centers horizontally */
    align-items: center;     /* Centers vertically */
}

.dashboard-mockup img {
    width: 100%;
    height: 100%;
border-radius: 12px;

}

/* 3. The Responsive Scaling Magic */
@media (max-width: 1100px) {

    .feature-image {
        /* We calculate the height dynamically because scaling
           doesn't update the parent's height naturally */
        height: 320px;
        margin-bottom: -230px;
    }

    .dashboard-mockup {
        transform: scale(0.8);
    }
}

@media (max-width: 768px) {
    .feature-image {
        height: 240px;
    }
    .dashboard-mockup {
        transform: scale(0.6);
        min-width: 700px; /* Slightly narrower internal width for mobile */
    }
}

@media (max-width: 480px) {
    .feature-image {
        height: 160px;
    }
    .dashboard-mockup {
        transform: scale(0.4);
        min-width: 600px;
    }
}


/* Sidebar Styling */
.mock-sidebar {
    width: 60px;
    background: #0F172A;
    padding: 20px 10px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    border-right: 1px solid rgba(255,255,255,0.05);
    margin-top: -180px;
}

.mock-nav-item {
    height: 30px;
    width: 30px;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    margin: 0 auto;
}

.mock-nav-item.active {
    background: var(--paystro-green);
    box-shadow: 0 0 15px rgba(42, 182, 122, 0.4);
}

/* Main Content Area */
.mock-main {
    flex-grow: 1;
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mock-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mock-logo {
    width: 100%;
    max-width: 180px; /* Prevents the logo from being too huge */
    margin-bottom: 20px;
}

.mock-logo img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain; /* Keeps the logo proportions perfect */
}

.mock-profile h3 {
    color: white;

}

.mock-search {
    height: 12px;
    width: 150px;
    background: rgba(255,255,255,0.05);
    border-radius: 4px;
}

/* Stats Cards */
.mock-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.mock-stat-card {
    background: rgba(255,255,255,0.03);
    padding: 15px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.05);
}

.mock-stat-card.highlight {
    background: rgba(42, 182, 122, 0.05);
    border-color: rgba(42, 182, 122, 0.2);
}

.mock-stat-card .label {
    display: block;
    font-size: 0.65rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.mock-stat-card .value {
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    margin-top: 5px;
}

/* Table View */
.mock-table {
    background: rgba(255,255,255,0.02);
    border-radius: 8px;
    padding: 10px;
}

.mock-table-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    padding: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    font-size: 0.75rem;
    color: #cbd5e1;
}

.mock-table-row.header { font-weight: 700; color: #64748b; }

.badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.65rem;
    width: fit-content;
}

.badge.success { background: rgba(34, 197, 94, 0.1); color: #4ade80; }
.badge.warning { background: rgba(234, 179, 8, 0.1); color: #facc15; }

/* Interactive Animation */
.pulse-dot {
    width: 8px;
    height: 8px;
    background: #fbbf24;
    border-radius: 50%;
    margin-top: 5px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(251, 191, 36, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(251, 191, 36, 0); }
}


/* --- SCHEDULED DASHBOARD SPECIFICS --- */
.scheduled-view .mock-h4 {
    color: white;
    margin: 5px 0 0 0;
    font-size: 1rem;
}

.mock-breadcrumb {
    font-size: 0.6rem;
    color: var(--paystro-green);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Timeline/Calendar Style */
.mock-timeline {
    display: flex;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.03);
    padding: 15px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.timeline-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #64748b;
    font-size: 0.7rem;
}

.timeline-day.today { color: white; font-weight: 700; }

.timeline-day .dot {
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.timeline-day .dot.active { background: var(--paystro-green); box-shadow: 0 0 10px var(--paystro-green); }
.timeline-day .dot.warning { background: #fbbf24; animation: pulse-warning 2s infinite; }

/* Schedule Cards */
.mock-schedule-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.schedule-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s ease;
}

.schedule-card:hover { transform: translateX(5px); background: rgba(255, 255, 255, 0.04); }

.schedule-card.highlight-border { border-left: 3px solid #fbbf24; }

.sched-target { color: white; font-size: 0.85rem; font-weight: 600; margin: 0; }
.sched-meta { color: #64748b; font-size: 0.7rem; margin: 2px 0 0 0; }

.schedule-amount { text-align: right; display: flex; flex-direction: column; gap: 5px; }
.schedule-amount .amt { color: white; font-weight: 700; font-size: 0.9rem; }

.status-pill {
    font-size: 0.6rem;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.status-pill.queued { background: rgba(255,255,255,0.05); color: #94a3b8; }
.status-pill.pending { background: rgba(251, 191, 36, 0.1); color: #fbbf24; }

@keyframes pulse-warning {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
    100% { transform: scale(1); opacity: 1; }
}

/* --- SMART BUDGETING DASHBOARD SPECIFICS --- */
.budgeting-view .mock-utilization {
    background: rgba(42, 182, 122, 0.15);
    color: var(--paystro-green);
    font-size: 0.7rem;
    padding: 5px 12px;
    border-radius: 50px;
    font-weight: 700;
}

.budget-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.budget-item {
    background: rgba(255, 255, 255, 0.02);
    padding: 5px 0;
}

.budget-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.budget-meta .dept { color: white; font-size: 0.85rem; font-weight: 600; }
.budget-meta .perc { color: #94a3b8; font-size: 0.8rem; }

/* Progress Bars */
.progress-container {
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-bar {
    height: 100%;
    border-radius: 10px;
    transition: width 1s ease-in-out;
}

.progress-bar.success { background: var(--paystro-green); box-shadow: 0 0 10px rgba(42, 182, 122, 0.3); }
.progress-bar.warning { background: #ef4444; box-shadow: 0 0 10px rgba(239, 68, 68, 0.3); }

.budget-footer {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    color: #64748b;
}

.status-text.critical { color: #f87171; font-weight: 700; }
.status-text.healthy { color: #4ade80; }

/* Smart Alert Box */
.smart-alert {
    margin-top: 10px;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 12px;
    display: flex;
    gap: 12px;
    align-items: center;
}

.smart-alert i { color: var(--paystro-green); font-size: 1.1rem; }
.alert-text { font-size: 0.75rem; color: #cbd5e1; line-height: 1.4; }
.alert-text strong { color: white; display: block; }

/* --- MULTI-LEVEL APPROVALS SPECIFICS --- */
.approvals-view .mock-security-tag {
    font-size: 0.65rem;
    color: #4ade80;
    background: rgba(74, 222, 128, 0.1);
    padding: 4px 10px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Approval Flow Styling */
.approval-flow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 10px 0;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    position: relative;
}

.step-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    border: 2px solid rgba(255,255,255,0.1);
}

.step.completed .step-icon { background: var(--paystro-green); color: white; border-color: var(--paystro-green); }
.step.pending .step-icon { border-color: #fbbf24; color: #fbbf24; }
.step.locked .step-icon { background: rgba(255,255,255,0.05); color: #64748b; }

.step-details { display: flex; flex-direction: column; }
.step-details .role { font-size: 0.6rem; color: #94a3b8; text-transform: uppercase; }
.step-details .user { font-size: 0.75rem; color: white; font-weight: 600; }

.step-connector { height: 2px; flex-grow: 1; background: rgba(255,255,255,0.05); margin: 0 10px; margin-bottom: 45px; }
.step-connector.active { background: linear-gradient(90deg, var(--paystro-green), #fbbf24); }

/* Summary & Buttons */
.payout-summary-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 20px;
    margin-top: 10px;
}

.summary-row { display: flex; justify-content: space-between; margin-bottom: 15px; }
.s-label { color: #94a3b8; font-size: 0.8rem; }
.s-value { color: white; font-weight: 700; font-size: 1.1rem; }

.approval-cta-group { display: flex; gap: 10px; }
.btn-approve-mock {
    background: var(--paystro-green);
    color: white;
    border: none;
    padding: 12px;
    flex: 2;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.85rem;
}

.btn-reject-mock {
    background: rgba(255,255,255,0.05);
    color: white;
    border: 1px solid rgba(255,255,255,0.1);
    padding: 12px;
    flex: 1;
    border-radius: 8px;
    font-size: 0.85rem;
}

/* Action Pulse */
.action-required-pulse {
    position: absolute;
    top: -25px;
    white-space: nowrap;
    background: #fbbf24;
    color: #000;
    font-size: 0.6rem;
    font-weight: 900;
    padding: 2px 8px;
    border-radius: 4px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* --- AUDIT LOGS DASHBOARD SPECIFICS --- */
.logs-view .export-btn {
    font-size: 0.7rem;
    color: white;
    background: rgba(255, 255, 255, 0.1);
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.log-search-bar {
    background: rgba(15, 23, 42, 0.4);
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 10px;
}

.mock-search-input {
    font-size: 0.7rem;
    color: #475569;
}

/* Audit Table Styles */
.audit-table {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.audit-row {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    padding: 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.audit-row.highlight-alert {
    border-left: 3px solid #f87171;
    background: rgba(248, 113, 113, 0.05);
}

.timestamp {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.7rem;
    color: #64748b;
    width: 90px;
}

.event-desc {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.event-desc strong { color: white; font-size: 0.8rem; }
.event-desc code, .event-desc .reason {
    font-size: 0.65rem;
    color: var(--paystro-green);
    margin-top: 2px;
}

.event-desc .reason { color: #f87171; }

.user-pill {
    width: 28px;
    height: 28px;
    background: #334155;
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-pill.manager { background: var(--paystro-green); }

.ledger-footer {
    margin-top: auto;
    font-size: 0.6rem;
    color: #475569;
    font-family: monospace;
    text-align: right;
    padding-top: 10px;
}

/* --- SMART TAGGING DASHBOARD SPECIFICS --- */
.tagging-view .sync-badge {
    font-size: 0.65rem;
    color: var(--paystro-green);
    background: rgba(42, 182, 122, 0.1);
    padding: 5px 12px;
    border-radius: 50px;
    border: 1px solid rgba(42, 182, 122, 0.2);
}

.tag-cloud {
    display: flex;
    gap: 8px;
    margin: 5px 0;
}

.tag-pill {
    font-size: 0.65rem;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 10px;
    border-radius: 6px;
}

.tag-pill.active {
    background: var(--paystro-green);
    color: white;
}

/* Transaction Rows */
.transaction-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.txn-row {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    align-items: center;
    padding: 12px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.txn-row.auto-labeled {
    background: rgba(42, 182, 122, 0.03);
    border-color: rgba(42, 182, 122, 0.1);
}

.vendor { display: block; color: white; font-size: 0.8rem; font-weight: 600; }
.details { display: block; color: #64748b; font-size: 0.65rem; }

.txn-tags { display: flex; flex-wrap: wrap; gap: 5px; }

/* Tag Colors */
.pill-tag {
    font-size: 0.6rem;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 700;
}
.pill-tag.logistics { background: rgba(59, 130, 246, 0.1); color: #60a5fa; }
.pill-tag.project { background: rgba(168, 85, 247, 0.1); color: #c084fc; }
.pill-tag.ops { background: rgba(244, 63, 94, 0.1); color: #fb7185; }
.pill-tag.tech { background: rgba(20, 184, 166, 0.1); color: #2dd4bf; }

.ai-suggest {
    font-size: 0.6rem;
    color: var(--paystro-green);
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 2px;
}

.txn-amount {
    text-align: right;
    color: white;
    font-weight: 700;
    font-size: 0.85rem;
}

/* --- ADVANCED FILTERING DASHBOARD SPECIFICS --- */
.filtering-view .results-counter {
    font-size: 0.65rem;
    color: #94a3b8;
    font-weight: 600;
}

.filter-builder {
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 12px;
}

.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.filter-chip {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.65rem;
    color: white;
    display: flex;
    align-items: center;
    gap: 6px;
}

.filter-chip .f-label { color: #64748b; }
.filter-chip.highlight { border-color: var(--paystro-green); color: var(--paystro-green); }
.filter-chip i { font-size: 0.5rem; cursor: pointer; opacity: 0.6; }

.add-filter-btn {
    font-size: 0.65rem;
    color: var(--paystro-green);
    cursor: pointer;
    font-weight: 700;
    margin-left: 5px;
}

/* Data Grid Styles */
.data-grid {
    display: flex;
    flex-direction: column;
    margin-top: 5px;
}

.grid-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    padding: 10px;
    font-size: 0.6rem;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.grid-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    padding: 12px 10px;
    border-bottom: 1px solid rgba(255,255,255,0.03);
    align-items: center;
    transition: background 0.2s;
}

.grid-row:hover { background: rgba(255,255,255,0.02); }

.grid-cell { font-size: 0.75rem; color: #cbd5e1; }
.grid-cell.main-text { color: white; font-weight: 500; }
.grid-cell.bold { color: white; font-weight: 700; font-family: monospace; }
.text-right { text-align: right; }

/* Filter Pills */
.pill-blue { background: rgba(59, 130, 246, 0.1); color: #60a5fa; padding: 2px 6px; border-radius: 4px; font-size: 0.6rem; }
.pill-purple { background: rgba(168, 85, 247, 0.1); color: #c084fc; padding: 2px 6px; border-radius: 4px; font-size: 0.6rem; }
.pill-gray { background: rgba(255, 255, 255, 0.05); color: #94a3b8; padding: 2px 6px; border-radius: 4px; font-size: 0.6rem; }

.filter-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.save-search { font-size: 0.65rem; color: var(--paystro-green); cursor: pointer; }

.export-options { font-size: 0.6rem; color: #475569; }
.export-options code { background: rgba(255,255,255,0.05); padding: 2px 4px; border-radius: 3px; margin-left: 4px; color: #94a3b8; }

/* --- CUSTOM EXPORTS DASHBOARD SPECIFICS --- */
.exports-view .sync-status {
    font-size: 0.6rem;
    color: var(--paystro-green);
    font-weight: 700;
}

.export-options-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 15px;
}

.export-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 12px;
    border-radius: 10px;
    position: relative;
    cursor: pointer;
    transition: 0.3s;
}

.export-card.active {
    background: rgba(42, 182, 122, 0.05);
    border-color: var(--paystro-green);
}

.export-type {
    display: flex;
    align-items: center;
    gap: 8px;
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.export-type i { color: var(--paystro-green); }

.export-desc {
    font-size: 0.6rem;
    color: #64748b;
    line-height: 1.3;
}

.export-check {
    position: absolute;
    top: 8px;
    right: 8px;
    color: var(--paystro-green);
    font-size: 0.8rem;
}

/* Mapping Preview Area */
.mapping-preview {
    background: rgba(15, 23, 42, 0.5);
    border-radius: 8px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.mapping-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: monospace;
    font-size: 0.65rem;
}

.paystro-field { color: #94a3b8; }
.erp-field { color: white; font-weight: 700; }
.mapping-row i { color: var(--paystro-green); opacity: 0.5; }

.btn-download-mock {
    width: 100%;
    background: white;
    color: var(--paystro-navy);
    border: none;
    padding: 10px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.8rem;
    cursor: pointer;
    transition: 0.3s;
}

.btn-download-mock:hover {
    background: var(--paystro-green);
    color: white;
}


/* --- MINI FEATURE GRID --- */
.mini-feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.mini-card {
    background: white;
    padding: 30px;
    border-radius: 16px;
    border: 1px solid rgba(15, 23, 42, 0.03);
    transition: all 0.3s ease;
}

.mini-card:hover {
    border-color: var(--paystro-green);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.mini-card i {
    font-size: 1.5rem;
    color: var(--paystro-green);
    margin-bottom: 20px;
    display: block;
}

.mini-card h4 {
    color: var(--paystro-navy);
    font-size: 1.1rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.mini-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .mini-feature-grid {
        grid-template-columns: 1fr;
    }
}

/* --- FOOTER SOCIAL LINKS --- */
.social-links {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05); /* Subtle dark circle */
    color: rgba(255, 255, 255, 0.7); /* Muted icon color */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links a i {
    font-size: 1.1rem;
}

/* Hover Effect */
.social-links a:hover {
    background: var(--paystro-green);
    color: white;
    transform: translateY(-5px);
    border-color: var(--paystro-green);
    box-shadow: 0 10px 20px rgba(42, 182, 122, 0.3); /* Green glow */
}

/* Optional: Subtle pulse animation for the first icon to draw attention */
.social-links a:hover i {
    animation: iconBounce 0.3s ease-in-out;
}

@keyframes iconBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* --- LEGAL & TERMS DOCUMENT LAYOUT --- */

/* 1. Grid structure for sidebar + main content */
.legal-grid {
    display: grid;
    grid-template-columns: 280px 1fr; /* Sidebar width + remaining space */
    gap: 60px;
    margin-top: 40px;
    align-items: flex-start;
}

/* 2. Sticky Sidebar Navigation */
.legal-sidebar {
    position: sticky;
    top: 120px; /* Adjust based on your header height */
    z-index: 10;
}

.sticky-legal-nav {
    background: #ffffff;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.sticky-legal-nav h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
    margin-bottom: 20px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 10px;
}

.sticky-legal-nav ul {
    list-style: none;
    padding: 0;
}

.sticky-legal-nav ul li {
    margin-bottom: 12px;
}

.sticky-legal-nav ul li a {
    text-decoration: none;
    color: var(--paystro-navy);
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: block;
}

.sticky-legal-nav ul li a:hover {
    color: var(--paystro-green);
    transform: translateX(5px);
}

/* 3. Document Content Formatting */
.legal-document {
    color: var(--paystro-navy);
    line-height: 1.8;
}

.legal-document h2 {
    font-size: 2.2rem;
    margin-bottom: 30px;
    color: var(--paystro-navy);
}

.legal-block {
    margin-bottom: 60px;
    scroll-margin-top: 140px; /* Offset so header doesn't hide titles when jumping */
}

.legal-block h3 {
    font-size: 1.4rem;
    color: var(--paystro-navy);
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 15px;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 800;
}

.legal-block h4 {
    font-size: 1.1rem;
    margin: 20px 0 10px 0;
    color: var(--paystro-navy-lighter);
}

.legal-block p {
    margin-bottom: 20px;
    color: #475569; /* Slightly softer navy for long reading */
}

.legal-block ul, .legal-block ol {
    margin-bottom: 25px;
    padding-left: 25px;
}

.legal-block li {
    margin-bottom: 12px;
    color: #475569;
    list-style-type: disc;
}

/* 4. Special Callouts (Notice Boxes) */
.legal-notice {
    background: #f8fafc;
    padding: 30px;
    border-left: 5px solid var(--paystro-green);
    margin: 30px 0;
    font-size: 0.95rem;
    border-radius: 0 8px 8px 0;
}

.legal-notice strong {
    color: var(--paystro-navy);
    display: block;
    margin-bottom: 10px;
}

/* 5. Mobile Responsiveness */
@media (max-width: 1024px) {
    .legal-grid {
        grid-template-columns: 1fr; /* Stack sidebar and content */
        gap: 40px;
    }

    .legal-sidebar {
        position: relative; /* Remove sticky on mobile */
        top: 0;
    }

    .sticky-legal-nav {
        display: none; /* Usually hidden on mobile to save vertical space */
    }

    .legal-document h2 {
        font-size: 1.8rem;
    }
}

/* 6. Print Styles */
@media print {
    .legal-sidebar, .faq-hero, header, footer {
        display: none !important;
    }
    .legal-grid {
        display: block;
    }
    .legal-document {
        width: 100%;
    }
}

.qb-hero {
    background: #F8FAFC;
    padding: 60px 0;
    text-align: center;
}

.qb-section {
    margin-bottom: 60px;
}

.qb-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.qb-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.qb-card i {
    font-size: 2rem;
    color: #2AB67A;
    margin-bottom: 15px;
}

.qb-steps {
    padding-left: 20px;
}

.qb-steps li {
    margin-bottom: 15px;
    font-size: 1.05rem;
}

.qb-terms ul {
    padding-left: 20px;
}

.qb-terms li {
    margin-bottom: 10px;
}

.qb-cta {
    text-align: center;
    background: #F8FAFC;
    padding: 50px 30px;
    border-radius: 16px;
    margin-top: 40px;
}

.qb-connect-btn img {
    max-width: 280px;
    height: auto;
    transition: transform 0.2s ease;
}

.qb-connect-btn:hover img {
    transform: scale(1.03);
}

.small-text {
    margin-top: 15px;
    color: #64748b;
    font-size: 0.9rem;
}
