/* ============================================
   iPaymer.com — Modern Website Styles
   Color Palette: Navy / Deep Blue / Teal / Gold
   ============================================ */

/* ============================================
   INTRO SPLASH SCREEN
   ============================================ */
.splash {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.splash-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #0a0a1a 0%, #1a1a2e 40%, #0f3460 100%);
}

.splash-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.splash-logo-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

/* Logo reveal — clips from left to right */
.splash-logo-reveal {
    overflow: hidden;
    position: relative;
}

.splash-logo {
    height: 60px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0;
    transform: scale(0.8);
    animation: splashLogoIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s forwards;
}

@keyframes splashLogoIn {
    0% {
        opacity: 0;
        transform: scale(0.8);
        filter: brightness(0) invert(1) blur(8px);
    }
    50% {
        opacity: 1;
        filter: brightness(0) invert(1) blur(0px);
    }
    100% {
        opacity: 1;
        transform: scale(1);
        filter: brightness(0) invert(1) blur(0px);
    }
}

/* Glowing underline sweep */
.splash-line {
    width: 0;
    height: 3px;
    border-radius: 2px;
    background: linear-gradient(90deg, transparent, #0c7096, #38aee0, #F9B233, transparent);
    animation: splashLine 1s ease-out 0.8s forwards;
}

@keyframes splashLine {
    0% { width: 0; opacity: 0; }
    30% { opacity: 1; }
    100% { width: 180px; opacity: 0; }
}

/* Star field canvas */
.splash-stars {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* Splash exit animation */
.splash.splash-exit .splash-bg,
.splash.splash-exit .splash-stars {
    animation: splashBgOut 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.splash.splash-exit .splash-content {
    animation: splashContentOut 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes splashContentOut {
    0% { opacity: 1; transform: scale(1); }
    100% { opacity: 0; transform: scale(1.15); }
}

@keyframes splashBgOut {
    0% { clip-path: inset(0 0 0 0); }
    100% { clip-path: inset(0 0 100% 0); }
}

.splash.splash-hidden {
    display: none;
}

/* Lock body scroll during splash */
body.splash-active {
    overflow: hidden;
}

/* === RESET & BASE === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --navy: #1a1a2e;
    --navy-light: #16213e;
    --deep-blue: #0f3460;
    --teal: #0c7096;
    --teal-light: #38aee0;
    --teal-bright: #4fc3f7;
    --gold: #F9B233;
    --gold-light: #ffd166;

    --bg-primary: #ffffff;
    --bg-secondary: #f5f6f8;
    --bg-dark: #0a0a1a;
    --bg-card: #ffffff;

    --text-primary: #1a1a2e;
    --text-secondary: #4a5568;
    --text-muted: #7a8499;
    --text-inverse: #ffffff;

    --border: #e0e3ea;
    --border-light: #f0f1f5;

    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;

    --shadow-sm: 0 1px 3px rgba(26, 26, 46, 0.06);
    --shadow-md: 0 4px 16px rgba(26, 26, 46, 0.08);
    --shadow-lg: 0 12px 40px rgba(26, 26, 46, 0.12);
    --shadow-xl: 0 20px 60px rgba(26, 26, 46, 0.15);
    --shadow-glow: 0 0 40px rgba(12, 112, 150, 0.15);

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);

    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ============================================
   DARK MODE OVERRIDES
   ============================================ */
[data-theme="dark"] {
    --bg-primary: #0f0f1a;
    --bg-secondary: #161625;
    --bg-dark: #0a0a12;
    --bg-card: #1a1a2e;

    --text-primary: #e4e4ed;
    --text-secondary: #9a9ab0;
    --text-muted: #6a6a82;
    --text-inverse: #ffffff;

    --border: #2a2a40;
    --border-light: #22223a;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.35);
    --shadow-glow: 0 0 40px rgba(12, 112, 150, 0.2);
}

[data-theme="dark"] .navbar.scrolled {
    background: rgba(15, 15, 26, 0.92);
    border-bottom-color: var(--border);
}

[data-theme="dark"] .nav-logo-img {
    filter: brightness(0) invert(1);
}

[data-theme="dark"] .logo-text {
    color: var(--text-inverse);
}

[data-theme="dark"] .section-title {
    color: var(--text-primary);
}

[data-theme="dark"] .feature-card {
    background: var(--bg-card);
    border-color: var(--border);
}

[data-theme="dark"] .feature-card h3 {
    color: var(--text-primary);
}

[data-theme="dark"] .feature-card:hover {
    border-color: rgba(12, 112, 150, 0.3);
}

[data-theme="dark"] .hero-title,
[data-theme="dark"] .cta-title {
    color: var(--text-primary);
}

/* Dark mode — partners */
[data-theme="dark"] .partners-section {
    background: var(--bg-secondary);
}

[data-theme="dark"] .partners-title {
    color: var(--text-primary);
}

[data-theme="dark"] .partners-track img {
    filter: grayscale(100%) brightness(0.7) invert(0.8);
}

[data-theme="dark"] .partners-track img:hover {
    filter: grayscale(0%) brightness(1);
}

/* Dark mode — How it works */
[data-theme="dark"] .how-it-works {
    background: var(--bg-secondary);
}

[data-theme="dark"] .step-content {
    background: var(--bg-card);
    border-color: var(--border);
}

[data-theme="dark"] .step-content h3 {
    color: var(--text-primary);
}

[data-theme="dark"] .step-marker {
    background: var(--bg-card);
    border-color: var(--border);
}

/* Dark mode — Subscription card */
[data-theme="dark"] .subscription-card {
    background: var(--bg-card);
    border-color: var(--border);
}

[data-theme="dark"] .sub-plan,
[data-theme="dark"] .sub-amount,
[data-theme="dark"] .sub-currency {
    color: var(--text-primary);
}

[data-theme="dark"] .sub-details {
    border-color: var(--border);
}

[data-theme="dark"] .sub-notification {
    background: var(--bg-card);
    border-color: var(--border);
}

/* Dark mode — Integrations */
[data-theme="dark"] .integrations {
    background: var(--bg-secondary);
}

[data-theme="dark"] .orbit-center {
    background: var(--bg-card);
}

[data-theme="dark"] .node-icon {
    background: var(--bg-card);
    border-color: var(--border);
}

[data-theme="dark"] .integration-item {
    background: var(--bg-card);
    border-color: var(--border);
}

[data-theme="dark"] .integration-item h4 {
    color: var(--text-primary);
}

[data-theme="dark"] .int-icon-img img {
    filter: brightness(0.9);
}

/* Dark mode — Tabs / Solutions */
[data-theme="dark"] .tab-buttons {
    background: var(--bg-secondary);
}

[data-theme="dark"] .tab-btn.active {
    background: var(--bg-card);
}

[data-theme="dark"] .tab-panel {
    background: var(--bg-card);
    border-color: var(--border);
}

[data-theme="dark"] .panel-content h3 {
    color: var(--text-primary);
}

[data-theme="dark"] .role-card {
    background: var(--bg-secondary);
}

[data-theme="dark"] .role-metric {
    border-color: var(--border);
}

[data-theme="dark"] .role-metric-value {
    color: var(--text-primary);
}

/* Dark mode — CTA */
[data-theme="dark"] .cta-section {
    background: #080814;
}

/* Dark mode — Dashboard mockup */
[data-theme="dark"] .dashboard-mockup {
    border-color: var(--border);
}

[data-theme="dark"] .mockup-header {
    background: var(--bg-secondary);
    border-color: var(--border);
}

[data-theme="dark"] .mockup-content {
    background: var(--bg-secondary);
}

[data-theme="dark"] .dash-bank-card,
[data-theme="dark"] .funding-card,
[data-theme="dark"] .dash-panel,
[data-theme="dark"] .dash-table {
    background: var(--bg-card);
    border-color: var(--border);
}

[data-theme="dark"] .dash-table-head {
    background: var(--bg-secondary);
    border-color: var(--border);
}

[data-theme="dark"] .dash-table-row {
    border-color: var(--border);
}

[data-theme="dark"] .bank-balance,
[data-theme="dark"] .funding-val,
[data-theme="dark"] .big-val,
[data-theme="dark"] .cust-amt,
[data-theme="dark"] .dash-greeting {
    color: var(--text-primary);
}

/* Dark mode — Footer */
[data-theme="dark"] .footer {
    background: #060610;
}

/* Dark mode — Highlight section */
[data-theme="dark"] .highlight-content p,
[data-theme="dark"] .highlight-list li {
    color: var(--text-secondary);
}

/* Dark mode — Trust bar / Section backgrounds */
[data-theme="dark"] .features {
    background: var(--bg-primary);
}

[data-theme="dark"] .platform-highlight {
    background: var(--bg-primary);
}

[data-theme="dark"] .roles {
    background: var(--bg-primary);
}

/* Dark mode — selection */
[data-theme="dark"] ::selection {
    background: rgba(12, 112, 150, 0.3);
    color: var(--text-primary);
}

/* Theme toggle button */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
    position: relative;
}

.theme-toggle:hover {
    background: rgba(12, 112, 150, 0.08);
    color: var(--teal);
}

.theme-icon-sun,
.theme-icon-moon {
    position: absolute;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Light mode: show sun, hide moon */
.theme-icon-sun {
    opacity: 1;
    transform: rotate(0deg);
}

.theme-icon-moon {
    opacity: 0;
    transform: rotate(-90deg);
}

/* Dark mode: hide sun, show moon */
[data-theme="dark"] .theme-icon-sun {
    opacity: 0;
    transform: rotate(90deg);
}

[data-theme="dark"] .theme-icon-moon {
    opacity: 1;
    transform: rotate(0deg);
}

/* Smooth transition for theme change */
[data-theme="dark"] body,
body {
    transition: background-color 0.4s ease, color 0.4s ease;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    display: block;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: var(--font);
}

ul { list-style: none; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* === GRADIENT TEXT === */
.gradient-text {
    background: linear-gradient(135deg, var(--teal), var(--teal-bright), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* === BUTTONS === */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--teal), var(--deep-blue));
    color: var(--text-inverse);
    font-weight: 600;
    font-size: 15px;
    border-radius: var(--radius-full);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--deep-blue), var(--teal));
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(12, 112, 150, 0.35);
    color: #ffffff;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: rgba(12, 112, 150, 0.08);
    color: var(--teal);
    font-weight: 600;
    font-size: 15px;
    border-radius: var(--radius-full);
    border: 1px solid rgba(12, 112, 150, 0.15);
    transition: var(--transition);
}

.btn-secondary:hover {
    background: rgba(12, 112, 150, 0.15);
    border-color: rgba(12, 112, 150, 0.3);
    transform: translateY(-2px);
}

.btn-primary-sm {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 22px;
    background: linear-gradient(135deg, var(--teal), var(--deep-blue));
    color: var(--text-inverse);
    font-weight: 600;
    font-size: 14px;
    border-radius: var(--radius-full);
    transition: var(--transition);
}

.btn-primary-sm:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(12, 112, 150, 0.3);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 14px;
    border-radius: var(--radius-full);
    transition: var(--transition);
}

.btn-ghost:hover {
    color: var(--teal);
    background: rgba(12, 112, 150, 0.05);
}

.btn-ghost-light {
    display: inline-flex;
    align-items: center;
    padding: 14px 28px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    font-size: 15px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--radius-full);
    transition: var(--transition);
}

.btn-ghost-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
}

.btn-lg {
    padding: 18px 36px;
    font-size: 16px;
}

/* === SECTION STYLING === */
.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 64px;
}

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(12, 112, 150, 0.08);
    color: var(--teal);
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--radius-full);
    margin-bottom: 20px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    line-height: 1.2;
    color: var(--navy);
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    padding: 10px 0;
    box-shadow: var(--shadow-sm);
}

/* Dark hero pages — nav is white before scroll, dark after scroll */
.dark-hero .navbar:not(.scrolled) .nav-logo-img {
    filter: brightness(0) invert(1);
}

.dark-hero .navbar:not(.scrolled) .nav-links a {
    color: rgba(255, 255, 255, 0.75);
}

.dark-hero .navbar:not(.scrolled) .nav-links a:hover {
    color: #ffffff;
}

.dark-hero .navbar:not(.scrolled) .btn-ghost {
    color: rgba(255, 255, 255, 0.75);
}

.dark-hero .navbar:not(.scrolled) .btn-ghost:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.dark-hero .navbar:not(.scrolled) .theme-toggle {
    color: rgba(255, 255, 255, 0.75);
}

.dark-hero .navbar:not(.scrolled) .theme-toggle:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.dark-hero .navbar:not(.scrolled) .nav-toggle span {
    background: #ffffff;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo-img {
    height: 38px;
    width: auto;
}

.footer-logo-img {
    height: 34px;
    width: auto;
    filter: brightness(0) invert(1);
}

.logo-text {
    font-size: 20px;
    font-weight: 800;
    color: var(--navy);
}

.logo-badge {
    font-size: 10px;
    font-weight: 500;
    color: var(--text-muted);
    background: var(--bg-secondary);
    padding: 2px 8px;
    border-radius: var(--radius-full);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--teal);
    transition: var(--transition);
    border-radius: 1px;
}

.nav-links a:hover {
    color: var(--teal);
}

.nav-links a:hover::after {
    width: 100%;
}

/* === Nav Dropdown Menu === */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-dropdown-toggle svg {
    transition: transform 0.3s ease;
}

.nav-dropdown:hover .nav-dropdown-toggle svg {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    width: 300px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    z-index: 100;
}

.nav-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 14px;
    height: 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-bottom: none;
    border-right: none;
    transform: translateX(-50%) rotate(45deg);
    z-index: -1;
}

.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.nav-dd-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--radius-md);
    transition: background 0.2s ease;
    text-decoration: none;
}

.nav-dd-item:hover {
    background: rgba(12, 112, 150, 0.06);
}

.nav-dd-item svg {
    flex-shrink: 0;
    color: var(--teal);
    margin-top: 2px;
}

.nav-dd-item::after {
    display: none;
}

.nav-dd-title {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
}

.nav-dd-desc {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.4;
    margin-top: 1px;
}

.nav-dd-item:hover .nav-dd-title {
    color: var(--teal);
}

/* Dark hero pages — dropdown still needs solid bg */
.dark-hero .navbar:not(.scrolled) .nav-dropdown-menu {
    background: var(--navy);
    border-color: rgba(255,255,255,0.1);
}

.dark-hero .navbar:not(.scrolled) .nav-dropdown-menu::before {
    background: var(--navy);
    border-color: rgba(255,255,255,0.1);
}

.dark-hero .navbar:not(.scrolled) .nav-dd-title {
    color: rgba(255,255,255,0.9);
}

.dark-hero .navbar:not(.scrolled) .nav-dd-desc {
    color: rgba(255,255,255,0.5);
}

.dark-hero .navbar:not(.scrolled) .nav-dd-item:hover {
    background: rgba(255,255,255,0.08);
}

.dark-hero .navbar:not(.scrolled) .nav-dd-item:hover .nav-dd-title {
    color: var(--teal-bright);
}

/* Dark mode dropdown */
[data-theme="dark"] .nav-dropdown-menu {
    background: #1e1e35;
    border-color: var(--border);
}

[data-theme="dark"] .nav-dropdown-menu::before {
    background: #1e1e35;
    border-color: var(--border);
}

[data-theme="dark"] .nav-dd-item:hover {
    background: rgba(12, 112, 150, 0.1);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--navy);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   HERO
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    overflow: visible;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(12, 112, 150, 0.25), transparent 70%);
    top: -200px;
    right: -100px;
    animation: orbFloat1 20s ease-in-out infinite;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(15, 52, 96, 0.2), transparent 70%);
    bottom: -150px;
    left: -100px;
    animation: orbFloat2 25s ease-in-out infinite;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(249, 178, 51, 0.12), transparent 70%);
    top: 30%;
    left: 40%;
    animation: orbFloat3 18s ease-in-out infinite;
}

