:root {
    --primary-dark: #1a3a5c;
    --accent-teal: #1a9190;
    --white: #FFFFFF;
    --light-gray: #F5F7FA;
    --text-gray: #64748B;
    --action-coral: #d4930f;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

@keyframes arrowPulse {
    0%, 100% { box-shadow: 0 8px 25px rgba(0,178,178,0.3); transform: scale(1); }
    50% { box-shadow: 0 8px 35px rgba(0,178,178,0.5); transform: scale(1.08); }
}

@keyframes tableRowReveal {
    from { opacity: 0; transform: translateX(15px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes heroAmbient {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(-3%, 3%) rotate(1deg); }
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(15px, -25px); }
    50% { transform: translate(-10px, 15px); }
    75% { transform: translate(20px, 10px); }
}

@keyframes scanSweep {
    0% { top: 60px; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: calc(100% - 10px); opacity: 0; }
}

@keyframes scanRowReveal {
    from { opacity: 0; transform: translateX(-15px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes statPulse {
    0%, 100% { text-shadow: 0 0 20px rgba(0,178,178,0.3); }
    50% { text-shadow: 0 0 40px rgba(0,178,178,0.6); }
}

@keyframes gradientBorder {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes fileDrop {
    0% { opacity: 0; transform: translateY(-30px); }
    70% { opacity: 1; transform: translateY(4px); }
    100% { opacity: 1; transform: translateY(0); }
}

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

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

/* ============================================================
   HISTORY — CSS VARIABLES (extend :root)
   ============================================================ */

:root {
    --border-light: #E2E8F0;
    --border-medium: #CBD5E1;
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.05);
    --card-radius: 16px;
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --status-success: #16a34a;
    --status-success-bg: #dcfce7;
    --status-error: #dc2626;
    --status-error-bg: #fee2e2;
    --status-warning: #d97706;
    --status-warning-bg: #fef3c7;
    --status-processing: #2563eb;
    --status-processing-bg: #dbeafe;
}

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

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

@keyframes pillPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); }
    50% { box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.1); }
}

@keyframes meterPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

@keyframes banner-pop {
    from { opacity: 0; transform: translateY(-8px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0)   scale(1); }
}

/* Everything else is scoped to the React-rendered app containers only,
   so it never touches the Astro-rendered marketing markup that shares
   this same index.html page. */
@scope (:is(#homepage-upload-widget, #root)) {
/* ========================================
   LossRunGuru - Main Stylesheet
   ======================================== */

/* ========== RESET & BASE STYLES ========== */

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



body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--primary-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ========== LAYOUT COMPONENTS ========== */

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

/* ========== HEADER & NAVIGATION ========== */

header {
    background: var(--white);
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

/* The auth-page Header/Footer reuse the marketing site's own Astro-scoped
   .site-header/.site-footer styling (see BaseLayout.Deir0Ls1.css) rather than
   the rules above -- reset what those rules don't already cover so it isn't
   double-styled on top of the marketing CSS. */
header.site-header {
    padding: 0;
    box-shadow: none;
}

footer.site-footer {
    padding: 0;
    text-align: left;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-dark);
}

.logo-text {
    color: var(--primary-dark);
}

.logo-ai {
    color: var(--accent-teal);
}

.nav-cta {
    background: var(--accent-teal);
    color: var(--white);
    padding: 12px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.nav-cta:hover {
    background: #009999;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 178, 178, 0.3);
}

/* ========== HERO SECTION ========== */

.hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #2A4A6F 100%);
    color: var(--white);
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 178, 178, 0.1));
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text h1 {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-text .highlight {
    color: var(--accent-teal);
}

.hero-text p {
    font-size: 20px;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
}

.hero-cta {
    display: inline-block;
    background: var(--accent-teal);
    color: var(--white);
    padding: 16px 40px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    transition: all 0.3s ease;
}

.hero-cta:hover {
    background: #009999;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 178, 178, 0.4);
}

.hero-image {
    position: relative;
    padding: 0;
    min-height: 460px;
}

/* Hero Cards — shared */
.hero-card {
    position: absolute;
    border-radius: 14px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
    font-size: 12px;
    line-height: 1.4;
    color: #1a3a5c;
}

/* PDF Statement Card */
.hero-card-pdf {
    top: 0;
    left: 0;
    width: 52%;
    background: #fff;
    z-index: 1;
}

.hero-card-header {
    background: linear-gradient(135deg, #1a9190, #0e7c7b);
    color: #fff;
    padding: 14px 18px 10px;
    border-radius: 14px 14px 0 0;
}

.hero-card-title {
    font-size: 14px;
    font-weight: 700;
}

.hero-card-subtitle {
    font-size: 11px;
    opacity: 0.85;
}

.hero-card-body {
    padding: 14px 18px 16px;
}

.hero-card-field {
    font-size: 11px;
    line-height: 1.6;
}

.hero-card-muted {
    color: #94a3b8;
    font-size: 10.5px;
}

.hero-card-divider {
    border-top: 1px solid #e2e8f0;
    margin: 8px 0;
}

.hero-card-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 10.5px;
}

.hero-card-table thead th {
    background: linear-gradient(135deg, #1a9190, #0e7c7b);
    color: #fff;
    padding: 5px 8px;
    text-align: left;
    font-weight: 600;
    font-size: 10px;
}

.hero-card-table thead th:first-child {
    border-radius: 4px 0 0 0;
}

.hero-card-table thead th:last-child {
    border-radius: 0 4px 0 0;
}

.hero-card-table tbody td {
    padding: 4px 8px;
    border-bottom: 1px solid #f1f5f9;
}

.hero-card-table tbody tr:nth-child(even) {
    background: #f8fafc;
}

/* CSV Output Card */
.hero-card-csv {
    top: 80px;
    right: -10px;
    width: 58%;
    background: linear-gradient(135deg, #1a9190, #0e7c7b);
    z-index: 2;
    padding: 4px;
    border-radius: 14px;
}

.hero-csv-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 10.5px;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 10px;
    overflow: hidden;
}

.hero-csv-table thead th {
    background: #0a6e6e;
    color: #fff;
    padding: 7px 8px;
    text-align: left;
    font-weight: 600;
    font-size: 10.5px;
}

.hero-csv-table tbody td {
    padding: 5px 8px;
    border-bottom: 1px solid #e0f0f0;
}

.hero-csv-table tbody tr:nth-child(even) {
    background: rgba(0, 178, 178, 0.06);
}

/* Positive / Negative amounts */
.hero-card .pos, .hero-csv-table .pos {
    color: #16a34a;
    font-weight: 600;
}

.hero-card .neg, .hero-csv-table .neg {
    color: #dc2626;
    font-weight: 600;
}

/* Badges — document icon + label */
.hero-card-badge {
    position: absolute;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

.hero-card-badge-pdf {
    top: -18px;
    right: 20px;
}

.hero-card-badge-csv {
    bottom: -18px;
    right: 20px;
}

.hero-badge-doc {
    line-height: 0;
}

.hero-badge-label {
    padding: 3px 10px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #fff;
    margin-top: -6px;
}

.hero-badge-label-pdf {
    background: #c0392b;
}

.hero-badge-label-csv {
    background: #27ae60;
}

/* Arrow */
.hero-arrow {
    position: absolute;
    bottom: 14%;
    right: 28%;
    z-index: 3;
    transform: scaleY(-1) rotate(90deg) scale(1.3);
}

/* ========== PROBLEM SECTION ========== */

.problem {
    padding: 80px 0;
    background: var(--light-gray);
    text-align: center;
}

.problem h2 {
    font-size: 36px;
    margin-bottom: 20px;
    color: var(--primary-dark);
}

.problem p {
    font-size: 18px;
    color: var(--text-gray);
    max-width: 800px;
    margin: 0 auto 40px;
}

.pain-points {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.pain-point {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.pain-point-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--accent-teal), #009999);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--white);
    box-shadow: 0 4px 15px rgba(0, 178, 178, 0.2);
}

.pain-point h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--primary-dark);
}

.pain-point p {
    font-size: 16px;
    color: var(--text-gray);
    margin: 0;
}

/* ========== HOW IT WORKS SECTION ========== */

.how-it-works {
    padding: 80px 0;
    background: var(--white);
}

.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 20px;
    color: var(--primary-dark);
}

.section-subtitle {
    text-align: center;
    font-size: 18px;
    color: var(--text-gray);
    max-width: 700px;
    margin: 0 auto 60px;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
    position: relative;
}

.step {
    text-align: center;
    position: relative;
}

.step:not(:last-child)::after {
    content: '→';
    position: absolute;
    right: -40px;
    top: 30px;
    font-size: 40px;
    color: var(--primary-dark);
    font-weight: 300;
}

@media (min-width: 769px) and (max-width: 1100px) {
    .step:not(:last-child)::after {
        right: -30px;
        font-size: 32px;
    }
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--accent-teal);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    margin: 0 auto 20px;
}

.step h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--primary-dark);
}

.step p {
    font-size: 16px;
    color: var(--text-gray);
}

/* ========== FEATURES SECTION ========== */

.features {
    padding: 80px 0;
    background: var(--primary-dark);
    color: var(--white);
}

.features .section-title {
    color: var(--white);
}

.features .section-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.feature {
    text-align: center;
    padding: 30px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.feature:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: var(--accent-teal);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
}

.feature h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

.feature p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
}

/* ========== USE CASES SECTION ========== */

.use-cases {
    padding: 80px 0;
    background: var(--light-gray);
}

.use-case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.use-case {
    background: var(--white);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.use-case h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--primary-dark);
}

.use-case-title {
    color: var(--accent-teal);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.use-case p {
    font-size: 16px;
    color: var(--text-gray);
    margin-bottom: 20px;
}

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

.use-case ul li {
    padding: 8px 0;
    padding-left: 30px;
    position: relative;
    color: var(--text-gray);
}

.use-case ul li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-teal);
    font-weight: bold;
}

/* ========== FAQ SECTION ========== */

.faq {
    padding: 80px 0;
    background: var(--white);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--light-gray);
    border-radius: 12px;
    margin-bottom: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.faq-question {
    padding: 25px 30px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 18px;
    color: var(--primary-dark);
    user-select: none;
}

.faq-question:hover {
    color: var(--accent-teal);
}

.faq-icon {
    font-size: 24px;
    color: var(--accent-teal);
    transition: transform 0.3s ease;
    flex-shrink: 0;
    margin-left: 20px;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 30px;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 30px 25px 30px;
}

.faq-answer p {
    color: var(--text-gray);
    font-size: 16px;
    line-height: 1.7;
}

/* ========== CTA SECTION ========== */

.cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--accent-teal) 0%, #008B8B 100%);
    color: var(--white);
    text-align: center;
}

.cta-section h2 {
    font-size: 42px;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.95;
}

.waitlist-form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.waitlist-form input {
    flex: 1;
    min-width: 250px;
    padding: 16px 20px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
}

.waitlist-form button {
    padding: 16px 40px;
    background: var(--primary-dark);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

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

/* Framed variant: for waitlist forms sitting on a light/white card (e.g. the
   dashboard's Coming Soon panel), where the default borderless input blends
   into the background instead of standing out against a colored section. */
.waitlist-form input.waitlist-input--framed {
    border: 2px solid #E2E8F0;
    background: var(--white);
    color: var(--primary-dark);
}

.waitlist-form input.waitlist-input--framed:focus {
    outline: none;
    border-color: var(--accent-teal);
    box-shadow: 0 0 0 3px rgba(26, 145, 144, 0.12);
}

/* Keeps the input and submit button on one line — needs more room than the
   500px default since "Email Me When Available" is longer than the
   marketing site's usual button copy. */
.waitlist-form.waitlist-form--inline {
    max-width: 640px;
    flex-wrap: nowrap;
}

@media (max-width: 560px) {
    .waitlist-form.waitlist-form--inline {
        flex-wrap: wrap;
    }
}

/* ========== HUBSPOT FORM STYLING ========== */

/* HubSpot Form Styling - Modern Premium Look */
.hs-form-frame {
    max-width: 650px;
    margin: 40px auto 0;
    display: block;
    background: rgba(255, 255, 255, 0.98);
    padding: 50px;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    width: 100%;
    min-height: 400px;
    height: auto !important;
}

/* Ensure form content displays properly */
.hs-form-frame iframe {
    height: auto !important;
    min-height: 400px !important;
    max-width: 100%;
    width: 100%;
}

/* Style the form inputs */
.hs-form-frame input[type="email"],
.hs-form-frame input[type="text"],
.hs-form-frame input[type="number"] {
    border: 2px solid #E2E8F0 !important;
    border-radius: 8px !important;
    padding: 14px 18px !important;
    font-size: 16px !important;
    transition: all 0.3s ease !important;
}

.hs-form-frame input[type="email"]:focus,
.hs-form-frame input[type="text"]:focus,
.hs-form-frame input[type="number"]:focus {
    border-color: var(--accent-teal) !important;
    box-shadow: 0 0 0 3px rgba(0, 178, 178, 0.1) !important;
    outline: none !important;
}

/* Style the form button */
.hs-form-frame button {
    background: var(--accent-teal) !important;
    color: var(--white) !important;
    padding: 14px 36px !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(0, 178, 178, 0.2) !important;
}

.hs-form-frame button:hover {
    background: #009999 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 25px rgba(0, 178, 178, 0.35) !important;
}

/* Label styling */
.hs-form-frame label {
    font-weight: 600 !important;
    color: var(--primary-dark) !important;
    font-size: 15px !important;
    margin-bottom: 8px !important;
}

/* Footer text styling */
.hs-form-frame .hs-field-desc {
    color: var(--text-gray) !important;
    font-size: 14px !important;
}

/* ========== FOOTER ========== */

footer {
    background: var(--primary-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 40px 0;
    text-align: center;
}

footer p {
    margin-bottom: 10px;
}

.footer-logo {
    margin-bottom: 20px;
}

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

/* ========== SMOOTH SCROLLING ========== */

html {
    scroll-behavior: smooth;
}

/* ========== RESPONSIVE DESIGN ========== */

@media (max-width: 768px) {
    .logo {
        font-size: 18px;
    }

    .footer-logo img {
        height: 28px;
    }

    .step:not(:last-child)::after {
        display: none;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-text h1 {
        font-size: 36px;
    }

    .hero-text p {
        font-size: 18px;
    }

    .hero-image {
        min-height: 340px;
        margin: 0 auto;
        max-width: 400px;
        width: 100%;
    }

    .hero-card-pdf {
        width: 56%;
    }

    .hero-card-csv {
        width: 60%;
        top: 60px;
        right: -5px;
    }

    .hero-card-field {
        font-size: 10px;
    }

    .hero-card-field strong {
        font-size: 11px;
    }

    .hero-card-muted {
        font-size: 9.5px;
    }

    .hero-card-table,
    .hero-csv-table {
        font-size: 9px;
    }

    .hero-card-table thead th,
    .hero-csv-table thead th {
        font-size: 9px;
        padding: 4px 6px;
    }

    .hero-card-table tbody td,
    .hero-csv-table tbody td {
        padding: 3px 6px;
    }

    .hero-card-title {
        font-size: 12px;
    }

    .hero-card-subtitle {
        font-size: 10px;
    }

    .hero-card-header {
        padding: 10px 14px 8px;
    }

    .hero-card-body {
        padding: 10px 14px 12px;
    }

    .hero-badge-doc svg {
        width: 28px;
        height: 34px;
    }

    .hero-badge-label {
        font-size: 10px;
        padding: 2px 8px;
    }

    .hero-image {
        min-height: 520px;
    }

    .hero-arrow {
        bottom: auto;
        right: auto;
        top: 50%;
        left: 50%;
        transform: scaleY(-1) rotate(90deg) scale(0.8);
        z-index: 4;
    }

    .section-title {
        font-size: 28px;
    }

    .steps,
    .feature-grid,
    .use-case-grid {
        grid-template-columns: 1fr;
    }

    .waitlist-form {
        flex-direction: column;
    }

    .waitlist-form input {
        min-width: 100%;
    }

    .pain-points {
        grid-template-columns: 1fr;
    }

    .hs-form-frame {
        max-width: 100%;
        padding: 30px 20px;
        margin: 30px auto 0;
        min-height: 350px;
    }

    .hs-form-frame iframe {
        min-height: 350px !important;
    }

    .hs-form-frame input[type="email"],
    .hs-form-frame input[type="text"],
    .hs-form-frame input[type="number"] {
        padding: 12px 16px !important;
    }

    .hs-form-frame button {
        padding: 12px 32px !important;
        font-size: 15px !important;
    }

    .cta-section h2 {
        font-size: 32px;
    }

    .cta-section p {
        font-size: 18px;
    }
}

/* ========== UPLOAD FLOW STYLES ========== */

.upload-flow-container {
    min-height: 100vh;
    background: var(--light-gray);
    display: flex;
    flex-direction: column;
}

.upload-flow-header {
    background: var(--white);
    padding: 30px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.upload-flow-header .logo {
    justify-content: center;
    margin-bottom: 10px;
}

.app-description {
    text-align: center;
    color: var(--text-gray);
    font-size: 16px;
}

.upload-flow-content {
    flex: 1;
    padding: 40px 0;
}

/* Progress Steps */
.progress-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
    gap: 20px;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.step-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--white);
    border: 3px solid var(--text-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    color: var(--text-gray);
    transition: all 0.3s ease;
}

.progress-step.active .step-circle {
    background: var(--accent-teal);
    border-color: var(--accent-teal);
    color: var(--white);
}

.step-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-gray);
}

.progress-step.active .step-label {
    color: var(--accent-teal);
}

/* Completed step state — checkmark replaces number (Plan item 1c) */
.progress-step.completed .step-circle {
    background: var(--accent-teal);
    border-color: var(--accent-teal);
    color: var(--white);
}

.progress-step.completed .step-label {
    color: var(--accent-teal);
}

.progress-line {
    width: 80px;
    height: 3px;
    background: var(--text-gray);
    opacity: 0.3;
}

/* Filled progress line between completed steps */
.progress-line.completed {
    background: var(--accent-teal);
    opacity: 1;
}

/* Upload Card */
.upload-card {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 16px;
    padding: 50px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

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

.step-content h2 {
    font-size: 28px;
    margin-bottom: 15px;
    color: var(--primary-dark);
}

.step-description {
    font-size: 16px;
    color: var(--text-gray);
    margin-bottom: 30px;
}

/* Upload Area */
.upload-area {
    margin: 30px 0;
}

.upload-label {
    display: block;
    padding: 60px 40px;
    border: 3px dashed var(--accent-teal);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--light-gray);
}

.upload-label:hover {
    background: rgba(0, 178, 178, 0.05);
    border-color: #009999;
}

.upload-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.upload-text {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.upload-hint {
    display: block;
    font-size: 14px;
    color: var(--text-gray);
}

/* Upload Status */
.upload-success {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    background: #D4EDDA;
    border: 1px solid #28A745;
    border-radius: 8px;
    color: #155724;
    margin-bottom: 20px;
}

.success-icon {
    font-size: 20px;
    font-weight: bold;
}

.upload-error {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    background: #F8D7DA;
    border: 1px solid #DC3545;
    border-radius: 8px;
    color: #721C24;
    margin-bottom: 20px;
}

.error-icon {
    font-size: 20px;
    font-weight: bold;
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 52px;
    background: var(--accent-teal);
    color: var(--white);
    padding: 0 40px;
    border-radius: 8px;
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    text-decoration: none;
}

.btn-primary:hover:not(:disabled) {
    background: #009999;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 178, 178, 0.4);
}

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

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 52px;
    box-sizing: border-box;
    background: var(--white);
    color: var(--accent-teal);
    padding: 0 40px;
    border-radius: 8px;
    border: 2px solid var(--accent-teal);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    text-decoration: none;
}

.btn-secondary:hover {
    background: var(--accent-teal);
    color: var(--white);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.2s ease;
    border: none;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

/* Email Form */
.email-form {
    text-align: left;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--primary-dark);
}

.form-group input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #E2E8F0;
    border-radius: 8px;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-teal);
    box-shadow: 0 0 0 3px rgba(0, 178, 178, 0.1);
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.consent-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 20px;
    text-align: left;
}

