
html {
    scroll-behavior: smooth;
}



.cmp-zone {
    border: 2px dashed var(--border-color, #e5e7eb);
    border-radius: .6rem;
    padding: 1.25rem 1rem;
    text-align: center;
    cursor: pointer;
    transition: border-color .2s, background .2s;
    min-height: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .4rem;
}
.cmp-zone:hover,
.cmp-zone.drag-active { background: #f8fafc; }

.cmp-zone--original { border-color: #93c5fd; }
.cmp-zone--original:hover,
.cmp-zone--original.drag-active { border-color: #3b82f6; background: #eff6ff; }

.cmp-zone--modified { border-color: #fca5a5; }
.cmp-zone--modified:hover,
.cmp-zone--modified.drag-active { border-color: #ef4444; background: #fef2f2; }

.cmp-zone-label {
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.cmp-file-row {
    display: flex;
    align-items: center;
    gap: .4rem;
    padding: .4rem .5rem;
    border-radius: .4rem;
    font-size: .78rem;
    background: var(--bs-light, #f8f9fa);
    border: 1px solid var(--border-color, #e5e7eb);
    margin-top: .4rem;
}

.cmp-vs {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: #fff;
    font-size: .7rem;
    font-weight: 700;
    flex-shrink: 0;
    align-self: center;
}


.rpr-fix-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .65rem;
}

.rpr-fix-card {
    display: flex;
    align-items: flex-start;
    gap: .55rem;
    padding: .7rem .85rem;
    border-radius: .55rem;
    background: #fffbeb;
    border: 1px solid #fde68a;
}

.rpr-fix-icon {
    width: 26px;
    height: 26px;
    border-radius: 7px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    font-size: .7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: .1rem;
}

.rpr-fix-text {
    font-size: .75rem;
    color: #374151;
    line-height: 1.4;
    margin: 0;
}


.pdi-row {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    padding: .65rem .25rem;
    border-bottom: 1px solid var(--border-color, #e5e7eb);
}
.pdi-row:last-child { border-bottom: none; }

.pdi-row-icon {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: #fff;
    font-size: .7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: .1rem;
}

.pdi-row-label {
    font-size: .78rem;
    font-weight: 600;
    color: #6b7280;
    min-width: 110px;
    flex-shrink: 0;
    padding-top: .05rem;
}

.pdi-row-value {
    font-size: .85rem;
    color: #1f2937;
    word-break: break-word;
    flex: 1;
}

.pdi-badge-yes {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .15rem .55rem;
    border-radius: 99px;
    font-size: .72rem;
    font-weight: 600;
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.pdi-badge-no {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .15rem .55rem;
    border-radius: 99px;
    font-size: .72rem;
    font-weight: 600;
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}


.exl-output-badge {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .45rem .9rem;
    border-radius: 99px;
    background: #ecfeff;
    border: 1px solid #a5f3fc;
    font-size: .78rem;
    font-weight: 600;
    color: #0e7490;
}

/* Feature row list */
.exl-feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.exl-feature-item {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    font-size: .82rem;
    color: #374151;
    line-height: 1.45;
}

.exl-feature-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    color: #fff;
    font-size: .65rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: .1rem;
}



.exi-tile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .75rem;
}

.exi-tile {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .35rem;
    padding: .85rem 1rem;
    border-radius: .6rem;
    background: #fdf2f8;
    border: 1px solid #fbcfe8;
}

.exi-tile-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, #ec4899, #db2777);
    color: #fff;
    font-size: .85rem;
    flex-shrink: 0;
}

.exi-tile-title {
    font-size: .78rem;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.2;
}

.exi-tile-desc {
    font-size: .73rem;
    color: #6b7280;
    line-height: 1.4;
    margin: 0;
}

/* 
   ANNOUNCEMENT TICKER
    */
.announce-ticker {
    width: 100%;
    background: linear-gradient(90deg, #1e1b4b 0%, #312e81 50%, #1e1b4b 100%);
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    z-index: 1000;
    height: 36px;
    display: flex;
    align-items: center;
    /* fade edges */
    -webkit-mask-image: linear-gradient(
        90deg,
        transparent 0%,
        #000 6%,
        #000 94%,
        transparent 100%
    );
    mask-image: linear-gradient(
        90deg,
        transparent 0%,
        #000 6%,
        #000 94%,
        transparent 100%
    );
}

.announce-track {
    display: inline-flex;
    align-items: center;
    gap: 0;
    animation: ticker-scroll 38s linear infinite;
    will-change: transform;
}

/* pause on hover so users can read */
.announce-ticker:hover .announce-track {
    animation-play-state: paused;
}

@keyframes ticker-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.announce-item {
    display: inline-flex;
    align-items: center;
    font-size: 0.78rem;
    font-weight: 500;
    color: #c7d2fe;
    letter-spacing: 0.01em;
    padding: 0 1.5rem;
    white-space: nowrap;
}

.announce-sep {
    color: #6366f1;
    font-size: 0.6rem;
    flex-shrink: 0;
    opacity: 0.7;
}

.announce-highlight {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: #fef08a;
    color: #1e1b4b;
    font-weight: 700;
    font-size: 0.78rem;
    padding: 0.18em 0.65em;
    border-radius: 4px;
    letter-spacing: 0.01em;
    box-shadow: 0 0 12px rgba(254,240,138,0.45);
    animation: highlight-pulse 2.5s ease-in-out infinite;
}

@keyframes highlight-pulse {
    0%, 100% { box-shadow: 0 0 10px rgba(254,240,138,0.4); }
    50%       { box-shadow: 0 0 22px rgba(254,240,138,0.75); }
}


body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.fw-black {
    font-weight: 900 !important;
}

[data-bs-theme="dark"] body {
    background: #0b0f19;
}

.main-nav {
    background: rgba(255, 255, 255, 0.97) !important;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 2px solid rgba(99, 102, 241, 0.12) !important;
    min-height: 68px;
    padding-top: 0.6rem !important;
    padding-bottom: 0.6rem !important;
}

.brand-name-wrap {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.brand-name {
    font-size: 1.35rem;
    font-weight: 900;
    color: #0f172a;
    line-height: 1.15;
    letter-spacing: -0.03em;
    white-space: nowrap;
}

.brand-accent {
    background: linear-gradient(90deg, #6366f1 0%, #8b5cf6 55%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-sub {
    font-size: 0.65rem;
    color: #94a3b8;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.nav-vdivider {
    width: 1px;
    height: 24px;
    background: #e2e8f0;
    border-radius: 1px;
    flex-shrink: 0;
}

.hero-section {
    position: relative;
    overflow: hidden;
    padding: 40px 24px 28px;
    background: linear-gradient(180deg, #e8edff 0%, #f3f0ff 40%, #f8fafc 100%);
}

.hero-glow {
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(60px);
    z-index: 0;
    animation: pulse-glow 5s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        opacity: 0.8;
        transform: translateX(-50%) scale(1);
    }
    50% {
        opacity: 1;
        transform: translateX(-50%) scale(1.05);
    }
}

.hero-gradient-text {
    background: linear-gradient(135deg, #6366f1, #a855f7, #ec4899);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 6s ease infinite;
}

.hero-trust-highlight {
    display: inline;
    font-size: clamp(1.5rem, 3.8vw, 2.4rem);
    font-weight: 900;
    color: #1a1a2e;
    background: linear-gradient(
        104deg,
        transparent 0.4em,
        #fef08a 0.4em,
        #fef08a calc(100% - 0.4em),
        transparent calc(100% - 0.4em)
    );
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
    padding: 0.08em 0.35em;
    border-radius: 4px;
    position: relative;
    /* subtle shimmer */
    animation: trust-highlight-glow 3s ease-in-out infinite;
}

@keyframes trust-highlight-glow {
    0%, 100% { background-color: transparent; }
}

/* dark-mode: keep readable on dark backgrounds */
[data-theme="dark"] .hero-trust-highlight,
[data-theme="midnight"] .hero-trust-highlight,
[data-theme="ocean"] .hero-trust-highlight,
[data-theme="forest"] .hero-trust-highlight {
    background: linear-gradient(
        104deg,
        transparent 0.4em,
        rgba(254,240,138,0.22) 0.4em,
        rgba(254,240,138,0.22) calc(100% - 0.4em),
        transparent calc(100% - 0.4em)
    );
    color: #fef08a;
}

@keyframes gradient-shift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 18px;
    background: #fff;
    border: 1px solid #e0e7ff;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #6366f1;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.08);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: #6366f1;
    border-radius: 50%;
    display: inline-block;
    animation: pulse-dot-anim 2s ease-in-out infinite;
    box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.5);
}

@keyframes pulse-dot-anim {
    0% {
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.5);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(99, 102, 241, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0);
    }
}

.badge-trust {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    background: #fff;
    border: 1px solid #f0f0f5;
    border-radius: 8px;
    font-size: 0.78rem;
    color: #64748b;
    font-weight: 500;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.badge-trust i {
    color: #6366f1;
}

.cat-bar {
    width: 4px;
    height: 22px;
    background: linear-gradient(180deg, #6366f1, #a855f7);
    border-radius: 3px;
}

.cat-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #334155;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.tool-card {
    color: inherit;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.tool-card:hover {
    background: #fff;
    border-color: #e5e7eb;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.08);
    transform: translateY(-2px);
}

.tool-icon-box {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    background: #eef2ff;
    color: #6366f1;
    transition: all 0.25s;
}

.tool-card:hover .tool-icon-box {
    background: #6366f1;
    color: #fff;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
    transform: scale(1.05);
}

.tool-title {
    font-size: 0.88rem;
    color: #1e293b;
    transition: color 0.2s;
}

.tool-card:hover .tool-title {
    color: #6366f1;
}

.tool-arrow {
    opacity: 0;
    transition: all 0.2s;
}

.tool-card:hover .tool-arrow {
    opacity: 1;
    transform: translateX(2px);
}

/*  Upload Zone  */
.upload-zone {
    border: 2px dashed #d1d5db;
    background: #f8fafc;
    cursor: pointer;
    transition: all 0.25s;
}

.upload-zone:hover,
.upload-zone.drag-active {
    border-color: #6366f1;
    background: #eef2ff;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.08);
}

/*  Tool Page Icon  */
.tool-page-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #6366f1, #4338ca);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.25);
}

/*  Feature Cards  */
.feature-box {
    border: 1px solid #f1f5f9;
    transition: all 0.3s;
}

.feature-box:hover {
    border-color: #e0e7ff;
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.08);
    transform: translateY(-4px);
}

.feature-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
    transition: transform 0.3s;
}

.feature-box:hover .feature-icon-box {
    transform: scale(1.1);
}

/*  File Items  */
.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 6px;
    font-size: 0.82rem;
    animation: fadeIn 0.3s ease;
}

.file-item.invalid {
    background: #fef2f2;
    border-color: #fecaca;
}

/*  Search box  */
.tool-search-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.tool-search-icon {
    position: absolute;
    left: 1.1rem;
    color: #6366f1;
    font-size: 1rem;
    pointer-events: none;
    z-index: 1;
}
.tool-search-input {
    width: 100%;
    padding: 0.8rem 1.5rem 0.8rem 2.9rem;
    border: 2px solid #ddd6fe;
    border-radius: 50px;
    background: #fff;
    font-size: 0.9rem;
    color: #0f172a;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 16px rgba(99,102,241,0.09);
}
.tool-search-input:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 4px rgba(99,102,241,0.13);
    background: #fff;
}
.tool-search-input::placeholder { color: #a5b4fc; }

/*  How It Works section  */
.how-section {
    background: linear-gradient(180deg, #f8fafc 0%, #f0f4ff 100%);
    border-top: 1px solid #e8edff;
    border-bottom: 1px solid #e8edff;
}

/* Section heading with gradient underline */
.section-heading-wrap { margin-bottom: 0; }
.section-heading {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
    display: inline-block;
    position: relative;
    padding-bottom: 0.55rem;
    margin-bottom: 0;
}
.section-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 44px;
    height: 4px;
    border-radius: 99px;
    background: linear-gradient(90deg, #6366f1, #a855f7);
}

/* Step circles — per-step gradient colours */
.step-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #fff;
    transition: transform 0.3s, box-shadow 0.3s;
}
.step-upload {
    background: linear-gradient(135deg, #60a5fa, #2563eb);
    box-shadow: 0 6px 22px rgba(59,130,246,0.38);
}
.step-process {
    background: linear-gradient(135deg, #818cf8, #4338ca);
    box-shadow: 0 6px 22px rgba(99,102,241,0.38);
}
.step-download {
    background: linear-gradient(135deg, #34d399, #059669);
    box-shadow: 0 6px 22px rgba(16,185,129,0.38);
}
.step-circle:hover {
    transform: scale(1.1) translateY(-3px);
    filter: brightness(1.08);
}

/* Stats section */
.stats-section {
    background: linear-gradient(135deg, #eef2ff 0%, #faf5ff 100%);
    border-top: 1px solid #e0e7ff;
    border-bottom: 1px solid #e0e7ff;
}
.stat-item {
    background: #fff;
    border: 1.5px solid #e0e7ff;
    border-radius: 18px;
    padding: 1.4rem 1rem 1.2rem;
    box-shadow: 0 3px 14px rgba(99,102,241,0.08);
    transition: transform 0.22s, box-shadow 0.22s;
}
.stat-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(99,102,241,0.14);
}
.stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #fff;
    margin: 0 auto 0.65rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.stat-number {
    font-size: 1.9rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 0.2rem;
}
.stat-label {
    font-size: 0.76rem;
    font-weight: 600;
    color: #64748b;
    letter-spacing: 0.02em;
}

/*  Features section  */
.features-section {
    background: linear-gradient(135deg, #f8faff 0%, #fdf4ff 100%);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}
.feat-eyebrow {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    background: var(--accent-light);
    border-radius: 50px;
    padding: 0.25rem 0.85rem;
    margin-bottom: 0.75rem;
}
.feat-sub {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
}
.feat-card {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
    padding: 1.5rem 1.6rem;
    border-radius: 16px;
    border: 1.5px solid #e4e8f2;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,0.055);
    transition: box-shadow 0.22s, transform 0.22s, border-color 0.22s;
}
.feat-card:hover {
    box-shadow: 0 10px 32px rgba(99,102,241,0.13);
    transform: translateY(-4px);
}

/* Per-card colour variants */
.feat-card--indigo { background: #eef2ff; border-color: #c7d2fe; }
.feat-card--indigo:hover { border-color: #a5b4fc; box-shadow: 0 10px 32px rgba(99,102,241,0.16); }
.feat-card--green  { background: #f0fdf4; border-color: #bbf7d0; }
.feat-card--green:hover  { border-color: #86efac; box-shadow: 0 10px 32px rgba(16,185,129,0.14); }
.feat-card--amber  { background: #fffbeb; border-color: #fde68a; }
.feat-card--amber:hover  { border-color: #fcd34d; box-shadow: 0 10px 32px rgba(245,158,11,0.14); }
.feat-card--pink   { background: #fdf4ff; border-color: #f5d0fe; }
.feat-card--pink:hover   { border-color: #e879f9; box-shadow: 0 10px 32px rgba(236,72,153,0.14); }

.feat-card-icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
    color: #fff;
}
/* Gradient icon backgrounds */
.feat-icon--indigo { background: linear-gradient(135deg, #818cf8, #4338ca); box-shadow: 0 4px 14px rgba(99,102,241,0.35); }
.feat-icon--green  { background: linear-gradient(135deg, #34d399, #059669); box-shadow: 0 4px 14px rgba(16,185,129,0.35); }
.feat-icon--amber  { background: linear-gradient(135deg, #fbbf24, #d97706); box-shadow: 0 4px 14px rgba(245,158,11,0.35); }
.feat-icon--pink   { background: linear-gradient(135deg, #f472b6, #db2777); box-shadow: 0 4px 14px rgba(236,72,153,0.35); }

.feat-card-title {
    font-size: 0.98rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.35rem;
    line-height: 1.3;
}
.feat-card-desc {
    font-size: 0.83rem;
    color: #475569;
    line-height: 1.7;
    margin: 0;
}

/* SEO "How this tool works" section */
.seo-section {
    background: linear-gradient(135deg, #f0f4ff 0%, #faf5ff 100%);
    border-top: 1.5px solid #e0e7ff;
    border-bottom: 1.5px solid #e0e7ff;
}

.seo-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6366f1;
    background: #eef2ff;
    border: 1px solid #c7d2fe;
    border-radius: 999px;
    padding: 0.3rem 1rem;
    margin-bottom: 0.75rem;
}

.seo-main-title {
    font-size: 1.45rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
    margin-bottom: 0;
}

/* Two-column grid */
.seo-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2.5rem;
    align-items: start;
    background: #fff;
    border: 1.5px solid #e0e7ff;
    border-radius: 20px;
    padding: 2rem 2.2rem;
    box-shadow: 0 4px 24px rgba(99,102,241,0.08);
    margin-bottom: 1.5rem;
}
@media (max-width: 640px) {
    .seo-grid { grid-template-columns: 1fr; }
    .seo-steps { flex-direction: row; flex-wrap: wrap; }
}

.seo-left {}

.seo-desc {
    font-size: 0.9rem;
    line-height: 1.8;
    color: #475569;
    margin-bottom: 1.2rem;
}

.seo-bullets {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}
.seo-bullets li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #1e293b;
}
.seo-bullet-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, #818cf8, #4338ca);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(99,102,241,0.3);
}

/* Steps column */
.seo-steps {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    min-width: 180px;
}
.seo-step {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    background: #f5f7ff;
    border: 1.5px solid #e0e7ff;
    border-radius: 14px;
    padding: 0.75rem 1.1rem;
    width: 100%;
}
.seo-step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #818cf8, #4338ca);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 3px 10px rgba(99,102,241,0.35);
}
.seo-step-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
}
.seo-step-desc {
    font-size: 0.75rem;
    color: #64748b;
    line-height: 1.3;
    margin-top: 0.1rem;
}
.seo-step-arrow {
    color: #a5b4fc;
    font-size: 1rem;
    padding: 0.25rem 0;
    text-align: center;
}

/* Related tools row */
.seo-related-wrap {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.seo-related-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: #64748b;
    white-space: nowrap;
    letter-spacing: 0.01em;
}
.seo-related-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}
.seo-related-link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: #4f46e5;
    text-decoration: none;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    background: #fff;
    border: 1.5px solid #c7d2fe;
    box-shadow: 0 2px 8px rgba(99,102,241,0.1);
    transition: background 0.18s, color 0.18s, border-color 0.18s, box-shadow 0.18s, transform 0.18s;
}
.seo-related-link:hover {
    background: linear-gradient(135deg, #6366f1, #4338ca);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 16px rgba(99,102,241,0.35);
    transform: translateY(-2px);
    text-decoration: none;
}
.seo-link-icon {
    font-size: 0.9rem;
    opacity: 0.85;
}

.brand-icon {
    background: linear-gradient(135deg, #6366f1, #4338ca);
    border-radius: 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
}


.site-footer {
    background: var(--bg-footer);
    position: relative;
    overflow: hidden;
}
/* Rainbow gradient accent bar */
.site-footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #6366f1 0%, #a855f7 35%, #ec4899 65%, #f59e0b 100%);
    z-index: 2;
}
.site-footer::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle, var(--footer-dot, rgba(0,0,0,0.06)) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
    z-index: 0;
}

.footer-stats-band {
    position: relative;
    z-index: 1;
    border-top: 3px solid transparent; /* spacing below accent bar */
    border-bottom: 1px solid var(--border-color);
    padding: 1.4rem 1rem;
}
.footer-stats-row {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem 0;
}
.footer-stat {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0 2rem;
}
.footer-stat-sep {
    width: 1px;
    height: 32px;
    background: var(--border-color);
    flex-shrink: 0;
}
.footer-stat-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: var(--accent-light);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.footer-stat-text { display: flex; flex-direction: column; gap: 0.1rem; }
.footer-stat-num {
    font-size: 1.1rem;
    font-weight: 900;
    color: var(--text-heading);
    letter-spacing: -0.02em;
    line-height: 1;
}
.footer-stat-lbl {
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.01em;
    line-height: 1.2;
}
@media (max-width: 640px) {
    .footer-stat { padding: 0.45rem 0.9rem; }
    .footer-stat-sep { display: none; }
    .footer-stats-row { justify-content: flex-start; gap: 0; }
}

.footer-main {
    position: relative;
    z-index: 1;
    padding: 2.6rem 1rem 2rem;
    border-bottom: 1px solid var(--border-color);
}

/* Brand column */
.footer-brand-icon {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    background: linear-gradient(135deg, #6366f1, #4338ca);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.15rem;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(99,102,241,0.35);
}
.footer-brand-name {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text-heading);
    letter-spacing: -0.01em;
    line-height: 1.2;
}
.footer-brand-sub {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 500;
    line-height: 1;
}
.footer-brand-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.75;
    margin: 0;
    max-width: 280px;
}
.footer-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}
.footer-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.67rem;
    font-weight: 700;
    border-radius: 50px;
    padding: 0.3rem 0.75rem;
}
.footer-badge--ssl {
    color: #15803d;
    background: #dcfce7;
    border: 1px solid #bbf7d0;
}
.footer-badge--free {
    color: #92400e;
    background: #fef3c7;
    border: 1px solid #fde68a;
}
.footer-badge--private {
    color: #5b21b6;
    background: #ede9fe;
    border: 1px solid #ddd6fe;
}

/* Column labels */
.footer-col-label {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    padding-left: 0.75rem;
    position: relative;
}
.footer-col-label::before {
    content: '';
    position: absolute;
    left: 0; top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 14px;
    border-radius: 2px;
}
.footer-col-label--indigo { color: var(--accent); }
.footer-col-label--indigo::before { background: linear-gradient(180deg, #818cf8, #4338ca); }
.footer-col-label--teal   { color: #059669; }
.footer-col-label--teal::before   { background: linear-gradient(180deg, #34d399, #059669); }
.footer-col-label--amber  { color: #d97706; }
.footer-col-label--amber::before  { background: linear-gradient(180deg, #fbbf24, #d97706); }
.footer-col-label--rose   { color: #db2777; }
.footer-col-label--rose::before   { background: linear-gradient(180deg, #f472b6, #db2777); }

.footer-trust-note {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.footer-trust-line {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.74rem;
    color: var(--text-muted);
    font-weight: 500;
}
.footer-trust-line i {
    color: var(--accent);
    font-size: 0.78rem;
    flex-shrink: 0;
}

/* Footer links */
.footer-links li { margin-bottom: 0.48rem; }
.footer-links a {
    font-size: 0.82rem;
    color: var(--text-secondary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: color 0.15s, padding-left 0.18s;
}
.footer-links a::before {
    content: '';
    width: 0;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--accent), #a855f7);
    transition: width 0.2s, margin-right 0.2s;
    display: inline-block;
    flex-shrink: 0;
    margin-right: 0;
}
.footer-links a:hover {
    color: var(--accent);
}
.footer-links a:hover::before {
    width: 8px;
    margin-right: 0.4rem;
}

.footer-bottom {
    position: relative;
    z-index: 1;
    padding: 0.9rem 1rem;
    background: var(--bg-input);
    border-top: 1px solid var(--border-color);
}
.footer-copy {
    font-size: 0.72rem;
    color: var(--text-muted);
}
.footer-bottom-link {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.15s;
}
.footer-bottom-link:hover {
    color: var(--accent);
    text-decoration: none;
}
.footer-bottom-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--border-color);
    flex-shrink: 0;
}

html[data-theme="dark"]     .footer-badge--ssl,
html[data-theme="midnight"] .footer-badge--ssl,
html[data-theme="charcoal"] .footer-badge--ssl,
html[data-theme="ocean"]    .footer-badge--ssl,
html[data-theme="forest"]   .footer-badge--ssl,
html[data-theme="sunset"]   .footer-badge--ssl,
html[data-theme="rose"]     .footer-badge--ssl,
html[data-theme="lavender"] .footer-badge--ssl,
html[data-theme="emerald"]  .footer-badge--ssl {
    color: #86efac; background: rgba(34,197,94,0.12); border-color: rgba(34,197,94,0.25);
}
html[data-theme="dark"]     .footer-badge--free,
html[data-theme="midnight"] .footer-badge--free,
html[data-theme="charcoal"] .footer-badge--free,
html[data-theme="ocean"]    .footer-badge--free,
html[data-theme="forest"]   .footer-badge--free,
html[data-theme="sunset"]   .footer-badge--free,
html[data-theme="rose"]     .footer-badge--free,
html[data-theme="lavender"] .footer-badge--free,
html[data-theme="emerald"]  .footer-badge--free {
    color: #fde68a; background: rgba(245,158,11,0.12); border-color: rgba(245,158,11,0.22);
}
html[data-theme="dark"]     .footer-badge--private,
html[data-theme="midnight"] .footer-badge--private,
html[data-theme="charcoal"] .footer-badge--private,
html[data-theme="ocean"]    .footer-badge--private,
html[data-theme="forest"]   .footer-badge--private,
html[data-theme="sunset"]   .footer-badge--private,
html[data-theme="rose"]     .footer-badge--private,
html[data-theme="lavender"] .footer-badge--private,
html[data-theme="emerald"]  .footer-badge--private {
    color: #c4b5fd; background: rgba(139,92,246,0.12); border-color: rgba(139,92,246,0.22);
}
html[data-theme="dark"]     .footer-col-label--teal,
html[data-theme="midnight"] .footer-col-label--teal,
html[data-theme="charcoal"] .footer-col-label--teal,
html[data-theme="ocean"]    .footer-col-label--teal,
html[data-theme="forest"]   .footer-col-label--teal,
html[data-theme="sunset"]   .footer-col-label--teal,
html[data-theme="rose"]     .footer-col-label--teal,
html[data-theme="lavender"] .footer-col-label--teal,
html[data-theme="emerald"]  .footer-col-label--teal { color: #6ee7b7; }

html[data-theme="dark"]     .footer-col-label--amber,
html[data-theme="midnight"] .footer-col-label--amber,
html[data-theme="charcoal"] .footer-col-label--amber,
html[data-theme="ocean"]    .footer-col-label--amber,
html[data-theme="forest"]   .footer-col-label--amber,
html[data-theme="sunset"]   .footer-col-label--amber,
html[data-theme="rose"]     .footer-col-label--amber,
html[data-theme="lavender"] .footer-col-label--amber,
html[data-theme="emerald"]  .footer-col-label--amber { color: #fde68a; }

html[data-theme="dark"]     .footer-col-label--rose,
html[data-theme="midnight"] .footer-col-label--rose,
html[data-theme="charcoal"] .footer-col-label--rose,
html[data-theme="ocean"]    .footer-col-label--rose,
html[data-theme="forest"]   .footer-col-label--rose,
html[data-theme="sunset"]   .footer-col-label--rose,
html[data-theme="rose"]     .footer-col-label--rose,
html[data-theme="lavender"] .footer-col-label--rose,
html[data-theme="emerald"]  .footer-col-label--rose { color: #f9a8d4; }
/* Dot pattern on dark backgrounds */
html[data-theme="dark"]     .site-footer::after,
html[data-theme="midnight"] .site-footer::after,
html[data-theme="charcoal"] .site-footer::after,
html[data-theme="ocean"]    .site-footer::after,
html[data-theme="forest"]   .site-footer::after,
html[data-theme="sunset"]   .site-footer::after,
html[data-theme="rose"]     .site-footer::after,
html[data-theme="lavender"] .site-footer::after,
html[data-theme="emerald"]  .site-footer::after {
    background-image: radial-gradient(circle, rgba(255,255,255,0.05) 1px, transparent 1px);
}

/*  Toast  */
.toast-container {
    position: fixed;
    top: 70px;
    right: 16px;
    z-index: 9999;
}

/*  Animations  */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/*  Responsive  */
@media (max-width: 768px) {
    .hero-section {
        padding: 24px 16px 16px;
    }

    .display-4 {
        font-size: 2rem !important;
    }

    .badge-trust {
        font-size: 0.72rem;
        padding: 5px 10px;
    }
}

/*  Focus  */
*:focus-visible {
    outline: 2px solid #6366f1;
    outline-offset: 2px;
}

/*  Print  */
@media print {
    nav, footer, .upload-zone, button {
        display: none !important;
    }
}



/*  Filter Tabs  */
.filter-tab {
    padding: 8px 18px;
    border: 1.5px solid #d1d5db;
    border-radius: 999px;
    background: #fff;
    color: #374151;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.filter-tab:hover {
    border-color: #c7d2fe;
    color: #6366f1;
    background: #f5f3ff;
}

.filter-tab.active {
    background: #6366f1;
    color: #fff;
    border-color: #6366f1;
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
}

.tool-box {
    background: #fff;
    border: 1.5px solid #e4e8f2;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.tool-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
    border-color: transparent;
}

.tool-box-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.65rem;
    transition: transform 0.28s, box-shadow 0.28s;
}

.tool-box:hover .tool-box-icon {
    transform: scale(1.1) rotate(-3deg);
}

.tool-box-title {
    font-size: 0.94rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 6px;
}

.tool-box-desc {
    font-size: 0.75rem;
    color: #475569;
    line-height: 1.5;
    margin-bottom: 0;
}

.tool-coming-soon {
    cursor: not-allowed !important;
    opacity: 0.52;
    filter: grayscale(55%);
    user-select: none;
    transform: none !important;
    box-shadow: none !important;
}
.tool-coming-soon:hover {
    transform: none !important;
    box-shadow: none !important;
    border-color: #f0f0f5 !important;
    background: inherit !important;
}
.tool-coming-soon:hover .tool-box-icon {
    transform: none !important;
}
.tool-coming-soon:hover .tool-box-title {
    color: #1e293b !important;
}
.tool-coming-soon-badge {
    background: #64748b !important;
    color: #fff !important;
    font-size: 0.58rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}




.tool-color-1 { background: #fef2f2; border-color: #fecaca; }
.tool-color-1 .tool-box-icon {
    background: linear-gradient(135deg, #f87171, #dc2626);
    color: #fff;
    box-shadow: 0 4px 14px rgba(239,68,68,0.35);
}
.tool-color-1:hover { background: #fee2e2; border-color: #fca5a5; box-shadow: 0 14px 40px rgba(239,68,68,0.15); }
.tool-color-1:hover .tool-box-title { color: #b91c1c; }


.tool-color-2 { background: #eff6ff; border-color: #bfdbfe; }
.tool-color-2 .tool-box-icon {
    background: linear-gradient(135deg, #60a5fa, #2563eb);
    color: #fff;
    box-shadow: 0 4px 14px rgba(59,130,246,0.35);
}
.tool-color-2:hover { background: #dbeafe; border-color: #93c5fd; box-shadow: 0 14px 40px rgba(59,130,246,0.15); }
.tool-color-2:hover .tool-box-title { color: #1d4ed8; }


.tool-color-3 { background: #f0fdf4; border-color: #bbf7d0; }
.tool-color-3 .tool-box-icon {
    background: linear-gradient(135deg, #34d399, #059669);
    color: #fff;
    box-shadow: 0 4px 14px rgba(16,185,129,0.35);
}
.tool-color-3:hover { background: #dcfce7; border-color: #86efac; box-shadow: 0 14px 40px rgba(16,185,129,0.15); }
.tool-color-3:hover .tool-box-title { color: #047857; }


.tool-color-4 { background: #fffbeb; border-color: #fde68a; }
.tool-color-4 .tool-box-icon {
    background: linear-gradient(135deg, #fbbf24, #d97706);
    color: #fff;
    box-shadow: 0 4px 14px rgba(245,158,11,0.35);
}
.tool-color-4:hover { background: #fef3c7; border-color: #fcd34d; box-shadow: 0 14px 40px rgba(245,158,11,0.15); }
.tool-color-4:hover .tool-box-title { color: #b45309; }


.tool-color-5 { background: #eef2ff; border-color: #c7d2fe; }
.tool-color-5 .tool-box-icon {
    background: linear-gradient(135deg, #818cf8, #4338ca);
    color: #fff;
    box-shadow: 0 4px 14px rgba(99,102,241,0.35);
}
.tool-color-5:hover { background: #e0e7ff; border-color: #a5b4fc; box-shadow: 0 14px 40px rgba(99,102,241,0.15); }
.tool-color-5:hover .tool-box-title { color: #3730a3; }


.tool-color-6 { background: #fdf4ff; border-color: #f5d0fe; }
.tool-color-6 .tool-box-icon {
    background: linear-gradient(135deg, #f472b6, #db2777);
    color: #fff;
    box-shadow: 0 4px 14px rgba(236,72,153,0.35);
}
.tool-color-6:hover { background: #fce7f3; border-color: #f9a8d4; box-shadow: 0 14px 40px rgba(236,72,153,0.15); }
.tool-color-6:hover .tool-box-title { color: #be185d; }


.tool-color-7 { background: #f0f9ff; border-color: #bae6fd; }
.tool-color-7 .tool-box-icon {
    background: linear-gradient(135deg, #38bdf8, #0284c7);
    color: #fff;
    box-shadow: 0 4px 14px rgba(14,165,233,0.35);
}
.tool-color-7:hover { background: #e0f2fe; border-color: #7dd3fc; box-shadow: 0 14px 40px rgba(14,165,233,0.15); }
.tool-color-7:hover .tool-box-title { color: #0369a1; }


.tool-color-8 { background: #faf5ff; border-color: #e9d5ff; }
.tool-color-8 .tool-box-icon {
    background: linear-gradient(135deg, #c084fc, #7e22ce);
    color: #fff;
    box-shadow: 0 4px 14px rgba(168,85,247,0.35);
}
.tool-color-8:hover { background: #f3e8ff; border-color: #d8b4fe; box-shadow: 0 14px 40px rgba(168,85,247,0.15); }
.tool-color-8:hover .tool-box-title { color: #6b21a8; }


.fw-black {
    font-weight: 900 !important;
}


.feature-item {
    border: 1px solid #f0f0f5;
    transition: all 0.3s;
}

.feature-item:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.feat-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

/*  Tool Page Icon  */
.tool-page-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #6366f1, #4338ca);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/*  Upload Zone  */
.upload-zone {
    border: 2px dashed #d1d5db;
    background: #fafbff;
    cursor: pointer;
    transition: all 0.25s;
}

.upload-zone:hover,
.upload-zone.drag-active {
    border-color: #6366f1;
    background: #eef2ff;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.06);
}

/*  File Items  */
.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    margin-bottom: 6px;
    font-size: 0.82rem;
    animation: fadeIn 0.3s ease;
}

.file-item.invalid {
    background: #fef2f2;
    border-color: #fecaca;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/*  Card radius  */
.rounded-4 {
    border-radius: 1rem !important;
}

/*  Font weight  */
.fw-black {
    font-weight: 900 !important;
}



:root, html[data-theme="light"] {
    --bg-body: #f8fafc;
    --bg-card: #ffffff;
    --bg-card-hover: #f8fafc;
    --bg-header: rgba(255, 255, 255, 0.88);
    --bg-footer: #ffffff;
    --bg-upload: #fafbff;
    --bg-upload-hover: #eef2ff;
    --bg-input: #ffffff;
    --bg-badge: #f1f5f9;
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --text-heading: #1e293b;
    --border-color: #e5e7eb;
    --border-light: #f1f5f9;
    --accent: #6366f1;
    --accent-hover: #4f46e5;
    --accent-light: #eef2ff;
    --accent-lighter: #f5f3ff;
    --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.08);
    --hero-bg: linear-gradient(180deg, #f5f0ff 0%, #fff 100%);
    --hero-glow: rgba(99, 102, 241, 0.12);
    --features-bg: #ffffff;
    --cta-bg: linear-gradient(135deg, #6366f1, #4338ca);
    --upload-border: #d1d5db;
    --upload-border-hover: #6366f1;
    --nav-link: #64748b;
    --nav-link-hover: #0f172a;
    --footer-link: #64748b;
    --footer-link-hover: #6366f1;
    --search-bg: #f0f4ff;
    --stats-bg: #fafbff;
}


html[data-theme="dark"] {
    --bg-body: #0b0f19;
    --bg-card: #141a2e;
    --bg-card-hover: #1c2440;
    --bg-header: rgba(11, 15, 25, 0.92);
    --bg-footer: #0e1225;
    --bg-upload: #141a2e;
    --bg-upload-hover: #1c2440;
    --bg-input: #1c2440;
    --bg-badge: #1c2440;
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-heading: #f1f5f9;
    --border-color: #1e293b;
    --border-light: #1e293b;
    --accent: #818cf8;
    --accent-hover: #6366f1;
    --accent-light: #1e1b4b;
    --accent-lighter: #1e1b4b;
    --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.4);
    --hero-bg: linear-gradient(180deg, #0e1225 0%, #0b0f19 100%);
    --hero-glow: rgba(129, 140, 248, 0.08);
    --features-bg: #0e1225;
    --cta-bg: linear-gradient(135deg, #4338ca, #312e81);
    --upload-border: #2d3748;
    --upload-border-hover: #818cf8;
    --nav-link: #94a3b8;
    --nav-link-hover: #e2e8f0;
    --footer-link: #94a3b8;
    --footer-link-hover: #818cf8;
    --search-bg: #141a2e;
    --stats-bg: #0e1225;
}

html[data-theme="ocean"] {
    --bg-body: #f0f7ff;
    --bg-card: #ffffff;
    --bg-card-hover: #f0f7ff;
    --bg-header: rgba(240, 247, 255, 0.92);
    --bg-footer: #ffffff;
    --bg-upload: #f0f7ff;
    --bg-upload-hover: #dbeafe;
    --bg-input: #ffffff;
    --bg-badge: #dbeafe;
    --text-primary: #0c2d57;
    --text-secondary: #3b6ea5;
    --text-muted: #7ba5cc;
    --text-heading: #0c2d57;
    --border-color: #bfdbfe;
    --border-light: #dbeafe;
    --accent: #2563eb;
    --accent-hover: #1d4ed8;
    --accent-light: #dbeafe;
    --accent-lighter: #eff6ff;
    --shadow-card: 0 1px 3px rgba(37, 99, 235, 0.06);
    --shadow-hover: 0 8px 30px rgba(37, 99, 235, 0.1);
    --hero-bg: linear-gradient(180deg, #dbeafe 0%, #f0f7ff 100%);
    --hero-glow: rgba(37, 99, 235, 0.1);
    --features-bg: #ffffff;
    --cta-bg: linear-gradient(135deg, #2563eb, #1e40af);
    --upload-border: #93c5fd;
    --upload-border-hover: #2563eb;
    --nav-link: #3b6ea5;
    --nav-link-hover: #0c2d57;
    --footer-link: #3b6ea5;
    --footer-link-hover: #2563eb;
    --search-bg: #dbeafe;
    --stats-bg: #eff6ff;
}

html[data-theme="forest"] {
    --bg-body: #f0fdf4;
    --bg-card: #ffffff;
    --bg-card-hover: #f0fdf4;
    --bg-header: rgba(240, 253, 244, 0.92);
    --bg-footer: #ffffff;
    --bg-upload: #f0fdf4;
    --bg-upload-hover: #dcfce7;
    --bg-input: #ffffff;
    --bg-badge: #dcfce7;
    --text-primary: #14532d;
    --text-secondary: #3f7a56;
    --text-muted: #6da882;
    --text-heading: #14532d;
    --border-color: #bbf7d0;
    --border-light: #dcfce7;
    --accent: #16a34a;
    --accent-hover: #15803d;
    --accent-light: #dcfce7;
    --accent-lighter: #f0fdf4;
    --shadow-card: 0 1px 3px rgba(22, 163, 74, 0.06);
    --shadow-hover: 0 8px 30px rgba(22, 163, 74, 0.1);
    --hero-bg: linear-gradient(180deg, #dcfce7 0%, #f0fdf4 100%);
    --hero-glow: rgba(22, 163, 74, 0.1);
    --features-bg: #ffffff;
    --cta-bg: linear-gradient(135deg, #16a34a, #15803d);
    --upload-border: #86efac;
    --upload-border-hover: #16a34a;
    --nav-link: #3f7a56;
    --nav-link-hover: #14532d;
    --footer-link: #3f7a56;
    --footer-link-hover: #16a34a;
    --search-bg: #dcfce7;
    --stats-bg: #f0fdf4;
}

html[data-theme="sunset"] {
    --bg-body: #fff7ed;
    --bg-card: #ffffff;
    --bg-card-hover: #fff7ed;
    --bg-header: rgba(255, 247, 237, 0.92);
    --bg-footer: #ffffff;
    --bg-upload: #fff7ed;
    --bg-upload-hover: #fed7aa;
    --bg-input: #ffffff;
    --bg-badge: #ffedd5;
    --text-primary: #431407;
    --text-secondary: #9a3412;
    --text-muted: #c2410c;
    --text-heading: #431407;
    --border-color: #fed7aa;
    --border-light: #ffedd5;
    --accent: #ea580c;
    --accent-hover: #c2410c;
    --accent-light: #ffedd5;
    --accent-lighter: #fff7ed;
    --shadow-card: 0 1px 3px rgba(234, 88, 12, 0.06);
    --shadow-hover: 0 8px 30px rgba(234, 88, 12, 0.1);
    --hero-bg: linear-gradient(180deg, #ffedd5 0%, #fff7ed 100%);
    --hero-glow: rgba(234, 88, 12, 0.1);
    --features-bg: #ffffff;
    --cta-bg: linear-gradient(135deg, #ea580c, #c2410c);
    --upload-border: #fdba74;
    --upload-border-hover: #ea580c;
    --nav-link: #9a3412;
    --nav-link-hover: #431407;
    --footer-link: #9a3412;
    --footer-link-hover: #ea580c;
    --search-bg: #ffedd5;
    --stats-bg: #fff7ed;
}

html[data-theme="rose"] {
    --bg-body: #fff1f2;
    --bg-card: #ffffff;
    --bg-card-hover: #fff1f2;
    --bg-header: rgba(255, 241, 242, 0.92);
    --bg-footer: #ffffff;
    --bg-upload: #fff1f2;
    --bg-upload-hover: #fecdd3;
    --bg-input: #ffffff;
    --bg-badge: #ffe4e6;
    --text-primary: #4c0519;
    --text-secondary: #9f1239;
    --text-muted: #e11d48;
    --text-heading: #4c0519;
    --border-color: #fecdd3;
    --border-light: #ffe4e6;
    --accent: #e11d48;
    --accent-hover: #be123c;
    --accent-light: #ffe4e6;
    --accent-lighter: #fff1f2;
    --shadow-card: 0 1px 3px rgba(225, 29, 72, 0.06);
    --shadow-hover: 0 8px 30px rgba(225, 29, 72, 0.1);
    --hero-bg: linear-gradient(180deg, #ffe4e6 0%, #fff1f2 100%);
    --hero-glow: rgba(225, 29, 72, 0.1);
    --features-bg: #ffffff;
    --cta-bg: linear-gradient(135deg, #e11d48, #be123c);
    --upload-border: #fda4af;
    --upload-border-hover: #e11d48;
    --nav-link: #9f1239;
    --nav-link-hover: #4c0519;
    --footer-link: #9f1239;
    --footer-link-hover: #e11d48;
    --search-bg: #ffe4e6;
    --stats-bg: #fff1f2;
}

html[data-theme="midnight"] {
    --bg-body: #0f172a;
    --bg-card: #1e293b;
    --bg-card-hover: #273548;
    --bg-header: rgba(15, 23, 42, 0.95);
    --bg-footer: #1e293b;
    --bg-upload: #1e293b;
    --bg-upload-hover: #273548;
    --bg-input: #273548;
    --bg-badge: #334155;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-heading: #f8fafc;
    --border-color: #334155;
    --border-light: #1e293b;
    --accent: #38bdf8;
    --accent-hover: #0ea5e9;
    --accent-light: #0c4a6e;
    --accent-lighter: #0c4a6e;
    --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.4);
    --shadow-hover: 0 8px 30px rgba(56, 189, 248, 0.1);
    --hero-bg: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    --hero-glow: rgba(56, 189, 248, 0.08);
    --features-bg: #1e293b;
    --cta-bg: linear-gradient(135deg, #0ea5e9, #0284c7);
    --upload-border: #475569;
    --upload-border-hover: #38bdf8;
    --nav-link: #94a3b8;
    --nav-link-hover: #f1f5f9;
    --footer-link: #94a3b8;
    --footer-link-hover: #38bdf8;
    --search-bg: #1e293b;
    --stats-bg: #1e293b;
}

html[data-theme="lavender"] {
    --bg-body: #faf5ff;
    --bg-card: #ffffff;
    --bg-card-hover: #faf5ff;
    --bg-header: rgba(250, 245, 255, 0.92);
    --bg-footer: #ffffff;
    --bg-upload: #faf5ff;
    --bg-upload-hover: #f3e8ff;
    --bg-input: #ffffff;
    --bg-badge: #f3e8ff;
    --text-primary: #3b0764;
    --text-secondary: #7e22ce;
    --text-muted: #a855f7;
    --text-heading: #3b0764;
    --border-color: #e9d5ff;
    --border-light: #f3e8ff;
    --accent: #9333ea;
    --accent-hover: #7e22ce;
    --accent-light: #f3e8ff;
    --accent-lighter: #faf5ff;
    --shadow-card: 0 1px 3px rgba(147, 51, 234, 0.06);
    --shadow-hover: 0 8px 30px rgba(147, 51, 234, 0.1);
    --hero-bg: linear-gradient(180deg, #f3e8ff 0%, #faf5ff 100%);
    --hero-glow: rgba(147, 51, 234, 0.1);
    --features-bg: #ffffff;
    --cta-bg: linear-gradient(135deg, #9333ea, #7e22ce);
    --upload-border: #d8b4fe;
    --upload-border-hover: #9333ea;
    --nav-link: #7e22ce;
    --nav-link-hover: #3b0764;
    --footer-link: #7e22ce;
    --footer-link-hover: #9333ea;
    --search-bg: #f3e8ff;
    --stats-bg: #faf5ff;
}

html[data-theme="charcoal"] {
    --bg-body: #18181b;
    --bg-card: #27272a;
    --bg-card-hover: #3f3f46;
    --bg-header: rgba(24, 24, 27, 0.95);
    --bg-footer: #27272a;
    --bg-upload: #27272a;
    --bg-upload-hover: #3f3f46;
    --bg-input: #3f3f46;
    --bg-badge: #3f3f46;
    --text-primary: #fafafa;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --text-heading: #fafafa;
    --border-color: #3f3f46;
    --border-light: #27272a;
    --accent: #a78bfa;
    --accent-hover: #8b5cf6;
    --accent-light: #2e1065;
    --accent-lighter: #2e1065;
    --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.5);
    --shadow-hover: 0 8px 30px rgba(167, 139, 250, 0.1);
    --hero-bg: linear-gradient(180deg, #27272a 0%, #18181b 100%);
    --hero-glow: rgba(167, 139, 250, 0.06);
    --features-bg: #27272a;
    --cta-bg: linear-gradient(135deg, #8b5cf6, #6d28d9);
    --upload-border: #52525b;
    --upload-border-hover: #a78bfa;
    --nav-link: #a1a1aa;
    --nav-link-hover: #fafafa;
    --footer-link: #a1a1aa;
    --footer-link-hover: #a78bfa;
    --search-bg: #27272a;
    --stats-bg: #27272a;
}

html[data-theme="emerald"] {
    --bg-body: #022c22;
    --bg-card: #064e3b;
    --bg-card-hover: #065f46;
    --bg-header: rgba(2, 44, 34, 0.95);
    --bg-footer: #064e3b;
    --bg-upload: #064e3b;
    --bg-upload-hover: #065f46;
    --bg-input: #065f46;
    --bg-badge: #065f46;
    --text-primary: #ecfdf5;
    --text-secondary: #6ee7b7;
    --text-muted: #34d399;
    --text-heading: #ecfdf5;
    --border-color: #065f46;
    --border-light: #064e3b;
    --accent: #10b981;
    --accent-hover: #059669;
    --accent-light: #064e3b;
    --accent-lighter: #022c22;
    --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.4);
    --shadow-hover: 0 8px 30px rgba(16, 185, 129, 0.15);
    --hero-bg: linear-gradient(180deg, #064e3b 0%, #022c22 100%);
    --hero-glow: rgba(16, 185, 129, 0.08);
    --features-bg: #064e3b;
    --cta-bg: linear-gradient(135deg, #10b981, #059669);
    --upload-border: #047857;
    --upload-border-hover: #10b981;
    --nav-link: #6ee7b7;
    --nav-link-hover: #ecfdf5;
    --footer-link: #6ee7b7;
    --footer-link-hover: #10b981;
    --search-bg: #064e3b;
    --stats-bg: #064e3b;
}



body {
    background: var(--bg-body) !important;
    color: var(--text-primary) !important;
    transition: background 0.3s, color 0.3s;
}

/* Navbar */
.main-nav {
    background: var(--bg-header) !important;
    border-bottom-color: var(--border-color) !important;
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
}

.main-nav .brand-name {
    color: var(--text-heading) !important;
}
.main-nav .brand-sub {
    color: var(--text-muted) !important;
}

.main-nav .nav-icon-btn {
    color: var(--text-muted) !important;
}

.main-nav .nav-icon-btn:hover {
    background: var(--accent-light) !important;
    color: var(--accent) !important;
}

.main-nav .nav-vdivider {
    background: var(--border-color);
}

.main-nav .btn-light {
    background: transparent !important;
    color: var(--nav-link) !important;
    border: none !important;
}

.main-nav .btn-light:hover {
    color: var(--nav-link-hover) !important;
    background: var(--bg-badge) !important;
}

.nav-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: #64748b;
    font-size: 0.88rem;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, transform 0.15s;
    text-decoration: none;
    padding: 0;
    flex-shrink: 0;
}
.nav-icon-btn:hover {
    background: #f1f5f9;
    color: #6366f1;
    transform: translateY(-1px);
    text-decoration: none;
}
.nav-free-badge {
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #fff;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 5px;
    padding: 2px 6px;
    box-shadow: 0 2px 6px rgba(16,185,129,0.3);
    text-transform: uppercase;
}

.mega-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.32rem 0.8rem 0.32rem 0.4rem;
    background: var(--accent-light);
    border: 1.5px solid transparent;
    border-radius: 9px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--accent);
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
    white-space: nowrap;
}
.mega-trigger:hover,
.mega-nav-item.mega-open .mega-trigger {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    box-shadow: 0 3px 12px rgba(99,102,241,0.3);
}
.mega-trigger-icon {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: var(--accent);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.68rem;
    flex-shrink: 0;
    transition: background 0.15s;
}
.mega-trigger:hover .mega-trigger-icon,
.mega-nav-item.mega-open .mega-trigger-icon {
    background: rgba(255,255,255,0.22);
}
.mega-trigger .mega-chevron {
    font-size: 0.6rem;
    transition: transform 0.2s;
    opacity: 0.75;
}
.mega-nav-item.mega-open .mega-chevron {
    transform: rotate(180deg);
    opacity: 1;
}

.mega-nav-item {
    position: static;
}
.mega-dropdown {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--bg-card);
    border-top: 3px solid var(--accent);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    z-index: 9990;
    padding: 1.5rem 2rem 2rem;
    /* Hidden state */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    pointer-events: none;
}
.mega-nav-item.mega-open .mega-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.mega-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0 1.25rem;
    max-width: 1300px;
    margin: 0 auto;
}

.mega-col-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 0.3rem 0.55rem;
    margin-bottom: 0.45rem;
    background: var(--accent-light);
    border-radius: 6px;
    white-space: nowrap;
}
.mega-col-label i {
    font-size: 0.78rem;
    flex-shrink: 0;
}

.mega-tool-link {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.42rem 0.5rem;
    border-radius: 0.5rem;
    font-size: 0.84rem;
    font-weight: 500;
    color: var(--text-primary);
    text-decoration: none;
    transition: background 0.12s, color 0.12s, transform 0.12s;
    white-space: normal;
    line-height: 1.3;
}
.mega-tool-link:hover {
    background: var(--accent-light);
    color: var(--accent);
    text-decoration: none;
    transform: translateX(2px);
}
.mega-tool-link .mega-icon {
    width: 26px;
    height: 26px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    flex-shrink: 0;
    background: var(--accent-light);
    color: var(--accent);
    transition: background 0.12s, color 0.12s;
}
.mega-tool-link:hover .mega-icon {
    background: var(--accent);
    color: #fff;
}

.mega-footer {
    max-width: 1160px;
    margin: 0.85rem auto 0;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: flex-end;
}
.mega-all-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    transition: opacity 0.15s;
}
.mega-all-link:hover {
    opacity: 0.75;
    text-decoration: none;
}

@media (max-width: 991px) {
    .mega-nav-item .mega-dropdown { display: none !important; }
}


.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 10500;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}
.mobile-menu-overlay.open {
    opacity: 1;
    visibility: visible;
}
.mobile-menu-drawer {
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: min(320px, 90vw);
    background: var(--bg-card);
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    box-shadow: 4px 0 32px rgba(0, 0, 0, 0.18);
}
.mobile-menu-overlay.open .mobile-menu-drawer {
    transform: translateX(0);
}
.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.1rem 0.85rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-header);
    flex-shrink: 0;
}
.mobile-menu-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.mobile-menu-close {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: none;
    background: var(--bg-input);
    color: var(--text-secondary);
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s;
}
.mobile-menu-close:hover {
    background: var(--accent-light);
    color: var(--accent);
}
.mobile-menu-body {
    overflow-y: auto;
    flex: 1;
    padding: 0.5rem 0;
    -webkit-overflow-scrolling: touch;
}
/* Category accordion */
.mobile-cat-trigger {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    width: 100%;
    padding: 0.7rem 1.1rem;
    border: none;
    background: none;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-muted);
    cursor: pointer;
    text-align: left;
    transition: background 0.14s, color 0.14s;
}
.mobile-cat-trigger i.mobile-chevron {
    margin-left: auto;
    font-size: 0.7rem;
    transition: transform 0.2s;
    opacity: 0.6;
}
.mobile-cat.open .mobile-cat-trigger {
    color: var(--accent);
    background: var(--accent-light);
}
.mobile-cat.open .mobile-chevron {
    transform: rotate(180deg);
    opacity: 1;
}
.mobile-cat-links {
    display: none;
    flex-direction: column;
    padding: 0.2rem 0.6rem 0.5rem 1rem;
    background: var(--bg-body);
}
.mobile-cat.open .mobile-cat-links {
    display: flex;
}
.mobile-tool-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.52rem 0.5rem;
    border-radius: 8px;
    font-size: 0.84rem;
    font-weight: 500;
    color: var(--text-primary);
    text-decoration: none;
    transition: background 0.12s, color 0.12s;
}
.mobile-tool-link:hover,
.mobile-tool-link:active {
    background: var(--accent-light);
    color: var(--accent);
    text-decoration: none;
}
.mobile-tool-icon {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    flex-shrink: 0;
    background: var(--accent-light);
    color: var(--accent);
}

/* Hide mobile drawer on desktop */
@media (min-width: 992px) {
    .mobile-menu-overlay { display: none !important; }
}

/* Hero */
.hero-section {
    background: var(--hero-bg) !important;
}

.hero-section .hero-glow {
    background: radial-gradient(circle, var(--hero-glow) 0%, transparent 70%) !important;
}

.hero-section h1 {
    color: var(--text-heading) !important;
}

.hero-section .lead, .hero-section .text-secondary {
    color: var(--text-secondary) !important;
}

.hero-section .text-dark, .hero-section strong {
    color: var(--text-heading) !important;
}

/* Trust stats row in hero */
.hero-trust-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1rem 0.45rem 0.5rem;
    background: #fff;
    border: 1.5px solid #ddd6fe;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #1e293b;
    box-shadow: 0 2px 10px rgba(99,102,241,0.09);
    transition: transform 0.2s, box-shadow 0.2s;
}
.hero-trust-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 18px rgba(99,102,241,0.16);
}
.hero-trust-item .trust-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    flex-shrink: 0;
    color: #fff;
}
.trust-icon--blue   { background: linear-gradient(135deg, #60a5fa, #2563eb); box-shadow: 0 3px 8px rgba(59,130,246,0.35); }
.trust-icon--green  { background: linear-gradient(135deg, #34d399, #059669); box-shadow: 0 3px 8px rgba(16,185,129,0.35); }
.trust-icon--indigo { background: linear-gradient(135deg, #818cf8, #4338ca); box-shadow: 0 3px 8px rgba(99,102,241,0.35); }
.trust-icon--amber  { background: linear-gradient(135deg, #fbbf24, #d97706); box-shadow: 0 3px 8px rgba(245,158,11,0.35); }

.hero-pill {
    background: var(--bg-card) !important;
    border-color: var(--border-color) !important;
    color: var(--accent) !important;
}

.badge-trust {
    background: var(--bg-card) !important;
    border-color: var(--border-light) !important;
    color: var(--text-secondary) !important;
}

.badge-trust i {
    color: var(--accent) !important;
}

/* Search */
.form-control-lg.rounded-pill {
    background: var(--search-bg) !important;
    color: var(--text-primary) !important;
    border-color: var(--border-color) !important;
}
.tool-search-input {
    background: var(--search-bg) !important;
    color: var(--text-primary) !important;
    border-color: var(--border-color) !important;
}
.tool-search-input:focus {
    background: var(--bg-card) !important;
    border-color: var(--accent) !important;
}
.tool-search-icon {
    color: var(--text-muted) !important;
}

.form-control-lg.rounded-pill::placeholder {
    color: var(--text-muted) !important;
}

.form-control-lg.rounded-pill:focus {
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15) !important;
}

/* Filter tabs */
.filter-tab {
    background: var(--bg-card) !important;
    color: var(--text-secondary) !important;
    border-color: var(--border-color) !important;
}

.filter-tab:hover {
    border-color: var(--accent) !important;
    color: var(--accent) !important;
    background: var(--accent-lighter) !important;
}

.filter-tab.active {
    background: var(--accent) !important;
    color: #fff !important;
    border-color: var(--accent) !important;
}

/* Category */
.cat-title {
    color: var(--text-muted) !important;
}

.badge.bg-light {
    background: var(--bg-badge) !important;
    color: var(--text-muted) !important;
}

/* Tool cards */
.tool-box {
    background: var(--bg-card) !important;
    border-color: var(--border-light) !important;
}

.tool-box:hover {
    background: var(--bg-card-hover) !important;
    border-color: transparent !important;
    box-shadow: var(--shadow-hover) !important;
}

.tool-box-title {
    color: var(--text-heading) !important;
}

.tool-box-desc {
    color: var(--text-secondary) !important;
}

/* Tool page cards */
.card {
    background: var(--bg-card) !important;
    border-color: var(--border-color) !important;
}

.card .card-header, .card .border-bottom {
    background: var(--bg-card) !important;
    border-color: var(--border-light) !important;
}

.card .card-body {
    background: var(--bg-card) !important;
}

.card h1, .card .fs-5 {
    color: var(--text-heading) !important;
}

.card .text-secondary {
    color: var(--text-secondary) !important;
}

.card .text-muted {
    color: var(--text-muted) !important;
}

/* Upload zone */
.upload-zone {
    background: var(--bg-upload) !important;
    border-color: var(--upload-border) !important;
}

.upload-zone:hover, .upload-zone.drag-active {
    background: var(--bg-upload-hover) !important;
    border-color: var(--upload-border-hover) !important;
}



.form-control, .form-select {
    background:   var(--bg-input) !important;
    color:        var(--text-primary) !important;
    border-color: var(--border-color) !important;
    border-radius: 0.5rem !important;
    font-size:    0.875rem !important;
    padding:      0.5rem 0.75rem !important;
    transition:   border-color 0.18s, box-shadow 0.18s;
}

.form-control:focus, .form-select:focus {
    border-color: var(--accent) !important;
    box-shadow:   0 0 0 3px color-mix(in srgb, var(--accent) 15%, transparent) !important;
    background:   var(--bg-input) !important;
}

.form-control::placeholder {
    color: var(--text-muted) !important;
}

.form-label {
    color:       var(--text-secondary) !important;
    font-size:   0.8rem !important;
    font-weight: 600 !important;
    margin-bottom: 0.35rem !important;
    letter-spacing: 0.01em;
}

.form-text {
    color: var(--text-muted) !important;
    font-size: 0.78rem !important;
}

.tool-select {
    appearance: none;
    -webkit-appearance: none;
    background-color:  var(--bg-input) !important;
    background-image:  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16'%3E%3Cpath fill='%236366f1' d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E") !important;
    background-repeat:   no-repeat !important;
    background-position: right 0.75rem center !important;
    background-size:     12px 12px !important;
    padding-right:       2.25rem !important;
    border:   1.5px solid var(--border-color) !important;
    border-radius: 0.6rem !important;
    font-size:  0.875rem !important;
    font-weight: 500;
    color:       var(--text-primary) !important;
    cursor:      pointer;
    transition:  border-color 0.18s, box-shadow 0.18s, background-color 0.18s;
    line-height: 1.5;
    padding-top:    0.55rem !important;
    padding-bottom: 0.55rem !important;
    padding-left:   0.85rem !important;
}

.tool-select:focus {
    border-color: var(--accent) !important;
    box-shadow:   0 0 0 3px color-mix(in srgb, var(--accent) 15%, transparent) !important;
    outline: none;
}

.tool-select:hover:not(:focus) {
    border-color: var(--accent) !important;
}


.cs-wrapper {
    position: relative;
}

.cs-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    background: var(--bg-input) !important;
    color: var(--text-primary) !important;
    border: 1.5px solid var(--border-color) !important;
    border-radius: 0.6rem;
    padding: 0.55rem 0.85rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
    transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
    line-height: 1.5;
}

.cs-trigger:focus,
.cs-trigger.cs-open {
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 15%, transparent) !important;
    outline: none;
}

.cs-trigger:hover:not(.cs-open) {
    border-color: var(--accent) !important;
}

.cs-arrow {
    color: var(--accent);
    font-size: 0.75rem;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.cs-trigger.cs-open .cs-arrow {
    transform: rotate(180deg);
}

/* Dropdown panel */
.cs-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    background: var(--bg-card) !important;
    border: 1.5px solid var(--border-color) !important;
    border-radius: 0.65rem;
    box-shadow: var(--shadow-hover);
    z-index: 1050;
    overflow: hidden;
}

.cs-dropdown.cs-open {
    display: block;
    animation: cs-reveal 0.14s ease;
}

@keyframes cs-reveal {
    from { opacity: 0; transform: translateY(-5px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Individual option rows */
.cs-option {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.65rem 0.9rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary) !important;
    cursor: pointer;
    transition: background 0.12s, color 0.12s;
}

.cs-option + .cs-option {
    border-top: 1px solid var(--border-color);
}

.cs-option:hover {
    background: var(--accent-light) !important;
    color: var(--accent) !important;
}

.cs-option:hover .cs-opt-icon {
    color: var(--accent);
}

/* Currently selected option */
.cs-option.cs-selected {
    background: var(--accent-light) !important;
    color: var(--accent) !important;
    font-weight: 600;
}

.cs-option.cs-selected .cs-opt-icon {
    color: var(--accent);
}

/* Option icon */
.cs-opt-icon {
    font-size: 0.9rem;
    color: var(--text-muted);
    flex-shrink: 0;
    transition: color 0.12s;
}

.pdf2img-dpi-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    padding: 0.55rem 0.5rem;
    border: 1.5px solid var(--border-color);
    border-radius: 10px;
    background: var(--bg-card);
    cursor: pointer;
    transition: border-color 0.18s, background 0.18s, box-shadow 0.18s;
}
.pdf2img-dpi-btn:hover {
    border-color: var(--accent);
    background: var(--accent-light);
}
.pdf2img-dpi-btn.active {
    border-color: var(--accent);
    background: var(--accent-light);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 15%, transparent);
}
.pdf2img-dpi-label {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}
.pdf2img-dpi-btn.active .pdf2img-dpi-label {
    color: var(--accent);
}
.pdf2img-dpi-sub {
    font-size: 0.7rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.cmp-level-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    padding: 0.65rem 0.5rem 0.55rem;
    border: 1.5px solid var(--border-color);
    border-radius: 10px;
    background: var(--bg-card);
    cursor: pointer;
    transition: border-color 0.18s, background 0.18s, box-shadow 0.18s;
    user-select: none;
    width: 100%;
    text-align: center;
}
.cmp-level-btn:hover {
    border-color: #10b981;
    background: #f0fdf4;
}
.cmp-level-btn.active {
    border-color: #10b981;
    background: #f0fdf4;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}
.cmp-level-icon {
    font-size: 1.3rem;
    color: var(--text-secondary);
    line-height: 1;
    transition: color 0.18s;
}
.cmp-level-btn.active .cmp-level-icon {
    color: #10b981;
}
.cmp-level-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}
.cmp-level-btn.active .cmp-level-label {
    color: #10b981;
}
.cmp-level-sub {
    font-size: 0.7rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.wm-color-swatch {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    border: 2px solid var(--border-color);
    cursor: pointer;
    flex-shrink: 0;
    transition: border-color 0.18s, box-shadow 0.18s;
    display: block;
}
.wm-color-swatch:hover {
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139,92,246,0.15);
}
.wm-preset-swatch {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    border: 2px solid transparent;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.wm-preset-swatch:hover {
    transform: scale(1.18);
    border-color: rgba(255,255,255,0.6);
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}
.cmp-range {
    -webkit-appearance: none;
    appearance: none;
    accent-color: #10b981;
    width: 100%;
    height: 1.25rem;
    background: transparent;
    outline: none;
    cursor: pointer;
    margin: 0;
    padding: 0;
}

.cmp-range::-webkit-slider-runnable-track {
    height: 6px;
    border-radius: 99px;
    background: linear-gradient(
        90deg,
        #10b981 calc(var(--val, 75) * 1%),
        #e2e8f0 calc(var(--val, 75) * 1%)
    );
    transition: background 0.15s;
}

.cmp-range::-moz-range-track {
    height: 6px;
    border-radius: 99px;
    background: #e2e8f0;
}
.cmp-range::-moz-range-progress {
    height: 6px;
    border-radius: 99px;
    background: #10b981;
}

.cmp-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #10b981;
    border: 3px solid #fff;
    box-shadow: 0 1px 6px rgba(16, 185, 129, 0.45);
    cursor: pointer;
    margin-top: -7px;               /* centre 20px thumb on 6px track */
    transition: box-shadow 0.18s, transform 0.18s;
}
.cmp-range::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.55);
}

.cmp-range::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #10b981;
    border: 3px solid #fff;
    box-shadow: 0 1px 6px rgba(16, 185, 129, 0.45);
    cursor: pointer;
    transition: box-shadow 0.18s, transform 0.18s;
}
.cmp-range::-moz-range-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.55);
}

.cmp-range:focus {
    outline: none;
}
.cmp-range:focus::-webkit-slider-thumb {
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.25);
}
.cmp-range:focus::-moz-range-thumb {
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.25);
}

.wm-range {
    -webkit-appearance: none;
    appearance: none;
    accent-color: #8b5cf6;
    width: 100%;
    height: 1.25rem;
    background: transparent;
    outline: none;
    cursor: pointer;
    margin: 0;
    padding: 0;
}
.wm-range::-webkit-slider-runnable-track {
    height: 6px;
    border-radius: 99px;
    background: linear-gradient(90deg, #8b5cf6 calc(var(--val, 30) * 1%), #e2e8f0 calc(var(--val, 30) * 1%));
    transition: background 0.15s;
}
.wm-range::-moz-range-track {
    height: 6px;
    border-radius: 99px;
    background: #e2e8f0;
}
.wm-range::-moz-range-progress {
    height: 6px;
    border-radius: 99px;
    background: #8b5cf6;
}
.wm-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #8b5cf6;
    border: 3px solid #fff;
    box-shadow: 0 1px 6px rgba(139,92,246,0.45);
    cursor: pointer;
    margin-top: -7px;
    transition: box-shadow 0.18s, transform 0.18s;
}
.wm-range::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 2px 10px rgba(139,92,246,0.55);
}
.wm-range::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #8b5cf6;
    border: 3px solid #fff;
    box-shadow: 0 1px 6px rgba(139,92,246,0.45);
    cursor: pointer;
    transition: box-shadow 0.18s, transform 0.18s;
}
.wm-range:focus { outline: none; }
.wm-range:focus::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgba(139,92,246,0.25); }
.wm-range:focus::-moz-range-thumb    { box-shadow: 0 0 0 4px rgba(139,92,246,0.25); }

.pn-color-swatch {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 2px solid var(--border-color);
    cursor: pointer;
    flex-shrink: 0;
    display: block;
    transition: border-color 0.18s, box-shadow 0.18s;
}
.pn-color-swatch:hover {
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14,165,233,0.15);
}

.pn-range {
    -webkit-appearance: none;
    appearance: none;
    accent-color: #0ea5e9;
    width: 100%;
    height: 1.25rem;
    background: transparent;
    outline: none;
    cursor: pointer;
    margin: 0;
    padding: 0;
}
.pn-range::-webkit-slider-runnable-track {
    height: 6px;
    border-radius: 99px;
    background: linear-gradient(90deg, #0ea5e9 calc(var(--val, 29) * 1%), #e2e8f0 calc(var(--val, 29) * 1%));
    transition: background 0.15s;
}
.pn-range::-moz-range-track {
    height: 6px;
    border-radius: 99px;
    background: #e2e8f0;
}
.pn-range::-moz-range-progress {
    height: 6px;
    border-radius: 99px;
    background: #0ea5e9;
}
.pn-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #0ea5e9;
    border: 3px solid #fff;
    box-shadow: 0 1px 6px rgba(14,165,233,0.45);
    cursor: pointer;
    margin-top: -7px;
    transition: box-shadow 0.18s, transform 0.18s;
}
.pn-range::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 2px 10px rgba(14,165,233,0.55);
}
.pn-range::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #0ea5e9;
    border: 3px solid #fff;
    box-shadow: 0 1px 6px rgba(14,165,233,0.45);
    cursor: pointer;
    transition: box-shadow 0.18s, transform 0.18s;
}
.pn-range:focus { outline: none; }
.pn-range:focus::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgba(14,165,233,0.25); }
.pn-range:focus::-moz-range-thumb    { box-shadow: 0 0 0 4px rgba(14,165,233,0.25); }

.wm-rot-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.18rem;
    padding: 0.5rem 0.35rem 0.45rem;
    border: 1.5px solid var(--border-color);
    border-radius: 10px;
    background: var(--bg-card);
    cursor: pointer;
    flex: 1;
    transition: border-color 0.18s, background 0.18s, box-shadow 0.18s;
    user-select: none;
    text-align: center;
}
.wm-rot-btn:hover {
    border-color: #8b5cf6;
    background: #f5f3ff;
}
.wm-rot-btn.active {
    border-color: #8b5cf6;
    background: #f5f3ff;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}
.wm-rot-icon {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1;
    transition: color 0.18s;
}
.wm-rot-btn.active .wm-rot-icon { color: #8b5cf6; }
.wm-rot-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.2;
    white-space: nowrap;
}
.wm-rot-btn.active .wm-rot-label { color: #8b5cf6; }

.pdf2img-pages-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.pdf2img-pages-icon {
    position: absolute;
    left: 0.85rem;
    color: #94a3b8;
    font-size: 0.95rem;
    pointer-events: none;
    z-index: 1;
}
.pdf2img-pages-input {
    width: 100%;
    padding: 0.6rem 1rem 0.6rem 2.3rem;
    border: 1.5px solid var(--border-color);
    border-radius: 10px;
    background: var(--bg-card);
    font-size: 0.85rem;
    color: var(--text-primary);
    outline: none;
    transition: border-color 0.18s, box-shadow 0.18s;
}
.pdf2img-pages-input::placeholder { color: #94a3b8; }
.pdf2img-pages-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 12%, transparent);
}

.mode-hint {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    background: var(--accent-light);
    border-left: 3px solid var(--accent);
    border-radius: 0 0.4rem 0.4rem 0;
    padding: 0.45rem 0.65rem;
    margin-top: 0.5rem;
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.45;
    transition: background 0.2s, border-color 0.2s;
}

.mode-hint i {
    color: var(--accent);
    flex-shrink: 0;
    margin-top: 0.1rem;
    font-size: 0.8rem;
}

/* File items */
.file-item {
    background: var(--bg-upload) !important;
    border-color: var(--border-color) !important;
    color: var(--text-primary) !important;
}

/* Stats bar */
[style*="background:#fafbff"] {
    background: var(--stats-bg) !important;
}

/* Features section */
.feature-box {
    background: var(--bg-card) !important;
    border-color: var(--border-light) !important;
}

.feature-box:hover {
    border-color: var(--accent) !important;
}

.feature-box h5 {
    color: var(--text-heading) !important;
}

.feature-box .text-secondary {
    color: var(--text-secondary) !important;
}

.feature-item {
    background: var(--bg-card) !important;
    border-color: var(--border-light) !important;
}

.feature-item h6 {
    color: var(--text-heading) !important;
}

.feature-item .text-secondary {
    color: var(--text-secondary) !important;
}

/* Step circles */
.step-circle {
    color: #fff !important;
}


/* Back link */
.text-decoration-none.text-secondary {
    color: var(--text-muted) !important;
}

.text-decoration-none.text-secondary:hover {
    color: var(--accent) !important;
}

/* Error page */
.display-1, .display-4 .fw-black {
    color: var(--accent) !important;
}

/* No results */
#noResults .text-secondary {
    color: var(--text-secondary) !important;
}

#noResults .text-muted {
    color: var(--text-muted) !important;
}

/* Bootstrap overrides */
.btn-primary {
    background-color: var(--accent) !important;
    border-color: var(--accent) !important;
}

.btn-primary:hover {
    background-color: var(--accent-hover) !important;
    border-color: var(--accent-hover) !important;
}

.btn-outline-primary {
    color: var(--accent) !important;
    border-color: var(--accent) !important;
}

.btn-outline-primary:hover {
    background-color: var(--accent) !important;
    color: #fff !important;
}

.progress-bar {
    background-color: var(--accent) !important;
}

.form-check-input:checked {
    background-color: var(--accent) !important;
    border-color: var(--accent) !important;
}

.text-primary {
    color: var(--accent) !important;
}

a.text-primary {
    color: var(--accent) !important;
}

/* Theme picker dropdown */
.theme-dropdown {
    position: absolute;
    top: 48px;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 8px;
    min-width: 200px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    z-index: 9999;
    display: none;
}

.theme-dropdown.show {
    display: block;
}

.theme-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    font-family: inherit;
    font-size: 0.85rem;
    color: var(--text-primary) !important;
    transition: background 0.15s;
}

.theme-option:hover {
    background: var(--bg-badge);
}

.theme-option.active {
    background: var(--accent-light);
    color: var(--accent) !important;
    font-weight: 600;
}

.theme-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    flex-shrink: 0;
}

.theme-option.active .theme-dot {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px var(--accent);
}

/*  Language Dropdown  */
.lang-dropdown {
    position: absolute;
    top: 44px;
    right: 0;
    background: var(--bg-card, #fff);
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    z-index: 9999;
    display: none;
    min-width: 180px;
    max-height: 400px;
    overflow: hidden;
}

.lang-dropdown.show {
    display: block;
}

.lang-dropdown-inner {
    max-height: 380px;
    overflow-y: auto;
    padding: 6px;
}

.lang-dropdown-inner::-webkit-scrollbar {
    width: 4px;
}

.lang-dropdown-inner::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 4px;
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.82rem;
    color: var(--text-primary, #1e293b);
    text-decoration: none;
    transition: background 0.15s;
    cursor: pointer;
}

.lang-option:hover {
    background: var(--bg-badge, #f1f5f9);
}

.lang-option.active {
    background: var(--accent-light, #eef2ff);
    color: var(--accent, #6366f1);
    font-weight: 600;
}

.lang-flag {
    font-size: 1.1rem;
    line-height: 1;
}


/* COMING SOON PAGE*/
.coming-soon-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--accent-lighter, #f5f3ff);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.coming-soon-icon::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px dashed var(--accent, #6366f1);
    opacity: 0.2;
    animation: spin-slow 12s linear infinite;
}

.coming-soon-icon i {
    font-size: 2rem;
    color: var(--accent, #6366f1);
    animation: float 3s ease-in-out infinite;
}

@keyframes spin-slow {
    to {
        transform: rotate(360deg);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-6px);
    }
}

.coming-soon-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    background: var(--bg-badge, #f1f5f9);
    border: 1px solid var(--border-light, #f1f5f9);
    border-radius: 99px;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-secondary, #64748b);
}

.coming-soon-chip i {
    color: #10b981;
    font-size: 0.7rem;
}



[dir="rtl"] {
    direction: rtl;
    font-family: 'Segoe UI', Tahoma, 'Noto Sans Arabic',
                 'Arabic Transparent', 'Simplified Arabic',
                 Arial, sans-serif;
}

[dir="rtl"] .theme-dropdown,
[dir="rtl"] .lang-dropdown {
    right: auto;
    left: 0;
}

[dir="rtl"] .input-group > .input-group-text {
    border-radius: 0 0.375rem 0.375rem 0;
    border-right: 1px solid #dee2e6;
    border-left: 0;
}
[dir="rtl"] .input-group > .form-control {
    border-radius: 0.375rem 0 0 0.375rem;
    border-left: 1px solid #dee2e6;
    border-right: 0;
    text-align: right;
    padding-right: 0.75rem;
    padding-left: 0;
}

[dir="rtl"] input,
[dir="rtl"] textarea,
[dir="rtl"] select {
    direction: rtl;
    text-align: right;
}

[dir="rtl"] ul:not(.list-unstyled):not(.navbar-nav),
[dir="rtl"] ol {
    padding-right: 1.5rem;
    padding-left: 0;
}

[dir="rtl"] .text-start { text-align: right !important; }
[dir="rtl"] .text-end   { text-align: left  !important; }

[dir="rtl"] .ms-auto { margin-left:  0      !important; margin-right: auto    !important; }
[dir="rtl"] .me-auto { margin-right: 0      !important; margin-left:  auto    !important; }
[dir="rtl"] .ms-1    { margin-left:  0      !important; margin-right: 0.25rem !important; }
[dir="rtl"] .me-1    { margin-right: 0      !important; margin-left:  0.25rem !important; }
[dir="rtl"] .ms-2    { margin-left:  0      !important; margin-right: 0.5rem  !important; }
[dir="rtl"] .me-2    { margin-right: 0      !important; margin-left:  0.5rem  !important; }
[dir="rtl"] .ms-3    { margin-left:  0      !important; margin-right: 1rem    !important; }
[dir="rtl"] .me-3    { margin-right: 0      !important; margin-left:  1rem    !important; }
[dir="rtl"] .ms-4    { margin-left:  0      !important; margin-right: 1.5rem  !important; }
[dir="rtl"] .me-4    { margin-right: 0      !important; margin-left:  1.5rem  !important; }
[dir="rtl"] .ms-5    { margin-left:  0      !important; margin-right: 3rem    !important; }
[dir="rtl"] .me-5    { margin-right: 0      !important; margin-left:  3rem    !important; }
[dir="rtl"] .ps-0    { padding-left: 0      !important; padding-right: 0      !important; }
[dir="rtl"] .ps-1    { padding-left: 0      !important; padding-right: 0.25rem !important; }
[dir="rtl"] .ps-2    { padding-left: 0      !important; padding-right: 0.5rem  !important; }
[dir="rtl"] .ps-3    { padding-left: 0      !important; padding-right: 1rem    !important; }
[dir="rtl"] .ps-4    { padding-left: 0      !important; padding-right: 1.5rem  !important; }
[dir="rtl"] .pe-0    { padding-right: 0     !important; padding-left:  0       !important; }
[dir="rtl"] .pe-1    { padding-right: 0     !important; padding-left:  0.25rem !important; }
[dir="rtl"] .pe-2    { padding-right: 0     !important; padding-left:  0.5rem  !important; }
[dir="rtl"] .pe-3    { padding-right: 0     !important; padding-left:  1rem    !important; }
[dir="rtl"] .pe-4    { padding-right: 0     !important; padding-left:  1.5rem  !important; }

[dir="rtl"] .border-start   { border-left:  0 !important; border-right: var(--bs-border-width) var(--bs-border-style) var(--bs-border-color) !important; }
[dir="rtl"] .border-end     { border-right: 0 !important; border-left:  var(--bs-border-width) var(--bs-border-style) var(--bs-border-color) !important; }
[dir="rtl"] .border-start-0 { border-right: 0 !important; border-left:  unset !important; }
[dir="rtl"] .border-end-0   { border-left:  0 !important; border-right: unset !important; }

[dir="rtl"] .rounded-start { border-radius: 0 var(--bs-border-radius) var(--bs-border-radius) 0 !important; }
[dir="rtl"] .rounded-end   { border-radius: var(--bs-border-radius) 0 0 var(--bs-border-radius) !important; }

[dir="rtl"] .end-0   { right: auto !important; left:  0 !important; }
[dir="rtl"] .start-0 { left:  auto !important; right: 0 !important; }

[dir="rtl"] .footer-links      { text-align: right; }
[dir="rtl"] .footer-links li   { text-align: right; }

[dir="rtl"] .theme-option,
[dir="rtl"] .lang-option { text-align: right; }

[dir="rtl"] #toast-container { right: auto; left: 0; }


/* Hero banner */
.policy-hero {
    background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 50%, #e0e7ff 100%);
    padding: 64px 24px 56px;
    text-align: center;
    border-bottom: 1px solid #e5e7eb;
}

html[data-theme="dark"]    .policy-hero,
html[data-theme="midnight"] .policy-hero,
html[data-theme="charcoal"] .policy-hero,
html[data-theme="emerald"]  .policy-hero {
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-upload) 100%);
    border-bottom-color: var(--border-color);
}

.policy-hero h1 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    color: var(--text-heading, #1a1a2e);
    letter-spacing: -0.02em;
}

.policy-hero-sub {
    font-size: 1.05rem;
    color: var(--text-secondary, #64748b);
    max-width: 480px;
    margin: 0 auto;
    line-height: 1.7;
}

.policy-hero-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, #6366f1, #4338ca);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #fff;
    box-shadow: 0 12px 32px rgba(99,102,241,0.28);
}

/* Pills row */
.policy-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 14px;
    border-radius: 99px;
    background: rgba(99,102,241,0.08);
    border: 1px solid rgba(99,102,241,0.18);
    font-size: 0.8rem;
    font-weight: 600;
    color: #4338ca;
}

html[data-theme="dark"]    .policy-pill,
html[data-theme="midnight"] .policy-pill,
html[data-theme="charcoal"] .policy-pill,
html[data-theme="emerald"]  .policy-pill {
    background: rgba(129,140,248,0.12);
    border-color: rgba(129,140,248,0.25);
    color: #a5b4fc;
}

/* Body wrapper */
.policy-body {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Each section */
.policy-section {
    padding: 36px 0;
    border-bottom: 1px solid var(--border-light, #f1f5f9);
}

.policy-section:last-of-type {
    border-bottom: none;
}

/* Section header row */
.policy-section-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.policy-section-header h2 {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-heading, #1e293b);
}

.policy-section-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #fff;
}

/* Body text */
.policy-section p {
    font-size: 0.92rem;
    line-height: 1.85;
    color: var(--text-secondary, #475569);
    margin-bottom: 12px;
}

.policy-section p strong {
    color: var(--text-primary, #1e293b);
}

/* Highlight callout box */
.policy-highlight {
    background: rgba(99,102,241,0.06);
    border-left: 3px solid #6366f1;
    border-radius: 0 8px 8px 0;
    padding: 12px 16px;
    font-size: 0.88rem;
    color: var(--text-secondary, #475569);
    margin-top: 8px;
}

html[data-theme="dark"]    .policy-highlight,
html[data-theme="midnight"] .policy-highlight,
html[data-theme="charcoal"] .policy-highlight,
html[data-theme="emerald"]  .policy-highlight {
    background: rgba(129,140,248,0.08);
    border-left-color: #818cf8;
}

[dir="rtl"] .policy-highlight {
    border-left: none;
    border-right: 3px solid #6366f1;
    border-radius: 8px 0 0 8px;
}

/* Checklist */
.policy-list {
    list-style: none;
    padding: 0;
    margin: 12px 0 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.policy-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-secondary, #475569);
    line-height: 1.6;
}

.policy-list li i {
    color: #10b981;
    font-size: 0.9rem;
    margin-top: 2px;
    flex-shrink: 0;
}

/* Security mini-cards */
.policy-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid var(--border-light, #f1f5f9);
    background: var(--bg-card, #fff);
    height: 100%;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.policy-card:hover {
    border-color: #e0e7ff;
    box-shadow: 0 4px 20px rgba(99,102,241,0.07);
}

.policy-card-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.policy-card-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-primary, #1e293b);
    margin-bottom: 4px;
}

.policy-card-desc {
    font-size: 0.8rem;
    color: var(--text-secondary, #64748b);
    line-height: 1.55;
}

/* Contact button */
.policy-contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: 99px;
    background: linear-gradient(135deg, #6366f1, #4338ca);
    color: #fff !important;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none !important;
    transition: opacity 0.2s, transform 0.2s;
    margin-top: 8px;
}

.policy-contact-btn:hover {
    opacity: 0.88;
    transform: translateY(-1px);
}

/* Last updated line */
.policy-updated {
    text-align: center;
    font-size: 0.78rem;
    color: var(--text-muted, #94a3b8);
    padding-top: 24px;
    margin-top: 8px;
}

/* RTL overrides */
[dir="rtl"] .policy-section-header { flex-direction: row-reverse; }
[dir="rtl"] .policy-list li        { flex-direction: row-reverse; }
[dir="rtl"] .policy-card           { flex-direction: row-reverse; }


/* 
   ERROR PAGE
    */

.error-wrapper {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.error-container {
    width: 100%;
    max-width: 480px;
}

.error-card {
    background: #fff;
    border-radius: 20px;
    border: 1px solid #eef0f6;
    box-shadow: 0 8px 32px rgba(0,0,0,0.07);
    padding: 2.5rem 2rem;
    text-align: center;
}

/* ── icon bubble ── */
.error-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 1.25rem;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.error-icon i { font-size: 30px; }

/* per-code colour tokens */
.error-icon--404 { background: #fff7ed; }
.error-icon--404 i { color: #f97316; }

.error-icon--403 { background: #fef2f2; }
.error-icon--403 i { color: #ef4444; }

.error-icon--413 { background: #eff6ff; }
.error-icon--413 i { color: #3b82f6; }

.error-icon--500 { background: #fdf4ff; }
.error-icon--500 i { color: #a855f7; }

.error-code {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -2px;
    margin-bottom: 0.4rem;
}
.error-code--404 { color: #f97316; }
.error-code--403 { color: #ef4444; }
.error-code--413 { color: #3b82f6; }
.error-code--500 { color: #a855f7; }

.error-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.25rem;
}

.error-msg {
    margin-top: 0.4rem;
    color: #6b7280;
    font-size: 0.93rem;
    line-height: 1.55;
}

.error-hint {
    font-size: 0.82rem;
    color: #9ca3af;
    margin-top: 0.5rem;
}

.error-hint i { opacity: 0.75; }

.error-actions {
    margin-top: 1.75rem;
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

[data-theme="dark"] .error-card,
[data-theme="midnight"] .error-card,
[data-theme="charcoal"] .error-card {
    background: var(--card-bg, #1e2130);
    border-color: var(--border-color, #2d3148);
}
[data-theme="dark"] .error-title,
[data-theme="midnight"] .error-title,
[data-theme="charcoal"] .error-title { color: #f1f5f9; }

[data-theme="dark"] .error-msg,
[data-theme="midnight"] .error-msg,
[data-theme="charcoal"] .error-msg { color: #94a3b8; }

[data-theme="dark"] .error-hint,
[data-theme="midnight"] .error-hint,
[data-theme="charcoal"] .error-hint { color: #64748b; }

@media (max-width: 480px) {
    .error-card { padding: 2rem 1.2rem; }
    .error-code { font-size: 3rem; }
    .error-title { font-size: 1.1rem; }
    .error-actions { flex-direction: column; align-items: center; }
    .error-actions .btn { width: 100%; justify-content: center; }
}

.btn-secondary-lite {
    padding: 0.65rem 1rem;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #374151;
    font-weight: 500;
    cursor: pointer;
    transition: 0.2s;
}

.btn-secondary-lite:hover {
    background: #f9fafb;
}



.sgn-range {
    -webkit-appearance: none;
    appearance: none;
    accent-color: #6366f1;
    width: 100%;
    height: 1.25rem;
    background: transparent;
    outline: none;
    cursor: pointer;
    margin: 0;
    padding: 0;
}
.sgn-range::-webkit-slider-runnable-track {
    height: 6px;
    border-radius: 99px;
    background: linear-gradient(90deg, #6366f1 calc(var(--val, 100) * 1%), #e2e8f0 calc(var(--val, 100) * 1%));
    transition: background 0.15s;
}
.sgn-range::-moz-range-track {
    height: 6px;
    border-radius: 99px;
    background: #e2e8f0;
}
.sgn-range::-moz-range-progress {
    height: 6px;
    border-radius: 99px;
    background: #6366f1;
}
.sgn-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #6366f1;
    border: 3px solid #fff;
    box-shadow: 0 1px 6px rgba(99,102,241,0.45);
    cursor: pointer;
    margin-top: -7px;
    transition: box-shadow 0.18s, transform 0.18s;
}
.sgn-range::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow: 0 2px 10px rgba(99,102,241,0.55);
}
.sgn-range::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #6366f1;
    border: 3px solid #fff;
    box-shadow: 0 1px 6px rgba(99,102,241,0.45);
    cursor: pointer;
    transition: box-shadow 0.18s, transform 0.18s;
}
.sgn-range:focus { outline: none; }
.sgn-range:focus::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgba(99,102,241,0.25); }
.sgn-range:focus::-moz-range-thumb    { box-shadow: 0 0 0 4px rgba(99,102,241,0.25); }



.rdt-area-card {
    border: 1.5px solid var(--border-color);
    border-radius: 10px;
    background: var(--bg-card);
    overflow: hidden;
    transition: border-color 0.18s;
}

.rdt-area-card:hover {
    border-color: #fca5a5;
}

.rdt-area-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.85rem;
    background: linear-gradient(180deg, #fff5f5, #fff);
    border-bottom: 1.5px solid var(--border-color);
}

.rdt-area-badge {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.rdt-area-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-primary);
    flex: 1;
}

.rdt-area-remove {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1.5px solid #fca5a5;
    background: #fff;
    color: #ef4444;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    padding: 0;
    line-height: 1;
}

.rdt-area-remove:hover {
    background: #ef4444;
    color: #fff;
}

.rdt-area-body {
    padding: 0.65rem 0.85rem;
}

/* coordinate input */
.rdt-coord-cell {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.rdt-coord-cell label {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.rdt-coord-cell input[type="number"] {
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1.5px solid var(--border-color);
    border-radius: 7px;
    padding: 0.35rem 0.25rem;
    background: var(--bg-card);
    color: var(--text-primary);
    transition: border-color 0.18s, box-shadow 0.18s;
    width: 100%;
}

.rdt-coord-cell input[type="number"]:focus {
    outline: none;
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}

/* add area button */
.rdt-add-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    border: 1.5px dashed #fca5a5;
    border-radius: 10px;
    background: transparent;
    color: #dc2626;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: background 0.18s, border-color 0.18s;
}

.rdt-add-btn:hover {
    background: #fff5f5;
    border-color: #ef4444;
}

/* color swatch */
.rdt-color-swatch {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 2px solid var(--border-color);
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
    flex-shrink: 0;
    display: block;
}

.rdt-color-swatch:hover {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}



/* Password input wrapper */
.prt-pw-wrap {
    position: relative;
}

.prt-pw-wrap .form-control {
    padding-right: 2.6rem;
}

.prt-pw-toggle {
    position: absolute;
    right: 0.65rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 0;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    transition: color 0.15s;
}

.prt-pw-toggle:hover { color: #ef4444; }

/* Permission toggle cards */
.prt-perm-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.85rem;
    border: 1.5px solid var(--border-color);
    border-radius: 10px;
    background: var(--bg-card);
    cursor: pointer;
    transition: border-color 0.18s, background 0.18s;
    user-select: none;
}

.prt-perm-card:hover {
    border-color: #fca5a5;
    background: #fff5f5;
}

.prt-perm-card.active {
    border-color: #ef4444;
    background: #fff5f5;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}

.prt-perm-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    flex-shrink: 0;
    background: #fee2e2;
    color: #dc2626;
    transition: background 0.18s, color 0.18s;
}

.prt-perm-card.active .prt-perm-icon {
    background: #ef4444;
    color: #fff;
}

.prt-perm-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-primary);
    flex: 1;
}

.prt-perm-sub {
    font-size: 0.72rem;
    color: var(--text-secondary);
    line-height: 1.3;
}

/* Bootstrap form-switch override for red theme */
.prt-perm-card .form-check-input:checked {
    background-color: #ef4444;
    border-color: #ef4444;
}



.md-field-group {
    border: 1.5px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-card);
}

.md-field-group-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: linear-gradient(180deg, #f0f9ff, #fff);
    border-bottom: 1.5px solid var(--border-color);
}

.md-field-group-icon {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: #fff;
    flex-shrink: 0;
}

.md-field-group-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-primary);
}

.md-field-group-body {
    padding: 0.9rem 1rem;
}

.md-field-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.55rem 0;
    border-bottom: 1px solid var(--border-color);
}

.md-field-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.md-field-row:first-child {
    padding-top: 0;
}

.md-field-icon {
    width: 30px;
    height: 30px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.md-field-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary);
    width: 68px;
    flex-shrink: 0;
}

.md-field-row .form-control {
    border: none;
    border-bottom: 1.5px solid transparent;
    border-radius: 0;
    background: transparent;
    padding: 0.2rem 0.1rem;
    font-size: 0.88rem;
    color: var(--text-primary);
    flex: 1;
    transition: border-color 0.18s;
}

.md-field-row .form-control:focus {
    outline: none;
    box-shadow: none;
    border-bottom-color: #0ea5e9;
    background: transparent;
}

.md-field-row .form-control::placeholder {
    color: var(--text-secondary);
    opacity: 0.6;
    font-size: 0.82rem;
}


.rsz-size-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.18rem;
    padding: 0.7rem 0.4rem 0.6rem;
    border: 1.5px solid var(--border-color);
    border-radius: 10px;
    background: var(--bg-card);
    cursor: pointer;
    transition: border-color 0.18s, background 0.18s, box-shadow 0.18s;
    user-select: none;
    width: 100%;
    text-align: center;
}

.rsz-size-card:hover {
    border-color: #3b82f6;
    background: #eff6ff;
}

.rsz-size-card.active {
    border-color: #3b82f6;
    background: #eff6ff;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.rsz-size-icon {
    font-size: 1.4rem;
    color: var(--text-secondary);
    line-height: 1;
}

.rsz-size-card.active .rsz-size-icon { color: #3b82f6; }

.rsz-size-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.1;
}

.rsz-size-card.active .rsz-size-name { color: #1d4ed8; }

.rsz-size-dim {
    font-size: 0.68rem;
    color: var(--text-secondary);
    line-height: 1.2;
}

/* Custom dims panel */
.rsz-custom-panel {
    border: 1.5px solid #bfdbfe;
    border-radius: 10px;
    background: linear-gradient(135deg, #eff6ff, #fff);
    padding: 1rem;
}



/* Visual cross-layout for margin inputs */
.crp-margin-grid {
    display: grid;
    grid-template-areas:
        ".    top  ."
        "left mid  right"
        ".    bot  .";
    grid-template-columns: 1fr 120px 1fr;
    grid-template-rows: auto auto auto;
    gap: 0.5rem;
    align-items: center;
    justify-items: center;
    padding: 1rem 0.5rem;
}

.crp-margin-grid .crp-m-top    { grid-area: top; }
.crp-margin-grid .crp-m-left   { grid-area: left; justify-self: end; }
.crp-margin-grid .crp-m-mid    { grid-area: mid; }
.crp-margin-grid .crp-m-right  { grid-area: right; justify-self: start; }
.crp-margin-grid .crp-m-bot    { grid-area: bot; }

/* Individual margin cell */
.crp-margin-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
}

.crp-margin-cell label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.crp-margin-cell input[type="number"],
.crp-input {
    width: 72px;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    padding: 0.4rem 0.3rem;
    background: var(--bg-card);
    color: var(--text-primary);
    transition: border-color 0.18s, box-shadow 0.18s;
}

.crp-margin-cell input[type="number"]:focus,
.crp-input:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

/* Page preview box in the middle */
.crp-page-preview {
    width: 120px;
    height: 80px;
    border: 2px dashed #a7f3d0;
    border-radius: 6px;
    background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #10b981;
    font-size: 1.6rem;
}

/* Preset buttons */
.crp-preset-btn {
    padding: 0.35rem 0.75rem;
    border: 1.5px solid var(--border-color);
    border-radius: 20px;
    background: var(--bg-card);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.18s;
    white-space: nowrap;
    user-select: none;
}

.crp-preset-btn:hover {
    border-color: #10b981;
    color: #059669;
    background: #f0fdf4;
}

.crp-preset-btn.active {
    border-color: #10b981;
    color: #059669;
    background: #f0fdf4;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}



/* Section panel */
.ep-section {
    border: 1.5px solid var(--border-color);
    border-radius: 12px;
    overflow: visible;
    background: var(--bg-card);
}

.ep-section-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1rem;
    border-bottom: 1.5px solid var(--border-color);
    border-radius: 12px 12px 0 0;
    background: linear-gradient(180deg, #f8faff, #fff);
    user-select: none;
}

.ep-sec-icon {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.ep-sec-icon.ep-sec-icon--img {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.ep-sec-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-primary);
}

.ep-sec-badge {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.15rem 0.5rem;
    border-radius: 20px;
    background: #dbeafe;
    color: #1d4ed8;
    margin-left: auto;
}

.ep-sec-badge--opt {
    background: #f3e8ff;
    color: #7c3aed;
}

.ep-section-body {
    padding: 1rem;
}

/* Toggle chevron */
.ep-toggle-icon {
    margin-left: auto;
    font-size: 0.78rem;
    color: var(--text-secondary);
    transition: transform 0.22s;
}

.ep-section--collapsed .ep-toggle-icon {
    transform: rotate(-90deg);
}

/* Color swatch */
.ep-color-swatch {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 2px solid var(--border-color);
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
    flex-shrink: 0;
    display: block;
}

.ep-color-swatch:hover {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

/* Bold pill toggle */
.ep-bold-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.45rem 0.75rem;
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-card);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.18s;
    width: 100%;
    color: var(--text-secondary);
    user-select: none;
}

.ep-bold-btn:hover {
    border-color: #3b82f6;
    background: #eff6ff;
}

.ep-bold-btn.active {
    border-color: #3b82f6;
    background: #eff6ff;
    color: #1d4ed8;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.cta-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 45%, #a855f7 100%);
    padding: 5rem 1.5rem;
}
.cta-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 60% at 20% 50%, rgba(255,255,255,0.07) 0%, transparent 65%),
        radial-gradient(ellipse 50% 80% at 80% 30%, rgba(255,255,255,0.05) 0%, transparent 70%);
    pointer-events: none;
}

/* Decorative floating blobs */
.cta-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
    opacity: 0.25;
}
.cta-blob--1 {
    width: 380px; height: 380px;
    background: #818cf8;
    top: -120px; left: -80px;
}
.cta-blob--2 {
    width: 280px; height: 280px;
    background: #c084fc;
    bottom: -100px; right: -60px;
}
.cta-blob--3 {
    width: 200px; height: 200px;
    background: #38bdf8;
    top: 30%; left: 55%;
}

/* Inner container */
.cta-inner {
    position: relative;
    z-index: 1;
    text-align: center;
}

/* Top badge */
.cta-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #fff;
    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 999px;
    padding: 0.32rem 1rem;
    margin-bottom: 1.4rem;
    backdrop-filter: blur(6px);
}
.cta-badge i { font-size: 0.85rem; opacity: 0.9; }

/* Heading */
.cta-title {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 900;
    color: #fff;
    letter-spacing: -0.03em;
    line-height: 1.18;
    margin-bottom: 0.85rem;
    text-shadow: 0 2px 16px rgba(0,0,0,0.18);
}

/* Subtitle */
.cta-sub {
    font-size: 1rem;
    color: rgba(255,255,255,0.8);
    line-height: 1.7;
    max-width: 520px;
    margin: 0 auto 2rem;
}

/* Button row */
.cta-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.9rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

/* Primary CTA button */
.cta-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.85rem 2.2rem;
    background: #fff;
    color: #4f46e5;
    font-size: 1rem;
    font-weight: 800;
    border-radius: 999px;
    text-decoration: none;
    box-shadow: 0 8px 28px rgba(0,0,0,0.22), 0 2px 8px rgba(0,0,0,0.12);
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
    letter-spacing: -0.01em;
}
.cta-btn-primary:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 14px 36px rgba(0,0,0,0.28);
    background: #f0f4ff;
    color: #4338ca;
    text-decoration: none;
}
.cta-btn-primary i { font-size: 1.05rem; }

/* Trust row */
.cta-trust-row {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
}
.cta-trust-item {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(255,255,255,0.75);
}
.cta-trust-item i { font-size: 0.82rem; opacity: 0.9; }
.cta-trust-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    flex-shrink: 0;
}
@media (max-width: 480px) {
    .cta-trust-dot { display: none; }
    .cta-trust-row { gap: 0.5rem 1rem; }
}


html[data-theme="dark"]     .how-section,
html[data-theme="midnight"] .how-section,
html[data-theme="charcoal"] .how-section,
html[data-theme="ocean"]    .how-section,
html[data-theme="forest"]   .how-section,
html[data-theme="sunset"]   .how-section,
html[data-theme="rose"]     .how-section,
html[data-theme="lavender"] .how-section,
html[data-theme="emerald"]  .how-section {
    background: var(--bg-card) !important;
    border-color: var(--border-color) !important;
}

html[data-theme="dark"]     .section-heading,
html[data-theme="midnight"] .section-heading,
html[data-theme="charcoal"] .section-heading,
html[data-theme="ocean"]    .section-heading,
html[data-theme="forest"]   .section-heading,
html[data-theme="sunset"]   .section-heading,
html[data-theme="rose"]     .section-heading,
html[data-theme="lavender"] .section-heading,
html[data-theme="emerald"]  .section-heading {
    color: var(--text-heading) !important;
}

/* Stats section */
html[data-theme="dark"]     .stats-section,
html[data-theme="midnight"] .stats-section,
html[data-theme="charcoal"] .stats-section,
html[data-theme="ocean"]    .stats-section,
html[data-theme="forest"]   .stats-section,
html[data-theme="sunset"]   .stats-section,
html[data-theme="rose"]     .stats-section,
html[data-theme="lavender"] .stats-section,
html[data-theme="emerald"]  .stats-section {
    background: var(--bg-input) !important;
    border-color: var(--border-color) !important;
}

html[data-theme="dark"]     .stat-item,
html[data-theme="midnight"] .stat-item,
html[data-theme="charcoal"] .stat-item,
html[data-theme="ocean"]    .stat-item,
html[data-theme="forest"]   .stat-item,
html[data-theme="sunset"]   .stat-item,
html[data-theme="rose"]     .stat-item,
html[data-theme="lavender"] .stat-item,
html[data-theme="emerald"]  .stat-item {
    background: var(--bg-card) !important;
    border-color: var(--border-color) !important;
}

html[data-theme="dark"]     .stat-label,
html[data-theme="midnight"] .stat-label,
html[data-theme="charcoal"] .stat-label,
html[data-theme="ocean"]    .stat-label,
html[data-theme="forest"]   .stat-label,
html[data-theme="sunset"]   .stat-label,
html[data-theme="rose"]     .stat-label,
html[data-theme="lavender"] .stat-label,
html[data-theme="emerald"]  .stat-label {
    color: var(--text-secondary) !important;
}

/* Features section */
html[data-theme="dark"]     .features-section,
html[data-theme="midnight"] .features-section,
html[data-theme="charcoal"] .features-section,
html[data-theme="ocean"]    .features-section,
html[data-theme="forest"]   .features-section,
html[data-theme="sunset"]   .features-section,
html[data-theme="rose"]     .features-section,
html[data-theme="lavender"] .features-section,
html[data-theme="emerald"]  .features-section {
    background: var(--bg-input) !important;
    border-color: var(--border-color) !important;
}

html[data-theme="dark"]     .feat-card,
html[data-theme="midnight"] .feat-card,
html[data-theme="charcoal"] .feat-card,
html[data-theme="ocean"]    .feat-card,
html[data-theme="forest"]   .feat-card,
html[data-theme="sunset"]   .feat-card,
html[data-theme="rose"]     .feat-card,
html[data-theme="lavender"] .feat-card,
html[data-theme="emerald"]  .feat-card {
    background: var(--bg-card) !important;
    border-color: var(--border-color) !important;
}

html[data-theme="dark"]     .feat-card-title,
html[data-theme="midnight"] .feat-card-title,
html[data-theme="charcoal"] .feat-card-title,
html[data-theme="ocean"]    .feat-card-title,
html[data-theme="forest"]   .feat-card-title,
html[data-theme="sunset"]   .feat-card-title,
html[data-theme="rose"]     .feat-card-title,
html[data-theme="lavender"] .feat-card-title,
html[data-theme="emerald"]  .feat-card-title {
    color: var(--text-heading) !important;
}

html[data-theme="dark"]     .feat-card-desc,
html[data-theme="midnight"] .feat-card-desc,
html[data-theme="charcoal"] .feat-card-desc,
html[data-theme="ocean"]    .feat-card-desc,
html[data-theme="forest"]   .feat-card-desc,
html[data-theme="sunset"]   .feat-card-desc,
html[data-theme="rose"]     .feat-card-desc,
html[data-theme="lavender"] .feat-card-desc,
html[data-theme="emerald"]  .feat-card-desc {
    color: var(--text-secondary) !important;
}

/* SEO section (tool pages) */
html[data-theme="dark"]     .seo-section,
html[data-theme="midnight"] .seo-section,
html[data-theme="charcoal"] .seo-section,
html[data-theme="ocean"]    .seo-section,
html[data-theme="forest"]   .seo-section,
html[data-theme="sunset"]   .seo-section,
html[data-theme="rose"]     .seo-section,
html[data-theme="lavender"] .seo-section,
html[data-theme="emerald"]  .seo-section {
    background: var(--bg-input) !important;
    border-color: var(--border-color) !important;
}

html[data-theme="dark"]     .seo-grid,
html[data-theme="midnight"] .seo-grid,
html[data-theme="charcoal"] .seo-grid,
html[data-theme="ocean"]    .seo-grid,
html[data-theme="forest"]   .seo-grid,
html[data-theme="sunset"]   .seo-grid,
html[data-theme="rose"]     .seo-grid,
html[data-theme="lavender"] .seo-grid,
html[data-theme="emerald"]  .seo-grid {
    background: var(--bg-card) !important;
    border-color: var(--border-color) !important;
}

html[data-theme="dark"]     .seo-step,
html[data-theme="midnight"] .seo-step,
html[data-theme="charcoal"] .seo-step,
html[data-theme="ocean"]    .seo-step,
html[data-theme="forest"]   .seo-step,
html[data-theme="sunset"]   .seo-step,
html[data-theme="rose"]     .seo-step,
html[data-theme="lavender"] .seo-step,
html[data-theme="emerald"]  .seo-step {
    background: var(--bg-input) !important;
    border-color: var(--border-color) !important;
}

html[data-theme="dark"]     .seo-eyebrow,
html[data-theme="midnight"] .seo-eyebrow,
html[data-theme="charcoal"] .seo-eyebrow,
html[data-theme="ocean"]    .seo-eyebrow,
html[data-theme="forest"]   .seo-eyebrow,
html[data-theme="sunset"]   .seo-eyebrow,
html[data-theme="rose"]     .seo-eyebrow,
html[data-theme="lavender"] .seo-eyebrow,
html[data-theme="emerald"]  .seo-eyebrow {
    color: var(--accent) !important;
    background: var(--accent-light) !important;
    border-color: var(--border-color) !important;
}

html[data-theme="dark"]     .seo-main-title,
html[data-theme="midnight"] .seo-main-title,
html[data-theme="charcoal"] .seo-main-title,
html[data-theme="ocean"]    .seo-main-title,
html[data-theme="forest"]   .seo-main-title,
html[data-theme="sunset"]   .seo-main-title,
html[data-theme="rose"]     .seo-main-title,
html[data-theme="lavender"] .seo-main-title,
html[data-theme="emerald"]  .seo-main-title {
    color: var(--text-heading) !important;
}

html[data-theme="dark"]     .seo-desc,
html[data-theme="midnight"] .seo-desc,
html[data-theme="charcoal"] .seo-desc,
html[data-theme="ocean"]    .seo-desc,
html[data-theme="forest"]   .seo-desc,
html[data-theme="sunset"]   .seo-desc,
html[data-theme="rose"]     .seo-desc,
html[data-theme="lavender"] .seo-desc,
html[data-theme="emerald"]  .seo-desc {
    color: var(--text-secondary) !important;
}

html[data-theme="dark"]     .seo-bullets li,
html[data-theme="midnight"] .seo-bullets li,
html[data-theme="charcoal"] .seo-bullets li,
html[data-theme="ocean"]    .seo-bullets li,
html[data-theme="forest"]   .seo-bullets li,
html[data-theme="sunset"]   .seo-bullets li,
html[data-theme="rose"]     .seo-bullets li,
html[data-theme="lavender"] .seo-bullets li,
html[data-theme="emerald"]  .seo-bullets li {
    color: var(--text-primary) !important;
}

html[data-theme="dark"]     .seo-step-title,
html[data-theme="midnight"] .seo-step-title,
html[data-theme="charcoal"] .seo-step-title,
html[data-theme="ocean"]    .seo-step-title,
html[data-theme="forest"]   .seo-step-title,
html[data-theme="sunset"]   .seo-step-title,
html[data-theme="rose"]     .seo-step-title,
html[data-theme="lavender"] .seo-step-title,
html[data-theme="emerald"]  .seo-step-title {
    color: var(--text-heading) !important;
}

html[data-theme="dark"]     .seo-step-desc,
html[data-theme="midnight"] .seo-step-desc,
html[data-theme="charcoal"] .seo-step-desc,
html[data-theme="ocean"]    .seo-step-desc,
html[data-theme="forest"]   .seo-step-desc,
html[data-theme="sunset"]   .seo-step-desc,
html[data-theme="rose"]     .seo-step-desc,
html[data-theme="lavender"] .seo-step-desc,
html[data-theme="emerald"]  .seo-step-desc {
    color: var(--text-secondary) !important;
}

html[data-theme="dark"]     .seo-related-label,
html[data-theme="midnight"] .seo-related-label,
html[data-theme="charcoal"] .seo-related-label,
html[data-theme="ocean"]    .seo-related-label,
html[data-theme="forest"]   .seo-related-label,
html[data-theme="sunset"]   .seo-related-label,
html[data-theme="rose"]     .seo-related-label,
html[data-theme="lavender"] .seo-related-label,
html[data-theme="emerald"]  .seo-related-label {
    color: var(--text-muted) !important;
}

html[data-theme="dark"]     .seo-related-link,
html[data-theme="midnight"] .seo-related-link,
html[data-theme="charcoal"] .seo-related-link,
html[data-theme="ocean"]    .seo-related-link,
html[data-theme="forest"]   .seo-related-link,
html[data-theme="sunset"]   .seo-related-link,
html[data-theme="rose"]     .seo-related-link,
html[data-theme="lavender"] .seo-related-link,
html[data-theme="emerald"]  .seo-related-link {
    background: var(--bg-card) !important;
    border-color: var(--border-color) !important;
    color: var(--accent) !important;
}

html[data-theme="dark"]     .seo-related-link:hover,
html[data-theme="midnight"] .seo-related-link:hover,
html[data-theme="charcoal"] .seo-related-link:hover,
html[data-theme="ocean"]    .seo-related-link:hover,
html[data-theme="forest"]   .seo-related-link:hover,
html[data-theme="sunset"]   .seo-related-link:hover,
html[data-theme="rose"]     .seo-related-link:hover,
html[data-theme="lavender"] .seo-related-link:hover,
html[data-theme="emerald"]  .seo-related-link:hover {
    background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 70%, #000)) !important;
    color: #fff !important;
    border-color: transparent !important;
}

html[data-theme="dark"]     .cta-section,
html[data-theme="midnight"] .cta-section,
html[data-theme="charcoal"] .cta-section {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 45%, #4c1d95 100%) !important;
}
html[data-theme="ocean"] .cta-section {
    background: linear-gradient(135deg, #1e3a5f 0%, #1d4ed8 50%, #0e7490 100%) !important;
}
html[data-theme="forest"] .cta-section {
    background: linear-gradient(135deg, #14532d 0%, #16a34a 50%, #0d9488 100%) !important;
}
html[data-theme="sunset"] .cta-section {
    background: linear-gradient(135deg, #7c2d12 0%, #ea580c 50%, #d97706 100%) !important;
}
html[data-theme="rose"] .cta-section {
    background: linear-gradient(135deg, #881337 0%, #e11d48 50%, #be185d 100%) !important;
}
html[data-theme="lavender"] .cta-section {
    background: linear-gradient(135deg, #4c1d95 0%, #7c3aed 50%, #9333ea 100%) !important;
}
html[data-theme="emerald"] .cta-section {
    background: linear-gradient(135deg, #022c22 0%, #059669 50%, #047857 100%) !important;
}

/* Adjust button text colour per theme so contrast is maintained */
html[data-theme="ocean"]    .cta-btn-primary { color: #1d4ed8; }
html[data-theme="forest"]   .cta-btn-primary { color: #15803d; }
html[data-theme="sunset"]   .cta-btn-primary { color: #c2410c; }
html[data-theme="rose"]     .cta-btn-primary { color: #be123c; }
html[data-theme="lavender"] .cta-btn-primary { color: #7c3aed; }
html[data-theme="emerald"]  .cta-btn-primary { color: #065f46; }
html[data-theme="dark"]     .cta-btn-primary,
html[data-theme="midnight"] .cta-btn-primary,
html[data-theme="charcoal"] .cta-btn-primary { color: #4338ca; }