@keyframes orbFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-30px, 40px) scale(1.1); }
    66% { transform: translate(20px, -20px) scale(0.95); }
}

@keyframes orbFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(40px, -30px) scale(1.05); }
    66% { transform: translate(-20px, 30px) scale(1.1); }
}

@keyframes orbFloat3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -30px) scale(1.15); }
}

.grid-pattern {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(12, 112, 150, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(12, 112, 150, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

/* Hero side-by-side row */
.hero-row {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 0.4fr 0.6fr;
    gap: 40px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px 8px 12px;
    background: rgba(12, 112, 150, 0.06);
    border: 1px solid rgba(12, 112, 150, 0.12);
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 500;
    color: var(--teal);
    margin-bottom: 24px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--teal);
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(12, 112, 150, 0.4); }
    50% { opacity: 0.8; box-shadow: 0 0 0 6px rgba(12, 112, 150, 0); }
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 3.75rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--navy);
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 500px;
}

.hero-cta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

/* Promo pill under hero CTAs — low-rate credit-card processing offer */
.hero-promo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px 10px 12px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, rgba(249, 178, 51, 0.14), rgba(12, 112, 150, 0.08));
    border: 1px solid rgba(249, 178, 51, 0.35);
    color: var(--navy);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    margin-bottom: 36px;
}

.hero-promo:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(249, 178, 51, 0.22);
    border-color: rgba(249, 178, 51, 0.6);
    color: var(--navy);
}

.hero-promo-tag {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.8px;
    padding: 3px 8px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--gold), #e6a020);
    color: var(--navy);
    text-transform: uppercase;
}

.hero-promo-text {
    white-space: nowrap;
}

.hero-promo-text strong {
    color: var(--teal);
    font-weight: 800;
}

.hero-promo svg {
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

.hero-promo:hover svg {
    transform: translateX(3px);
}

[data-theme="dark"] .hero-promo {
    background: linear-gradient(135deg, rgba(249, 178, 51, 0.12), rgba(12, 112, 150, 0.14));
    color: var(--text-inverse);
}

[data-theme="dark"] .hero-promo:hover {
    color: var(--text-inverse);
}

@media (max-width: 600px) {
    .hero-promo {
        font-size: 13px;
        padding: 9px 12px 9px 10px;
        flex-wrap: wrap;
    }
    .hero-promo-text {
        white-space: normal;
    }
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 24px;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 28px;
    font-weight: 800;
    color: var(--navy);
    line-height: 1;
}

.stat-suffix {
    font-size: 20px;
    font-weight: 700;
    color: var(--teal);
}

.stat-label {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
}

/* === HERO VISUAL / DASHBOARD MOCKUP === */
.hero-visual {
    position: relative;
    perspective: 1600px;
    margin-right: -180px;
    width: calc(100% + 180px);
}

/* Glow behind dashboard */
.hero-visual::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 90%;
    height: 80%;
    transform: translate(-50%, -40%);
    background: radial-gradient(ellipse, rgba(12, 112, 150, 0.12), transparent 65%);
    border-radius: 50%;
    pointer-events: none;
    animation: glowPulse 4s ease-in-out infinite;
    z-index: 0;
    filter: blur(30px);
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.4; transform: translate(-50%, -40%) scale(1); }
    50% { opacity: 0.8; transform: translate(-50%, -40%) scale(1.06); }
}

.dashboard-mockup {
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow:
        0 50px 120px rgba(12, 112, 150, 0.15),
        0 20px 50px rgba(26, 26, 46, 0.18),
        inset 0 1px 0 rgba(255,255,255,0.08);
    overflow: hidden;
    transform: rotateY(-8deg) rotateX(6deg) scale(1);
    transform-origin: left center;
    transition: transform 1s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.6s ease;
    animation: dashboardRise 1.8s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both;
    position: relative;
}

@keyframes dashboardRise {
    0% {
        opacity: 0;
        transform: rotateY(-20deg) rotateX(15deg) translateX(60px) translateY(40px) scale(0.85);
    }
    35% {
        opacity: 1;
    }
    100% {
        opacity: 1;
        transform: rotateY(-8deg) rotateX(6deg) translateX(0) translateY(0) scale(1);
    }
}

.dashboard-mockup:hover {
    transform: rotateY(-2deg) rotateX(2deg) scale(1.02);
    box-shadow:
        0 60px 150px rgba(12, 112, 150, 0.2),
        0 30px 70px rgba(26, 26, 46, 0.22),
        0 0 80px rgba(12, 112, 150, 0.08),
        inset 0 1px 0 rgba(255,255,255,0.12);
}

.mockup-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 14px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
}

.mockup-dots {
    display: flex;
    gap: 5px;
}