.consent-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 3px;
    flex-shrink: 0;
    cursor: pointer;
}

.consent-checkbox label {
    font-size: 14px;
    color: var(--text-gray);
    cursor: pointer;
}

.consent-checkbox a {
    color: var(--accent-teal);
    font-weight: 600;
}

/* Success State */
.success-state {
    padding: 20px 0;
}

.success-icon-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--accent-teal);
    color: var(--white);
    font-size: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.email-display {
    font-size: 18px;
    font-weight: 600;
    color: var(--accent-teal);
    margin: 20px 0;
}

.instruction-text {
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 30px;
}

/* "Check Your Inbox" success state (Plan item 1b) */
.inbox-prompt {
    font-size: 15px;
    color: var(--primary-dark);
    margin-bottom: 24px;
    line-height: 1.6;
}

.btn-open-email {
    display: inline-block;
    background: var(--accent-teal);
    color: var(--white);
    padding: 14px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    margin-bottom: 12px;
}

.btn-open-email:hover {
    background: #009999;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 178, 178, 0.4);
}

.fallback-text {
    font-size: 13px;
    color: var(--text-gray);
    margin-top: 8px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .upload-card {
        padding: 30px 20px;
        border-radius: 12px;
    }

    .progress-steps {
        gap: 10px;
    }

    .progress-line {
        width: 40px;
    }

    .step-circle {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .step-label {
        font-size: 12px;
    }

    .upload-label {
        padding: 40px 20px;
    }

    .form-actions {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
    }

    .step-content h2 {
        font-size: 24px;
    }
}

/* ========== FILE UPLOAD COMPONENT ========== */

.file-upload-wrapper {
    margin: 30px 0;
}

.upload-area {
    display: block;
    padding: 60px 40px;
    border: 3px dashed var(--accent-teal);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--light-gray);
    text-align: center;
}

.upload-area:hover:not(.disabled) {
    background: rgba(0, 178, 178, 0.05);
    border-color: #009999;
}

.upload-area.dragging {
    background: rgba(0, 178, 178, 0.1);
    border-color: #009999;
    border-style: solid;
}

.upload-area.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.upload-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.upload-text {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.upload-hint {
    display: block;
    font-size: 14px;
    color: var(--text-gray);
}

/* File Selected State */
.file-selected {
    padding: 30px;
    background: var(--light-gray);
    border: 2px solid #E2E8F0;
    border-radius: 12px;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.file-icon {
    font-size: 36px;
    flex-shrink: 0;
}

.file-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.file-name {
    font-weight: 600;
    color: var(--primary-dark);
    font-size: 16px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-size {
    font-size: 14px;
    color: var(--text-gray);
}

.file-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.btn-change,
.btn-remove {
    padding: 10px 24px;
    border-radius: 6px;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.btn-change {
    background: var(--accent-teal);
    color: var(--white);
}

.btn-change:hover:not(:disabled) {
    background: #009999;
}

/* Subtle text-link style for destructive secondary action (Plan item 2c) */
.btn-remove {
    background: transparent;
    color: var(--text-gray);
    border: none;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.btn-remove:hover:not(:disabled) {
    color: #DC3545;
    background: transparent;
}

.btn-change:disabled,
.btn-remove:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ========== HOMEPAGE UPLOAD WIDGET SECTION ========== */

.upload-widget-section {
    background: var(--light-gray);
    padding: 60px 0;
    scroll-margin-top: 80px;
}

.upload-flow-embedded {
    max-width: 600px;
    margin: 0 auto;
}

.upload-flow-embedded .progress-steps {
    margin-bottom: 30px;
}

.upload-flow-embedded .upload-card {
    background: var(--white);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.upload-flow-embedded .step-content h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--primary-dark);
}

.upload-flow-embedded .step-description {
    color: var(--text-gray);
    margin-bottom: 24px;
}

.upload-flow-embedded .step-content > .btn-primary {
    width: 100%;
    margin-top: 20px;
}

.upload-flow-embedded .form-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
}

.upload-flow-embedded .form-actions .btn-primary,
.upload-flow-embedded .form-actions .btn-secondary {
    width: auto;
    min-width: 120px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .upload-area {
        padding: 40px 20px;
    }

    .file-actions {
        flex-direction: column;
    }

    .btn-change,
    .btn-remove {
        width: 100%;
    }

    .upload-widget-section {
        padding: 40px 0;
    }

    .upload-flow-embedded .upload-card {
        padding: 24px;
    }
}

/* ========== NAVIGATION (MULTI-PAGE) ========== */

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    text-decoration: none;
    color: var(--primary-dark);
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s ease;
    position: relative;
    padding: 4px 0;
}

.nav-link:hover {
    color: var(--accent-teal);
}

.nav-link-active {
    color: var(--accent-teal);
}

.nav-link-active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-teal);
    border-radius: 1px;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 110;
}

.hamburger-line {
    width: 24px;
    height: 2px;
    background: var(--primary-dark);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        gap: 0;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        z-index: 100;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links .nav-link {
        padding: 12px 0;
        width: 100%;
        border-bottom: 1px solid var(--light-gray);
    }

    .nav-links .nav-cta {
        margin-top: 12px;
        text-align: center;
        width: 100%;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    header nav {
        position: relative;
    }
}

/* ========== ENHANCED FOOTER ========== */

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

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin-top: 12px;
    line-height: 1.6;
    text-align: left;
}

.footer-column-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 20px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--accent-teal);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    text-align: center;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-image {
        min-height: 440px;
        max-width: 320px;
    }

    .hero-card-csv {
        top: 50px;
    }

    .hero-card-table,
    .hero-csv-table {
        font-size: 8px;
    }

    .hero-card-table thead th,
    .hero-csv-table thead th {
        font-size: 8px;
        padding: 3px 4px;
    }

    .hero-card-table tbody td,
    .hero-csv-table tbody td {
        padding: 2px 4px;
    }

    .hero-card-field {
        font-size: 9px;
    }

    .hero-card-muted {
        font-size: 8.5px;
    }

    .hero-arrow {
        top: 50%;
        left: 58%;
        transform: scaleY(-1) rotate(90deg) scale(0.65);
    }
}

/* ========== PAGE HERO (INNER PAGES) ========== */

.page-hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #2A4A6F 100%);
    color: var(--white);
    padding: 60px 0 50px;
    text-align: center;
}

.page-hero h1 {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 12px;
}

.page-hero p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.85);
    max-width: 600px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .page-hero {
        padding: 40px 0 35px;
    }

    .page-hero h1 {
        font-size: 30px;
    }
}

/* ========== BREADCRUMBS ========== */

.breadcrumbs {
    padding: 16px 0;
    font-size: 14px;
    color: var(--text-gray);
}

.breadcrumb-link {
    color: var(--accent-teal);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-link:hover {
    color: #009999;
}

.breadcrumb-separator {
    margin: 0 8px;
    color: var(--text-gray);
}

.breadcrumb-current {
    color: var(--text-gray);
}

/* ========== PRICING ========== */

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 60px;
    align-items: stretch;
    padding-top: 16px;
}

.pricing-card {
    background: var(--white);
    border-radius: 16px;
    padding: 40px 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid transparent;
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.pricing-card-featured {
    border-color: var(--accent-teal);
    transform: scale(1.05);
}

.pricing-card-featured:hover {
    transform: scale(1.05) translateY(-5px);
}

.pricing-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-teal);
    color: var(--white);
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.pricing-tier {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.pricing-price {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-dark);
    margin: 16px 0 4px;
}

.pricing-price span {
    font-size: 18px;
    font-weight: 400;
    color: var(--text-gray);
}

.pricing-limit {
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 24px;
}

.pricing-features-list {
    list-style: none;
    padding: 0;
    margin: 24px 0;
    text-align: left;
    flex: 1;
}

.pricing-features-list li {
    padding: 10px 0;
    padding-left: 28px;
    position: relative;
    color: var(--text-gray);
    font-size: 15px;
    border-bottom: 1px solid var(--light-gray);
}

.pricing-features-list li:last-child {
    border-bottom: none;
}

.pricing-features-list li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: var(--accent-teal);
    font-weight: 700;
}

.pricing-cta {
    display: inline-block;
    width: 100%;
    padding: 14px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    margin-top: 16px;
    background: var(--accent-teal);
    color: var(--white);
}

.pricing-cta:hover {
    background: #009999;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 178, 178, 0.3);
}

.pricing-cta-disabled {
    background: var(--light-gray);
    color: var(--text-gray);
    cursor: default;
    pointer-events: none;
}

.pricing-cta-disabled:hover {
    transform: none;
    box-shadow: none;
}

@media (max-width: 900px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin-left: auto;
        margin-right: auto;
    }

    .pricing-card-featured {
        transform: none;
        order: -1;
    }

    .pricing-card-featured:hover {
        transform: translateY(-5px);
    }
}

/* ========== CREDIT PACK TABLE ========== */

.credit-pack-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0 8px;
    text-align: left;
    font-size: 14px;
}

.credit-pack-table th {
    color: var(--text-gray);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 8px 10px;
    border-bottom: 2px solid var(--light-gray);
}

.credit-pack-table td {
    padding: 10px 10px;
    border-bottom: 1px solid var(--light-gray);
    color: var(--primary-dark);
    font-weight: 500;
}

.credit-pack-table tbody tr:last-child td {
    border-bottom: none;
}

.credit-pack-popular {
    background: rgba(0, 178, 178, 0.06);
}

.credit-pack-tag {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    padding: 2px 6px;
    border-radius: 4px;
    background: var(--accent-teal);
    color: var(--white);
    vertical-align: middle;
    margin-left: 4px;
}

.credit-pack-tag-value {
    background: var(--action-coral);
}

/* ========== SECURITY ========== */

.security-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.security-item {
    background: var(--white);
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease;
}

.security-item:hover {
    transform: translateY(-3px);
}

.security-item-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary-dark), #2A4A6F);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--white);
    margin-bottom: 20px;
}

.security-item h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--primary-dark);
}

.security-item p {
    font-size: 15px;
    color: var(--text-gray);
    line-height: 1.7;
}

.security-badges {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 50px;
}

.security-badge {
    text-align: center;
    padding: 24px;
}

.security-badge-icon {
    width: 72px;
    height: 72px;
    background: var(--accent-teal);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--white);
    margin: 0 auto 12px;
}

.security-badge span {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-dark);
}

/* Data Flow */
.data-flow {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.data-flow-step {
    background: var(--white);
    padding: 20px 28px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    text-align: center;
    min-width: 140px;
}

.data-flow-step .flow-icon {
    font-size: 28px;
    margin-bottom: 8px;
}

.data-flow-step span {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-dark);
}

.data-flow-arrow {
    font-size: 24px;
    color: var(--accent-teal);
    font-weight: 300;
}

@media (max-width: 768px) {
    .data-flow {
        flex-direction: column;
    }

    .data-flow-arrow {
        transform: rotate(90deg);
    }
}

/* Security Page — Trust Stats Bar */
.trust-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    margin-top: 50px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.trust-stat {
    padding: 40px 32px;
    text-align: center;
    background: var(--white);
    border-right: 1px solid var(--light-gray);
}

.trust-stat:last-child {
    border-right: none;
}

.trust-stat-icon {
    width: 56px;
    height: 56px;
    background: rgba(0, 178, 178, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 auto 16px;
}

.trust-stat-value {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-dark);
    line-height: 1.2;
    margin-bottom: 6px;
}

.trust-stat-value span {
    color: var(--accent-teal);
}

.trust-stat-label {
    font-size: 15px;
    color: var(--text-gray);
    line-height: 1.5;
}

@media (max-width: 768px) {
    .trust-stats {
        grid-template-columns: 1fr;
    }

    .trust-stat {
        border-right: none;
        border-bottom: 1px solid var(--light-gray);
    }

    .trust-stat:last-child {
        border-bottom: none;
    }
}

/* Security Page — Data Lifecycle Timeline */
.data-lifecycle {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    margin-top: 50px;
    position: relative;
}

.data-lifecycle::before {
    content: '';
    position: absolute;
    top: 32px;
    left: 10%;
    right: 10%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-teal), #009999, var(--accent-teal), #009999);
    z-index: 0;
}

.lifecycle-step {
    text-align: center;
    position: relative;
    z-index: 1;
    padding: 0 16px;
}

.lifecycle-step-number {
    width: 64px;
    height: 64px;
    background: var(--white);
    border: 3px solid var(--accent-teal);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 auto 20px;
    position: relative;
}

.lifecycle-step h3 {
    font-size: 18px;
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.lifecycle-step p {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .data-lifecycle {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .data-lifecycle::before {
        top: 0;
        bottom: 0;
        left: 32px;
        right: auto;
        width: 3px;
        height: auto;
    }

    .lifecycle-step {
        display: grid;
        grid-template-columns: 64px 1fr;
        gap: 16px;
        text-align: left;
        padding: 0;
    }

    .lifecycle-step-number {
        margin: 0;
    }

    .lifecycle-step h3 {
        margin-top: 4px;
    }
}

/* Security Page — Visual Encryption Card */
.visual-encryption {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #2A4A6F 100%);
    border-radius: 16px;
    padding: 36px;
    color: var(--white);
    overflow: hidden;
}

.encryption-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    font-size: 14px;
    font-weight: 600;
    color: var(--accent-teal);
}

.encryption-header-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-teal);
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}



.encryption-layers {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.encryption-layer {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    border-left: 3px solid var(--accent-teal);
}

.encryption-layer-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.encryption-layer-text {
    flex: 1;
}

.encryption-layer-text strong {
    display: block;
    font-size: 14px;
    color: var(--white);
    margin-bottom: 2px;
}

.encryption-layer-text span {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.encryption-layer-status {
    font-size: 11px;
    font-weight: 600;
    color: #28CA42;
    background: rgba(40, 202, 66, 0.1);
    padding: 4px 10px;
    border-radius: 12px;
    white-space: nowrap;
}

/* Security Visual — Zero Retention */
.visual-retention {
    background: var(--white);
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    padding: 32px;
}

.retention-timeline {
    position: relative;
    padding-left: 28px;
}

.retention-timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #E2E8F0;
}

.retention-event {
    position: relative;
    padding: 12px 0 24px 24px;
}

.retention-event:last-child {
    padding-bottom: 0;
}

.retention-event::before {
    content: '';
    position: absolute;
    left: -24px;
    top: 18px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--accent-teal);
    background: var(--white);
}

.retention-event.complete::before {
    background: var(--accent-teal);
}

.retention-event.deleted::before {
    background: #DC3545;
    border-color: #DC3545;
}

.retention-event-time {
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-teal);
    margin-bottom: 4px;
}

.retention-event h4 {
    font-size: 15px;
    color: var(--primary-dark);
    margin-bottom: 4px;
}

.retention-event p {
    font-size: 13px;
    color: var(--text-gray);
    line-height: 1.5;
}

/* Security Visual — Compliance */
.visual-compliance {
    background: var(--white);
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    padding: 32px;
}

.compliance-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.compliance-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: var(--light-gray);
    border-radius: 10px;
    transition: all 0.2s ease;
}

.compliance-item:hover {
    background: rgba(0, 178, 178, 0.05);
}

.compliance-check {
    width: 28px;
    height: 28px;
    background: var(--accent-teal);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
}

.compliance-item-text {
    flex: 1;
}

.compliance-item-text strong {
    display: block;
    font-size: 15px;
    color: var(--primary-dark);
}

.compliance-item-text span {
    font-size: 13px;
    color: var(--text-gray);
}

/* ========== LEGAL CONTENT ========== */

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 20px;
}

.legal-content h2 {
    font-size: 24px;
    color: var(--primary-dark);
    margin-top: 40px;
    margin-bottom: 16px;
}

.legal-content h3 {
    font-size: 20px;
    color: var(--primary-dark);
    margin-top: 28px;
    margin-bottom: 12px;
}

.legal-content p {
    font-size: 16px;
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 16px;
}

.legal-content ul,
.legal-content ol {
    margin: 12px 0 20px 24px;
    color: var(--text-gray);
    line-height: 1.8;
}

.legal-content li {
    margin-bottom: 8px;
    font-size: 16px;
}

.legal-content a {
    color: var(--accent-teal);
    text-decoration: none;
}

.legal-content a:hover {
    text-decoration: underline;
}

.legal-effective-date {
    font-size: 14px;
    color: var(--text-gray);
    font-style: italic;
    margin-bottom: 32px;
}

/* ========== BLOG ========== */

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.blog-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.blog-card-image {
    height: 200px;
    background: linear-gradient(135deg, var(--primary-dark) 0%, #2A4A6F 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.blog-card-image span {
    font-size: 48px;
}

.blog-card-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--accent-teal);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.blog-card-content {
    padding: 24px;
}

.blog-card-content h3 {
    font-size: 18px;
    color: var(--primary-dark);
    margin-bottom: 10px;
    line-height: 1.4;
}

.blog-card-content p {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.6;
}

/* ========== EXAMPLE OUTPUT ========== */

.example-comparison {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 24px;
    margin-top: 50px;
    align-items: start;
}

.example-before,
.example-after {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.example-before:hover,
.example-after:hover {
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.15);
    transform: translateY(-4px);
}

.example-transform-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 120px;
}
.example-arrow-circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-teal), #00d4d4);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(0,178,178,0.3);
    animation: arrowPulse 2s ease-in-out infinite;
    flex-shrink: 0;
}
.example-arrow-circle svg {
    width: 24px;
    height: 24px;
    fill: var(--white);
}


.example-label {
    padding: 16px 24px;
    font-weight: 600;
    font-size: 15px;
    text-align: center;
    letter-spacing: 0.5px;
}

.example-before .example-label {
    background: linear-gradient(135deg, var(--primary-dark), #2A4A6F);
    color: var(--white);
}

.example-after .example-label {
    background: linear-gradient(135deg, var(--accent-teal), #00d4d4);
    color: var(--white);
}

.example-before-content {
    background: var(--white);
    padding: 28px;
    font-size: 14px;
    line-height: 1.8;
    color: var(--primary-dark);
}

.example-before-content .statement-header {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--primary-dark);
}

.example-before-content .statement-header h4 {
    font-size: 18px;
    margin-bottom: 4px;
}

.example-before-content .statement-header p {
    font-size: 13px;
    color: var(--text-gray);
    margin: 2px 0;
}

.example-before-content .statement-line {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid var(--light-gray);
    font-size: 13px;
}

.example-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
}

.example-table th {
    background: rgba(0, 178, 178, 0.06);
    padding: 12px 16px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-teal);
    border-bottom: 2px solid var(--accent-teal);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.example-table td {
    padding: 10px 16px;
    font-size: 13px;
    color: var(--text-gray);
    border-bottom: 1px solid var(--light-gray);
    font-family: 'Courier New', monospace;
    transition: background 0.2s ease;
}

.example-table tr:hover td {
    background: rgba(0, 178, 178, 0.04);
}

/* Animated row reveals for example table */
.example-table.animate tbody tr {
    animation: tableRowReveal 0.4s ease forwards;
    opacity: 0;
}
.example-table.animate tbody tr:nth-child(1) { animation-delay: 0.1s; }
.example-table.animate tbody tr:nth-child(2) { animation-delay: 0.2s; }
.example-table.animate tbody tr:nth-child(3) { animation-delay: 0.3s; }
.example-table.animate tbody tr:nth-child(4) { animation-delay: 0.4s; }
.example-table.animate tbody tr:nth-child(5) { animation-delay: 0.5s; }
.example-table.animate tbody tr:nth-child(6) { animation-delay: 0.6s; }
.example-table.animate tbody tr:nth-child(7) { animation-delay: 0.7s; }
.example-table.animate tbody tr:nth-child(8) { animation-delay: 0.8s; }


/* Enhanced "What You Get" cards */
.example-benefit-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 50px;
}
.example-benefit-card {
    background: var(--white);
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    border: 1px solid transparent;
}
.example-benefit-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0,178,178,0.12);
    border-color: rgba(0,178,178,0.15);
}
.example-benefit-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--accent-teal), #00d4d4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--white);
    margin-bottom: 20px;
    transition: transform 0.4s ease;
}
.example-benefit-card:hover .example-benefit-icon {
    transform: scale(1.1) rotate(-5deg);
}
.example-benefit-card h3 {
    font-size: 18px;
    color: var(--primary-dark);
    margin-bottom: 10px;
}
.example-benefit-card p {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.7;
}
.example-benefit-card a {
    color: var(--accent-teal);
    text-decoration: none;
    font-weight: 500;
}
.example-benefit-card a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .example-comparison {
        grid-template-columns: 1fr;
    }
    .example-transform-arrow {
        padding-top: 0;
        padding-bottom: 0;
    }
    .example-arrow-circle svg {
        transform: rotate(90deg);
    }
    .example-benefit-grid {
        grid-template-columns: 1fr;
    }
}

/* ========== ABOUT ========== */

.about-story {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 20px;
    text-align: center;
}

.about-story p {
    font-size: 18px;
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 20px;
}

.about-mission {
    background: var(--light-gray);
    padding: 60px 0;
}

.about-mission-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.about-mission-content p {
    font-size: 18px;
    color: var(--text-gray);
    line-height: 1.8;
}

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

.about-value {
    text-align: center;
    padding: 32px 24px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}

.about-value-icon {
    width: 64px;
    height: 64px;
    background: var(--accent-teal);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--white);
    margin: 0 auto 16px;
}

.about-value h3 {
    font-size: 20px;
    color: var(--primary-dark);
    margin-bottom: 10px;
}

.about-value p {
    font-size: 15px;
    color: var(--text-gray);
    line-height: 1.6;
}

/* ========== CONTACT ========== */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: 50px;
    align-items: start;
}

.contact-info {
    padding: 40px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}

.contact-info h2 {
    font-size: 24px;
    color: var(--primary-dark);
    margin-bottom: 20px;
}

.contact-info p {
    font-size: 16px;
    color: var(--text-gray);
    line-height: 1.7;
    margin-bottom: 16px;
}

.contact-email {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 600;
    color: var(--accent-teal);
    text-decoration: none;
    margin: 12px 0;
    transition: color 0.3s ease;
}

.contact-email:hover {
    color: #009999;
}

.contact-cta {
    padding: 40px;
    background: linear-gradient(135deg, var(--primary-dark) 0%, #2A4A6F 100%);
    border-radius: 12px;
    color: var(--white);
    text-align: center;
}

.contact-cta h2 {
    font-size: 24px;
    margin-bottom: 16px;
}

.contact-cta p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 24px;
    line-height: 1.6;
}

/* ========== CTA BAND (REUSABLE BOTTOM CTA) ========== */

.cta-band {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--accent-teal) 0%, #008B8B 100%);
    color: var(--white);
    text-align: center;
}

.cta-band h2 {
    font-size: 36px;
    margin-bottom: 16px;
}

.cta-band p {
    font-size: 18px;
    margin-bottom: 32px;
    opacity: 0.95;
}

.cta-band .hero-cta {
    background: var(--white);
    color: var(--primary-dark);
    font-weight: 700;
}

.cta-band .hero-cta:hover {
    background: var(--light-gray);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.cta-band-secondary {
    display: inline-block;
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    margin-left: 20px;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.cta-band-secondary:hover {
    opacity: 1;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .cta-band h2 {
        font-size: 28px;
    }

    .cta-band-secondary {
        display: block;
        margin-left: 0;
        margin-top: 16px;
    }
}

/* ========== CONTENT SECTION (GENERIC) ========== */

.content-section {
    padding: 80px 0;
}

.content-section-alt {
    padding: 80px 0;
    background: var(--light-gray);
}

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

/* Hero Feature Sections — alternating left/right */
.feature-showcase {
    padding: 80px 0;
}

.feature-showcase:nth-child(even) {
    background: var(--light-gray);
}

.feature-showcase-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.feature-showcase:nth-child(even) .feature-showcase-inner {
    direction: rtl;
}

.feature-showcase:nth-child(even) .feature-showcase-inner > * {
    direction: ltr;
}

.feature-showcase-text .feature-label {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent-teal);
    margin-bottom: 12px;
}

.feature-showcase-text h2 {
    font-size: 32px;
    color: var(--primary-dark);
    margin-bottom: 16px;
    line-height: 1.3;
}

.feature-showcase-text p {
    font-size: 16px;
    color: var(--text-gray);
    line-height: 1.7;
    margin-bottom: 20px;
}

.feature-showcase-text ul {
    list-style: none;
    padding: 0;
}

.feature-showcase-text ul li {
    padding: 8px 0;
    padding-left: 28px;
    position: relative;
    color: var(--text-gray);
    font-size: 15px;
}

.feature-showcase-text ul li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: var(--accent-teal);
    font-weight: 700;
}

.feature-showcase-text a {
    color: var(--accent-teal);
    text-decoration: none;
    font-weight: 500;
}

.feature-showcase-text a:hover {
    text-decoration: underline;
}

/* Feature Showcase Visuals — CSS mock UIs */
.feature-visual {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

/* AI Extraction Visual — mock document scanner */
.visual-ai-extraction {
    background: var(--white);
    padding: 28px;
    border: 1px solid #E2E8F0;
}

.visual-doc-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--primary-dark);
    margin-bottom: 16px;
}

.visual-doc-icon {
    width: 40px;
    height: 40px;
    background: var(--primary-dark);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 20px;
    flex-shrink: 0;
}

.visual-doc-header span {
    font-weight: 600;
    font-size: 14px;
    color: var(--primary-dark);
}

.visual-scan-lines .scan-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    margin-bottom: 4px;
    border-radius: 6px;
    font-size: 13px;
    color: var(--text-gray);
    position: relative;
    transition: all 0.3s ease;
}

.visual-scan-lines .scan-row.highlighted {
    background: rgba(0, 178, 178, 0.08);
    border-left: 3px solid var(--accent-teal);
}

.scan-row .scan-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--accent-teal);
    background: rgba(0, 178, 178, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
}

/* Speed Visual — stat callout */
.visual-speed {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #2A4A6F 100%);
    padding: 40px;
    text-align: center;
    color: var(--white);
}

.speed-stat {
    font-size: 72px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 4px;
    color: var(--accent-teal);
}

.speed-stat span {
    font-size: 32px;
    color: rgba(255, 255, 255, 0.7);
}

.speed-label {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 32px;
}

.speed-comparison {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-top: 20px;
}

.speed-bar {
    flex: 1;
    max-width: 180px;
}