.mockup-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.mockup-dots span:nth-child(1) { background: #ef4444; }
.mockup-dots span:nth-child(2) { background: #f59e0b; }
.mockup-dots span:nth-child(3) { background: #10b981; }

.mockup-title {
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 500;
}

.mockup-body {
    display: flex;
    min-height: 580px;
}

/* --- Sidebar --- */
.mockup-sidebar {
    width: 190px;
    background: var(--navy);
    padding: 14px 0;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.sidebar-logo {
    padding: 8px 10px 10px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    margin-bottom: 6px;
}

.sidebar-logo-img {
    width: 100px;
    height: auto;
    filter: brightness(0) invert(1);
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    color: rgba(255,255,255,0.45);
    font-size: 12px;
    font-weight: 500;
    transition: var(--transition);
    cursor: default;
}

.sidebar-item svg {
    width: 18px;
    height: 18px;
}

.sidebar-item svg {
    flex-shrink: 0;
}

.sidebar-item.active {
    background: rgba(12, 112, 150, 0.2);
    color: var(--teal-bright);
    border-left: 2px solid var(--teal);
}

.sidebar-item:not(.active):hover {
    color: rgba(255,255,255,0.7);
}

/* --- Dashboard Content --- */
.mockup-content {
    flex: 1;
    padding: 18px 24px;
    background: #f8f9fb;
    overflow: hidden;
    position: relative;
}

.dash-welcome {
    margin-bottom: 8px;
}

.dash-breadcrumb {
    display: block;
    font-size: 10px;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.dash-greeting {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: var(--navy);
}

/* Bank card */
.dash-bank-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 6px;
    padding: 8px 10px;
    margin-bottom: 8px;
}

.bank-label {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
}

.bank-balance {
    display: block;
    font-size: 22px;
    font-weight: 800;
    color: var(--navy);
    line-height: 1.2;
}

.bank-pending {
    font-size: 6px;
    color: var(--text-muted);
}

.bank-card-right {
    display: flex;
    gap: 4px;
}

.bank-btn {
    padding: 5px 12px;
    background: var(--teal);
    color: white;
    font-size: 9px;
    font-weight: 600;
    border-radius: 4px;
}

/* Funding row */
.dash-section-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.dash-funding-row {
    display: flex;
    gap: 4px;
    margin-bottom: 8px;
}

.funding-card {
    flex: 1;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 4px;
    padding: 6px 4px;
    text-align: center;
}

.funding-val {
    font-size: 10px;
    font-weight: 700;
    color: var(--navy);
}

/* Two-column panels */
.dash-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-bottom: 8px;
}

.dash-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 6px;
    padding: 8px;
}

.dash-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.dash-panel-header > span {
    font-size: 12px;
    font-weight: 700;
    color: var(--navy);
}

.panel-tabs {
    display: flex;
    gap: 4px;
}

.panel-tabs span {
    font-size: 5px;
    color: var(--text-muted);
    padding: 1px 4px;
    border-radius: 2px;
    background: var(--bg-secondary);
}

.panel-tabs span.active {
    background: var(--teal);
    color: white;
}

.dash-big-numbers {
    display: flex;
    gap: 8px;
    margin-bottom: 4px;
}

.big-num {
    flex: 1;
}

.big-label {
    display: block;
    font-size: 10px;
    color: var(--text-muted);
}

.big-val {
    font-size: 14px;
    font-weight: 800;
    color: var(--navy);
}

.big-val.warn {
    color: var(--warning);
}

/* Table */
.dash-table {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 6px;
    overflow: hidden;
}

.dash-table-head {
    display: grid;
    grid-template-columns: 2fr 2fr 1fr 1.2fr;
    gap: 4px;
    padding: 5px 8px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-light);
}

.dash-table-head span {
    font-size: 9px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
}

.dash-table-row {
    display: grid;
    grid-template-columns: 2fr 2fr 1fr 1.2fr;
    gap: 4px;
    padding: 4px 8px;
    border-bottom: 1px solid var(--border-light);
    align-items: center;
}

.dash-table-row:last-child {
    border-bottom: none;
}

.cust-name {
    font-size: 10px;
    font-weight: 600;
    color: var(--teal);
}

.cust-date {
    font-size: 9px;
    color: var(--text-muted);
}

.cust-badge {
    font-size: 5px;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 3px;
    text-align: center;
    width: fit-content;
}

.cust-badge.paid {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.cust-badge.failed {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.cust-amt {
    font-size: 10px;
    font-weight: 700;
    color: var(--navy);
    text-align: right;
}

/* === DASHBOARD 3D POP ANIMATIONS === */

/* Panel pop-in with 3D scale */
.anim-panel {
    opacity: 0;
    transform: translateY(12px) scale(0.92);
    animation: panelPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.anim-delay-1 { animation-delay: 0.3s; }
.anim-delay-2 { animation-delay: 0.5s; }
.anim-delay-3 { animation-delay: 0.9s; }
.anim-delay-4 { animation-delay: 1.1s; }
.anim-delay-5 { animation-delay: 1.5s; }

@keyframes panelPop {
    0% { opacity: 0; transform: translateY(12px) scale(0.92); }
    60% { opacity: 1; transform: translateY(-3px) scale(1.02); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* Funding cards pop with bounce */
.anim-pop {
    opacity: 0;
    transform: scale(0.5) translateY(8px);
    animation: cardPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    animation-delay: var(--pop-delay, 0.6s);
}

@keyframes cardPop {
    0% { opacity: 0; transform: scale(0.5) translateY(8px); }
    70% { opacity: 1; transform: scale(1.08) translateY(-2px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

/* Table rows slide in from right */
.anim-slide-row {
    opacity: 0;
    transform: translateX(20px);
    animation: rowSlide 0.4s ease-out forwards;
    animation-delay: var(--row-delay, 1.8s);
}

@keyframes rowSlide {
    0% { opacity: 0; transform: translateX(20px); }
    100% { opacity: 1; transform: translateX(0); }
}

/* Mini bar chart */
.dash-mini-chart {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 50px;
    margin-top: 8px;
}

.mini-bar {
    flex: 1;
    height: var(--h, 50%);
    background: linear-gradient(to top, var(--teal), var(--teal-light));
    border-radius: 1.5px;
    transform-origin: bottom;
    transform: scaleY(0);
    animation: barGrow3d 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    animation-delay: calc(0.9s + var(--i, 0) * 0.07s);
    opacity: 0.8;
}

.mini-bar:nth-child(1) { --i: 0; }
.mini-bar:nth-child(2) { --i: 1; }
.mini-bar:nth-child(3) { --i: 2; }
.mini-bar:nth-child(4) { --i: 3; }
.mini-bar:nth-child(5) { --i: 4; }
.mini-bar:nth-child(6) { --i: 5; }
.mini-bar:nth-child(7) { --i: 6; }
.mini-bar:nth-child(8) { --i: 7; }
.mini-bar:nth-child(9) { --i: 8; }

.mini-bar.accent {
    background: linear-gradient(to top, var(--gold), var(--gold-light));
    opacity: 1;
}

@keyframes barGrow3d {
    0% { transform: scaleY(0) rotateX(40deg); opacity: 0; }
    60% { transform: scaleY(1.15) rotateX(-5deg); opacity: 1; }
    100% { transform: scaleY(1) rotateX(0deg); opacity: 0.8; }
}

.mini-bar.accent { animation-name: barGrow3dAccent; }
@keyframes barGrow3dAccent {
    0% { transform: scaleY(0) rotateX(40deg); opacity: 0; }
    60% { transform: scaleY(1.15) rotateX(-5deg); opacity: 1; }
    100% { transform: scaleY(1) rotateX(0deg); opacity: 1; }
}

/* Donut chart */
.dash-donut {
    position: relative;
    width: 72px;
    height: 72px;
    margin: 8px auto 0;
}

.donut-svg {
    width: 100%;
    height: 100%;
}

.donut-fill {
    animation: donutDraw 1.5s ease-out 1.2s forwards;
}

@keyframes donutDraw {
    0% { stroke-dashoffset: 88; }
    100% { stroke-dashoffset: 25; }
}

.donut-fill-2 {
    animation: donutDraw2 1s ease-out 2.2s forwards;
}

@keyframes donutDraw2 {
    0% { opacity: 0; stroke-dashoffset: 10; }
    100% { opacity: 0.7; stroke-dashoffset: -40; }
}

.donut-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 11px;
    font-weight: 800;
    color: var(--navy);
    text-align: center;
    line-height: 1.1;
    opacity: 0;
    animation: fadeIn 0.4s ease-out 2s forwards;
}

.donut-label small {
    font-size: 7px;
    font-weight: 500;
    color: var(--text-muted);
}

@keyframes fadeIn {
    to { opacity: 1; }
}

/* Bank balance shimmer */
.bank-balance {
    position: relative;
    overflow: hidden;
}

.bank-balance::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(12,112,150,0.08), transparent);
    animation: shimmer 3s ease-in-out 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}

/* Animated cursor */
.mock-cursor {
    position: absolute;
    z-index: 20;
    pointer-events: none;
    transition: top 0.8s cubic-bezier(0.4, 0, 0.2, 1), left 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
    opacity: 0;
}

.mock-cursor.visible {
    opacity: 1;
    animation: cursorAppear 0.4s ease-out forwards;
}

@keyframes cursorAppear {
    from { opacity: 0; transform: scale(0.6); }
    to { opacity: 1; transform: scale(1); }
}

.mock-cursor.clicking {
    animation: cursorClick 0.3s ease-out;
}

@keyframes cursorClick {
    0% { transform: scale(1); }
    50% { transform: scale(0.8); }
    100% { transform: scale(1); }
}

/* Dashboard top edge highlight */
.dashboard-mockup::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 10%, rgba(12,112,150,0.4), rgba(56,174,224,0.5), rgba(249,178,51,0.3), transparent 90%);
    z-index: 10;
    animation: edgeShimmer 4s ease-in-out 2s infinite;
}

@keyframes edgeShimmer {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

/* Sidebar items stagger entrance */
.sidebar-nav .sidebar-item {
    opacity: 0;
    transform: translateX(-10px);
    animation: sidebarSlide 0.4s ease-out forwards;
}

.sidebar-nav .sidebar-item:nth-child(1) { animation-delay: 0.8s; }
.sidebar-nav .sidebar-item:nth-child(2) { animation-delay: 0.85s; }
.sidebar-nav .sidebar-item:nth-child(3) { animation-delay: 0.9s; }
.sidebar-nav .sidebar-item:nth-child(4) { animation-delay: 0.95s; }
.sidebar-nav .sidebar-item:nth-child(5) { animation-delay: 1.0s; }
.sidebar-nav .sidebar-item:nth-child(6) { animation-delay: 1.05s; }
.sidebar-nav .sidebar-item:nth-child(7) { animation-delay: 1.1s; }
.sidebar-nav .sidebar-item:nth-child(8) { animation-delay: 1.15s; }
.sidebar-nav .sidebar-item:nth-child(9) { animation-delay: 1.2s; }
.sidebar-nav .sidebar-item:nth-child(10) { animation-delay: 1.25s; }

@keyframes sidebarSlide {
    to { opacity: 1; transform: translateX(0); }
}

/* Dashboard welcome fade in */
.dash-welcome {
    opacity: 0;
    animation: fadeIn 0.5s ease-out 0.7s forwards;
}

/* ============================================
   SCREEN CAROUSEL — Dashboard multi-screen
   ============================================ */
.screen-carousel {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.screen-slide {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    pointer-events: none;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0;
}

.screen-slide.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.screen-slide.exit-left {
    opacity: 0;
    transform: translateX(-30px);
}

/* Generic screen toolbar */
.scr-toolbar {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.scr-search {
    width: 120px;
    height: 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 4px;
}

.scr-pages {
    font-size: 7px;
    color: var(--text-muted);
}

.scr-per-page {
    font-size: 7px;
    color: var(--text-muted);
    margin-left: 4px;
}

.scr-toolbar-right {
    margin-left: auto;
    display: flex;
    gap: 4px;
}

/* Generic screen table */
.scr-table {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 6px;
    overflow: hidden;
}

.scr-table-head {
    display: grid;
    grid-template-columns: 1.5fr 1.2fr 2fr 1fr 1fr 1fr;
    gap: 4px;
    padding: 7px 12px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-light);
    font-size: 9px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
}

.scr-table-row {
    display: grid;
    grid-template-columns: 1.5fr 1.2fr 2fr 1fr 1fr 1fr;
    gap: 4px;
    padding: 6px 12px;
    border-bottom: 1px solid var(--border-light);
    font-size: 9px;
    color: var(--text-secondary);
    align-items: center;
    transition: background 0.15s;
}

.scr-table-row:last-child {
    border-bottom: none;
}

.scr-table-row:hover {
    background: rgba(12, 112, 150, 0.02);
}

.scr-tag {
    display: inline-block;
    padding: 1px 5px;
    background: rgba(249,178,51,0.1);
    color: var(--gold);
    font-size: 6px;
    font-weight: 700;
    border-radius: 3px;
}

.scr-tag-teal {
    display: inline-block;
    padding: 1px 5px;
    background: rgba(12,112,150,0.08);
    color: var(--teal);
    font-size: 6px;
    font-weight: 700;
    border-radius: 3px;
}

/* Clickable rows */
.scr-row-click {
    cursor: pointer;
}

.scr-row-click:hover {
    background: rgba(12, 112, 150, 0.06) !important;
}

.scr-row-click .cust-name {
    text-decoration: underline;
    text-decoration-color: transparent;
    transition: text-decoration-color 0.2s;
}

.scr-row-click:hover .cust-name {
    text-decoration-color: var(--teal);
}

/* Sub-screen (detail views) */
.screen-sub {
    /* same transitions as screen-slide, handled by JS */
}

/* Customer detail view */
.cdet-header {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    margin-bottom: 6px;
}

.cdet-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--teal), var(--deep-blue));
    color: white;
    font-size: 10px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cdet-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.cdet-name {
    font-size: 15px;
    font-weight: 800;
    color: var(--navy);
}

[data-theme="dark"] .cdet-name {
    color: var(--text-primary);
}

.cdet-meta {
    font-size: 9px;
    color: var(--text-muted);
}

.cdet-actions {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

/* Tabs */
.cdet-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 8px;
    overflow-x: auto;
}

.cdet-tabs span {
    padding: 5px 7px;
    font-size: 7px;
    font-weight: 500;
    color: var(--text-muted);
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    cursor: default;
}

.cdet-tabs span.active {
    color: var(--teal);
    border-bottom-color: var(--teal);
    font-weight: 700;
}

/* Section title */
.cdet-section-title {
    font-size: 11px;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 6px;
}

[data-theme="dark"] .cdet-section-title {
    color: var(--text-primary);
}

/* Overview grid */
.cdet-overview {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px 12px;
    margin-bottom: 10px;
    padding: 8px 10px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 6px;
}

.cdet-field {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.cdet-field-label {
    font-size: 8px;
    font-weight: 600;
    color: var(--text-muted);
}

.cdet-field-val {
    font-size: 9px;
    font-weight: 600;
    color: var(--text-primary);
}

/* Contacts bar */
.cdet-contacts-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-top: 1px solid var(--border-light);
}

/* Products table columns */
.scr-cols-products {
    grid-template-columns: 2.5fr 0.8fr 0.8fr 0.8fr 0.6fr 0.8fr 0.7fr !important;
}

/* Invoice detail sub-screen */
.invd-layout {
    display: grid;
    grid-template-columns: 1fr 200px;
    gap: 10px;
    height: 100%;
}

.invd-main {
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow-y: auto;
}

.invd-customer-bar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.invd-cust-name {
    font-size: 13px;
    font-weight: 800;
    color: var(--navy);
    display: block;
}

[data-theme="dark"] .invd-cust-name { color: var(--text-primary); }

.invd-cust-meta {
    font-size: 7px;
    color: var(--text-muted);
    display: block;
}

.invd-actions-bar {
    display: flex;
    gap: 4px;
}

.invd-doc {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.03);
}

[data-theme="dark"] .invd-doc {
    background: var(--bg-card);
    border-color: var(--border);
}

.invd-doc-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border-light);
}

.invd-table {
    margin-bottom: 4px;
}

.invd-table-head {
    display: grid;
    grid-template-columns: 3fr 0.8fr 0.5fr 0.8fr 0.8fr 0.8fr;
    gap: 3px;
    padding: 3px 0;
    border-bottom: 1px solid var(--border);
    font-size: 6px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
}

.invd-table-row {
    display: grid;
    grid-template-columns: 3fr 0.8fr 0.5fr 0.8fr 0.8fr 0.8fr;
    gap: 3px;
    padding: 4px 0;
    border-bottom: 1px solid var(--border-light);
    font-size: 7px;
    color: var(--text-secondary);
}

/* Invoice list right panel */
.invd-list {
    background: white;
    border-left: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

[data-theme="dark"] .invd-list {
    background: var(--bg-card);
    border-color: var(--border);
}

.invd-list-header {
    padding: 8px 10px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.invd-list-search {
    padding: 6px 10px;
    border-bottom: 1px solid var(--border-light);
}

.invd-list-search span {
    display: block;
    height: 16px;
    background: var(--bg-secondary);
    border-radius: 4px;
}

.invd-list-items {
    flex: 1;
    overflow-y: auto;
}

.invd-list-item {
    padding: 7px 10px;
    border-bottom: 1px solid var(--border-light);
    position: relative;
    cursor: default;
}

.invd-list-item.active {
    background: rgba(12,112,150,0.04);
    border-left: 2px solid var(--teal);
}

.invd-li-name {
    font-size: 9px;
    font-weight: 700;
    color: var(--navy);
    display: block;
}

[data-theme="dark"] .invd-li-name { color: var(--text-primary); }

.invd-li-meta {
    font-size: 6px;
    color: var(--text-muted);
    display: block;
}

.invd-li-amt {
    position: absolute;
    top: 7px;
    right: 10px;
    font-size: 9px;
    font-weight: 700;
    color: var(--navy);
}

[data-theme="dark"] .invd-li-amt { color: var(--text-primary); }

/* Invoices table columns */
.scr-cols-invoices {
    grid-template-columns: 1.1fr 1.2fr 0.7fr 0.5fr 1.2fr 0.7fr 0.9fr 0.8fr 0.8fr !important;
}

/* Create Subscription — multi-step inner pages */
.csub-inner {
    position: relative;
    height: 100%;
    overflow: hidden;
}

.csub-cursor {
    position: absolute;
    z-index: 30;
    pointer-events: none;
    opacity: 0;
    filter: drop-shadow(0 2px 3px rgba(0,0,0,0.2));
    transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1), top 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s;
}

.csub-cursor.visible { opacity: 1; }

.csub-cursor.click {
    animation: csubCurClick 0.25s ease-out;
}

@keyframes csubCurClick {
    0% { transform: scale(1); }
    50% { transform: scale(0.75); }
    100% { transform: scale(1); }
}

.csub-page {
    display: none;
    animation: csubFadeIn 0.4s ease-out;
}

.csub-page.csub-page-active {
    display: block;
}

@keyframes csubFadeIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Typing animation for customer field */
.csub-typing {
    color: var(--text-muted);
    font-style: italic;
}

.csub-typing.filled {
    color: var(--navy);
    font-style: normal;
    font-weight: 600;
    border-color: var(--teal);
}

[data-theme="dark"] .csub-typing.filled {
    color: var(--text-primary);
}

/* Done step (checkmark) */
.csub-step.done .csub-step-num {
    background: var(--success);
    color: white;
    font-size: 8px;
}

.csub-line-fill {
    background: linear-gradient(90deg, var(--teal), var(--border-light)) !important;
}

/* Invoicing table */
.csub-inv-table {
    margin-bottom: 4px;
}

.csub-inv-head {
    display: grid;
    grid-template-columns: 2.5fr 0.6fr 0.9fr 0.8fr 0.8fr 0.8fr 0.8fr;
    gap: 4px;
    padding: 5px 0;
    font-size: 7px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    border-bottom: 1px solid var(--border);
}

.csub-inv-row {
    display: grid;
    grid-template-columns: 2.5fr 0.6fr 0.9fr 0.8fr 0.8fr 0.8fr 0.8fr;
    gap: 4px;
    padding: 6px 0;
    align-items: start;
    font-size: 8px;
    color: var(--text-secondary);
}

/* Product dropdown */
.csub-product-select {
    position: relative;
}

.csub-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 4px;
    box-shadow: var(--shadow-lg);
    z-index: 10;
    margin-top: 2px;
    padding: 2px 0;
}

.csub-dd-item {
    padding: 5px 8px;
    font-size: 7px;
    color: var(--text-secondary);
    cursor: default;
    transition: background 0.15s;
}

.csub-dd-item:hover,
.csub-dd-hover {
    background: rgba(12, 112, 150, 0.06);
    color: var(--teal);
}

.csub-dd-new {
    padding: 5px 8px;
    font-size: 7px;
    color: var(--text-muted);
    border-top: 1px solid var(--border-light);
    font-style: italic;
}

/* Totals */
.csub-totals {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
    padding: 6px 0;
}

.csub-total-row {
    display: flex;
    gap: 20px;
    font-size: 7px;
    color: var(--text-secondary);
    align-items: center;
}

.csub-total-row span:last-child {
    min-width: 60px;
    text-align: right;
    font-weight: 600;
    color: var(--navy);
}

[data-theme="dark"] .csub-total-row span:last-child {
    color: var(--text-primary);
}

/* Create Subscription form */
.csub-stepper {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 14px;
    padding: 8px 0;
}

.csub-step {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}

.csub-step-num {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--border);
    color: var(--text-muted);
    font-size: 7px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.csub-step.active .csub-step-num {
    background: var(--teal);
    color: white;
}

.csub-step-label {
    font-size: 8px;
    font-weight: 600;
    color: var(--text-muted);
}

.csub-step.active .csub-step-label {
    color: var(--navy);
    font-weight: 700;
}

[data-theme="dark"] .csub-step.active .csub-step-label {
    color: var(--text-primary);
}

.csub-step-line {
    flex: 1;
    height: 2px;
    background: var(--border-light);
    margin: 0 4px;
    min-width: 10px;
}

.csub-form-label {
    font-size: 8px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
}

.csub-select-field {
    padding: 6px 10px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 9px;
    color: var(--navy);
    font-weight: 600;
    background: var(--bg-card);
    margin-bottom: 12px;
}

[data-theme="dark"] .csub-select-field {
    color: var(--text-primary);
}

.csub-addr-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.csub-addr-col {
    padding: 10px;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    background: var(--bg-card);
}

.csub-addr-title {
    font-size: 8px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 8px;
}

.csub-field-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.csub-input {
    padding: 5px 8px;
    border: 1px solid var(--border);
    border-radius: 3px;
    font-size: 8px;
    color: var(--navy);
    background: white;
}

[data-theme="dark"] .csub-input {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.csub-input-light {
    color: var(--text-muted) !important;
    font-style: italic;
}

.csub-input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
}

.csub-checkbox {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 8px;
    color: var(--text-secondary);
    margin-top: 6px;
}

.csub-check {
    width: 12px;
    height: 12px;
    border: 1.5px solid var(--border);
    border-radius: 3px;
    flex-shrink: 0;
    position: relative;
}

.csub-check.checked {
    background: var(--teal);
    border-color: var(--teal);
}

.csub-check.checked::after {
    content: '';
    position: absolute;
    top: 1px;
    left: 3px;
    width: 4px;
    height: 6px;
    border: solid white;
    border-width: 0 1.5px 1.5px 0;
    transform: rotate(45deg);
}

.csub-footer-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    padding-top: 8px;
    border-top: 1px solid var(--border-light);
}

/* Empty state (Agreements etc) */
.csub-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
}

/* Config step form */
.csub-config-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 8px;
}

.csub-config-4col {
    grid-template-columns: 1fr 1fr 1fr 1fr;
}

.csub-config-field {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.csub-input-filled {
    color: var(--navy) !important;
    font-style: normal !important;
    font-weight: 600 !important;
}

[data-theme="dark"] .csub-input-filled {
    color: var(--text-primary) !important;
}

.csub-email-tag {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 1px 6px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 3px;
    font-size: 7px;
    font-weight: 600;
    color: var(--navy);
}

[data-theme="dark"] .csub-email-tag {
    color: var(--text-primary);
    background: var(--bg-card);
}

.csub-textarea {
    padding: 8px 10px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 8px;
    color: var(--text-secondary);
    background: var(--bg-card);
    min-height: 50px;
    line-height: 1.5;
}

/* Payment step */
.csub-radio-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 10px;
}

.csub-radio {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 9px;
    color: var(--text-secondary);
    padding: 3px 0;
}

.csub-radio-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--border);
    flex-shrink: 0;
}

.csub-radio-dot.active {
    border-color: var(--teal);
    background: var(--teal);
    box-shadow: inset 0 0 0 2px white;
}

.csub-radio-active {
    color: var(--teal);
    font-weight: 600;
}

.csub-card-box {
    padding: 10px;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    margin-bottom: 10px;
    background: var(--bg-card);
}

.csub-card-dropdown {
    margin-top: 4px;
    border: 1px solid var(--teal);
    border-radius: 4px;
    background: var(--bg-card);
    overflow: hidden;
}

.csub-card-option {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 8px;
    font-size: 8px;
    font-weight: 600;
    color: var(--navy);
}

[data-theme="dark"] .csub-card-option { color: var(--text-primary); }

.csub-card-badge {
    padding: 1px 5px;
    background: rgba(12,112,150,0.1);
    color: var(--teal);
    font-size: 6px;
    font-weight: 700;
    border-radius: 3px;
}

/* Preview step */
.csub-preview-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 10px;
}

.csub-preview-row {
    display: flex;
    justify-content: space-between;
    padding: 7px 10px;
    border-bottom: 1px solid var(--border-light);
    font-size: 8px;
}

.csub-preview-row:last-child { border-bottom: none; }

.csub-pv-label {
    color: var(--text-muted);
    font-weight: 600;
}

.csub-pv-val {
    color: var(--navy);
    font-weight: 600;
}

[data-theme="dark"] .csub-pv-val { color: var(--text-primary); }

/* Preview step — date cards */
.csub-date-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 8px;
}

.csub-date-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    background: var(--bg-card);
    text-align: center;
    gap: 2px;
}

.csub-date-val {
    font-size: 12px;
    font-weight: 900;
    color: var(--navy);
}

[data-theme="dark"] .csub-date-val { color: var(--text-primary); }

.csub-metric-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin-bottom: 8px;
}

.csub-metric-card-prev {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 6px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    background: var(--bg-card);
    text-align: center;
    gap: 2px;
}

.csub-metric-val-prev {
    font-size: 11px;
    font-weight: 900;
    color: var(--navy);
}

[data-theme="dark"] .csub-metric-val-prev { color: var(--text-primary); }

/* Success overlay */
.csub-success {
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 20;
    animation: csubSuccessFade 0.5s ease-out;
}

[data-theme="dark"] .csub-success {
    background: rgba(26,26,46,0.95);
}