.speed-bar-label {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.speed-bar-track {
    height: 8px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    overflow: hidden;
}

.speed-bar-fill {
    height: 100%;
    border-radius: 4px;
}

.speed-bar-fill.fast {
    width: 15%;
    background: var(--accent-teal);
}

.speed-bar-fill.slow {
    width: 95%;
    background: rgba(255, 255, 255, 0.4);
}

.speed-bar-time {
    font-size: 13px;
    margin-top: 6px;
    color: rgba(255, 255, 255, 0.6);
}

/* Banks Visual — logo badges grid */
.visual-banks {
    background: var(--white);
    padding: 32px;
    border: 1px solid #E2E8F0;
}

.bank-badges {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.bank-badge {
    padding: 14px 12px;
    background: var(--light-gray);
    border-radius: 8px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-dark);
    transition: all 0.2s ease;
}

.bank-badge:hover {
    background: rgba(0, 178, 178, 0.08);
    color: var(--accent-teal);
}

.bank-badge-more {
    background: var(--accent-teal);
    color: var(--white);
}

.bank-badge-more:hover {
    background: #009999;
    color: var(--white);
}

/* CSV Visual — mini table preview */
.visual-csv {
    background: var(--white);
    border: 1px solid #E2E8F0;
}

.visual-csv-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--light-gray);
    border-bottom: 1px solid #E2E8F0;
}

.csv-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.csv-dot-red { background: #FF5F57; }
.csv-dot-yellow { background: #FFBD2E; }
.csv-dot-green { background: #28CA42; }

.visual-csv-toolbar span {
    font-size: 12px;
    color: var(--text-gray);
    margin-left: 8px;
}

.visual-csv table {
    width: 100%;
    border-collapse: collapse;
}

.visual-csv th {
    padding: 10px 14px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-teal);
    background: rgba(0, 178, 178, 0.05);
    border-bottom: 2px solid var(--accent-teal);
}

.visual-csv td {
    padding: 8px 14px;
    font-size: 12px;
    color: var(--text-gray);
    border-bottom: 1px solid var(--light-gray);
    font-family: 'Courier New', monospace;
}

.visual-csv .amount-positive { color: #28A745; }
.visual-csv .amount-negative { color: #DC3545; }

/* Compact Feature Grid — secondary features */
.features-compact-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    margin-top: 50px;
}
.features-compact-grid > * {
    flex: 0 1 calc(33.333% - 16px);
    min-width: 260px;
}

.feature-compact-card {
    display: flex;
    gap: 16px;
    padding: 24px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease;
}

.feature-compact-card:hover {
    transform: translateY(-3px);
}

.feature-compact-icon {
    width: 48px;
    height: 48px;
    background: var(--accent-teal);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--white);
    flex-shrink: 0;
}

.feature-compact-text h3 {
    font-size: 17px;
    color: var(--primary-dark);
    margin-bottom: 6px;
}

.feature-compact-text p {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.6;
}

/* Integrations Row — logo-style badges */
.integrations-row {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.integration-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 28px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.integration-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.integration-badge-icon {
    font-size: 28px;
}

.integration-badge span {
    font-size: 15px;
    font-weight: 600;
    color: var(--primary-dark);
}

/* Formats Strip */
.formats-strip {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.format-tag {
    padding: 8px 20px;
    background: rgba(0, 178, 178, 0.08);
    border: 1px solid rgba(0, 178, 178, 0.2);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--accent-teal);
}

@media (max-width: 768px) {
    .feature-showcase-inner {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .feature-showcase:nth-child(even) .feature-showcase-inner {
        direction: ltr;
    }

    .feature-showcase-text h2 {
        font-size: 26px;
    }

    .speed-stat {
        font-size: 56px;
    }

    .speed-comparison {
        flex-direction: column;
        align-items: center;
    }

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

    .integrations-row {
        flex-direction: column;
        align-items: center;
    }
}

/* Legacy features-detail-grid (used on other pages) */
.features-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.feature-detail-card {
    background: var(--white);
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease;
}

.feature-detail-card:hover {
    transform: translateY(-3px);
}

.feature-detail-icon {
    width: 56px;
    height: 56px;
    background: var(--accent-teal);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--white);
    margin-bottom: 20px;
}

.feature-detail-card h3 {
    font-size: 20px;
    color: var(--primary-dark);
    margin-bottom: 10px;
}

.feature-detail-card p {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.6;
}

.integrations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.integration-item {
    text-align: center;
    padding: 32px 24px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease;
}

.integration-item:hover {
    transform: translateY(-3px);
}

.integration-item span {
    display: block;
    font-size: 36px;
    margin-bottom: 8px;
}

.integration-item h3 {
    font-size: 20px;
    color: var(--primary-dark);
    margin-bottom: 10px;
}

.integration-item p {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.6;
}

/* ========== BLOG ARTICLE STYLES ========== */

.article-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: var(--text-gray);
}

.article-separator {
    color: #d1d5db;
}

.article-body {
    max-width: 760px;
    margin: 0 auto;
    padding: 3rem 20px 4rem;
}

.article-body h2 {
    font-size: 1.5rem;
    color: var(--primary-dark);
    margin: 2.5rem 0 1rem;
    line-height: 1.3;
}

.article-body h3 {
    font-size: 1.2rem;
    color: var(--primary-dark);
    margin: 2rem 0 0.75rem;
    line-height: 1.4;
}

.article-body p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-gray);
    margin-bottom: 1.25rem;
}

.article-body ul,
.article-body ol {
    margin: 0 0 1.5rem 0;
    padding-left: 0;
    list-style: none;
}

.article-body ul li,
.article-body ol li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.75rem;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-gray);
}

.article-body ul li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: var(--accent-teal);
    font-weight: 700;
    font-size: 1rem;
}

.article-body ol {
    counter-reset: article-counter;
}

.article-body ol li::before {
    counter-increment: article-counter;
    content: counter(article-counter) ".";
    position: absolute;
    left: 0;
    color: var(--accent-teal);
    font-weight: 700;
}

.article-body blockquote {
    border-left: 4px solid var(--accent-teal);
    margin: 2rem 0;
    padding: 1.25rem 1.5rem 1.25rem 3.25rem;
    background: var(--light-gray);
    border-radius: 0 8px 8px 0;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--primary-dark);
    position: relative;
}

.article-body blockquote::before {
    content: "\1F4A1";
    position: absolute;
    left: 1rem;
    top: 1.25rem;
    font-size: 1.25rem;
    line-height: 1;
}

.article-body blockquote p {
    color: var(--primary-dark);
    margin-bottom: 0;
}

.article-body a {
    color: var(--accent-teal);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s;
}

.article-body a:hover {
    color: #009999;
}

.article-body code {
    background: var(--light-gray);
    padding: 0.15em 0.4em;
    border-radius: 4px;
    font-size: 0.9em;
    color: var(--primary-dark);
}

.article-cta {
    background: var(--accent-teal);
    color: var(--white);
    text-align: center;
    padding: 2.5rem 2rem;
    border-radius: 12px;
    margin: 3rem 0 2rem;
}

.article-cta h3 {
    color: var(--white);
    font-size: 1.4rem;
    margin: 0 0 0.5rem;
}

.article-cta p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

.article-cta-button {
    display: inline-block;
    background: var(--white);
    color: var(--accent-teal);
    padding: 0.85rem 2.5rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.05rem;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.article-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.article-nav {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.article-nav a {
    color: var(--accent-teal);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.article-nav a:hover {
    color: #009999;
}

/* --- Blog Article Components --- */

/* Quick Summary / TL;DR box */
.article-summary {
    background: rgba(0, 178, 178, 0.06);
    border: 1px solid rgba(0, 178, 178, 0.2);
    border-radius: 12px;
    padding: 1.5rem 2rem;
    margin: 2rem 0;
}

.article-summary h3 {
    color: var(--accent-teal);
    font-size: 1.1rem;
    margin: 0 0 1rem 0;
}

.article-summary ol {
    margin: 0;
    padding-left: 1.25rem;
}

.article-summary li {
    margin-bottom: 0.5rem;
    color: var(--text-gray);
    line-height: 1.6;
}

/* Table of Contents */
.article-toc {
    background: var(--light-gray);
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 1.5rem 2rem;
    margin: 2rem 0;
}

.article-toc h3 {
    color: var(--primary-dark);
    font-size: 1.05rem;
    margin: 0 0 1rem 0;
}

.article-toc ol {
    margin: 0;
    padding-left: 0;
    list-style: none;
    counter-reset: toc-counter;
}

.article-toc li {
    counter-increment: toc-counter;
    margin-bottom: 0.5rem;
}

.article-toc li::before {
    content: counter(toc-counter) ". ";
    color: var(--accent-teal);
    font-weight: 600;
}

.article-toc a {
    color: var(--primary-dark);
    text-decoration: none;
    transition: color 0.2s;
}

.article-toc a:hover {
    color: var(--accent-teal);
}

/* In-article tables */
.article-body table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    overflow: hidden;
    margin: 1.5rem 0;
}

.article-body thead th {
    background: rgba(0, 178, 178, 0.05);
    border-bottom: 2px solid var(--accent-teal);
    color: var(--primary-dark);
    font-weight: 600;
    padding: 0.75rem 1rem;
    text-align: left;
    font-size: 0.95rem;
}

.article-body tbody td {
    padding: 0.75rem 1rem;
    color: var(--text-gray);
    border-bottom: 1px solid #E2E8F0;
    font-size: 0.95rem;
}

.article-body tbody tr:last-child td {
    border-bottom: none;
}

/* Key Takeaway callout */
.article-key-takeaway {
    border-left: 4px solid var(--accent-teal);
    background: rgba(0, 178, 178, 0.06);
    border-radius: 0 12px 12px 0;
    padding: 1.5rem 2rem;
    margin: 2rem 0;
}

.article-key-takeaway h4 {
    color: var(--accent-teal);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    margin: 0 0 0.75rem 0;
}

.article-key-takeaway p {
    color: var(--primary-dark);
    margin: 0;
    line-height: 1.7;
}

/* Bold text emphasis */
.article-body strong {
    color: var(--primary-dark);
}

/* Mid-article CTA */
.article-mid-cta {
    background: rgba(255, 107, 53, 0.06);
    border: 1px solid rgba(255, 107, 53, 0.25);
    border-radius: 12px;
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    text-align: center;
}

.article-mid-cta p {
    color: var(--primary-dark);
    font-size: 1.05rem;
    margin: 0 0 1rem 0;
}

.article-mid-cta a {
    display: inline-block;
    background: var(--action-coral);
    color: var(--white);
    padding: 0.7rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.article-mid-cta a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.35);
}

/* Term Definition — featured snippet style for SEO */
.article-definition {
    background: var(--white);
    border: 2px solid var(--accent-teal);
    border-radius: 12px;
    padding: 1.75rem 2rem;
    margin: 2rem 0;
    position: relative;
}

.article-definition::before {
    content: "Definition";
    display: inline-block;
    background: var(--accent-teal);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    position: absolute;
    top: -0.7rem;
    left: 1.5rem;
}

.article-definition dt {
    color: var(--primary-dark);
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
}

.article-definition dd {
    color: var(--text-gray);
    margin: 0;
    line-height: 1.7;
    font-size: 1rem;
}

.article-definition dd + dt {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid #E2E8F0;
}

/* Featured Article Card */
.article-featured-article {
    background: var(--light-gray);
    border-left: 4px solid var(--primary-dark);
    border-radius: 0 12px 12px 0;
    padding: 1.75rem 2rem;
    margin: 2rem 0;
    position: relative;
}

.article-featured-article::before {
    content: "Recommended Reading";
    display: inline-block;
    background: var(--primary-dark);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    position: absolute;
    top: -0.7rem;
    left: 1.5rem;
}

.article-featured-article h4 {
    color: var(--primary-dark);
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
}

.article-featured-article h4 a {
    color: var(--accent-teal);
    text-decoration: none;
    transition: text-decoration 0.2s ease;
}

.article-featured-article h4 a:hover {
    text-decoration: underline;
}

.article-featured-article p {
    color: var(--text-gray);
    font-size: 0.95rem;
    margin: 0 0 0.75rem 0;
    line-height: 1.7;
}

.article-featured-article .read-more {
    color: var(--accent-teal);
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
    display: inline-block;
    transition: transform 0.2s ease;
}

.article-featured-article .read-more:hover {
    transform: translateX(3px);
}

/* Featured Page Card */
.article-featured-page {
    background: var(--white);
    border: 1px solid rgba(0, 178, 178, 0.2);
    border-left: 4px solid var(--accent-teal);
    border-radius: 0 12px 12px 0;
    padding: 1.75rem 2rem;
    margin: 2rem 0;
    position: relative;
}

.article-featured-page::before {
    content: "Explore";
    display: inline-block;
    background: var(--accent-teal);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    position: absolute;
    top: -0.7rem;
    left: 1.5rem;
}

.article-featured-page h4 {
    color: var(--primary-dark);
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
}

.article-featured-page p {
    color: var(--text-gray);
    font-size: 0.95rem;
    margin: 0 0 1rem 0;
    line-height: 1.7;
}

.article-featured-page a.featured-page-cta {
    display: inline-block;
    background: var(--accent-teal);
    color: var(--white);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.article-featured-page a.featured-page-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 178, 178, 0.3);
}

/* More Articles Grid */
.article-more-articles {
    margin: 3rem 0 2rem;
    padding-top: 2rem;
    border-top: 1px solid #E2E8F0;
}

.article-more-articles h3 {
    color: var(--primary-dark);
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 1.25rem 0;
}

.article-more-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
}

.more-article-card {
    background: var(--light-gray);
    border-radius: 8px;
    padding: 1.25rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.more-article-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.more-article-card .card-image {
    width: 100%;
    height: 140px;
    border-radius: 6px;
    overflow: hidden;
    margin: 0 0 0.75rem 0;
    background: #E2E8F0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.more-article-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.more-article-card .card-image-fallback {
    font-size: 3rem;
    line-height: 1;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.more-article-card .card-image-fallback::before {
    content: "\1F4C4";
}

/* Type-specific tinted backgrounds + icons */
.more-article-card .card-image:has(.card-image-fallback[data-type="guide"]) {
    background: rgba(0, 178, 178, 0.1);
}

.more-article-card .card-image-fallback[data-type="guide"]::before {
    content: "\1F4D6";
}

.more-article-card .card-image:has(.card-image-fallback[data-type="workflow"]) {
    background: rgba(255, 107, 53, 0.1);
}

.more-article-card .card-image-fallback[data-type="workflow"]::before {
    content: "\26A1";
}

.more-article-card .card-image:has(.card-image-fallback[data-type="technical"]) {
    background: rgba(26, 47, 75, 0.1);
}

.more-article-card .card-image-fallback[data-type="technical"]::before {
    content: "\2699\FE0F";
}

.more-article-card .card-image:has(.card-image-fallback[data-type="mistakes"]) {
    background: rgba(255, 107, 53, 0.1);
}

.more-article-card .card-image-fallback[data-type="mistakes"]::before {
    content: "\26A0\FE0F";
}

.more-article-card .card-image:has(.card-image-fallback[data-type="comparison"]) {
    background: rgba(0, 178, 178, 0.1);
}

.more-article-card .card-image-fallback[data-type="comparison"]::before {
    content: "\2696\FE0F";
}

.more-article-card .card-image:has(.card-image-fallback[data-type="tips"]) {
    background: rgba(255, 200, 50, 0.15);
}

.more-article-card .card-image-fallback[data-type="tips"]::before {
    content: "\1F4A1";
}

.more-article-card .card-image:has(.card-image-fallback[data-type="security"]) {
    background: rgba(26, 47, 75, 0.1);
}

.more-article-card .card-image-fallback[data-type="security"]::before {
    content: "\1F512";
}

.more-article-card .card-image:has(.card-image-fallback[data-type="news"]) {
    background: rgba(0, 178, 178, 0.08);
}

.more-article-card .card-image-fallback[data-type="news"]::before {
    content: "\1F4F0";
}

.more-article-card .card-image:has(.card-image-fallback[data-type="case-study"]) {
    background: rgba(0, 178, 178, 0.1);
}

.more-article-card .card-image-fallback[data-type="case-study"]::before {
    content: "\1F4CA";
}

.more-article-card .card-category {
    display: inline-block;
    color: var(--accent-teal);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0 0 0.5rem 0;
}

.more-article-card h4 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    line-height: 1.4;
}

.more-article-card h4 a {
    color: var(--primary-dark);
    text-decoration: none;
    transition: color 0.2s ease;
}

.more-article-card h4 a:hover {
    color: var(--accent-teal);
}

.more-article-card .card-meta {
    color: var(--text-gray);
    font-size: 0.8rem;
    margin: 0;
}

/* Numbered Tip Cards */
.article-numbered-tips {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 2rem 0;
}

.article-numbered-tips .tip-card {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    background: var(--light-gray);
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
}

.article-numbered-tips .tip-number {
    width: 36px;
    height: 36px;
    min-width: 36px;
    background: var(--accent-teal);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.article-numbered-tips .tip-card h4 {
    color: var(--primary-dark);
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 0.35rem 0;
}

.article-numbered-tips .tip-card p {
    color: var(--text-gray);
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.6;
}

/* Method/Alternative Cards with Verdict Badges */
.article-method-card {
    background: var(--white);
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    padding: 1.5rem 1.75rem;
    margin: 1.25rem 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.article-method-card .method-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.article-method-card .method-header h3 {
    margin: 0;
    font-size: 1.15rem;
}

.article-method-card .verdict-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    white-space: nowrap;
    flex-shrink: 0;
}

.verdict-good {
    background: rgba(0, 178, 178, 0.1);
    color: var(--accent-teal);
}

.verdict-caution {
    background: rgba(255, 107, 53, 0.1);
    color: var(--action-coral);
}

.verdict-poor {
    background: rgba(220, 38, 38, 0.1);
    color: #dc2626;
}

.verdict-niche {
    background: rgba(100, 116, 139, 0.1);
    color: var(--text-gray);
}

.article-method-card p {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0 0 0.5rem 0;
}

.article-method-card p:last-child {
    margin-bottom: 0;
}

/* Visual Before/After PDF → CSV */
.visual-before-after {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1.5rem;
    align-items: center;
    margin: 2rem 0;
}

.visual-before-after .before-panel,
.visual-before-after .after-panel {
    background: var(--light-gray);
    border-radius: 10px;
    padding: 1.25rem;
    overflow: hidden;
}

.visual-before-after .panel-label {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    margin-bottom: 0.75rem;
}

.visual-before-after .before-panel .panel-label {
    background: rgba(220, 38, 38, 0.1);
    color: #dc2626;
}

.visual-before-after .after-panel .panel-label {
    background: rgba(0, 178, 178, 0.1);
    color: var(--accent-teal);
}

.visual-before-after .garbled-text {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.75rem;
    color: var(--text-gray);
    line-height: 1.8;
    opacity: 0.85;
}

.visual-before-after .garbled-text .garble-line {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.visual-before-after .transform-arrow {
    font-size: 2rem;
    color: var(--accent-teal);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Code Terminal Chrome */
.code-terminal {
    border-radius: 8px;
    overflow: hidden;
    margin: 1.5rem 0;
}

.code-terminal .terminal-toolbar {
    background: #151825;
    padding: 0.6rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.code-terminal .terminal-toolbar .csv-dot {
    width: 10px;
    height: 10px;
}

.code-terminal .terminal-toolbar .terminal-title {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    margin-left: 0.5rem;
    font-family: 'Inter', sans-serif;
}

.code-terminal pre {
    background: #1a2036;
    color: #e0e0e0;
    padding: 1.25rem;
    overflow-x: auto;
    font-size: 0.85rem;
    line-height: 1.6;
    margin: 0;
}

.code-terminal pre code .code-keyword {
    color: #1a9190;
}

.code-terminal pre code .code-comment {
    color: #64748B;
}

.code-terminal pre code .code-string {
    color: #d4930f;
}

/* API Endpoints Table */
.api-endpoints-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.api-endpoints-table th {
    background: #151825;
    color: rgba(255, 255, 255, 0.7);
    text-align: left;
    padding: 0.6rem 1rem;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.api-endpoints-table td {
    padding: 0.65rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    color: #e0e0e0;
}

.api-endpoints-table .method-badge {
    display: inline-block;
    font-weight: 700;
    font-size: 0.8rem;
    font-family: 'Courier New', Courier, monospace;
}

.api-endpoints-table .method-post { color: #d4930f; }
.api-endpoints-table .method-get { color: #1a9190; }

.api-endpoints-table .endpoint-path {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.85rem;
}

/* Blog components — mobile responsive */
@media (max-width: 768px) {
    .article-body {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .article-body h2 {
        font-size: 1.3rem;
    }

    .article-body h3 {
        font-size: 1.1rem;
    }

    .article-summary,
    .article-toc,
    .article-key-takeaway,
    .article-mid-cta,
    .article-definition,
    .article-featured-article,
    .article-featured-page {
        padding: 1rem 1.25rem;
    }

    .article-more-articles-grid {
        grid-template-columns: 1fr;
    }

    .article-body table {
        font-size: 0.85rem;
    }

    .article-body thead th,
    .article-body tbody td {
        padding: 0.5rem 0.65rem;
    }

    .article-numbered-tips .tip-card {
        padding: 1rem 1.25rem;
        gap: 1rem;
    }

    .article-method-card {
        padding: 1.25rem;
    }

    .article-method-card .method-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .visual-before-after {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .visual-before-after .transform-arrow {
        transform: rotate(90deg);
    }
}

/* ========== WOW EFFECTS & ANIMATIONS ========== */

/* Scroll reveal system */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible,
.reveal-left.visible,
.reveal-right.visible,
.reveal-scale.visible {
    opacity: 1;
    transform: none;
}
.delay-1 { transition-delay: 0.1s !important; }
.delay-2 { transition-delay: 0.2s !important; }
.delay-3 { transition-delay: 0.3s !important; }
.delay-4 { transition-delay: 0.4s !important; }
.delay-5 { transition-delay: 0.5s !important; }

/* ========== ENHANCED HERO ========== */

.page-hero-enhanced {
    background: linear-gradient(135deg, #0d1b2e 0%, var(--primary-dark) 35%, #1e3a5f 65%, #152d4a 100%);
    color: var(--white);
    padding: 100px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.page-hero-enhanced::before {
    content: '';
    position: absolute;
    inset: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at 25% 50%, rgba(0,178,178,0.12) 0%, transparent 50%),
                radial-gradient(ellipse at 75% 50%, rgba(255,107,53,0.06) 0%, transparent 50%);
    animation: heroAmbient 10s ease-in-out infinite alternate;
    pointer-events: none;
}

.page-hero-enhanced h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
    background: linear-gradient(135deg, #ffffff 0%, rgba(0,220,220,0.95) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}
.page-hero-enhanced p {
    font-size: 20px;
    color: rgba(255,255,255,0.8);
    max-width: 650px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    line-height: 1.6;
}
.page-hero-enhanced .breadcrumbs {
    position: relative;
    z-index: 1;
}

/* Floating orbs */
.hero-orbs {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}
.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    animation: orbFloat 20s infinite ease-in-out;
}
.hero-orb-1 {
    width: 400px; height: 400px;
    background: rgba(0,178,178,0.08);
    top: -150px; right: -100px;
    animation-duration: 22s;
}
.hero-orb-2 {
    width: 250px; height: 250px;
    background: rgba(255,107,53,0.06);
    bottom: -100px; left: 5%;
    animation-duration: 18s;
    animation-delay: -7s;
}
.hero-orb-3 {
    width: 200px; height: 200px;
    background: rgba(0,178,178,0.06);
    top: 20%; left: -60px;
    animation-duration: 25s;
    animation-delay: -12s;
}


/* ========== STATS BANNER ========== */

.stats-banner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    padding: 60px 0;
}
.stat-item {
    text-align: center;
    padding: 20px;
}
.stat-number {
    font-size: 52px;
    font-weight: 800;
    color: var(--accent-teal);
    line-height: 1;
    margin-bottom: 8px;
}
.stat-suffix {
    font-size: 28px;
    font-weight: 600;
}
.stat-label {
    font-size: 13px;
    color: var(--text-gray);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* ========== ANIMATED VISUALS ========== */

/* AI scan line animation */
.visual-ai-extraction {
    position: relative;
}
.scan-line-effect {
    position: absolute;
    left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-teal), transparent);
    animation: scanSweep 3s ease-in-out infinite;
    opacity: 0;
    pointer-events: none;
    z-index: 2;
}
.visual-ai-extraction.animate .scan-line-effect {
    opacity: 1;
}


/* Staggered scan row reveal */
.visual-ai-extraction.animate .scan-row {
    animation: scanRowReveal 0.5s ease forwards;
    opacity: 0;
}
.visual-ai-extraction.animate .scan-row:nth-child(1) { animation-delay: 0.15s; }
.visual-ai-extraction.animate .scan-row:nth-child(2) { animation-delay: 0.3s; }
.visual-ai-extraction.animate .scan-row:nth-child(3) { animation-delay: 0.45s; }
.visual-ai-extraction.animate .scan-row:nth-child(4) { animation-delay: 0.6s; }
.visual-ai-extraction.animate .scan-row:nth-child(5) { animation-delay: 0.8s; }
.visual-ai-extraction.animate .scan-row:nth-child(6) { animation-delay: 0.95s; }
.visual-ai-extraction.animate .scan-row:nth-child(7) { animation-delay: 1.1s; }
.visual-ai-extraction.animate .scan-row:nth-child(8) { animation-delay: 1.25s; }


/* Animated speed bars */
.visual-speed .speed-bar-fill {
    width: 0 !important;
    transition: width 1.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.visual-speed.animate .speed-bar-fill.fast { width: 15% !important; }
.visual-speed.animate .speed-bar-fill.slow { width: 95% !important; transition-delay: 0.3s; }

/* Pulsing speed stat */
.speed-stat-pulse {
    animation: statPulse 2s ease-in-out infinite;
}


/* ========== GLOWING PRICING CARD ========== */

.pricing-card-glow {
    position: relative;
    border: none !important;
    background: var(--white);
    z-index: 1;
    transform: scale(1.05);
}
.pricing-card-glow::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--accent-teal), #00e6e6, var(--action-coral), var(--accent-teal));
    background-size: 300% 300%;
    animation: gradientBorder 4s ease-in-out infinite;
    z-index: -1;
}
.pricing-card-glow::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    background: var(--white);
    z-index: -1;
}

.pricing-card-glow:hover {
    transform: scale(1.05) translateY(-5px);
}

/* Card shine sweep on hover */
.pricing-card-shine {
    overflow: hidden;
}
.pricing-card-shine::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 60%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s ease;
    pointer-events: none;
    z-index: 3;
}
.pricing-card-shine:hover::after {
    left: 150%;
}

/* ========== TRUST STRIP ========== */

.trust-strip {
    display: flex;
    justify-content: center;
    gap: 48px;
    padding: 40px 0;
    flex-wrap: wrap;
}
.trust-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--text-gray);
    font-weight: 500;
}
.trust-badge-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0,178,178,0.12), rgba(0,178,178,0.04));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

/* ========== ENHANCED COMPACT FEATURE CARDS ========== */

.feature-compact-card-wow {
    display: flex;
    gap: 20px;
    padding: 28px;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    border: 1px solid transparent;
}
.feature-compact-card-wow:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0,178,178,0.12);
    border-color: rgba(0,178,178,0.15);
}
.feature-compact-icon-wow {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--accent-teal), #00d4d4);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--white);
    flex-shrink: 0;
    transition: transform 0.4s ease;
}
.feature-compact-card-wow:hover .feature-compact-icon-wow {
    transform: scale(1.1) rotate(-5deg);
}

/* ========== ENHANCED INTEGRATION BADGES ========== */

.integration-badge-wow {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 32px;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    min-width: 150px;
    border: 1px solid transparent;
}
.integration-badge-wow:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(0,178,178,0.15);
    border-color: rgba(0,178,178,0.2);
}
.integration-icon-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0,178,178,0.12), rgba(0,178,178,0.04));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.integration-badge-wow:hover .integration-icon-circle {
    transform: scale(1.15);
    box-shadow: 0 4px 15px rgba(0,178,178,0.2);
}
.integration-badge-wow .integration-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--primary-dark);
}

/* ========== ENHANCED FORMAT TAGS ========== */

.format-tag-wow {
    padding: 12px 28px;
    background: var(--white);
    border: 1px solid rgba(0,178,178,0.2);
    border-radius: 28px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-dark);
    transition: all 0.3s ease;
    cursor: default;
}
.format-tag-wow:hover {
    background: var(--accent-teal);
    color: var(--white);
    border-color: var(--accent-teal);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,178,178,0.25);
}

/* ========== ENHANCED CTA BAND ========== */

.cta-band-wow {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary-dark) 0%, #1e3a5f 40%, var(--accent-teal) 100%);
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-band-wow::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 120%, rgba(0,178,178,0.3), transparent 60%);
    pointer-events: none;
}
.cta-band-wow h2 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 16px;
    position: relative;
}
.cta-band-wow p {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.9;
    position: relative;
}
.cta-band-wow .hero-cta {
    background: var(--white);
    color: var(--primary-dark);
    font-weight: 700;
    font-size: 18px;
    padding: 18px 44px;
    position: relative;
    border-radius: 12px;
}
.cta-band-wow .hero-cta:hover {
    background: var(--light-gray);
    box-shadow: 0 8px 30px rgba(0,0,0,0.25);
    transform: translateY(-3px);
}
.cta-band-wow .cta-band-secondary {
    color: rgba(255,255,255,0.9);
}
.cta-band-wow .cta-band-secondary:hover {
    color: var(--white);
}

/* ========== ENHANCED STEPS (How Credits Work) ========== */

.steps-wow {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 50px;
    position: relative;
}
.steps-wow::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 16%;
    right: 16%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-teal), rgba(0,178,178,0.15), var(--accent-teal));
}
.step-wow {
    text-align: center;
    position: relative;
    z-index: 1;
}
.step-wow-number {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-teal), #00d4d4);
    color: var(--white);
    font-size: 30px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 30px rgba(0,178,178,0.3);
    transition: all 0.4s ease;
}
.step-wow:hover .step-wow-number {
    transform: scale(1.12);
    box-shadow: 0 12px 40px rgba(0,178,178,0.4);
}
.step-wow h3 {
    font-size: 20px;
    color: var(--primary-dark);
    margin-bottom: 10px;
}
.step-wow p {
    font-size: 15px;
    color: var(--text-gray);
    line-height: 1.7;
    max-width: 280px;
    margin: 0 auto;
}

/* ========== ENHANCED VISUAL ELEMENTS ========== */

/* Feature visual with depth */
.feature-visual-wow {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.12);
    transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.feature-visual-wow:hover {
    box-shadow: 0 30px 80px rgba(0,0,0,0.18);
    transform: translateY(-4px);
}