@keyframes csubSuccessFade {
    from { opacity: 0; }
    to { opacity: 1; }
}

.csub-success-circle {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--success), #059669);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    animation: csubSuccessPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.3);
}

@keyframes csubSuccessPop {
    0% { transform: scale(0); opacity: 0; }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}

.csub-success-text {
    font-size: 14px;
    font-weight: 800;
    color: var(--success);
    margin-bottom: 3px;
    animation: csubSuccessFade 0.5s ease-out 0.3s both;
}

.csub-success-sub {
    font-size: 9px;
    color: var(--text-muted);
    animation: csubSuccessFade 0.5s ease-out 0.5s both;
}

/* Subscriptions table columns */
.scr-cols-subs {
    grid-template-columns: 1.4fr 1.2fr 0.5fr 0.6fr 0.6fr 0.8fr 0.9fr 0.9fr 0.9fr 0.7fr !important;
}

/* Floating notification cards */
.floating-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
    z-index: 2;
    animation: floatUp 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

.float-1 {
    bottom: 50px;
    left: -20px;
    animation-delay: 1.8s;
}

.float-2 {
    top: 30px;
    right: -15px;
    animation-delay: 2.2s;
}

/* Floating card subtle bounce */
.floating-card {
    animation: floatUp 0.8s ease-out forwards, floatBounce 5s ease-in-out 3s infinite;
}

@keyframes floatBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes floatUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fc-title {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

.fc-amount {
    display: block;
    font-size: 17px;
    font-weight: 700;
    color: var(--navy);
}

.fc-positive {
    color: var(--success);
}

/* ============================================
   PARTNERS AND COLLABORATORS — Infinite Slider
   ============================================ */
.partners-section {
    padding: 64px 0;
    background: var(--bg-secondary);
    overflow: hidden;
}

.partners-title {
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 40px;
    letter-spacing: -0.01em;
}

.partners-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.partners-track {
    display: flex;
    align-items: center;
    width: max-content;
    animation: partnerScroll 40s linear infinite;
}

.partners-track:hover {
    animation-play-state: paused;
}

.partners-track img {
    height: 38px;
    width: auto;
    max-width: 130px;
    object-fit: contain;
    flex-shrink: 0;
    margin: 0 28px;
    opacity: 0.5;
    filter: grayscale(100%);
    transition: opacity 0.3s ease, filter 0.3s ease;
}

.partners-track img:hover {
    opacity: 1;
    filter: grayscale(0%);
}

@keyframes partnerScroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@media (max-width: 768px) {
    .partners-track {
        animation-duration: 28s;
    }

    .partners-track img {
        height: 28px;
        max-width: 100px;
        margin: 0 20px;
    }
}

/* ============================================
   FEATURES SECTION
   ============================================ */
.features {
    padding: 120px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.feature-card {
    padding: 32px 28px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--teal), var(--teal-bright));
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(12, 112, 150, 0.15);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: var(--transition);
}

.icon-blue {
    background: rgba(12, 112, 150, 0.08);
    color: var(--teal);
}

.icon-teal {
    background: rgba(56, 174, 224, 0.08);
    color: var(--teal-light);
}

.icon-gold {
    background: rgba(249, 178, 51, 0.08);
    color: var(--gold);
}

.icon-navy {
    background: rgba(15, 52, 96, 0.08);
    color: var(--deep-blue);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
}

.feature-card h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.feature-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--teal);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.feature-link span {
    transition: var(--transition);
}

.feature-link:hover span {
    transform: translateX(4px);
}

/* ============================================
   CREDIT CARD PROCESSING SECTION
   ============================================ */
.cc-processing {
    position: relative;
    padding: 120px 0;
    background: linear-gradient(160deg, #0f1628 0%, #162040 40%, #0c3a5a 100%);
    overflow: hidden;
    border-top: 1px solid rgba(12, 112, 150, 0.15);
    border-bottom: 1px solid rgba(249, 178, 51, 0.1);
}

.cc-processing-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.cc-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
}

.cc-orb-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(249, 178, 51, 0.15), transparent 70%);
    top: -100px;
    right: -50px;
}

.cc-orb-2 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(12, 112, 150, 0.2), transparent 70%);
    bottom: -80px;
    left: -80px;
}

.cc-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 64px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.cc-tag {
    background: rgba(249, 178, 51, 0.15) !important;
    color: var(--gold) !important;
}

.cc-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 900;
    line-height: 1.15;
    color: #ffffff;
    margin-bottom: 18px;
}

.cc-highlight {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cc-desc {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.7;
    margin-bottom: 32px;
}

/* Stats row */
.cc-stats-row {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 32px;
    padding: 20px 24px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
}

.cc-stat {
    display: flex;
    flex-direction: column;
}

.cc-stat-val {
    font-size: 22px;
    font-weight: 900;
    color: var(--gold);
    line-height: 1;
}

.cc-stat-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 4px;
}

.cc-stat-divider {
    width: 1px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
}

/* Features list */
.cc-features-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 36px;
}

.cc-feat {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.75);
}

.cc-feat svg {
    flex-shrink: 0;
}

/* CTA button */
.cc-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: linear-gradient(135deg, var(--gold), #e6a020);
    color: var(--navy);
    font-weight: 700;
    font-size: 16px;
    border-radius: var(--radius-full);
    transition: var(--transition);
    text-decoration: none;
}

.cc-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(249, 178, 51, 0.35);
    color: var(--navy);
}

.cc-cta-note {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.35);
    margin-top: 12px;
}

/* Visual: Card stack */
.cc-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.cc-card-stack {
    position: relative;
    width: 280px;
    height: 180px;
    perspective: 800px;
}

.cc-mock-card {
    position: absolute;
    width: 260px;
    height: 160px;
    border-radius: 14px;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cc-card-1 {
    background: linear-gradient(135deg, #1a1a2e, #0f3460, #0c7096);
    z-index: 2;
    transform: rotate(-6deg) translateY(0);
    animation: ccCard1Float 4s ease-in-out infinite;
}

.cc-card-2 {
    background: linear-gradient(135deg, #0c7096, #38aee0, #4fc3f7);
    z-index: 1;
    transform: rotate(6deg) translate(30px, 20px);
    animation: ccCard2Float 4s ease-in-out 1s infinite;
}

@keyframes ccCard1Float {
    0%, 100% { transform: rotate(-6deg) translateY(0); }
    50% { transform: rotate(-4deg) translateY(-8px); }
}

@keyframes ccCard2Float {
    0%, 100% { transform: rotate(6deg) translate(30px, 20px); }
    50% { transform: rotate(8deg) translate(30px, 12px); }
}

.cc-card-stack:hover .cc-card-1 {
    transform: rotate(-2deg) translateY(-10px) scale(1.03);
}

.cc-card-stack:hover .cc-card-2 {
    transform: rotate(2deg) translate(40px, 10px) scale(1.03);
}

.cc-mock-chip {
    width: 28px;
    height: 20px;
    background: linear-gradient(135deg, #d4a24c, #f0c97e);
    border-radius: 4px;
}

.cc-mock-number {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 2px;
    font-family: 'Courier New', monospace;
}

.cc-mock-row {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cc-mock-brand {
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 16px;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 1px;
}

/* Savings badge */
.cc-savings-badge {
    position: absolute;
    bottom: 10px;
    right: -10px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
    animation: float 5s ease-in-out infinite;
    z-index: 5;
}

.cc-savings-badge svg {
    color: var(--gold);
}

.cc-save-title {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
}

.cc-save-amount {
    display: block;
    font-size: 18px;
    font-weight: 900;
    color: var(--success);
}

/* Dark mode */
[data-theme="dark"] .cc-processing {
    background: #080814;
}

[data-theme="dark"] .cc-savings-badge {
    background: var(--bg-card);
    border-color: var(--border);
}

/* Responsive */
@media (max-width: 1024px) {
    .cc-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .cc-visual {
        min-height: 220px;
    }
}

@media (max-width: 768px) {
    .cc-processing {
        padding: 80px 0;
    }

    .cc-stats-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .cc-stat-divider {
        width: 100%;
        height: 1px;
    }

    .cc-card-stack {
        width: 240px;
        height: 160px;
    }

    .cc-mock-card {
        width: 220px;
        height: 140px;
        padding: 16px 20px;
    }

    .cc-savings-badge {
        right: auto;
        left: 10px;
        bottom: -10px;
    }

    .cc-cta {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
        font-size: 15px;
    }
}

/* ============================================
   HOW IT WORKS
   ============================================ */
.how-it-works {
    padding: 120px 0;
    background: var(--bg-secondary);
}

.workflow-timeline {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    padding-top: 40px;
}

.timeline-line {
    position: absolute;
    top: 58px;
    left: 12.5%;
    right: 12.5%;
    height: 3px;
    background: var(--border);
    border-radius: 2px;
}

.timeline-progress {
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--teal), var(--teal-bright));
    border-radius: 2px;
    transition: width 1.5s ease-out;
}

.workflow-step {
    text-align: center;
    position: relative;
}

.step-marker {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 3px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    position: relative;
    z-index: 2;
    transition: var(--transition);
}

.step-marker span {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-muted);
    transition: var(--transition);
}

.workflow-step.in-view .step-marker {
    border-color: var(--teal);
    background: var(--teal);
    box-shadow: 0 0 0 6px rgba(12, 112, 150, 0.15);
}

.workflow-step.in-view .step-marker span {
    color: var(--text-inverse);
}

.step-content {
    padding: 24px 20px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

.workflow-step:hover .step-content {
    box-shadow: var(--shadow-md);
    border-color: rgba(12, 112, 150, 0.15);
}

.step-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: rgba(12, 112, 150, 0.06);
    color: var(--teal);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.step-content h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 8px;
}

.step-content p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ============================================
   PLATFORM HIGHLIGHT
   ============================================ */
.platform-highlight {
    padding: 120px 0;
}

.highlight-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.highlight-content p {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 32px;
}

.highlight-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.highlight-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: var(--text-primary);
    font-weight: 500;
}

.highlight-visual {
    position: relative;
}

.subscription-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-lg);
}

.sub-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.sub-plan {
    font-size: 16px;
    font-weight: 700;
    color: var(--navy);
}

.sub-status {
    padding: 4px 12px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    font-size: 12px;
    font-weight: 600;
    border-radius: var(--radius-full);
}

.sub-price {
    margin-bottom: 24px;
    display: flex;
    align-items: flex-start;
}

.sub-currency {
    font-size: 20px;
    font-weight: 700;
    color: var(--navy);
    margin-top: 8px;
}

.sub-amount {
    font-size: 48px;
    font-weight: 900;
    color: var(--navy);
    line-height: 1;
    letter-spacing: -0.03em;
}

.sub-period {
    font-size: 16px;
    color: var(--text-muted);
    font-weight: 500;
    align-self: flex-end;
    margin-bottom: 4px;
    margin-left: 4px;
}

.sub-details {
    padding: 16px 0;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sub-detail-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
}

.sub-detail-row span:first-child {
    color: var(--text-muted);
}

.sub-detail-row span:last-child {
    font-weight: 600;
    color: var(--text-primary);
}

.status-active {
    color: var(--success) !important;
}

.sub-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.sub-feature {
    font-size: 13px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.sub-feature .check {
    color: var(--teal);
    font-weight: 700;
}

.sub-notification {
    position: absolute;
    bottom: -20px;
    right: -20px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.sub-notif-title {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--navy);
}

.sub-notif-desc {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
}

/* ============================================
   INTEGRATIONS
   ============================================ */
.integrations {
    padding: 120px 0;
    background: var(--bg-secondary);
}

.integrations-orbit {
    position: relative;
    width: 400px;
    height: 400px;
    margin: 0 auto 64px;
}

.orbit-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    z-index: 3;
    padding: 10px;
}

.orbit-logo {
    width: 100%;
    height: auto;
}

.orbit-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    border: 1px dashed var(--border);
    animation: orbitSpin 40s linear infinite;
}

.ring-1 {
    width: 260px;
    height: 260px;
    margin: -130px 0 0 -130px;
}

.ring-2 {
    width: 380px;
    height: 380px;
    margin: -190px 0 0 -190px;
    animation-direction: reverse;
    animation-duration: 55s;
}

@keyframes orbitSpin {
    to { transform: rotate(360deg); }
}

.integration-node {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 48px;
    height: 48px;
    margin: -24px 0 0 -24px;
    transform: rotate(var(--angle)) translateX(calc(50% - 24px + 106px)) rotate(calc(-1 * var(--angle)));
    animation: counterSpin 40s linear infinite;
}

.ring-1 .integration-node {
    transform: rotate(var(--angle)) translateX(130px) rotate(calc(-1 * var(--angle)));
}

.ring-2 .integration-node {
    transform: rotate(var(--angle)) translateX(190px) rotate(calc(-1 * var(--angle)));
    animation-direction: reverse;
    animation-duration: 55s;
}

@keyframes counterSpin {
    to { transform: rotate(calc(var(--angle) - 360deg)) translateX(130px) rotate(calc(-1 * (var(--angle) - 360deg))); }
}

.node-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
    color: var(--teal);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.node-icon:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--teal);
}

.integrations-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.integration-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.integration-item:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(12, 112, 150, 0.15);
    transform: translateY(-2px);
}

.int-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, rgba(12, 112, 150, 0.08), rgba(15, 52, 96, 0.08));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
    color: var(--teal);
    flex-shrink: 0;
}

.int-icon-img {
    width: 100px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.int-icon-img img {
    width: 100%;
    height: auto;
}

.integration-item h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 2px;
}

.integration-item p {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.4;
}

/* ============================================
   ROLES / SOLUTIONS TABS
   ============================================ */
.roles {
    padding: 120px 0;
}

.roles-tabs {
    max-width: 960px;
    margin: 0 auto;
}

.tab-buttons {
    display: flex;
    gap: 8px;
    margin-bottom: 32px;
    background: var(--bg-secondary);
    padding: 6px;
    border-radius: var(--radius-lg);
}

.tab-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.tab-btn:hover {
    color: var(--teal);
}

.tab-btn.active {
    background: var(--bg-card);
    color: var(--teal);
    box-shadow: var(--shadow-sm);
}

.tab-panels {
    position: relative;
}

.tab-panel {
    display: none;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 48px;
    align-items: start;
    padding: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    animation: fadeSlideUp 0.4s ease-out;
}

.tab-panel.active {
    display: grid;
}

@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.panel-content h3 {
    font-size: 22px;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 12px;
}

.panel-content > p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
}

.panel-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.panel-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.5;
}

.panel-list li::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--teal);
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 7px;
}

.role-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.role-card-header {
    padding: 14px 20px;
    background: var(--navy);
    color: var(--text-inverse);
    font-size: 13px;
    font-weight: 600;
}

.role-metric {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border-light);
}

.role-metric:last-child {
    border-bottom: none;
}

.role-metric-label {
    font-size: 13px;
    color: var(--text-muted);
}

.role-metric-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--navy);
}

.role-metric-value.good {
    color: var(--success);
}

.role-metric-value.warn {
    color: var(--warning);
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    position: relative;
    padding: 120px 0;
    background: var(--navy);
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    inset: 0;
}

.orb-cta-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(12, 112, 150, 0.3), transparent 70%);
    top: -200px;
    right: -100px;
}

.orb-cta-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(249, 178, 51, 0.1), transparent 70%);
    bottom: -150px;
    left: -50px;
}

.cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}

.cta-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 900;
    color: var(--text-inverse);
    line-height: 1.2;
    margin-bottom: 16px;
}

.cta-subtitle {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    margin-bottom: 36px;
}

.cta-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 20px;
}

.cta-note {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    padding: 80px 0 40px;
    background: var(--bg-dark);
    color: rgba(255, 255, 255, 0.7);
}

.footer ::selection {
    background: rgba(56, 174, 224, 0.4);
    color: #ffffff;
}

.footer ::-moz-selection {
    background: rgba(56, 174, 224, 0.4);
    color: #ffffff;
}