/* Bank badges enhanced */
.bank-badge-wow {
    padding: 16px 14px;
    background: var(--light-gray);
    border-radius: 10px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-dark);
    transition: all 0.3s ease;
    border: 1px solid transparent;
}
.bank-badge-wow:hover {
    background: var(--white);
    border-color: rgba(0,178,178,0.2);
    color: var(--accent-teal);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,178,178,0.1);
}
.bank-badge-wow-more {
    background: linear-gradient(135deg, var(--accent-teal), #00d4d4);
    color: var(--white);
    border-color: transparent;
}
.bank-badge-wow-more:hover {
    background: linear-gradient(135deg, #009999, var(--accent-teal));
    color: var(--white);
    border-color: transparent;
}

/* ========== RESPONSIVE — WOW EFFECTS ========== */

@media (max-width: 768px) {
    .page-hero-enhanced {
        padding: 70px 0 50px;
    }
    .page-hero-enhanced h1 {
        font-size: 32px;
    }
    .page-hero-enhanced p {
        font-size: 17px;
    }
    .stats-banner {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        padding: 40px 0;
    }
    .stat-number {
        font-size: 36px;
    }
    .stat-suffix {
        font-size: 20px;
    }
    .stat-label {
        font-size: 11px;
    }
    .steps-wow {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .steps-wow::before {
        display: none;
    }
    .trust-strip {
        gap: 20px;
    }
    .cta-band-wow h2 {
        font-size: 28px;
    }
    .cta-band-wow p {
        font-size: 17px;
    }
    .cta-band-wow .hero-cta {
        font-size: 16px;
        padding: 14px 32px;
    }
    .integration-badge-wow {
        padding: 20px;
        min-width: 110px;
    }
    .integration-icon-circle {
        width: 48px;
        height: 48px;
        font-size: 24px;
    }
}

@media (max-width: 900px) {
    .pricing-card-glow {
        transform: none;
    }
    .pricing-card-glow:hover {
        transform: translateY(-5px);
    }
}

/* ========== HOMEPAGE WOW ENHANCEMENTS ========== */

/* Enhanced hero background */
.hero-wow {
    background: linear-gradient(135deg, #0d1b2e 0%, var(--primary-dark) 35%, #1e3a5f 65%, #152d4a 100%);
    padding: 100px 0 70px;
}
.hero-wow::before {
    background: radial-gradient(ellipse at 25% 50%, rgba(0,178,178,0.15) 0%, transparent 50%),
                radial-gradient(ellipse at 80% 30%, rgba(255,107,53,0.06) 0%, transparent 50%);
    animation: heroAmbient 10s ease-in-out infinite alternate;
}
.hero-wow .hero-text h1 {
    font-size: 52px;
    background: linear-gradient(135deg, #ffffff 0%, rgba(0,220,220,0.95) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-wow .hero-text p {
    font-size: 20px;
    color: rgba(255,255,255,0.85);
}
.hero-wow .hero-cta {
    padding: 18px 44px;
    font-size: 18px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent-teal), #00d4d4);
    box-shadow: 0 6px 25px rgba(0,178,178,0.35);
}
.hero-wow .hero-cta:hover {
    box-shadow: 0 10px 35px rgba(0,178,178,0.5);
    transform: translateY(-3px);
}
.hero-wow .hero-secondary-link {
    display: inline-block;
    margin-left: 20px;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s ease;
}
.hero-wow .hero-secondary-link:hover {
    color: var(--white);
    text-decoration: underline;
}

/* Enhanced pain point cards */
.pain-point-wow {
    background: var(--white);
    padding: 36px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    border: 1px solid transparent;
    text-align: center;
}
.pain-point-wow:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0,178,178,0.12);
    border-color: rgba(0,178,178,0.15);
}
.pain-point-wow .pain-point-icon {
    background: linear-gradient(135deg, var(--accent-teal), #00d4d4);
    box-shadow: 0 6px 20px rgba(0,178,178,0.25);
    transition: transform 0.4s ease;
}
.pain-point-wow:hover .pain-point-icon {
    transform: scale(1.1) rotate(-5deg);
}

/* Homepage feature cards enhanced (dark bg) */
.feature-wow {
    text-align: center;
    padding: 36px;
    background: rgba(255,255,255,0.06);
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    border: 1px solid rgba(255,255,255,0.05);
}
.feature-wow:hover {
    background: rgba(255,255,255,0.12);
    transform: translateY(-8px);
    border-color: rgba(0,178,178,0.3);
    box-shadow: 0 12px 40px rgba(0,0,0,0.2);
}
.feature-wow .feature-icon {
    background: linear-gradient(135deg, var(--accent-teal), #00d4d4);
    box-shadow: 0 6px 20px rgba(0,178,178,0.25);
    transition: transform 0.4s ease;
}
.feature-wow:hover .feature-icon {
    transform: scale(1.1) rotate(-5deg);
}

/* Features section enhanced gradient */
.features-wow {
    background: linear-gradient(135deg, #0d1b2e 0%, var(--primary-dark) 50%, #1e3a5f 100%);
    position: relative;
    overflow: hidden;
}
.features-wow::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 100%, rgba(0,178,178,0.08), transparent 60%);
    pointer-events: none;
}

/* Use case card enhanced */
.use-case-wow {
    background: var(--white);
    padding: 44px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    border: 1px solid transparent;
}
.use-case-wow:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0,178,178,0.12);
    border-color: rgba(0,178,178,0.15);
}

/* Blog callout section */
.blog-callout-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 50px;
}
.blog-callout-card {
    background: var(--white);
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    border: 1px solid transparent;
    display: flex;
    flex-direction: column;
    text-decoration: none;
}
.blog-callout-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0,178,178,0.12);
    border-color: rgba(0,178,178,0.15);
}
.blog-callout-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-teal);
    margin-bottom: 12px;
}
.blog-callout-card h3 {
    font-size: 18px;
    color: var(--primary-dark);
    margin-bottom: 10px;
    line-height: 1.4;
}
.blog-callout-card p {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.7;
    flex: 1;
    margin-bottom: 16px;
}
.blog-callout-link {
    color: var(--accent-teal);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.3s ease;
}
.blog-callout-link:hover {
    color: #009999;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .hero-wow .hero-text h1 {
        font-size: 34px;
    }
    .hero-wow .hero-secondary-link {
        display: block;
        margin-left: 0;
        margin-top: 12px;
    }
    .blog-callout-grid {
        grid-template-columns: 1fr;
    }
}

/* ========== HOW IT WORKS — ANIMATED VISUAL LAYOUT ========== */

.hiw-step {
    margin-top: 48px;
}
.hiw-step:first-of-type {
    margin-top: 60px;
}

.hiw-step-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.hiw-step-inner-reverse {
    direction: rtl;
}
.hiw-step-inner-reverse > * {
    direction: ltr;
}

.hiw-step-badge {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent-teal);
    margin-bottom: 12px;
    padding: 5px 14px;
    background: rgba(0, 178, 178, 0.08);
    border-radius: 20px;
}

.hiw-step-text h3 {
    font-size: 26px;
    color: var(--primary-dark);
    margin-bottom: 12px;
    line-height: 1.3;
}

.hiw-step-text p {
    font-size: 16px;
    color: var(--text-gray);
    line-height: 1.7;
}

.hiw-step-visual {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
    transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.hiw-step-visual:hover {
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.18);
    transform: translateY(-4px);
}

/* Connector arrows between steps */
.hiw-connector {
    text-align: center;
    padding: 24px 0;
}
.hiw-connector-line {
    width: 2px;
    height: 32px;
    background: linear-gradient(to bottom, rgba(0, 178, 178, 0.1), var(--accent-teal));
    margin: 0 auto;
}
.hiw-connector-arrow {
    font-size: 22px;
    color: var(--accent-teal);
    line-height: 1;
}

@media (max-width: 768px) {
    .hiw-step-inner,
    .hiw-step-inner-reverse {
        grid-template-columns: 1fr;
        gap: 28px;
        direction: ltr;
    }
    .hiw-step-text h3 {
        font-size: 22px;
    }
}

/* ========== UPLOAD DEMO VISUAL (Step 1) ========== */

.visual-upload-demo {
    background: var(--white);
    padding: 28px;
    border: 1px solid #E2E8F0;
}

.upload-zone-border {
    border: 2px dashed rgba(0, 178, 178, 0.25);
    border-radius: 16px;
    padding: 40px 20px;
    text-align: center;
    transition: border-color 0.6s ease, background 0.6s ease;
}
.visual-upload-demo.animate .upload-zone-border {
    border-color: var(--accent-teal);
    background: rgba(0, 178, 178, 0.03);
}

.upload-file-icon {
    margin-bottom: 16px;
    opacity: 0;
    transform: translateY(-30px);
}
.visual-upload-demo.animate .upload-file-icon {
    animation: fileDrop 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.3s forwards;
}


.upload-file-doc {
    width: 56px;
    height: 68px;
    background: linear-gradient(135deg, var(--primary-dark), #2A4A6F);
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(26, 47, 75, 0.3);
}
.upload-file-badge {
    font-size: 14px;
    font-weight: 800;
    color: var(--white);
    letter-spacing: 0.5px;
}

.upload-zone-text {
    font-weight: 600;
    font-size: 15px;
    color: var(--primary-dark);
    margin-bottom: 4px;
}
.upload-zone-subtext {
    font-size: 13px;
    color: var(--text-gray);
}

.upload-bank-strip {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    justify-content: center;
    flex-wrap: wrap;
}
.upload-bank-strip .bank-badge {
    font-size: 11px;
    padding: 8px 12px;
}

/* Staggered badge appearance */
.visual-upload-demo.animate .upload-bank-strip .bank-badge {
    animation: scanRowReveal 0.5s ease forwards;
    opacity: 0;
}
.visual-upload-demo.animate .upload-bank-strip .bank-badge:nth-child(1) { animation-delay: 0.6s; }
.visual-upload-demo.animate .upload-bank-strip .bank-badge:nth-child(2) { animation-delay: 0.75s; }
.visual-upload-demo.animate .upload-bank-strip .bank-badge:nth-child(3) { animation-delay: 0.9s; }
.visual-upload-demo.animate .upload-bank-strip .bank-badge:nth-child(4) { animation-delay: 1.05s; }

/* ========== CSV ROW STAGGER (Step 3 / homepage) ========== */

.visual-csv.animate tbody tr {
    animation: scanRowReveal 0.5s ease forwards;
    opacity: 0;
}
.visual-csv.animate tbody tr:nth-child(1) { animation-delay: 0.2s; }
.visual-csv.animate tbody tr:nth-child(2) { animation-delay: 0.35s; }
.visual-csv.animate tbody tr:nth-child(3) { animation-delay: 0.5s; }
.visual-csv.animate tbody tr:nth-child(4) { animation-delay: 0.65s; }
.visual-csv.animate tbody tr:nth-child(5) { animation-delay: 0.8s; }
.visual-csv.animate tbody tr:nth-child(6) { animation-delay: 0.95s; }

/* ========== REDUCED MOTION ACCESSIBILITY ========== */

/* ========== BLOG ARTICLE ENHANCEMENTS ========== */

/* Animated article sections */
.article-body h2 {
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Enhanced article summary */
.article-summary-wow {
    background: linear-gradient(135deg, rgba(0,178,178,0.06), rgba(0,178,178,0.02));
    border: 1px solid rgba(0,178,178,0.15);
    border-radius: 16px;
    padding: 28px 32px;
    margin: 30px 0;
    border-left: 4px solid var(--accent-teal);
}

/* Enhanced article key takeaway */
.article-key-takeaway-wow {
    background: linear-gradient(135deg, rgba(0,178,178,0.06), rgba(26,47,75,0.03));
    border: 1px solid rgba(0,178,178,0.12);
    border-radius: 16px;
    padding: 24px 28px;
    margin: 24px 0;
    border-left: 4px solid var(--accent-teal);
    transition: all 0.4s ease;
}
.article-key-takeaway-wow:hover {
    box-shadow: 0 4px 20px rgba(0,178,178,0.1);
    transform: translateY(-2px);
}

/* Article feature grid — light-background cards inside article body */
.article-feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin: 2rem 0;
}
.article-feature-card {
    background: var(--white);
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 24px 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
}
.article-feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,178,178,0.12);
    border-color: rgba(0,178,178,0.25);
}
.article-feature-card .afc-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--accent-teal), #00d4d4);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--white);
    margin: 0 auto 12px;
}
.article-feature-card h3 {
    font-size: 0.95rem;
    color: var(--primary-dark);
    margin: 0 0 6px;
}
.article-feature-card p {
    font-size: 0.85rem;
    color: var(--text-gray);
    line-height: 1.6;
    margin: 0;
}

/* Method scorecard — compact per-method scoring table */
.method-scorecard {
    background: var(--white);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    margin: 1.5rem 0;
    overflow: hidden;
}
.method-scorecard-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-dark);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}
.method-scorecard-row {
    display: flex;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid #f1f5f9;
    gap: 12px;
}
.method-scorecard-row:last-child {
    border-bottom: none;
}
.method-scorecard-row.scorecard-overall {
    border-top: 2px solid var(--accent-teal);
    margin-top: 4px;
    padding-top: 10px;
    border-bottom: none;
}
.method-scorecard-label {
    flex: 0 0 130px;
    font-size: 0.82rem;
    color: var(--text-gray);
}
.scorecard-overall .method-scorecard-label {
    font-weight: 700;
    color: var(--primary-dark);
}
.method-scorecard-bar {
    flex: 1;
    height: 8px;
    background: #f1f5f9;
    border-radius: 4px;
    overflow: hidden;
}
.method-scorecard-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 1s ease;
}
.method-scorecard-fill.score-high {
    background: linear-gradient(90deg, var(--accent-teal), #00d4d4);
}
.method-scorecard-fill.score-mid {
    background: linear-gradient(90deg, #94a3b8, #b0bec5);
}
.method-scorecard-fill.score-low {
    background: linear-gradient(90deg, var(--action-coral), #ff8a5c);
}
.method-scorecard-value {
    flex: 0 0 42px;
    font-size: 0.82rem;
    font-weight: 600;
    text-align: right;
    color: var(--primary-dark);
}
.scorecard-overall .method-scorecard-value {
    font-size: 0.95rem;
    color: var(--accent-teal);
}

/* Method ranking visual — horizontal bar chart for final verdict */
.method-ranking-visual {
    background: var(--primary-dark);
    border-radius: 16px;
    padding: 28px 24px;
    margin: 2rem 0;
}
.method-ranking-title {
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
}
.method-ranking-row {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    gap: 12px;
}
.method-ranking-row:last-child {
    margin-bottom: 0;
}
.method-ranking-label {
    flex: 0 0 160px;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.7);
    text-align: right;
}
.method-ranking-bar {
    flex: 1;
    height: 28px;
    background: rgba(255,255,255,0.08);
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}
.method-ranking-fill {
    height: 100%;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 10px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #fff;
    transition: width 1.2s ease;
}
.method-ranking-fill.rank-best {
    background: linear-gradient(90deg, var(--accent-teal), #00d4d4);
}
.method-ranking-fill.rank-mid {
    background: linear-gradient(90deg, #475569, #64748b);
}
.method-ranking-fill.rank-low {
    background: linear-gradient(90deg, #7f4a3a, var(--action-coral));
}
@media (max-width: 600px) {
    .method-ranking-label {
        flex: 0 0 90px;
        font-size: 0.75rem;
    }
    .method-scorecard-label {
        flex: 0 0 100px;
    }
}

/* Enhanced method cards for blog */
.article-method-card-wow {
    border-radius: 16px;
    border: 1px solid rgba(0,0,0,0.08);
    padding: 28px 32px;
    margin: 24px 0;
    background: var(--white);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.article-method-card-wow:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    transform: translateY(-3px);
}

/* Blog visual: Speed comparison inline */
.blog-speed-visual {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #2A4A6F 100%);
    border-radius: 16px;
    padding: 32px;
    margin: 32px 0;
    color: var(--white);
    overflow: hidden;
}
.blog-speed-visual h4 {
    text-align: center;
    font-size: 16px;
    color: rgba(255,255,255,0.8);
    margin-bottom: 24px;
    font-weight: 600;
}
.blog-speed-bars {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.blog-speed-row {
    display: flex;
    align-items: center;
    gap: 16px;
}
.blog-speed-label {
    font-size: 13px;
    font-weight: 600;
    width: 140px;
    flex-shrink: 0;
    text-align: right;
    color: rgba(255,255,255,0.7);
}
.blog-speed-track {
    flex: 1;
    height: 28px;
    background: rgba(255,255,255,0.1);
    border-radius: 14px;
    overflow: hidden;
    position: relative;
}
.blog-speed-fill {
    height: 100%;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 12px;
    font-size: 12px;
    font-weight: 700;
    color: var(--white);
    width: 0;
    transition: width 1.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.blog-speed-fill-fast {
    background: linear-gradient(90deg, var(--accent-teal), #00d4d4);
}
.blog-speed-fill-medium {
    background: linear-gradient(90deg, #f59e0b, #eab308);
}
.blog-speed-fill-slow {
    background: linear-gradient(90deg, #ef4444, #dc2626);
}
.blog-speed-visual.animate .blog-speed-fill-fast { width: 8%; }
.blog-speed-visual.animate .blog-speed-fill-medium { width: 35%; transition-delay: 0.2s; }
.blog-speed-visual.animate .blog-speed-fill-slow { width: 95%; transition-delay: 0.4s; }

/* Blog visual: Date format confusion */
.blog-date-visual {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 16px;
    align-items: center;
    margin: 24px 0;
    padding: 24px;
    background: var(--light-gray);
    border-radius: 16px;
}
.blog-date-card {
    background: var(--white);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}
.blog-date-card-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-gray);
    margin-bottom: 8px;
}
.blog-date-card-value {
    font-family: 'Courier New', monospace;
    font-size: 18px;
    font-weight: 700;
    color: #dc2626;
}
.blog-date-card-value-fixed {
    color: #16a34a;
}
.blog-date-arrow {
    font-size: 24px;
    color: var(--accent-teal);
    font-weight: 700;
}

/* Blog visual: Balance checker */
.blog-balance-visual {
    margin: 24px 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.blog-balance-header {
    background: linear-gradient(135deg, var(--accent-teal), #00d4d4);
    color: var(--white);
    padding: 12px 20px;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.blog-balance-rows {
    background: var(--white);
    padding: 4px 0;
}
.blog-balance-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 20px;
    font-size: 13px;
    border-bottom: 1px solid var(--light-gray);
    font-family: 'Courier New', monospace;
}
.blog-balance-row:last-child {
    border-bottom: none;
}
.blog-balance-match {
    color: #16a34a;
    font-weight: 600;
}
.blog-balance-mismatch {
    color: #dc2626;
    font-weight: 600;
    background: rgba(220,38,38,0.06);
}

/* Enhanced tip cards */
.article-numbered-tips-wow .tip-card {
    border-radius: 16px;
    border: 1px solid transparent;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.article-numbered-tips-wow .tip-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,178,178,0.1);
    border-color: rgba(0,178,178,0.15);
}
.article-numbered-tips-wow .tip-number {
    background: linear-gradient(135deg, var(--accent-teal), #00d4d4);
    box-shadow: 0 4px 12px rgba(0,178,178,0.25);
}

/* Enhanced blog cards on index */
.blog-card-wow {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    border: 1px solid transparent;
    background: var(--white);
}
.blog-card-wow:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 50px rgba(0,178,178,0.15);
    border-color: rgba(0,178,178,0.2);
}
.blog-card-wow .blog-card-image {
    background: linear-gradient(135deg, var(--primary-dark), #1e3a5f);
    transition: all 0.4s ease;
}
.blog-card-wow:hover .blog-card-image {
    background: linear-gradient(135deg, #1e3a5f, var(--accent-teal));
}

/* Enhanced featured article cards */
.article-featured-article-wow {
    border-radius: 16px;
    border: 1px solid rgba(0,178,178,0.12);
    padding: 24px 28px;
    margin: 16px 0;
    background: linear-gradient(135deg, rgba(0,178,178,0.04), rgba(0,178,178,0.01));
    transition: all 0.4s ease;
}
.article-featured-article-wow:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,178,178,0.1);
    border-color: rgba(0,178,178,0.25);
}

@media (max-width: 768px) {
    .blog-speed-label {
        width: 100px;
        font-size: 11px;
    }
    .blog-date-visual {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .blog-date-arrow {
        transform: rotate(90deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .reveal, .reveal-left, .reveal-right, .reveal-scale {
        opacity: 1 !important;
        transform: none !important;
    }
    .visual-ai-extraction.animate .scan-row,
    .visual-csv.animate tbody tr,
    .example-table.animate tbody tr,
    .visual-upload-demo.animate .upload-bank-strip .bank-badge,
    .visual-upload-demo.animate .upload-file-icon {
        opacity: 1 !important;
        transform: none !important;
    }
    .visual-upload-demo.animate .upload-zone-border {
        border-color: var(--accent-teal);
        background: rgba(0, 178, 178, 0.03);
    }
    .visual-speed .speed-bar-fill {
        transition: none !important;
    }
    .visual-speed.animate .speed-bar-fill.fast { width: 15% !important; }
    .visual-speed.animate .speed-bar-fill.slow { width: 95% !important; }
}


/* ========== EMAIL CONFIRMED SECTION ========== */

.email-confirmed-section {
    padding: 100px 0;
    background: var(--light-gray);
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.email-confirmed-card {
    max-width: 620px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 16px;
    padding: 60px 50px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.email-confirmed-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--accent-teal);
    color: var(--white);
    font-size: 40px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.email-confirmed-card h1 {
    font-size: 32px;
    color: var(--primary-dark);
    margin-bottom: 16px;
}

.email-confirmed-card p {
    font-size: 16px;
    color: var(--text-gray);
    line-height: 1.7;
    margin-bottom: 32px;
}

@media (max-width: 768px) {
    .email-confirmed-section {
        padding: 60px 0;
    }

    .email-confirmed-card {
        padding: 40px 24px;
    }

    .email-confirmed-card h1 {
        font-size: 26px;
    }
}


/* ========== ERROR TEXT ========== */

.error-text {
    color: #DC3545;
    font-size: 14px;
    margin-top: 8px;
    margin-bottom: 0;
}

/* ========== AUTH PAGES ========== */

.auth-shell {
    background: var(--light-gray);
}

.auth-shell-content {
    flex: 1;
    padding: 40px 0;
}

.auth-card {
    max-width: 460px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 16px;
    padding: 50px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.otp-inputs {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin: 30px 0;
}

.otp-input {
    width: 52px;
    height: 64px;
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    border: 2px solid #E2E8F0;
    border-radius: 8px;
    color: var(--primary-dark);
    font-family: 'Inter', sans-serif;
    transition: border-color 0.2s ease;
}

.otp-input:focus {
    outline: none;
    border-color: var(--accent-teal);
    box-shadow: 0 0 0 3px rgba(0, 178, 178, 0.1);
}

@media (max-width: 768px) {
    .auth-card {
        padding: 30px 20px;
    }

    .otp-input {
        width: 42px;
        height: 54px;
        font-size: 22px;
    }

    .otp-inputs {
        gap: 8px;
    }
}

/* ========== SPINNER ========== */

.spinner-overlay {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
}

.spinner {
    width: 36px;
    height: 36px;
    border: 3px solid #E2E8F0;
    border-top-color: var(--accent-teal);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}



/* ========== DASHBOARD LAYOUT ========== */

.dashboard-layout {
    display: flex;
    height: 100vh;
    overflow: hidden;
    position: relative;
}

.dashboard-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.dashboard-content {
    flex: 1;
    overflow-y: auto;
    padding: 32px;
    background: var(--light-gray);
}

.dashboard-content-inner {
    max-width: 1200px;
    margin: 0 auto;
}

/* ========== SIDEBAR ========== */

.sidebar {
    width: 260px;
    min-width: 260px;
    height: 100vh;
    background: linear-gradient(180deg, #0a1929 0%, #142640 40%, #1a3a5c 100%);
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    flex-direction: column;
    transition: width 0.2s ease, min-width 0.2s ease;
    overflow: hidden;
}

.sidebar.collapsed {
    width: 72px;
    min-width: 72px;
}


.sidebar-top {
    display: flex;
    align-items: center;
    padding: 0 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    height: 72px;
    gap: 12px;
    white-space: nowrap;
    overflow: hidden;
    flex-shrink: 0;
}

.sidebar-logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--accent-teal), #00d4d4);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 2px 12px rgba(0, 178, 178, 0.3);
}

.sidebar .logo-text {
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.sidebar .logo-ai {
    color: var(--accent-teal);
}

.sidebar-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    padding: 16px 12px;
    overflow: hidden;
}

.sidebar-nav-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 11px 14px;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
    border-radius: 8px;
    margin-bottom: 2px;
    position: relative;
    transition: background 0.15s ease, color 0.15s ease;
    white-space: nowrap;
}

.sidebar-nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.9);
}

.sidebar-nav-item.active {
    background: rgba(0, 178, 178, 0.1);
    color: #fff;
}

.sidebar-nav-item.active::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 24px;
    background: var(--accent-teal);
    border-radius: 0 3px 3px 0;
}

.sidebar-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.sidebar-bottom {
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-user-email {
    flex: 1;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.45);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-logout {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.4);
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    cursor: pointer;
    padding: 8px 14px 16px 12px;
    white-space: nowrap;
    font-family: inherit;
    width: 100%;
    transition: color 0.1s ease;
}

.sidebar-logout:hover {
    color: #f87171;
}

.sidebar-logout-icon {
    width: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.sidebar-toggle-edge {
    position: absolute;
    top: 50%;
    transform: translateY(-50%) translateX(-50%);
    width: 24px;
    height: 24px;
    background: var(--white);
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    font-size: 13px;
    color: var(--text-gray);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
    padding: 0;
    font-family: inherit;
    line-height: 1;
    opacity: 0;
    transition: left 0.2s ease, opacity 0.15s ease;
}

.dashboard-layout:hover .sidebar-toggle-edge {
    opacity: 1;
}

.sidebar-toggle-edge:hover {
    background: var(--light-gray);
    color: var(--primary-dark);
}

/* ========== DASHBOARD HEADER ========== */

.dashboard-header {
    height: 64px;
    min-height: 64px;
    background: var(--white);
    border-bottom: 1px solid #E2E8F0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.dashboard-header-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-dark);
}

/* ========== AVATAR INITIALS ========== */

.avatar-initials {
    border-radius: 8px;
    background: var(--accent-teal);
    color: var(--white);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.avatar-initials.sm {
    width: 32px;
    height: 32px;
    font-size: 13px;
}

.avatar-initials.md {
    width: 40px;
    height: 40px;
    font-size: 15px;
}

/* ========== DASHBOARD VIEWS ========== */

.welcome-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}

.welcome-bar h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-dark);
    letter-spacing: -0.3px;
}

.welcome-bar p {
    font-size: 14px;
    color: var(--text-gray);
    margin-top: 4px;
}

.btn-dashboard-cta {
    background: var(--accent-teal);
    color: var(--white);
    border: none;
    padding: 9px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    text-decoration: none;
    transition: background 0.15s ease;
}

.btn-dashboard-cta:hover {
    background: #009999;
}

.welcome-banner {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #EDF9F8;
    border: 1px solid rgba(0, 178, 178, 0.2);
    border-radius: 12px;
    padding: 14px 18px;
    margin-bottom: 24px;
}

.welcome-banner-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: #C8EEF0;
    border-radius: 8px;
    color: var(--accent-teal);
}

.welcome-banner-body h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-dark);
    margin: 0 0 3px;
}

.welcome-banner-body p {
    font-size: 13px;
    color: var(--text-gray);
    margin: 0;
}

.welcome-banner-dismiss {
    margin-left: auto;
    flex-shrink: 0;
    background: none;
    border: none;
    font-size: 18px;
    line-height: 1;
    color: var(--text-gray);
    cursor: pointer;
    padding: 0 0 0 12px;
}

.welcome-banner-dismiss:hover {
    color: var(--primary-dark);
}

/* ========== CREDIT BALANCE CARD ========== */

.credit-balance-card {
    background: linear-gradient(135deg, #0d1b2e 0%, #1a3a5c 50%, #1e3a5f 100%);
    border-radius: 16px;
    padding: 28px 32px;
    color: var(--white);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

/* Ambient glow top-right */
.credit-balance-card::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(0, 178, 178, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

/* Subtle grid pattern */
.credit-balance-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
}

.credit-balance-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    position: relative;
    z-index: 1;
}


.credit-balance-value {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -2px;
    margin: 12px 0 4px;
    position: relative;
    z-index: 1;
}

.credit-balance-sub {
    font-size: 15px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    position: relative;
    z-index: 1;
}

.credit-meter {
    margin-top: 20px;
    position: relative;
    z-index: 1;
}




/* ========== STATS GRID ========== */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.stat-card {
    background: var(--white);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(226, 232, 240, 0.6);
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.stat-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon svg {
    width: 22px;
    height: 22px;
}

.stat-icon--teal {
    background: linear-gradient(135deg, rgba(0, 178, 178, 0.12), rgba(0, 178, 178, 0.04));
    color: var(--accent-teal);
}

.stat-icon--coral {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.12), rgba(255, 107, 53, 0.04));
    color: #d4930f;
}

.stat-icon--navy {
    background: linear-gradient(135deg, rgba(26, 47, 75, 0.12), rgba(26, 47, 75, 0.04));
    color: var(--primary-dark);
}

.stat-content .stat-value {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary-dark);
    line-height: 1.1;
    letter-spacing: -1px;
}

.stat-content .stat-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-gray);
    margin-top: 2px;
}

/* ========== DASHBOARD HOME LAYOUT ========== */

.dashboard-top {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 20px;
    margin-bottom: 24px;
}

.dashboard-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 240px;
}

.dashboard-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(0, 178, 178, 0.2);
    border-top-color: var(--accent-teal);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}




@media (max-width: 1280px) {
    .dashboard-top {
        grid-template-columns: 1fr;
    }
}

/* ========== SETTINGS PAGE ========== */

.settings-card {
    background: var(--white);
    border: 1px solid #E5E7EB;
    border-radius: 10px;
    margin-bottom: 20px;
}

.settings-card-header {
    padding: 16px 20px;
    border-bottom: 1px solid #E5E7EB;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-dark);
}

.settings-card-body {
    padding: 20px;
}

.field-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 6px;
}

.field-value {
    width: 100%;
    padding: 9px 14px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    font-size: 14px;
    background: #F9FAFB;
    color: var(--text-gray);
    font-family: inherit;
}

/* ============================================================
   HISTORY — CSS VARIABLES (extend 

/* ============================================================
   HISTORY — STATUS BADGES
   (ported from docs/dashboard.css)
   ============================================================ */

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.status-badge.complete {
    background: var(--status-success-bg);
    color: var(--status-success);
}

.status-badge.processing {
    background: var(--status-processing-bg);
    color: var(--status-processing);
}

.status-badge.failed {
    background: var(--status-error-bg);
    color: var(--status-error);
}

.status-badge.locked {
    background: var(--status-warning-bg);
    color: var(--status-warning);
}

/* Reusable spinner — used in status badge and download button */
.status-badge__spinner {
    width: 12px;
    height: 12px;
    border: 2px solid rgba(37, 99, 235, 0.2);
    border-top-color: var(--status-processing);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    flex-shrink: 0;
}

/* ============================================================
   HISTORY — DOWNLOAD ICONS
   (ported from docs/dashboard.css)
   ============================================================ */