.cta-section ::selection {
    background: rgba(56, 174, 224, 0.4);
    color: #ffffff;
}

.cta-section ::-moz-selection {
    background: rgba(56, 174, 224, 0.4);
    color: #ffffff;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-brand .nav-logo {
    margin-bottom: 16px;
}

.footer-brand .logo-text {
    color: var(--text-inverse);
}

.footer-desc {
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.5);
    max-width: 280px;
}

.footer-col h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-inverse);
    margin-bottom: 20px;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    transition: var(--transition);
}

.footer-col a:hover {
    color: var(--teal-light);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.3);
}

.footer-social {
    display: flex;
    gap: 16px;
}

.footer-social a {
    color: rgba(255, 255, 255, 0.4);
    transition: var(--transition);
}

.footer-social a:hover {
    color: var(--teal-light);
}

/* ============================================
   PAGE HERO (Interior Pages)
   ============================================ */
.page-hero {
    position: relative;
    padding: 160px 0 80px;
    overflow: hidden;
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.page-hero .section-header {
    position: relative;
    z-index: 1;
    margin-bottom: 0;
}

.page-hero .section-title {
    font-size: clamp(2.25rem, 5vw, 3.25rem);
}

.page-hero .section-subtitle {
    max-width: 560px;
    margin: 0 auto;
}

/* ============================================
   FEATURES PAGE — Detail Sections
   ============================================ */
.feature-detail {
    padding: 80px 0;
}

.feature-detail:nth-child(even) {
    background: var(--bg-secondary);
}

.feature-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.feature-detail-reverse .feature-detail-grid {
    direction: rtl;
}

.feature-detail-reverse .feature-detail-grid > * {
    direction: ltr;
}

.feature-detail-content h3 {
    font-size: 24px;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 14px;
}

.feature-detail-content > p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
}

.feature-detail-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-detail-icon-display {
    width: 200px;
    height: 200px;
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.feature-detail-icon-display.icon-blue {
    background: rgba(12, 112, 150, 0.06);
    color: var(--teal);
}

.feature-detail-icon-display.icon-teal {
    background: rgba(56, 174, 224, 0.06);
    color: var(--teal-light);
}

.feature-detail-icon-display.icon-gold {
    background: rgba(249, 178, 51, 0.06);
    color: var(--gold);
}

.feature-detail-icon-display.icon-navy {
    background: rgba(15, 52, 96, 0.06);
    color: var(--deep-blue);
}

.feature-detail:hover .feature-detail-icon-display {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .feature-detail-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .feature-detail-reverse .feature-detail-grid {
        direction: ltr;
    }

    .feature-detail-icon-display {
        width: 140px;
        height: 140px;
    }
}

/* ============================================
   INVOICE MOCKUP — Features Page
   ============================================ */
.invoice-mockup {
    display: flex;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border);
    background: #f0f2f5;
    font-size: 7px;
    line-height: 1.4;
    max-width: 600px;
    min-height: 380px;
}

/* --- Sidebar --- */
.inv-sidebar {
    width: 44px;
    background: var(--navy);
    flex-shrink: 0;
    padding: 8px 6px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.inv-sidebar-logo {
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    display: flex;
    justify-content: center;
}

.inv-sidebar-logo img {
    width: 28px !important;
}

.inv-sidebar-items {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-top: 4px;
}

.inv-si {
    height: 4px;
    border-radius: 2px;
    background: rgba(255,255,255,0.1);
}

.inv-si.active {
    background: var(--teal);
}

/* --- Center: Invoice Document --- */
.inv-center {
    flex: 1;
    padding: 8px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.inv-toolbar {
    display: flex;
    align-items: center;
    gap: 4px;
}

.inv-tool-btn {
    padding: 3px 8px;
    background: var(--teal);
    color: white;
    border-radius: 3px;
    font-size: 6px;
    font-weight: 600;
}

.inv-tool-refund {
    background: #ef4444;
}

.inv-tool-right {
    margin-left: auto;
}

.inv-tool-icon {
    font-size: 6px;
    color: var(--text-muted);
    background: white;
    padding: 3px 6px;
    border-radius: 3px;
    border: 1px solid var(--border-light);
}

/* Invoice paper */
.inv-document {
    background: white;
    border-radius: 6px;
    border: 1px solid var(--border-light);
    padding: 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.inv-doc-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-light);
}

.inv-doc-logo img {
    height: 18px;
}

.inv-doc-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.inv-doc-num {
    font-size: 8px;
    font-weight: 700;
    color: var(--navy);
}

.inv-doc-badge {
    padding: 1px 6px;
    border-radius: 3px;
    font-size: 5px;
    font-weight: 700;
    text-transform: uppercase;
}

.inv-doc-badge.paid {
    background: rgba(16,185,129,0.1);
    color: var(--success);
}

.inv-doc-date {
    font-size: 5px;
    color: var(--text-muted);
}

.inv-doc-btn-row {
    margin-bottom: 8px;
}

.inv-view-receipt {
    font-size: 6px;
    color: var(--teal);
    font-weight: 600;
    cursor: default;
}

.inv-doc-addresses {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    gap: 12px;
}

.inv-addr {
    display: flex;
    flex-direction: column;
}

.inv-addr-label {
    font-size: 5px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 2px;
}

.inv-addr-name {
    font-size: 7px;
    font-weight: 700;
    color: var(--navy);
}

.inv-addr-line {
    font-size: 6px;
    color: var(--text-secondary);
}

/* Table */
.inv-doc-table {
    margin-bottom: 8px;
}

.inv-table-head {
    display: grid;
    grid-template-columns: 3fr 1fr 0.6fr 0.8fr 0.8fr 1fr;
    gap: 3px;
    padding: 3px 0;
    border-bottom: 1px solid var(--border);
    font-size: 5px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
}

.inv-table-row {
    display: grid;
    grid-template-columns: 3fr 1fr 0.6fr 0.8fr 0.8fr 1fr;
    gap: 3px;
    padding: 4px 0;
    border-bottom: 1px solid var(--border-light);
    font-size: 6px;
    color: var(--text-secondary);
    align-items: center;
}

.inv-prod-name {
    color: var(--navy);
    font-weight: 600;
    font-size: 6px;
}

.inv-prod-name small {
    font-weight: 400;
    color: var(--text-muted);
    font-size: 5px;
}

.inv-table-totals {
    padding: 4px 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.inv-total-row {
    display: flex;
    gap: 16px;
    font-size: 6px;
    color: var(--text-secondary);
}

.inv-total-row span:last-child {
    font-weight: 700;
    color: var(--navy);
    min-width: 40px;
    text-align: right;
}

/* Balance */
.inv-balance {
    text-align: center;
    padding: 8px 0;
    border-top: 1px solid var(--border-light);
}

.inv-balance-label {
    font-size: 9px;
    color: var(--text-secondary);
    font-weight: 500;
}

.inv-balance-amount {
    font-size: 14px;
    font-weight: 900;
    color: var(--navy);
    margin-left: 4px;
}

/* Payment info */
.inv-payment-info {
    padding: 6px 0;
    border-top: 1px solid var(--border-light);
}

.inv-pay-title {
    display: block;
    font-size: 6px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 1px;
}

.inv-pay-line {
    display: block;
    font-size: 5px;
    color: var(--text-muted);
}

.inv-footer {
    text-align: center;
    font-size: 5px;
    color: var(--text-muted);
    padding-top: 6px;
    border-top: 1px solid var(--border-light);
    margin-top: auto;
}

/* --- Right Panel: Customer List --- */
.inv-right-panel {
    width: 165px;
    background: white;
    border-left: 1px solid var(--border-light);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.inv-search {
    padding: 6px 8px;
    border-bottom: 1px solid var(--border-light);
}

.inv-search span {
    display: block;
    height: 14px;
    background: #f0f2f5;
    border-radius: 3px;
}

.inv-customer-list {
    flex: 1;
    overflow: hidden;
}

.inv-cust {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 6px 8px;
    border-bottom: 1px solid var(--border-light);
    transition: background 0.2s;
}

.inv-cust.active {
    background: rgba(12,112,150,0.04);
    border-left: 2px solid var(--teal);
}

.inv-cust-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.inv-cust-name {
    font-size: 7px;
    font-weight: 700;
    color: var(--navy);
}

.inv-cust-meta {
    font-size: 5px;
    color: var(--text-muted);
}

.inv-cust-badge {
    font-size: 4px;
    font-weight: 700;
    padding: 1px 4px;
    border-radius: 2px;
    width: fit-content;
    text-transform: uppercase;
}

.inv-cust-badge.paid {
    background: rgba(16,185,129,0.1);
    color: var(--success);
}

.inv-cust-badge.pending {
    background: rgba(245,158,11,0.1);
    color: var(--warning);
}

.inv-cust-badge.failed {
    background: rgba(239,68,68,0.1);
    color: var(--danger);
}

.inv-cust-amt {
    font-size: 7px;
    font-weight: 700;
    color: var(--navy);
    flex-shrink: 0;
}

/* --- Invoice Animations --- */
.anim-inv {
    opacity: 0;
    transform: translateY(10px);
    animation: invFadeUp 0.5s ease-out forwards;
    animation-delay: var(--d, 0s);
}

@keyframes invFadeUp {
    to { opacity: 1; transform: translateY(0); }
}

.anim-inv-row {
    opacity: 0;
    transform: translateX(15px);
    animation: invRowSlide 0.4s ease-out forwards;
    animation-delay: var(--rd, 0.5s);
}

@keyframes invRowSlide {
    to { opacity: 1; transform: translateX(0); }
}

/* Responsive */
@media (max-width: 900px) {
    .invoice-mockup {
        max-width: 100%;
    }

    .inv-right-panel {
        display: none;
    }
}

@media (max-width: 600px) {
    .inv-sidebar {
        width: 30px;
    }

    .inv-sidebar-logo {
        display: none;
    }

    .invoice-mockup {
        min-height: 280px;
    }
}

/* ============================================
   RETAINER MOCKUP — Features Page
   ============================================ */
.retainer-mockup {
    display: flex;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border);
    background: #f0f2f5;
    font-size: 7px;
    line-height: 1.4;
    max-width: 600px;
    min-height: 380px;
}

.ret-center {
    flex: 1;
    padding: 8px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ret-toolbar {
    display: flex;
    align-items: center;
    gap: 4px;
}

.ret-tool-btn {
    padding: 3px 8px;
    background: var(--gold);
    color: white;
    border-radius: 3px;
    font-size: 6px;
    font-weight: 600;
}

.ret-tool-deduct {
    background: var(--teal);
}

.ret-tool-right {
    margin-left: auto;
}

.ret-document {
    background: white;
    border-radius: 6px;
    border: 1px solid var(--border-light);
    padding: 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.ret-doc-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-light);
}

.ret-doc-title {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ret-doc-label {
    font-size: 5px;
    font-weight: 700;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ret-doc-num {
    font-size: 8px;
    font-weight: 700;
    color: var(--navy);
}

.ret-doc-customer {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.ret-customer-name {
    font-size: 7px;
    font-weight: 700;
    color: var(--navy);
}

.ret-customer-meta {
    font-size: 5px;
    color: var(--text-muted);
}

.ret-balance-hero {
    text-align: center;
    padding: 10px 0;
    background: linear-gradient(135deg, rgba(249,178,51,0.12), rgba(249,178,51,0.02));
    border-radius: 5px;
    margin-bottom: 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    border: 1px solid rgba(249,178,51,0.15);
}

.ret-hero-label {
    font-size: 6px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ret-hero-amt {
    font-size: 18px;
    font-weight: 900;
    color: var(--navy);
    letter-spacing: -0.5px;
}

.ret-hero-sub {
    font-size: 5px;
    color: var(--text-muted);
}

.ret-progress {
    margin-bottom: 10px;
}

.ret-progress-bar {
    height: 5px;
    background: #f0f2f5;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 3px;
}

.ret-progress-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--teal), var(--gold));
    border-radius: 3px;
    animation: retFill 1.2s ease-out 1s forwards;
}

@keyframes retFill {
    to { width: 35%; }
}

.ret-progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: 5px;
    color: var(--text-muted);
    font-weight: 600;
}

.ret-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    margin-bottom: 10px;
}

.ret-stat {
    padding: 5px 6px;
    background: #f7f8fa;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    border: 1px solid var(--border-light);
}

.ret-stat-label {
    font-size: 5px;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 700;
}

.ret-stat-val {
    font-size: 8px;
    font-weight: 800;
    color: var(--navy);
}

.ret-deduction-table {
    margin-bottom: 8px;
}

.ret-ded-head {
    display: grid;
    grid-template-columns: 0.8fr 2fr 1fr 1fr;
    gap: 3px;
    padding: 3px 0;
    border-bottom: 1px solid var(--border);
    font-size: 5px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
}

.ret-ded-row {
    display: grid;
    grid-template-columns: 0.8fr 2fr 1fr 1fr;
    gap: 3px;
    padding: 4px 0;
    border-bottom: 1px solid var(--border-light);
    font-size: 6px;
    color: var(--text-secondary);
    align-items: center;
}

.ret-ded-desc {
    color: var(--navy);
    font-weight: 600;
}

.ret-ded-inv {
    color: var(--teal);
    font-weight: 600;
}

.ret-ded-amt {
    font-weight: 700;
    color: #ef4444;
    text-align: right;
}

/* Responsive */
@media (max-width: 900px) {
    .retainer-mockup {
        max-width: 100%;
    }
}

@media (max-width: 600px) {
    .retainer-mockup {
        min-height: 280px;
    }
}

/* ============================================
   WALLET / BANKING MOCKUP — Features Page
   ============================================ */
.wallet-mockup {
    display: flex;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border);
    background: #f0f2f5;
    font-size: 7px;
    line-height: 1.4;
    max-width: 600px;
    min-height: 400px;
}