.download-icons {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.dl-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    white-space: nowrap;
    min-width: 36px;
    height: 28px;
    padding: 0 8px;
    border-radius: 6px;
    border: 1px solid var(--border-light);
    background: var(--white);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.3px;
    color: var(--primary-dark);
    text-decoration: none;
    transition: all 0.15s ease;
    cursor: pointer;
}

.dl-icon--downloading .dl-icon__label {
    visibility: hidden;
}

.dl-icon__spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -6px;
    margin-left: -6px;
}

.dl-icon:hover:not(:disabled) {
    border-color: var(--accent-teal);
    background: rgba(0, 178, 178, 0.06);
    color: var(--accent-teal);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 178, 178, 0.15);
}

.dl-icon:active:not(:disabled) {
    transform: translateY(0) scale(0.96);
}

.dl-icon:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.dl-icon--active {
    border-color: var(--accent-teal);
    background: var(--accent-teal);
    color: white;
}

.dl-icon--active:hover:not(:disabled) {
    background: var(--teal-hover);
    border-color: var(--teal-hover);
    color: white;
    box-shadow: 0 2px 8px rgba(0, 178, 178, 0.3);
}

.dl-error {
    display: block;
    font-size: 11px;
    color: var(--status-error);
    margin-top: 4px;
    text-align: right;
}

/* ============================================================
   HISTORY — FILTER BAR
   (ported from docs/dashboard.css)
   ============================================================ */

.filter-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.search-input {
    position: relative;
    flex: 0 1 320px;
}

.search-input input {
    width: 100%;
    height: 42px;
    padding: 0 14px 0 40px;
    border: 1px solid var(--border-light);
    border-radius: 10px;
    background: var(--white);
    font-size: 14px;
    color: var(--primary-dark);
    transition: all 0.2s ease;
    box-shadow: var(--shadow-xs);
}

.search-input input::placeholder {
    color: var(--text-gray);
}

.search-input input:focus {
    outline: none;
    border-color: var(--accent-teal);
    box-shadow: 0 0 0 3px rgba(0, 178, 178, 0.12);
}

.search-input svg {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: var(--text-gray);
    pointer-events: none;
}

.filter-btn {
    height: 42px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--border-light);
    border-radius: 10px;
    background: var(--white);
    font-size: 13px;
    font-weight: 500;
    color: var(--primary-dark);
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: var(--shadow-xs);
    white-space: nowrap;
}

.filter-btn:hover {
    border-color: var(--border-medium);
    background: var(--light-gray);
}

.filter-btn.active {
    border-color: var(--accent-teal);
    background: rgba(0, 178, 178, 0.04);
    color: var(--accent-teal);
}

.clear-filters {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-gray);
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.15s ease;
    background: none;
    border: none;
}

.clear-filters:hover {
    color: var(--status-error);
    background: var(--status-error-bg);
}

.history-date-range {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-gray);
}

.history-date-range input[type="date"] {
    height: 42px;
    padding: 0 12px;
    border: 1px solid var(--border-light);
    border-radius: 10px;
    background: var(--white);
    font-size: 13px;
    color: var(--primary-dark);
    box-shadow: var(--shadow-xs);
    cursor: pointer;
    outline: none;
}

.history-date-range input[type="date"]:focus {
    border-color: var(--accent-teal);
    box-shadow: 0 0 0 3px rgba(0, 178, 178, 0.12);
}

.history-date-error {
    font-size: 13px;
    color: var(--status-error);
    margin-bottom: 12px;
}

/* ============================================================
   HISTORY — TABLE CARD
   (ported from docs/dashboard.css)
   ============================================================ */

.table-card {
    background: var(--white);
    border-radius: var(--card-radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(226, 232, 240, 0.6);
    overflow: hidden;
}

.table-scroll-body {
    overflow-y: auto;
    height: 520px;
}

.table-header {
    padding: 20px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-light);
}

.table-header h2 {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-dark);
}

.table-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.text-sm { font-size: 13px; }
.text-muted { color: var(--text-gray); }

.data-table {
    width: 100%;
    table-layout: fixed;
}

.data-table thead th:nth-child(1) { width: 150px; }
.data-table thead th:nth-child(3) { width: 170px; }
.data-table thead th:nth-child(4) { width: 280px; }

.data-table caption {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.data-table thead th {
    padding: 12px 16px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-gray);
    text-align: left;
    background: var(--light-gray);
    border-bottom: 1px solid var(--border-light);
    white-space: nowrap;
    position: sticky;
    top: 0;
    z-index: 1;
    transform: translateZ(0);
}

.data-table thead th:first-child { padding-left: 28px; }
.data-table thead th:last-child { padding-right: 28px; }
.data-table thead th.text-right { text-align: right; }

.data-table thead th.sortable {
    cursor: pointer;
    user-select: none;
}

.data-table thead th.sortable:hover {
    color: var(--accent-teal);
}

.data-table tbody tr {
    transition: background 0.15s ease;
    animation: rowReveal 0.4s var(--ease-out) forwards;
    opacity: 0;
}

.data-table tbody tr:nth-child(1) { animation-delay: 0.05s; }
.data-table tbody tr:nth-child(2) { animation-delay: 0.1s; }
.data-table tbody tr:nth-child(3) { animation-delay: 0.15s; }
.data-table tbody tr:nth-child(4) { animation-delay: 0.2s; }
.data-table tbody tr:nth-child(5) { animation-delay: 0.25s; }
.data-table tbody tr:nth-child(6) { animation-delay: 0.3s; }
.data-table tbody tr:nth-child(7) { animation-delay: 0.35s; }
.data-table tbody tr:nth-child(8) { animation-delay: 0.4s; }
.data-table tbody tr:nth-child(9) { animation-delay: 0.45s; }
.data-table tbody tr:nth-child(10) { animation-delay: 0.5s; }



.data-table tbody tr:hover {
    background: rgba(0, 178, 178, 0.02);
}

.data-table tbody td {
    padding: 14px 16px;
    font-size: 14px;
    color: var(--primary-dark);
    border-bottom: 1px solid #F1F5F9;
    vertical-align: middle;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.data-table tbody td:first-child { padding-left: 28px; }
.data-table tbody td:last-child { padding-right: 28px; }
.data-table tbody td.text-right { text-align: right; }

/* ============================================================
   HISTORY — FILE CELL
   (ported from docs/dashboard.css)
   ============================================================ */

.file-cell {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.history-file-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(0, 178, 178, 0.08), rgba(0, 178, 178, 0.02));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--accent-teal);
}

.history-file-icon svg {
    width: 16px;
    height: 16px;
}

.history-file-name {
    font-weight: 500;
    color: var(--primary-dark);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* ============================================================
   HISTORY — PAGINATION
   (ported from docs/dashboard.css)
   ============================================================ */

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 20px 28px;
    border-top: 1px solid var(--border-light);
}

.pagination .text-muted { margin-right: 12px; }

.page-btn {
    min-width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-gray);
    transition: all 0.15s ease;
    background: none;
    border: none;
    cursor: pointer;
}

.page-btn:hover {
    background: var(--light-gray);
    color: var(--primary-dark);
}

.page-btn.active {
    background: var(--accent-teal);
    color: white;
    font-weight: 600;
}

.page-btn.disabled {
    opacity: 0.3;
    pointer-events: none;
}

.page-btn svg {
    width: 16px;
    height: 16px;
}

.page-ellipsis {
    min-width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: var(--text-gray);
}

/* ============================================================
   HISTORY — EMPTY STATE
   (ported from docs/dashboard.css)
   ============================================================ */

.empty-state {
    text-align: center;
    padding: 80px 40px;
}

.empty-state .empty-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(0, 178, 178, 0.1), rgba(0, 178, 178, 0.03));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-teal);
}

.empty-state .empty-icon svg {
    width: 36px;
    height: 36px;
}

.empty-state h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.empty-state p {
    font-size: 15px;
    color: var(--text-gray);
    max-width: 360px;
    margin: 0 auto 24px;
}

/* ============================================================
   HISTORY — SKELETON LOADING ROWS
   ============================================================ */

.skeleton-bar {
    height: 14px;
    background: linear-gradient(90deg, #E2E8F0 25%, #F1F5F9 50%, #E2E8F0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.4s infinite;
    border-radius: 4px;
    width: 80%;
}

.skeleton-bar--short {
    width: 50%;
}

.link-teal {
    color: var(--accent-teal);
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.15s ease;
    text-decoration: none;
}

.link-teal:hover {
    color: var(--teal-hover);
}

.link-teal svg {
    width: 16px;
    height: 16px;
}

.table-footer {
    padding: 16px 28px;
    display: flex;
    justify-content: flex-end;
    border-top: 1px solid var(--border-light);
}

/* ============================================================
   FILTER DROPDOWN
   ============================================================ */

.filter-btn .chevron {
    width: 14px;
    height: 14px;
    transition: transform 0.2s ease;
}

.filter-btn.open .chevron {
    transform: rotate(180deg);
}

.dropdown-container {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 200px;
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    padding: 6px;
    z-index: 200;
    opacity: 0;
    transform: translateY(-4px);
    pointer-events: none;
    transition: all 0.15s ease;
}

.dropdown-menu.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.dropdown-menu.left {
    right: auto;
    left: 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    font-size: 13px;
    font-weight: 500;
    color: var(--primary-dark);
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.1s ease;
    white-space: nowrap;
}

.dropdown-item:hover {
    background: var(--light-gray);
}

.dropdown-item svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: var(--text-gray);
}

.dropdown-item.selected svg {
    color: var(--accent-teal);
}



/* ============================================================
   CREDIT PILL (dashboard header)
   ============================================================ */

.credit-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 100px;
    background: var(--light-gray);
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-dark);
    transition: all 0.2s ease;
    text-decoration: none;
    border: 1px solid transparent;
}

.credit-pill:hover {
    background: #EDF2F7;
    border-color: var(--border-light);
}

.credit-pill svg {
    width: 16px;
    height: 16px;
    color: var(--accent-teal);
}

.credit-pill.warning {
    background: var(--status-warning-bg);
    color: var(--status-warning);
    border-color: rgba(217, 119, 6, 0.2);
}

.credit-pill.warning svg {
    color: var(--status-warning);
}

.credit-pill.critical {
    background: var(--status-error-bg);
    color: var(--status-error);
    border-color: rgba(220, 38, 38, 0.2);
    animation: pillPulse 2s ease-in-out infinite;
}

.credit-pill.critical svg {
    color: var(--status-error);
}



/* ============================================================
   CREDIT BALANCE CARDS (CreditsView)
   ============================================================ */

.credit-card {
    background: linear-gradient(135deg, #0d1b2e 0%, #1a3a5c 50%, #1e3a5f 100%);
    border-radius: var(--card-radius);
    padding: 28px 32px;
    color: white;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
    flex: 1;
}

.credit-card::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(0, 178, 178, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.credit-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
}

.credit-card-label {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.credit-card-value {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.1;
    margin: 12px 0 4px;
    letter-spacing: -2px;
    position: relative;
    z-index: 1;
}

.credit-card-sub {
    font-size: 15px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    position: relative;
    z-index: 1;
}

.credit-meter-track {
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.credit-meter-fill {
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--accent-teal), var(--teal-light, #00d4d4));
    transition: width 0.6s ease;
}

.credit-meter-info {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
}

/* Credit card state variants */
.credit-card.state-low .credit-meter-fill {
    background: linear-gradient(90deg, var(--status-warning), #f59e0b);
}

.credit-card.state-critical .credit-meter-fill {
    background: linear-gradient(90deg, var(--status-error), #ef4444);
    animation: meterPulse 1.5s ease-in-out infinite;
}



.credit-card.state-zero {
    background: linear-gradient(135deg, #1a0f0f 0%, #2d1515 50%, #1a0f0f 100%);
    border-color: rgba(220, 38, 38, 0.2);
}

.credit-card.state-zero::before {
    background: radial-gradient(circle, rgba(220, 38, 38, 0.12) 0%, transparent 70%);
}

.credit-expiry {
    font-size: 12px;
    font-weight: 500;
    color: var(--action-coral);
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    position: relative;
    z-index: 1;
}

.credit-expiry svg {
    width: 14px;
    height: 14px;
}

/* ============================================================
   WARNING BANNERS (CreditsView)
   ============================================================ */

.alert-banner {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    border-radius: 12px;
    margin-bottom: 24px;
    font-size: 14px;
    font-weight: 500;
    background: var(--light-gray);
    border: 1px solid var(--border-light);
    color: var(--primary-dark);
}

.alert-banner svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.alert-banner .alert-actions {
    margin-left: auto;
    display: flex;
    gap: 8px;
    align-items: center;
}

.alert-banner .alert-dismiss {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    opacity: 0.6;
    transition: opacity 0.15s ease;
    background: none;
    border: none;
    cursor: pointer;
    color: inherit;
}

.alert-banner .alert-dismiss:hover {
    opacity: 1;
}

.alert-banner .alert-dismiss svg {
    width: 16px;
    height: 16px;
}

.alert-coral {
    background: rgba(255, 107, 53, 0.08);
    color: #9a3412;
    border: 1px solid rgba(255, 107, 53, 0.2);
}

.alert-success {
    background: linear-gradient(135deg, rgba(0, 178, 178, 0.14) 0%, rgba(0, 140, 140, 0.08) 100%);
    border: 2px solid rgba(0, 178, 178, 0.45);
    color: #005f5f;
    padding: 18px 24px;
    font-size: 15px;
    font-weight: 600;
    box-shadow: 0 4px 16px rgba(0, 178, 178, 0.15), 0 1px 4px rgba(0, 0, 0, 0.06);
    animation: banner-pop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.alert-success .alert-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    color: var(--accent-teal);
    filter: drop-shadow(0 0 4px rgba(0, 178, 178, 0.5));
}



/* ============================================================
   CREDIT PACK CARDS (CreditsView)
   ============================================================ */

.packs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.pack-card {
    background: var(--white);
    border-radius: var(--card-radius);
    padding: 28px 24px;
    border: 2px solid var(--border-light);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.pack-card:hover {
    border-color: rgba(0, 178, 178, 0.3);
    box-shadow: var(--shadow-card-hover, 0 8px 24px rgba(0,0,0,0.12));
    transform: translateY(-4px);
}

.pack-card.featured {
    border-color: var(--accent-teal);
    box-shadow: 0 0 0 1px var(--accent-teal), var(--shadow-md);
}


.pack-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(0, 178, 178, 0.1);
    color: var(--accent-teal);
}

.pack-badge.coral {
    background: rgba(255, 107, 53, 0.1);
    color: var(--action-coral);
}

.pack-credits {
    font-size: 40px;
    font-weight: 800;
    color: var(--primary-dark);
    line-height: 1;
    letter-spacing: -1.5px;
}

.pack-credits-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-gray);
    margin-top: 4px;
}

.pack-price {
    margin-top: 16px;
    font-size: 32px;
    font-weight: 800;
    color: var(--primary-dark);
    letter-spacing: -1px;
}

.pack-price-per {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-gray);
    margin-top: 2px;
}

.pack-features {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
    list-style: none;
    text-align: left;
    padding-left: 0;
    margin-bottom: 0;
}

.pack-features li {
    font-size: 13px;
    color: var(--text-gray);
    padding: 5px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pack-features li svg {
    width: 14px;
    height: 14px;
    color: var(--accent-teal);
    flex-shrink: 0;
}

.pack-card .btn {
    width: 100%;
    justify-content: center;
    margin-top: 20px;
}

.pack-error {
    font-size: 13px;
    color: var(--action-coral);
    margin-top: 8px;
}

/* Responsive: 2-col packs on tablet, 1-col on mobile */
@media (max-width: 1024px) {
    .packs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .packs-grid {
        grid-template-columns: 1fr;
    }
}

}