.wal-main {
    flex: 1;
    padding: 8px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.wal-breadcrumb {
    display: flex;
    gap: 4px;
    align-items: center;
    font-size: 6px;
    color: var(--text-muted);
    padding: 2px 0;
}

.wal-bc-sep {
    opacity: 0.5;
}

.wal-breadcrumb span:last-child {
    color: var(--navy);
    font-weight: 600;
}

.wal-top-row {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 6px;
}

.wal-balance-card,
.wal-bank-card,
.wal-tx-card {
    background: white;
    border-radius: 6px;
    border: 1px solid var(--border-light);
    padding: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
}

.wal-card-title {
    font-size: 8px;
    font-weight: 700;
    color: var(--teal);
    display: flex;
    align-items: center;
    gap: 4px;
}

.wal-balance-card .wal-card-title {
    margin-bottom: 8px;
}

.wal-bal-section {
    display: flex;
    flex-direction: column;
    gap: 1px;
    margin-bottom: 6px;
}

.wal-bal-label {
    font-size: 5px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.wal-bal-amt {
    font-size: 16px;
    font-weight: 900;
    color: var(--navy);
    letter-spacing: -0.5px;
    animation: walBalPop 0.8s ease-out 0.4s both;
}

@keyframes walBalPop {
    0% { opacity: 0; transform: scale(0.85); }
    60% { opacity: 1; transform: scale(1.03); }
    100% { opacity: 1; transform: scale(1); }
}

.wal-bal-actions {
    display: flex;
    gap: 4px;
    margin-bottom: 8px;
}

.wal-btn {
    padding: 3px 8px;
    border-radius: 3px;
    font-size: 6px;
    font-weight: 600;
    cursor: default;
}

.wal-btn-primary {
    background: var(--teal);
    color: white;
}

.wal-btn-outline {
    background: white;
    color: var(--navy);
    border: 1px solid var(--border);
}

.wal-pending {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding-top: 6px;
    border-top: 1px solid var(--border-light);
    margin-top: auto;
}

.wal-pending-left {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.wal-pending-amt {
    font-size: 9px;
    font-weight: 700;
    color: var(--navy);
}

.wal-pending-links {
    display: flex;
    gap: 8px;
}

.wal-link {
    font-size: 6px;
    color: var(--teal);
    font-weight: 600;
    text-decoration: underline;
    cursor: default;
}

.wal-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.wal-add-btn {
    font-size: 6px;
    font-weight: 600;
    color: var(--navy);
    padding: 3px 6px;
    border-radius: 3px;
    border: 1px solid var(--border);
    background: white;
}

.wal-bank-table {
    display: flex;
    flex-direction: column;
}

.wal-bank-head {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr 0.9fr 0.9fr 0.9fr;
    gap: 3px;
    padding: 3px 0;
    border-bottom: 1px solid var(--border);
    font-size: 5px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.wal-bank-row {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr 0.9fr 0.9fr 0.9fr;
    gap: 3px;
    padding: 5px 0;
    border-bottom: 1px solid var(--border-light);
    font-size: 6px;
    color: var(--text-secondary);
    align-items: center;
}

.wal-bank-label-cell {
    display: flex;
    flex-direction: column;
    gap: 2px;
    align-items: flex-start;
}

.wal-bank-name {
    font-weight: 700;
    color: var(--navy);
    font-size: 6px;
}

.wal-default-tag {
    background: rgba(12,112,150,0.1);
    color: var(--teal);
    padding: 1px 4px;
    border-radius: 2px;
    font-size: 4px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.wal-mono {
    font-family: "SF Mono", Consolas, monospace;
    color: var(--text-secondary);
    font-size: 6px;
}

.wal-agreement-tag {
    background: rgba(245,158,11,0.12);
    color: var(--warning);
    padding: 1px 4px;
    border-radius: 2px;
    font-size: 4.5px;
    font-weight: 700;
    width: fit-content;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.wal-agreement-tag.signed {
    background: rgba(16,185,129,0.12);
    color: var(--success);
}

.wal-tx-card {
    flex: 1;
}

.wal-tx-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.wal-download-btn {
    font-size: 6px;
    font-weight: 600;
    color: var(--navy);
    padding: 3px 6px;
    border-radius: 3px;
    border: 1px solid var(--border);
    background: white;
    display: flex;
    align-items: center;
    gap: 3px;
}

.wal-tx-filters {
    display: flex;
    gap: 4px;
    margin-bottom: 6px;
}

.wal-tx-filter,
.wal-tx-search {
    padding: 3px 6px;
    font-size: 6px;
    color: var(--text-muted);
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 3px;
    display: flex;
    align-items: center;
    gap: 3px;
}

.wal-tx-search {
    margin-left: auto;
    min-width: 80px;
}

.wal-tx-table {
    display: flex;
    flex-direction: column;
}

.wal-tx-head {
    display: grid;
    grid-template-columns: 1.6fr 1fr 0.9fr 1.1fr;
    gap: 4px;
    padding: 4px 0;
    border-bottom: 1px solid var(--border);
    font-size: 5px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.wal-tx-right {
    text-align: right;
}

.wal-tx-row {
    display: grid;
    grid-template-columns: 1.6fr 1fr 0.9fr 1.1fr;
    gap: 4px;
    padding: 5px 0;
    border-bottom: 1px solid var(--border-light);
    font-size: 6px;
    align-items: center;
}

.wal-tx-cust {
    color: var(--navy);
    font-weight: 600;
}

.wal-tx-amt {
    text-align: right;
    font-weight: 700;
    font-family: "SF Mono", Consolas, monospace;
}

.wal-tx-in {
    color: var(--success);
}

.wal-tx-out {
    color: #ef4444;
}

.wal-tx-badge {
    font-size: 4.5px;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    width: fit-content;
    display: inline-block;
}

.wal-tx-badge.success {
    background: rgba(16,185,129,0.12);
    color: var(--success);
}

.wal-tx-badge.progress {
    background: rgba(12,112,150,0.12);
    color: var(--teal);
    position: relative;
}

.wal-tx-badge.progress::before {
    content: "";
    display: inline-block;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--teal);
    margin-right: 3px;
    vertical-align: middle;
    animation: walPulse 1.4s ease-in-out infinite;
}

@keyframes walPulse {
    0%, 100% { opacity: 0.3; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.1); }
}

.wal-tx-badge.failed {
    background: rgba(239,68,68,0.12);
    color: #ef4444;
}

.wal-tx-date {
    color: var(--text-muted);
    font-size: 5.5px;
}

/* Responsive */
@media (max-width: 900px) {
    .wallet-mockup {
        max-width: 100%;
    }
}

@media (max-width: 600px) {
    .wallet-mockup {
        min-height: 320px;
    }
    .wal-top-row {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   DASHBOARD MOCKUP — Features Page
   ============================================ */
.ft-dashboard-mockup {
    display: flex;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border);
    background: #f0f2f5;
    font-size: 6.5px;
    line-height: 1.4;
    max-width: 600px;
    height: 420px;
}

.dash-viewport {
    flex: 1;
    overflow: hidden;
    position: relative;
    min-width: 0;
    padding: 8px;
}

.dash-viewport::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 30px;
    background: linear-gradient(to bottom, transparent, #f0f2f5);
    pointer-events: none;
    z-index: 2;
}

.dash-scroll {
    display: flex;
    flex-direction: column;
    gap: 6px;
    animation: dashAutoScroll 28s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}

@keyframes dashAutoScroll {
    0%, 6% { transform: translateY(0); }
    48%, 56% { transform: translateY(calc(-100% + 400px)); }
    98%, 100% { transform: translateY(0); }
}

.dash-greeting {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 2px 2px 4px;
}

.dash-crumbs {
    font-size: 5.5px;
    color: var(--text-muted);
    font-weight: 600;
}

.dash-welcome {
    font-size: 9px;
    font-weight: 800;
    color: var(--navy);
}

.dash-card {
    background: white;
    border-radius: 5px;
    border: 1px solid var(--border-light);
    padding: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dash-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.dash-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
}

.dash-card-title {
    font-size: 7.5px;
    font-weight: 800;
    color: var(--navy);
}

.dash-date-range {
    font-size: 5px;
    color: var(--text-muted);
    background: #f7f8fa;
    padding: 2px 5px;
    border-radius: 3px;
    border: 1px solid var(--border-light);
}

/* Bank card */
.dash-bank-row {
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.dash-bank-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.dash-bank-title {
    font-size: 8px;
    font-weight: 800;
    color: var(--teal);
    margin-bottom: 3px;
}

.dash-bal-label {
    font-size: 4.5px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.dash-bal-amt {
    font-size: 12px;
    font-weight: 900;
    color: var(--navy);
    letter-spacing: -0.3px;
}

.dash-pending-amt {
    font-size: 8px;
    font-weight: 700;
    color: var(--navy);
}

.dash-bank-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.dash-btn {
    padding: 3px 8px;
    font-size: 5.5px;
    font-weight: 600;
    border-radius: 3px;
    cursor: default;
}

.dash-btn-ghost {
    background: white;
    color: var(--navy);
    border: 1px solid var(--border);
}

.dash-btn-row {
    display: flex;
    gap: 3px;
}

.dash-link-row {
    display: flex;
    gap: 8px;
    margin-top: 2px;
}

.dash-link {
    font-size: 5.5px;
    color: var(--teal);
    font-weight: 600;
    text-decoration: none;
    cursor: default;
}

.dash-mini-tbl .dash-link {
    text-decoration: underline;
}

/* Funding */
.dash-funding-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.dash-fund-col {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 4px 5px;
    background: #f7f8fa;
    border-radius: 3px;
    border: 1px solid var(--border-light);
}

.dash-fund-day {
    font-size: 4.5px;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
}

.dash-fund-val {
    font-size: 7px;
    font-weight: 800;
    color: var(--navy);
}

/* Tabs */
.dash-tabs {
    display: flex;
    gap: 2px;
    background: #f7f8fa;
    border-radius: 3px;
    padding: 1px;
    border: 1px solid var(--border-light);
}

.dash-tab {
    font-size: 5px;
    font-weight: 600;
    color: var(--text-muted);
    padding: 2px 6px;
    border-radius: 2px;
}

.dash-tab.active {
    background: white;
    color: var(--navy);
    box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}

/* Stat rows */
.dash-stat-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
}

.dash-stat-cell {
    padding: 5px 6px;
    background: #f7f8fa;
    border-radius: 3px;
    border: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.dash-stat-sm-label {
    font-size: 4.5px;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
}

.dash-stat-sm-val {
    font-size: 7.5px;
    font-weight: 800;
    color: var(--navy);
}

.dash-stat-sm-val.red {
    color: #ef4444;
}

/* Mini tables */
.dash-mini-tbl {
    display: flex;
    flex-direction: column;
}

.dash-mini-head {
    display: grid;
    grid-template-columns: 1.4fr 1fr 0.9fr;
    gap: 4px;
    padding: 3px 0;
    border-bottom: 1px solid var(--border);
    font-size: 4.5px;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
}

.dash-mini-row {
    display: grid;
    grid-template-columns: 1.4fr 1fr 0.9fr;
    gap: 4px;
    padding: 4px 0;
    border-bottom: 1px solid var(--border-light);
    font-size: 6px;
    align-items: center;
}

.dash-inv-head,
.dash-inv-row { grid-template-columns: 1.4fr 0.7fr 0.9fr 0.8fr; }

.dash-sub-head,
.dash-sub-row { grid-template-columns: 1.1fr 1.2fr 0.9fr 0.8fr; }

.dash-cust-head,
.dash-cust-row { grid-template-columns: 1.1fr 1.6fr 1.2fr 0.8fr; }

.dash-prod-head,
.dash-prod-row { grid-template-columns: 1.4fr 0.8fr 2fr; }

.dash-tx-amt {
    font-weight: 700;
    font-family: "SF Mono", Consolas, monospace;
}

.dash-chip {
    font-size: 4.5px;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    width: fit-content;
    display: inline-block;
}

.dash-chip.ok {
    background: rgba(16,185,129,0.12);
    color: var(--success);
}

.dash-chip.warn {
    background: rgba(239,68,68,0.12);
    color: #ef4444;
}

.dash-chip.dark {
    background: #1f2937;
    color: white;
}

.green { color: var(--success); font-weight: 700; }
.red { color: #ef4444; font-weight: 700; }

/* KPI grid */
.dash-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3px;
}

.dash-kpi {
    padding: 4px 5px;
    background: #f7f8fa;
    border-radius: 3px;
    border: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.dash-kpi-label {
    font-size: 4.5px;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
}

.dash-kpi-val {
    font-size: 6.5px;
    font-weight: 800;
    color: var(--navy);
}

/* Sales */
.dash-sales-head {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    text-align: center;
}

.dash-sales-col {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.dash-sales-label {
    font-size: 4.5px;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
}

.dash-sales-val {
    font-size: 7.5px;
    font-weight: 800;
    color: var(--navy);
}

.dash-sales-bars {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dash-sales-bar {
    position: relative;
    height: 12px;
    background: #f0f2f5;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.dash-sales-bar-fill {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    border-radius: 6px;
    animation: dashBarFill 1.5s ease-out forwards;
    animation-delay: 0.6s;
}

.dash-sales-bar-fill.teal { background: linear-gradient(90deg, #22d3ee, var(--teal)); }
.dash-sales-bar-fill.navy { background: linear-gradient(90deg, var(--teal), var(--navy)); }
.dash-sales-bar-fill.deep { background: linear-gradient(90deg, var(--navy), #0b1f3a); }

@keyframes dashBarFill {
    to { width: var(--w); }
}

.dash-sales-bar-lbl {
    position: relative;
    z-index: 2;
    padding-left: 8px;
    font-size: 4.5px;
    font-weight: 700;
    color: white;
    mix-blend-mode: difference;
}

.dash-sales-total {
    display: flex;
    justify-content: space-between;
    padding-top: 4px;
    border-top: 1px solid var(--border-light);
    font-size: 6px;
    font-weight: 600;
    color: var(--text-secondary);
}

.dash-sales-total-val {
    font-weight: 800;
    color: var(--navy);
}

/* Chart */
.dash-chart {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dash-chart-legend {
    display: flex;
    gap: 10px;
    font-size: 5px;
    color: var(--text-muted);
    justify-content: center;
}

.dash-chart-legend .dot {
    display: inline-block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    margin-right: 3px;
    vertical-align: middle;
}

.dash-chart-legend .dot.grey { background: #cbd5e1; }
.dash-chart-legend .dot.teal { background: var(--teal); }

.dash-chart-svg {
    width: 100%;
    height: 80px;
    display: block;
}

.dash-chart-line {
    stroke-dasharray: 800;
    stroke-dashoffset: 800;
    animation: dashDraw 2.5s ease-out forwards;
    animation-delay: 0.4s;
}

.dash-chart-prev {
    stroke-dasharray: 800;
    stroke-dashoffset: 800;
    animation: dashDraw 2.5s ease-out forwards;
    animation-delay: 0.2s;
}

.dash-chart-fill {
    opacity: 0;
    animation: dashFadeIn 1s ease-out forwards;
    animation-delay: 1.8s;
}

@keyframes dashDraw {
    to { stroke-dashoffset: 0; }
}

@keyframes dashFadeIn {
    to { opacity: 1; }
}

/* Responsive */
@media (max-width: 900px) {
    .ft-dashboard-mockup { max-width: 100%; }
}

@media (max-width: 600px) {
    .ft-dashboard-mockup { height: 340px; font-size: 6px; }
    .dash-two-col { grid-template-columns: 1fr; }
}

/* ============================================
   SCROLL-GATED MOCKUP ANIMATIONS — Features Page
   Hold all mockup animations in their initial frame
   until the parent .feature-detail enters view.
   ============================================ */
.feature-detail .anim-inv,
.feature-detail .anim-inv-row,
.feature-detail .ret-progress-fill,
.feature-detail .wal-bal-amt,
.feature-detail .wal-tx-badge.progress::before,
.feature-detail .dash-sales-bar-fill,
.feature-detail .dash-chart-line,
.feature-detail .dash-chart-prev,
.feature-detail .dash-chart-fill,
.feature-detail .dash-scroll {
    animation-play-state: paused;
}

.feature-detail.in-view .anim-inv,
.feature-detail.in-view .anim-inv-row,
.feature-detail.in-view .ret-progress-fill,
.feature-detail.in-view .wal-bal-amt,
.feature-detail.in-view .wal-tx-badge.progress::before,
.feature-detail.in-view .dash-sales-bar-fill,
.feature-detail.in-view .dash-chart-line,
.feature-detail.in-view .dash-chart-prev,
.feature-detail.in-view .dash-chart-fill,
.feature-detail.in-view .dash-scroll {
    animation-play-state: running;
}

/* ============================================
   SUBSCRIPTION MOCKUP — Features Page
   ============================================ */
.sub-mockup {
    display: flex;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border);
    background: #f0f2f5;
    font-size: 7px;
    line-height: 1.4;
    max-width: 620px;
    min-height: 400px;
}

.sub-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Header */
.sub-header {
    background: white;
    padding: 8px 12px;
    border-bottom: 1px solid var(--border-light);
}

.sub-breadcrumb {
    font-size: 5px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.sub-customer-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.sub-customer-name {
    display: block;
    font-size: 11px;
    font-weight: 800;
    color: var(--navy);
    line-height: 1.2;
}

.sub-customer-detail {
    display: block;
    font-size: 5px;
    color: var(--text-muted);
}

.sub-header-actions {
    display: flex;
    gap: 4px;
    align-items: flex-start;
}

.sub-action-btn {
    font-size: 5px;
    padding: 3px 6px;
    border: 1px solid var(--border);
    border-radius: 3px;
    color: var(--text-secondary);
    background: white;
    white-space: nowrap;
}

/* Metrics */
.sub-metrics {
    display: flex;
    gap: 4px;
    padding: 8px 12px;
    background: white;
    border-bottom: 1px solid var(--border-light);
}

.sub-metric-card {
    flex: 1;
    text-align: center;
    padding: 6px 4px;
    background: var(--bg-secondary);
    border-radius: 4px;
}

.sub-metric-label {
    display: block;
    font-size: 5px;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.sub-metric-val {
    display: block;
    font-size: 9px;
    font-weight: 800;
    color: var(--navy);
}

.sub-metric-val.warn {
    color: var(--warning);
}

/* Tabs */
.sub-tabs {
    display: flex;
    gap: 0;
    padding: 0 12px;
    background: white;
    border-bottom: 1px solid var(--border-light);
    overflow-x: auto;
}

.sub-tabs span {
    padding: 6px 8px;
    font-size: 6px;
    font-weight: 500;
    color: var(--text-muted);
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    cursor: default;
}

.sub-tabs span.active {
    color: var(--teal);
    border-bottom-color: var(--teal);
    font-weight: 700;
}

/* Detail card */
.sub-detail-card {
    margin: 8px 12px 0;
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    padding: 8px 10px;
}

.sub-detail-top,
.sub-detail-bottom {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    padding-bottom: 6px;
}

.sub-detail-top {
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 6px;
}

.sub-detail-col {
    min-width: 55px;
}

.sub-d-label {
    display: block;
    font-size: 5px;
    color: var(--text-muted);
    font-weight: 600;
}

.sub-d-val {
    font-size: 6px;
    font-weight: 600;
    color: var(--navy);
}

.sub-d-val.sub-link {
    color: var(--teal);
}

.sub-d-badge {
    display: inline-block;
    font-size: 5px;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 3px;
    text-transform: uppercase;
}

.sub-d-badge.upgrade {
    background: rgba(12,112,150,0.1);
    color: var(--teal);
}

/* Product table */
.sub-product-table {
    margin: 8px 12px 0;
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    overflow: hidden;
}

.sub-prod-head {
    display: grid;
    grid-template-columns: 3fr 0.8fr 1fr 0.8fr 0.8fr 1fr;
    gap: 3px;
    padding: 5px 10px;
    background: var(--navy);
    color: white;
    font-size: 5px;
    font-weight: 700;
    text-transform: uppercase;
}

.sub-prod-row {
    display: grid;
    grid-template-columns: 3fr 0.8fr 1fr 0.8fr 0.8fr 1fr;
    gap: 3px;
    padding: 6px 10px;
    font-size: 6px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-light);
    align-items: center;
}

.sub-prod-name {
    color: var(--navy);
    font-weight: 600;
}

.sub-prod-name small {
    font-weight: 400;
    color: var(--text-muted);
    font-size: 5px;
    display: block;
}

.sub-prod-totals {
    padding: 4px 10px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.sub-prod-total-row {
    display: flex;
    gap: 20px;
    font-size: 6px;
    color: var(--text-secondary);
}

.sub-prod-total-row span:last-child {
    font-weight: 700;
    color: var(--navy);
    min-width: 45px;
    text-align: right;
}

.sub-prod-total-row.total {
    font-size: 8px;
    font-weight: 800;
    padding-top: 3px;
    border-top: 1px solid var(--border-light);
}

.sub-prod-total-row.total span:last-child {
    font-size: 8px;
}

/* Notes */
.sub-notes {
    margin: 8px 12px 10px;
}

.sub-notes-label {
    display: block;
    font-size: 7px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 4px;
}

.sub-notes-box {
    padding: 6px 8px;
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 4px;
    font-size: 6px;
    color: var(--text-muted);
    min-height: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .sub-mockup {
        max-width: 100%;
        min-height: 300px;
    }

    .sub-metrics {
        flex-wrap: wrap;
    }

    .sub-metric-card {
        min-width: calc(33% - 4px);
    }

    .sub-tabs {
        gap: 0;
    }
}

/* ============================================
   ESTIMATE MOCKUP — Features Page
   ============================================ */
.est-mockup {
    display: flex;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border);
    background: #f0f2f5;
    font-size: 7px;
    line-height: 1.4;
    max-width: 640px;
    min-height: 420px;
}

.est-body {
    flex: 1;
    display: flex;
    min-width: 0;
    overflow: hidden;
}

/* Estimate list panel */
.est-list-panel {
    width: 180px;
    background: white;
    border-right: 1px solid var(--border-light);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.est-list-header {
    padding: 8px;
    border-bottom: 1px solid var(--border-light);
}

.est-list-title {
    display: block;
    font-size: 9px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 6px;
}

.est-list-actions {
    display: flex;
    gap: 4px;
    align-items: center;
}

.est-search-bar {
    flex: 1;
    height: 14px;
    background: #f0f2f5;
    border-radius: 3px;
    display: block;
}

.est-new-btn {
    padding: 3px 8px;
    background: var(--teal);
    color: white;
    font-size: 6px;
    font-weight: 700;
    border-radius: 3px;
    white-space: nowrap;
}

.est-list-items {
    flex: 1;
    overflow: hidden;
}

.est-item {
    padding: 6px 8px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    flex-direction: column;
    gap: 1px;
    cursor: default;
    transition: background 0.2s;
    position: relative;
}

.est-item.active {
    background: rgba(12,112,150,0.04);
    border-left: 2px solid var(--teal);
}

.est-item-name {
    font-size: 7px;
    font-weight: 700;
    color: var(--navy);
}

.est-item-meta {
    font-size: 5px;
    color: var(--text-muted);
}

.est-item-amt {
    position: absolute;
    top: 6px;
    right: 8px;
    font-size: 7px;
    font-weight: 700;
    color: var(--navy);
}

/* Estimate detail panel */
.est-detail-panel {
    flex: 1;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow-y: auto;
    min-width: 0;
}

.est-detail-header {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.est-detail-name {
    font-size: 10px;
    font-weight: 800;
    color: var(--navy);
}

.est-detail-ref {
    font-size: 5px;
    color: var(--text-muted);
}

.est-detail-status {
    font-size: 5px;
    color: var(--text-muted);
}

.est-link {
    color: var(--teal);
    font-weight: 600;
}

.est-detail-actions {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.est-act-btn {
    padding: 3px 6px;
    font-size: 5px;
    border: 1px solid var(--border);
    border-radius: 3px;
    color: var(--text-secondary);
    background: white;
}

/* Accepted banner */
.est-accepted-banner {
    padding: 5px 8px;
    background: rgba(16,185,129,0.08);
    border: 1px solid rgba(16,185,129,0.2);
    border-radius: 4px;
    font-size: 5px;
    color: var(--success);
    font-weight: 500;
}

/* Estimate document */
.est-document {
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    padding: 10px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.03);
}

.est-doc-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border-light);
}

.est-doc-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.est-doc-num {
    font-size: 7px;
    font-weight: 700;
    color: var(--navy);
}

.est-doc-date {
    font-size: 5px;
    color: var(--text-muted);
}

.est-doc-addresses {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.est-doc-table {
    margin-bottom: 6px;
}

.est-doc-totals {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    padding: 4px 0;
    border-top: 1px solid var(--border-light);
}

.est-notes {
    padding: 6px 0 0;
}

.est-service-link {
    font-size: 6px;
    color: var(--text-muted);
    padding: 4px 0;
    border-top: 1px solid var(--border-light);
}

/* Responsive */
@media (max-width: 900px) {
    .est-mockup {
        max-width: 100%;
    }

    .est-list-panel {
        width: 140px;
    }
}

@media (max-width: 600px) {
    .est-list-panel {
        display: none;
    }

    .est-mockup {
        min-height: 320px;
    }
}

/* ============================================
   PACKAGE MOCKUP — Features Page
   ============================================ */
.pkg-mockup {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border);
    background: #fafafa;
    font-size: 7px;
    line-height: 1.4;
    max-width: 580px;
    min-height: 400px;
    display: flex;
    flex-direction: column;
}

.pkg-brand-bar {
    background: white;
    padding: 8px 14px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: center;
}

.pkg-page {
    padding: 12px 14px;
    flex: 1;
    overflow: hidden;
}

.pkg-title-area {
    text-align: center;
    margin-bottom: 8px;
}

.pkg-name {
    font-size: 11px;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 3px;
}

.pkg-desc {
    font-size: 5px;
    color: var(--text-muted);
    max-width: 340px;
    margin: 0 auto;
    line-height: 1.5;
}

.pkg-banner {
    background: rgba(249,178,51,0.08);
    border: 1px solid rgba(249,178,51,0.25);
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 5px;
    color: #b47d09;
    font-weight: 500;
    text-align: center;
    margin-bottom: 10px;
}

.pkg-two-col {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 12px;
}

.pkg-section-title {
    display: block;
    font-size: 7px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 6px;
}

/* Order table */
.pkg-order-table {
    margin-bottom: 6px;
}

.pkg-order-head {
    display: grid;
    grid-template-columns: 3fr 1fr 0.5fr 1fr;
    gap: 3px;
    padding: 3px 0;
    border-bottom: 1px solid var(--border);
    font-size: 5px;
    font-weight: 600;
    color: var(--text-muted);
}

.pkg-order-row {
    display: grid;
    grid-template-columns: 3fr 1fr 0.5fr 1fr;
    gap: 3px;
    padding: 3px 0;
    border-bottom: 1px solid var(--border-light);
    font-size: 6px;
    color: var(--text-secondary);
}

.pkg-order-row span:first-child {
    font-weight: 600;
    color: var(--navy);
}

.pkg-order-subtotal {
    padding: 3px 0;
    border-bottom: 1px solid var(--border-light);
}

.pkg-sub-row {
    display: flex;
    justify-content: space-between;
    font-size: 6px;
    color: var(--text-muted);
}

.pkg-order-total {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    font-size: 8px;
    font-weight: 800;
    color: var(--navy);
    border-bottom: 1px solid var(--border-light);
}

.pkg-monthly {
    font-size: 6px;
    color: var(--teal);
    font-weight: 600;
    padding: 4px 0;
}

.pkg-fine-print {
    padding-top: 6px;
    border-top: 1px solid var(--border-light);
}

.pkg-fp-title {
    display: block;
    font-size: 7px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 3px;
}

.pkg-fp-line {
    font-size: 5px;
    color: var(--text-muted);
    padding-left: 6px;
    position: relative;
    line-height: 1.6;
}

.pkg-fp-line::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--teal);
}

/* Contact / Form side */
.pkg-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
    margin-bottom: 4px;
}

.pkg-field {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.pkg-field.full {
    grid-column: 1 / -1;
}

.pkg-field-label {
    font-size: 5px;
    font-weight: 600;
    color: var(--text-muted);
}

.pkg-field-input {
    display: block;
    height: 14px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 3px;
}

.pkg-field-select {
    display: block;
    height: 14px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 3px;
    font-size: 5px;
    color: var(--text-secondary);
    padding: 0 4px;
    line-height: 14px;
}

.pkg-checkbox {
    font-size: 5px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 3px;
}

.pkg-checkbox::before {
    content: '';
    width: 8px;
    height: 8px;
    border: 1px solid var(--border);
    border-radius: 2px;
    display: inline-block;
}

.pkg-payment-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 6px;
}

.pkg-pay-tab {
    padding: 3px 8px;
    font-size: 5px;
    font-weight: 600;
    border-radius: 3px;
    border: 1px solid var(--border);
    color: var(--text-muted);
    background: white;
}

.pkg-pay-tab.active {
    background: var(--navy);
    color: white;
    border-color: var(--navy);
}

/* Responsive */
@media (max-width: 768px) {
    .pkg-mockup {
        max-width: 100%;
    }

    .pkg-two-col {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   SERVICE JOB MOCKUP — Features Page
   ============================================ */
.sj-mockup {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border);
    background: white;
    font-size: 7px;
    line-height: 1.4;
    max-width: 480px;
    max-height: 460px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

/* Header */
.sj-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    background: white;
    z-index: 2;
}

.sj-title {
    font-size: 11px;
    font-weight: 800;
    color: var(--navy);
}

.sj-close {
    font-size: 16px;
    color: var(--text-muted);
    cursor: default;
    line-height: 1;
}

/* Info grid */
.sj-info-grid {
    padding: 8px 14px;
    border-bottom: 1px solid var(--border-light);
}

.sj-info-row {
    display: grid;
    grid-template-columns: 80px 1fr 80px 1fr;
    gap: 4px;
    padding: 5px 0;
    border-bottom: 1px solid var(--border-light);
    align-items: center;
}

.sj-info-row:last-child {
    border-bottom: none;
}

.sj-info-label {
    font-size: 6px;
    font-weight: 600;
    color: var(--text-muted);
}

.sj-info-val {
    font-size: 7px;
    font-weight: 600;
    color: var(--navy);
}

.sj-info-select {
    font-size: 7px;
    font-weight: 600;
    color: var(--teal);
    padding: 2px 8px;
    border: 1px solid var(--border);
    border-radius: 3px;
    background: white;
}

/* Notes box */
.sj-notes-box {
    padding: 8px 14px;
    border-bottom: 1px solid var(--border-light);
}

.sj-notes-content {
    display: flex;
    gap: 6px;
    margin-top: 4px;
    padding: 6px 8px;
    background: var(--bg-secondary);
    border-radius: 4px;
}

.sj-notes-content p {
    font-size: 6px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Tags */
.sj-tags-row {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-bottom: 1px solid var(--border-light);
}

.sj-tag {
    padding: 2px 8px;
    background: var(--teal);
    color: white;
    border-radius: 3px;
    font-size: 6px;
    font-weight: 600;
}

/* Section blocks */
.sj-section {
    padding: 8px 14px;
    border-bottom: 1px solid var(--border-light);
}

.sj-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.sj-section-title {
    font-size: 8px;
    font-weight: 800;
    color: var(--navy);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.sj-view-logs {
    font-size: 6px;
    color: var(--teal);
    font-weight: 600;
}

.sj-notes-placeholder {
    font-size: 6px;
    color: var(--text-muted);
    font-style: italic;
    padding: 4px 8px;
    background: var(--bg-secondary);
    border-radius: 3px;
    margin-bottom: 6px;
}

/* Shipping table */
.sj-shipping-table {
    margin-top: 6px;
}

.sj-ship-head {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 4px;
    padding: 4px 8px;
    background: var(--bg-secondary);
    border-radius: 3px 3px 0 0;
    font-size: 5px;
    font-weight: 700;
    color: var(--text-muted);
}

.sj-ship-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 4px;
    padding: 5px 8px;
    border: 1px solid var(--border-light);
    border-top: none;
    border-radius: 0 0 3px 3px;
    font-size: 7px;
    color: var(--navy);
    font-weight: 600;
}

/* Checkboxes */
.sj-checklist {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.sj-checkbox-row {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 0;
    font-size: 7px;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-light);
}

.sj-checkbox-row:last-child {
    border-bottom: none;
}

.sj-checkbox {
    width: 12px;
    height: 12px;
    border: 1.5px solid var(--border);
    border-radius: 2px;
    flex-shrink: 0;
    position: relative;
}

.sj-checkbox.checked {
    background: var(--teal);
    border-color: var(--teal);
}

.sj-checkbox.checked::after {
    content: '';
    position: absolute;
    top: 1px;
    left: 3px;
    width: 4px;
    height: 6px;
    border: solid white;
    border-width: 0 1.5px 1.5px 0;
    transform: rotate(45deg);
}

/* Footer */
.sj-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 14px;
    border-top: 1px solid var(--border-light);
    position: sticky;
    bottom: 0;
    background: white;
}

.sj-footer-btn {
    padding: 4px 12px;
    font-size: 7px;
    font-weight: 600;
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text-secondary);
    background: white;
}

.sj-btn-close {
    background: var(--bg-secondary);
}

/* Responsive */
@media (max-width: 768px) {
    .sj-mockup {
        max-width: 100%;
        max-height: 380px;
    }

    .sj-info-row {
        grid-template-columns: 60px 1fr 60px 1fr;
    }
}

/* ============================================
   PAYOUTS MOCKUP — Features Page
   ============================================ */
.po-mockup {
    display: flex;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border);
    background: #f0f2f5;
    font-size: 7px;
    line-height: 1.4;
    max-width: 640px;
    min-height: 380px;
}

.po-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: white;
}

.po-header {
    padding: 8px 10px;
    border-bottom: 1px solid var(--border-light);
}

.po-breadcrumb {
    font-size: 5px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.po-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.po-filters {
    display: flex;
    gap: 4px;
    align-items: center;
}

.po-filter-btn {
    padding: 3px 8px;
    font-size: 5px;
    font-weight: 600;
    border: 1px solid var(--border);
    border-radius: 3px;
    color: var(--text-secondary);
    background: white;
}

.po-filter-input {
    width: 60px;
    height: 14px;
    border: 1px solid var(--border);
    border-radius: 3px;
    background: white;
}

.po-header-actions {
    display: flex;
    gap: 4px;
}

.po-dl-btn {
    padding: 3px 8px;
    font-size: 5px;
    font-weight: 600;
    border: 1px solid var(--border);
    border-radius: 3px;
    color: var(--text-secondary);
    background: white;
}

.po-create-btn {
    padding: 3px 10px;
    font-size: 5px;
    font-weight: 700;
    border-radius: 3px;
    color: white;
    background: var(--teal);
}

/* Table */
.po-table {
    flex: 1;
    overflow: hidden;
}

.po-table-head {
    display: grid;
    grid-template-columns: 1.1fr 0.6fr 1.1fr 1.4fr 1fr 0.7fr 0.9fr 0.9fr 0.9fr 0.9fr;
    gap: 2px;
    padding: 4px 10px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-light);
    font-size: 5px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
}

.po-table-row {
    display: grid;
    grid-template-columns: 1.1fr 0.6fr 1.1fr 1.4fr 1fr 0.7fr 0.9fr 0.9fr 0.9fr 0.9fr;
    gap: 2px;
    padding: 4px 10px;
    border-bottom: 1px solid var(--border-light);
    font-size: 5.5px;
    color: var(--text-secondary);
    align-items: center;
}

.po-table-row:hover {
    background: rgba(12,112,150,0.02);
}

.po-link {
    color: var(--teal);
    font-weight: 600;
}

.po-badge {
    display: inline-block;
    padding: 1px 5px;
    border-radius: 3px;
    font-size: 5px;
    font-weight: 700;
    text-transform: uppercase;
    width: fit-content;
}

.po-badge.open {
    background: rgba(245,158,11,0.1);
    color: var(--warning);
}

.po-badge.paid {
    background: rgba(16,185,129,0.1);
    color: var(--success);
}

.po-badge.refund {
    background: rgba(239,68,68,0.1);
    color: var(--danger);
}

/* Pagination */
.po-pagination {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    border-top: 1px solid var(--border-light);
}

.po-page {
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5px;
    font-weight: 600;
    border-radius: 3px;
    color: var(--text-muted);
    border: 1px solid var(--border-light);
}

.po-page.active {
    background: var(--teal);
    color: white;
    border-color: var(--teal);
}

.po-page-text {
    font-size: 5px;
    color: var(--text-muted);
    margin-left: auto;
}

/* Responsive */
@media (max-width: 900px) {
    .po-mockup {
        max-width: 100%;
    }
}

@media (max-width: 600px) {
    .po-mockup .inv-sidebar {
        width: 30px;
    }

    .po-mockup .inv-sidebar-logo {
        display: none;
    }

    .po-table-head,
    .po-table-row {
        grid-template-columns: 1fr 1.2fr 0.8fr 0.8fr 0.8fr 0.8fr;
    }

    .po-table-head span:nth-child(2),
    .po-table-head span:nth-child(3),
    .po-table-head span:nth-child(5),
    .po-table-head span:nth-child(9),
    .po-table-row span:nth-child(2),
    .po-table-row span:nth-child(3),
    .po-table-row span:nth-child(5),
    .po-table-row span:nth-child(9) {
        display: none;
    }
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-section {
    padding: 80px 0 100px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: start;
}

/* -- Contact: Schedule Demo panel -- */
.contact-demo-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 48px 40px;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.contact-demo-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--teal), var(--teal-bright), var(--gold));
}

.contact-demo-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--teal);
    background: rgba(12, 112, 150, 0.08);
    padding: 6px 12px;
    border-radius: var(--radius-full);
    margin-bottom: 20px;
}

.contact-demo-title {
    font-size: clamp(1.75rem, 3.2vw, 2.25rem);
    font-weight: 800;
    color: var(--navy);
    line-height: 1.2;
    margin-bottom: 16px;
}

.contact-demo-desc {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
}

.contact-demo-list {
    list-style: none;
    padding: 0;
    margin: 0 0 32px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-demo-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    color: var(--text-secondary);
}

.contact-demo-list svg {
    flex-shrink: 0;
}

.contact-demo-cta {
    width: 100%;
    justify-content: center;
    padding: 18px 32px;
    font-size: 16px;
}

.contact-demo-alt {
    margin-top: 20px;
    font-size: 14px;
    color: var(--text-muted);
    text-align: center;
}

.contact-demo-alt a {
    color: var(--teal);
    font-weight: 600;
    text-decoration: none;
}

.contact-demo-alt a:hover {
    text-decoration: underline;
}

/* -- Contact Form (legacy, kept for reference) -- */
.contact-form-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-md);
}

.contact-form-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 28px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.form-group label .optional {
    font-weight: 400;
    color: var(--text-muted);
    font-size: 13px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--font);
    font-size: 15px;
    color: var(--text-primary);
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: var(--transition);
    outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(12, 112, 150, 0.1);
    background: var(--bg-card);
}

.form-group select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%237a8499' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
    cursor: pointer;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form .btn-primary {
    width: 100%;
    justify-content: center;
    padding: 16px 28px;
    font-size: 16px;
    border: none;
    cursor: pointer;
}

/* -- Contact Info -- */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-info-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.contact-info-card:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(12, 112, 150, 0.2);
}

.contact-info-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: rgba(12, 112, 150, 0.08);
    color: var(--teal);
    border-radius: var(--radius-md);
}

.contact-info-content h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 4px;
}

.contact-info-content p,
.contact-info-content a {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.contact-info-content a:hover {
    color: var(--teal);
}

/* -- Contact Social -- */
.contact-social {
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.contact-social h3 {
    font-size: 15px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 16px;
}

.contact-social-links {
    display: flex;
    gap: 12px;
}

.contact-social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: rgba(12, 112, 150, 0.08);
    color: var(--teal);
    transition: var(--transition);
}

.contact-social-links a:hover {
    background: var(--teal);
    color: var(--text-inverse);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(12, 112, 150, 0.3);
}

/* ============================================
   FAQ SECTION
   ============================================ */
.faq-section {
    padding: 80px 0 100px;
    background: var(--bg-secondary);
}

.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: 960px;
    margin: 0 auto;
}

.faq-item {
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.faq-item:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(12, 112, 150, 0.15);
}

.faq-item h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 12px;
    line-height: 1.4;
}

.faq-item p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.faq-item p a {
    color: var(--teal);
    font-weight: 500;
}

.faq-item p a:hover {
    text-decoration: underline;
}

/* -- Contact Page Responsive -- */
@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .faq-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .page-hero {
        padding: 140px 0 60px;
    }

    .contact-form-wrapper,
    .contact-demo-wrapper {
        padding: 32px 24px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-section {
        padding: 60px 0 80px;
    }

    .faq-section {
        padding: 60px 0 80px;
    }
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

[data-animate].in-view {
    opacity: 1;
    transform: translateY(0);
}

.animate-in {
    opacity: 0;
    transform: translateY(30px);
    animation: animateIn 0.8s ease-out forwards;
}

.animate-in:nth-child(1) { animation-delay: 0.1s; }
.animate-in:nth-child(2) { animation-delay: 0.2s; }
.animate-in:nth-child(3) { animation-delay: 0.3s; }
.animate-in:nth-child(4) { animation-delay: 0.4s; }
.animate-in:nth-child(5) { animation-delay: 0.5s; }
.animate-in:nth-child(6) { animation-delay: 0.6s; }

@keyframes animateIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .hero-row {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 0 20px;
    }

    .hero-text {
        text-align: center;
    }

    .hero-text .hero-badge {
        margin: 0 auto 24px;
    }

    .hero-text .hero-subtitle {
        margin: 0 auto 32px;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-visual {
        margin-right: 0;
        width: 100%;
        max-width: 800px;
        margin-left: auto;
        margin-right: auto;
    }

    .dashboard-mockup {
        transform: rotateY(0deg) rotateX(6deg) scale(0.98);
        transform-origin: center top;
    }

    .dashboard-mockup:hover {
        transform: rotateY(0deg) rotateX(1deg) scale(1);
    }

    .mockup-sidebar {
        width: 120px;
    }

    .mockup-body {
        min-height: 420px;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .workflow-timeline {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }

    .timeline-line {
        display: none;
    }

    .highlight-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .integrations-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .nav-links, .nav-actions {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-links.open {
        display: flex;
        flex-direction: column;
        width: 100%;
        background: var(--bg-card);
        padding: 20px 24px 16px;
        gap: 16px;
    }

    .nav-actions.open {
        display: flex;
        align-items: center;
        gap: 12px;
        width: 100%;
        padding: 16px 24px 20px;
        background: var(--bg-card);
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-lg);
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-actions.open .btn-ghost,
    .nav-actions.open .btn-primary-sm {
        flex: 1 1 140px;
        text-align: center;
        justify-content: center;
    }

    .nav-links.open {
        box-shadow: none;
        border-bottom: none;
    }

    .nav-container {
        flex-wrap: wrap;
    }

    /* Mobile dropdown — inline instead of absolute */
    .nav-dropdown-menu {
        position: static;
        transform: none;
        width: 100%;
        box-shadow: none;
        border: none;
        border-radius: 0;
        padding: 4px 0 0 12px;
        opacity: 1;
        visibility: visible;
        display: none;
        background: transparent;
    }

    .nav-dropdown-menu::before {
        display: none;
    }

    .nav-dropdown:hover .nav-dropdown-menu,
    .nav-dropdown.open .nav-dropdown-menu {
        display: block;
    }

    .nav-dd-item {
        padding: 6px 8px;
    }

    .nav-dd-title {
        font-size: 13px;
    }

    .nav-dd-desc {
        font-size: 11px;
    }

    .hero {
        padding: 100px 0 60px;
        min-height: auto;
    }

    .hero-visual {
        max-width: 100%;
    }

    .mockup-body {
        min-height: 300px;
    }

    .hero-title {
        font-size: 2.25rem;
    }

    .hero-cta-center {
        flex-direction: column;
        align-items: center;
    }

    .hero-stats-center {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }

    .mockup-sidebar {
        width: 40px;
    }

    .sidebar-item span,
    .sidebar-logo {
        display: none;
    }

    .sidebar-item {
        justify-content: center;
        padding: 7px 0;
    }

    .mockup-body {
        min-height: 300px;
    }

    .dash-table {
        display: none;
    }

    .stat-divider {
        display: none;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .workflow-timeline {
        grid-template-columns: 1fr;
    }

    .integrations-orbit {
        width: 300px;
        height: 300px;
    }

    .ring-1 {
        width: 200px;
        height: 200px;
        margin: -100px 0 0 -100px;
    }

    .ring-2 {
        width: 280px;
        height: 280px;
        margin: -140px 0 0 -140px;
    }

    .ring-1 .integration-node {
        transform: rotate(var(--angle)) translateX(100px) rotate(calc(-1 * var(--angle)));
    }

    .ring-2 .integration-node {
        transform: rotate(var(--angle)) translateX(140px) rotate(calc(-1 * var(--angle)));
    }

    .integrations-list {
        grid-template-columns: 1fr;
    }

    .tab-buttons {
        flex-direction: column;
    }

    .tab-panel {
        grid-template-columns: 1fr;
        padding: 24px;
    }

    .cta-actions {
        flex-direction: column;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .mockup-sidebar {
        width: 36px;
    }

    .sidebar-item span,
    .sidebar-logo {
        display: none;
    }

    .sidebar-item {
        justify-content: center;
        padding: 7px 0;
    }

    .dash-table {
        display: none;
    }

    .floating-card {
        display: none;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero-title {
        font-size: 1.85rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .mockup-sidebar {
        width: 36px;
    }

    .sidebar-item span,
    .sidebar-logo {
        display: none;
    }

    .sidebar-item {
        justify-content: center;
        padding: 7px 0;
    }

    .dash-funding-row {
        flex-wrap: wrap;
    }

    .dash-two-col {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   RESPONSIVE POLISH — Tablet & Phone
   ============================================ */

/* Prevent horizontal overflow globally */
html, body {
    overflow-x: hidden;
    max-width: 100%;
}

/* Chat widget mount point: sits inline next to Sign In on desktop. */
.nav-actions #chatWithUs {
    display: inline-flex;
    align-items: center;
    line-height: 0;
}

/* Fallback mount (auto-injected when no nav mount exists) — pinned. */
body > #chatWithUs {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 9998;
}

/* Make images & mockups fluid by default */
img,
svg,
video {
    max-width: 100%;
    height: auto;
}

/* Tablet: 601–900px */
@media (max-width: 900px) {
    .page-hero {
        padding: 130px 0 70px;
    }
    .feature-detail {
        padding: 60px 0;
    }
    .feature-detail-grid {
        gap: 40px;
    }
    .section-subtitle,
    .page-hero .section-subtitle {
        font-size: 16px;
    }
    .footer-grid {
        gap: 32px;
    }
}

/* Phone: ≤600px */
@media (max-width: 600px) {
    .page-hero {
        padding: 110px 0 50px;
    }
    .feature-detail {
        padding: 48px 0;
    }
    .feature-detail-grid {
        gap: 28px;
    }
    .section-title,
    .page-hero .section-title {
        font-size: clamp(1.75rem, 6vw, 2.25rem);
    }
    .section-subtitle {
        font-size: 15px;
        line-height: 1.6;
    }
    .btn-primary,
    .btn-secondary,
    .btn-ghost,
    .btn-primary-sm {
        padding: 12px 20px;
        font-size: 14px;
    }
    .hero-cta,
    .cta-actions {
        flex-direction: column;
        width: 100%;
    }
    .hero-cta .btn-primary,
    .hero-cta .btn-secondary,
    .cta-actions .btn-primary,
    .cta-actions .btn-secondary {
        width: 100%;
        justify-content: center;
    }
    .hero-stats,
    .hero-stats-center {
        gap: 12px;
        flex-wrap: wrap;
    }
    .footer {
        padding: 60px 0 32px;
    }
    .footer-grid {
        gap: 24px;
        margin-bottom: 40px;
    }
    .contact-info-card {
        padding: 16px;
    }
    /* Features mockups: keep visible but don't let them overflow */
    .invoice-mockup,
    .retainer-mockup,
    .wallet-mockup,
    .sub-mockup,
    .est-mockup,
    .pkg-mockup,
    .sj-mockup,
    .po-mockup,
    .ft-dashboard-mockup {
        max-width: 100%;
    }
    /* Solutions: workflow steps tighter */
    .workflow-step {
        padding: 16px !important;
    }
    /* Nav logo a bit smaller */
    .nav-logo-img {
        height: 28px;
    }
}

/* Very small phones ≤380px: shrink navbar padding */
@media (max-width: 380px) {
    .nav-container {
        padding: 0 16px;
    }
    .page-hero {
        padding: 100px 0 40px;
    }
    .section-title,
    .page-hero .section-title {
        font-size: 1.55rem;
    }
}

/* ============================================
   EXTRA POLISH
   ============================================ */
::selection {
    background: rgba(12, 112, 150, 0.15);
    color: var(--navy);
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--teal);
    outline-offset: 2px;
    border-radius: 2px;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    [data-animate] {
        opacity: 1;
        transform: none;
    }
}
