/* ConvertXpert Global SaaS Design System & Stylesheet */

:root {
    /* Premium Color Palette (SaaS Theme) */
    --primary: #0F62FE;
    --primary-rgb: 15, 98, 254;
    --primary-hover: #0043CE;
    --primary-light: rgba(15, 98, 254, 0.08);
    
    --secondary: #10B981;
    --secondary-hover: #059669;
    --secondary-light: rgba(16, 185, 129, 0.08);
    
    --accent: #00F0FF;
    --accent-rgb: 0, 240, 255;
    --accent-hover: #00D8E6;
    
    --white: #FFFFFF;
    --black: #05070C;
    
    /* Default Light Theme Tokens */
    --bg-main: #FAFCFF;
    --bg-card: rgba(255, 255, 255, 0.7);
    --bg-nav: rgba(255, 255, 255, 0.75);
    --bg-footer: #080C14;
    --bg-alt: #F3F7FC;
    
    --border: rgba(15, 98, 254, 0.08);
    --border-hover: rgba(15, 98, 254, 0.25);
    
    --text-main: #0F172A;
    --text-muted: #475569;
    --text-white: #FFFFFF;
    
    --shadow-sm: 0 2px 8px rgba(15, 98, 254, 0.04);
    --shadow-md: 0 12px 30px rgba(15, 98, 254, 0.06);
    --shadow-lg: 0 20px 50px rgba(15, 98, 254, 0.1);
    --shadow-premium: 0 30px 60px rgba(15, 98, 254, 0.12), 0 0 30px rgba(0, 240, 255, 0.08);
    
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 28px;
    --radius-circle: 50%;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    
    --header-height: 80px;
    --max-width: 1280px;
    
    /* Cursor glow blob defaults */
    --glow-color: rgba(15, 98, 254, 0.12);
}

/* Dark Mode Tokens Override */
body.dark-mode {
    --bg-main: #060913;
    --bg-card: rgba(13, 20, 38, 0.65);
    --bg-nav: rgba(6, 9, 19, 0.75);
    --bg-footer: #03060C;
    --bg-alt: #0C1122;
    
    --border: rgba(255, 255, 255, 0.05);
    --border-hover: rgba(0, 240, 255, 0.3);
    
    --text-main: #F1F5F9;
    --text-muted: #94A3B8;
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 12px 30px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 25px 60px rgba(0, 0, 0, 0.6);
    --shadow-premium: 0 40px 80px rgba(0, 0, 0, 0.7), 0 0 40px rgba(0, 240, 255, 0.08);
    
    --glow-color: rgba(0, 240, 255, 0.1);
}

/* Base resets & Smoothness */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-body);
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.62;
    font-size: 15px;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.5s ease, color 0.3s ease;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.2;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Extra Premium Global Elements */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    width: 0%;
    z-index: 10002;
    transition: width 0.1s ease-out;
}

#cursor-glow {
    position: fixed;
    pointer-events: none;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--glow-color) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    z-index: 9999;
    border-radius: var(--radius-circle);
    opacity: 0;
    transition: opacity 0.5s ease;
    mix-blend-mode: screen;
}

#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: var(--radius-circle);
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    z-index: 999;
}

#back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#back-to-top:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    box-shadow: var(--shadow-premium);
    transform: translateY(-4px);
}

/* Buttons System */
.btn {
    cursor: pointer;
    border: none;
    outline: none;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 14px;
    padding: 14px 28px;
    border-radius: var(--radius-md);
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #0052EC 100%);
    color: var(--white);
    box-shadow: 0 4px 18px rgba(15, 98, 254, 0.35);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(15, 98, 254, 0.5), 0 0 20px rgba(0, 240, 255, 0.3);
}

.btn-secondary {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    color: var(--text-main);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--bg-alt);
    border-color: var(--border-hover);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent) 0%, #00C8D6 100%);
    color: #03060C;
    box-shadow: 0 4px 18px rgba(0, 240, 255, 0.35);
    font-weight: 800;
}

.btn-accent:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 240, 255, 0.5);
}

/* Glassmorphism containers */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

/* Header & Nav */
header {
    background-color: var(--bg-nav);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    height: var(--header-height);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    transition: background-color 0.4s ease, border-color 0.4s ease;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-family: var(--font-heading);
    font-weight: 900;
    color: var(--text-main);
    white-space: nowrap;
    flex-shrink: 0;
}

.logo-wrapper img {
    height: 38px !important;
    width: auto !important;
    max-height: 100% !important;
    display: block !important;
    object-fit: contain !important;
    flex-shrink: 0 !important;
}

header .logo-wrapper img {
    height: 38px !important;
    width: auto !important;
}

footer .logo-wrapper img {
    height: 32px !important;
    width: auto !important;
}

.logo-icon {
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 0 10px rgba(15, 98, 254, 0.4));
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 36px;
    list-style: none;
}

.nav-item {
    position: relative;
    padding: 24px 0;
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 15px;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 18px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.nav-link:hover::after, .nav-item:hover .nav-link::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-link:hover, .nav-item:hover .nav-link {
    color: var(--primary);
}

/* Mega dropdown menu in glass layout */
.mega-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    width: 1040px;
    max-width: 95vw;
    background: var(--bg-card);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-premium);
    border: 1px solid var(--border);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    pointer-events: none;
    z-index: 1001;
    overflow: hidden;
}

.nav-item:hover .mega-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.mega-dropdown-header {
    background-color: rgba(15, 98, 254, 0.03);
    padding: 20px 36px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mega-search-wrapper {
    position: relative;
    width: 340px;
}

.mega-search-input {
    width: 100%;
    padding: 10px 16px 10px 40px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    outline: none;
    background-color: var(--bg-card);
    color: var(--text-main);
    transition: all 0.3s ease;
}

.mega-search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(15, 98, 254, 0.2);
}

.mega-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.mega-dropdown-content {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 28px;
    padding: 36px;
    max-height: 72vh;
    overflow-y: auto;
}

.mega-column {
    display: flex;
    flex-direction: column;
}

.mega-column-title {
    font-size: 13.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--primary);
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-light);
    display: flex;
    align-items: center;
    gap: 8px;
}

body.dark-mode .mega-column-title {
    color: var(--accent);
    border-bottom-color: rgba(0, 240, 255, 0.1);
}

.mega-links-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mega-tool-link {
    font-size: 13.5px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
}

.mega-tool-link:hover {
    background-color: var(--primary-light);
    color: var(--primary);
    transform: translateX(6px);
}

body.dark-mode .mega-tool-link:hover {
    background-color: rgba(0, 240, 255, 0.08);
    color: var(--accent);
}

.theme-toggle-btn {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-circle);
    background: var(--primary-light);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    color: var(--primary);
}

body.dark-mode .theme-toggle-btn {
    background: rgba(0, 240, 255, 0.06);
    color: var(--accent);
}

.theme-toggle-btn:hover {
    transform: scale(1.1) rotate(15deg);
    box-shadow: var(--shadow-sm);
}

/* Mobile Hamburger Menu button */
.mobile-nav-toggle {
    display: none;
    font-size: 26px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-main);
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
}

/* Hero Section */
.hero-section {
    padding-top: calc(var(--header-height) + 80px);
    padding-bottom: 120px;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 85% 15%, rgba(var(--primary-rgb), 0.08) 0%, transparent 55%),
                radial-gradient(circle at 15% 85%, rgba(var(--accent-rgb), 0.05) 0%, transparent 50%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 72px;
    align-items: center;
}

.hero-headline {
    font-size: 64px;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 28px;
    letter-spacing: -2px;
}

.hero-headline span {
    background: linear-gradient(135deg, var(--primary) 30%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 19px;
    color: var(--text-muted);
    margin-bottom: 44px;
    max-width: 580px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 56px;
}

.hero-stats {
    display: flex;
    gap: 48px;
    border-top: 1px solid var(--border);
    padding-top: 36px;
}

.stat-item .stats-num {
    font-size: 36px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 4px;
}

.stat-item p {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 3D Animations & Viewport */
.hero-animation-container {
    position: relative;
    height: 480px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1500px;
}

.animation-viewport {
    width: 360px;
    height: 360px;
    position: relative;
    transform-style: preserve-3d;
    animation: rotateViewport 48s linear infinite;
}

.floating-icon-card {
    position: absolute;
    width: 120px;
    height: 120px;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow-lg), inset 0 0 0 1.5px rgba(255, 255, 255, 0.4);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d;
    transition: all 0.5s ease;
    user-select: none;
    border: 1px solid var(--border);
}

.floating-icon-card:hover {
    box-shadow: var(--shadow-premium);
    border-color: var(--primary);
}

body.dark-mode .floating-icon-card {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), inset 0 0 0 1.5px rgba(255, 255, 255, 0.05);
}

.floating-icon-card svg {
    width: 52px;
    height: 52px;
    margin-bottom: 8px;
    filter: drop-shadow(0 6px 12px rgba(0,0,0,0.1));
}

.floating-icon-card span {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.icon-pdf {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.08) 0%, rgba(255, 255, 255, 0.7) 100%);
    color: #EF4444;
    left: 15%;
    top: 10%;
    animation: floatPDF 7s ease-in-out infinite, spinZ-PDF 24s linear infinite;
}

.icon-jpg {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(255, 255, 255, 0.7) 100%);
    color: #3B82F6;
    right: 10%;
    top: 15%;
    animation: floatJPG 8s ease-in-out infinite, spinZ-JPG 28s linear infinite;
}

.icon-convert {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(255, 255, 255, 0.7) 100%);
    color: #10B981;
    left: 30%;
    bottom: 10%;
    animation: floatConvert 6.5s ease-in-out infinite, spinZ-Convert 20s linear infinite;
}

.animation-center-glow {
    position: absolute;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.15) 0%, transparent 70%);
    filter: blur(30px);
    z-index: -1;
    animation: pulseGlow 5s ease-in-out infinite;
}

@keyframes rotateViewport {
    0% { transform: rotateY(0deg) rotateX(12deg); }
    100% { transform: rotateY(360deg) rotateX(12deg); }
}

@keyframes floatPDF {
    0%, 100% { transform: translateY(0px) rotateX(0deg) rotateY(-18deg); }
    50% { transform: translateY(-30px) rotateX(10deg) rotateY(-10deg); }
}

@keyframes floatJPG {
    0%, 100% { transform: translateY(0px) rotateX(-6deg) rotateY(18deg); }
    50% { transform: translateY(-35px) rotateX(6deg) rotateY(6deg); }
}

@keyframes floatConvert {
    0%, 100% { transform: translateY(0px) rotateX(6deg) rotateY(0deg); }
    50% { transform: translateY(-25px) rotateX(-10deg) rotateY(10deg); }
}

@keyframes pulseGlow {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.25); opacity: 1; }
}

/* Category grid tools explorer */
.home-categories-section {
    padding: 100px 0;
    background-color: var(--bg-main);
    border-top: 1px solid var(--border);
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-title {
    font-size: 42px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.section-desc {
    font-size: 17px;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Category Filter Tabs UI */
.category-filter-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 10px 22px;
    background: var(--bg-card);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border);
    border-radius: 40px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 14px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-tab:hover, .filter-tab.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    box-shadow: 0 4px 15px rgba(15, 98, 254, 0.3);
}

body.dark-mode .filter-tab:hover, body.dark-mode .filter-tab.active {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-color: var(--accent);
    color: #03060C;
    box-shadow: 0 4px 20px rgba(0, 240, 255, 0.4);
    font-weight: 800;
}

.home-category-block {
    margin-bottom: 80px;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.category-block-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.category-block-title svg {
    color: var(--primary);
}

body.dark-mode .category-block-title svg {
    color: var(--accent);
}

/* Premium Tool Cards with Neon glowing borders */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 28px;
}

.tool-card {
    background-color: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 200px;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
    will-change: transform, opacity;
}

.tool-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: inherit;
    pointer-events: none;
    border: 1.5px solid transparent;
    transition: border-color 0.4s ease;
}

.tool-card:hover::after {
    border-color: var(--primary);
}

body.dark-mode .tool-card:hover::after {
    border-color: var(--accent);
}

.tool-card:hover {
    background-color: var(--bg-main);
    transform: translateY(-6px);
    box-shadow: var(--shadow-premium);
}

.tool-card-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-sm);
    background-color: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 24px;
    transition: all 0.3s ease;
}

body.dark-mode .tool-card-icon {
    background-color: rgba(0, 240, 255, 0.06);
    color: var(--accent);
}

.tool-card:hover .tool-card-icon {
    transform: scale(1.1) rotate(5deg);
}

.tool-card-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-main);
}

.tool-card-desc {
    font-size: 13.5px;
    color: var(--text-muted);
    margin-bottom: 20px;
    flex-grow: 1;
}

.tool-card-link {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 13.5px;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

body.dark-mode .tool-card-link {
    color: var(--accent);
}

.tool-card-link svg {
    transition: transform 0.3s ease;
}

.tool-card:hover .tool-card-link svg {
    transform: translateX(5px);
}

/* Tool Interface page styles */
/* Tool Interface page styles */
.tool-page-header {
    position: relative;
    background-color: var(--bg-card);
    backdrop-filter: blur(12px);
    padding: 85px 0 50px;
    border-bottom: 1px solid var(--border);
    margin-top: var(--header-height);
    overflow: hidden;
}

/* Subtle glowing background mesh grid */
.tool-page-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: radial-gradient(var(--border) 1.2px, transparent 1.2px);
    background-size: 24px 24px;
    opacity: 0.8;
    pointer-events: none;
    z-index: 1;
}

/* Cosmic aura blurs */
.tool-page-header::after {
    content: '';
    position: absolute;
    top: -50px;
    right: 10%;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(15, 98, 254, 0.12) 0%, transparent 70%);
    filter: blur(40px);
    pointer-events: none;
    z-index: 0;
    animation: header-pulse 8s infinite alternate ease-in-out;
}

body.dark-mode .tool-page-header::after {
    background: radial-gradient(circle, rgba(0, 240, 255, 0.1) 0%, transparent 70%);
}

@keyframes header-pulse {
    0% { transform: scale(1) translate(0, 0); opacity: 0.8; }
    100% { transform: scale(1.2) translate(-20px, 10px); opacity: 1; }
}

.tool-page-header .container {
    position: relative;
    z-index: 2; /* Sit cleanly above glows and grid background */
}

.tool-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 18px;
}

.tool-breadcrumbs a:hover {
    color: var(--primary);
}

/* Premium Header Status Badge Chip */
.tool-header-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.06);
    border: 1px solid rgba(16, 185, 129, 0.15);
    color: var(--secondary-hover);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 6px 14px;
    border-radius: 50px;
    margin-bottom: 18px;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.05);
}

body.dark-mode .tool-header-badge {
    background: rgba(0, 240, 255, 0.05);
    border: 1px solid rgba(0, 240, 255, 0.15);
    color: var(--accent);
    box-shadow: 0 4px 12px rgba(0, 240, 255, 0.05);
}

.badge-dot {
    width: 6px;
    height: 6px;
    background-color: #10B981;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px #10B981;
    animation: dot-pulse 1.8s infinite;
}

body.dark-mode .badge-dot {
    background-color: var(--accent);
    box-shadow: 0 0 8px var(--accent);
}

@keyframes dot-pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
    100% { transform: scale(1); opacity: 1; }
}

.tool-title {
    font-size: 42px;
    font-weight: 900;
    margin-bottom: 12px;
    letter-spacing: -1px;
    background: linear-gradient(135deg, var(--primary), #6f2cf4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block; /* Stack vertically below the status chip */
    width: fit-content;
}

body.dark-mode .tool-title {
    background: linear-gradient(135deg, var(--accent), #9b51e0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
    width: fit-content;
}

.tool-tagline {
    font-size: 16px;
    color: var(--text-muted);
    max-width: 800px;
    margin-bottom: 0;
}

/* Tool Header Metrics Tags */
.tool-header-metrics {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.metric-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
}

.metric-tag:hover {
    border-color: var(--border-hover);
    color: var(--text-main);
    transform: translateY(-1px);
}

.metric-icon {
    font-size: 13px;
}

.tool-container {
    padding: 60px 0;
}

/* Interactive workspace box */
.tool-workspace {
    background-color: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 40px;
    margin-bottom: 60px;
}

/* Advanced Upload Drop Zone with Wondershare-style premium gradient borders */
.upload-zone {
    position: relative;
    border: 2px solid transparent;
    border-radius: 24px;
    background-image: linear-gradient(#f4f6fc, #f4f6fc), linear-gradient(135deg, #ff007f, #7f00ff, #00a2ff);
    background-clip: padding-box, border-box;
    background-origin: border-box;
    padding: 70px 40px;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    user-select: none;
    overflow: hidden;
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
}

body.dark-mode .upload-zone {
    background-image: linear-gradient(#080c18, #080c18), linear-gradient(135deg, #ff007f, #00f0ff, #7f00ff);
}

.upload-zone::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(15, 98, 254, 0.05), transparent);
    transition: none;
}

.upload-zone:hover::before {
    left: 150%;
    transition: left 1.5s ease-in-out;
}

.upload-zone:hover, .upload-zone.dragover {
    transform: translateY(-4px);
    box-shadow: 0 20px 45px rgba(127, 0, 255, 0.12), 0 0 25px rgba(0, 240, 255, 0.12);
}

body.dark-mode .upload-zone:hover, body.dark-mode .upload-zone.dragover {
    box-shadow: 0 20px 45px rgba(0, 240, 255, 0.15), 0 0 25px rgba(127, 0, 255, 0.15);
}

.upload-icon {
    width: 80px;
    height: 80px;
    background: rgba(15, 98, 254, 0.06);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px !important;
    color: var(--primary);
    margin-bottom: 8px;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
    box-shadow: inset 0 0 20px rgba(15, 98, 254, 0.03);
}

body.dark-mode .upload-icon {
    background: rgba(0, 240, 255, 0.06);
    color: var(--accent);
}

.upload-zone:hover .upload-icon {
    transform: scale(1.1) rotate(5deg);
    background: rgba(15, 98, 254, 0.12);
    box-shadow: 0 10px 25px rgba(15, 98, 254, 0.12);
}

body.dark-mode .upload-zone:hover .upload-icon {
    background: rgba(0, 240, 255, 0.12);
    box-shadow: 0 10px 25px rgba(0, 240, 255, 0.15);
}

.upload-title {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #0f62fe, #0056cc);
    color: #ffffff !important;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 15px;
    padding: 14px 36px;
    border-radius: 50px;
    margin: 12px 0 6px;
    box-shadow: 0 6px 20px rgba(15, 98, 254, 0.25);
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode .upload-title {
    background: linear-gradient(135deg, #00f0ff, #0f62fe);
    box-shadow: 0 6px 20px rgba(0, 240, 255, 0.25);
}

.upload-title::before {
    content: '📤';
    font-size: 15px;
}

.upload-zone:hover .upload-title {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(15, 98, 254, 0.35);
    filter: brightness(1.08);
}

body.dark-mode .upload-zone:hover .upload-title {
    box-shadow: 0 8px 25px rgba(0, 240, 255, 0.35);
}

.upload-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-weight: 500;
    margin-top: 4px;
}

.upload-subtitle::before {
    content: 'Or drop files here - ';
    opacity: 0.85;
}

/* Wondershare-style centered premium trust features bar */
.tool-trust-features-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
    margin-top: 32px;
    padding: 16px;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--border);
    padding-bottom: 28px;
    margin-bottom: 40px;
}
.trust-feature-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
}
.trust-feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: rgba(15, 98, 254, 0.1);
    color: var(--primary);
    border-radius: 50%;
    font-size: 11px;
    font-weight: 900;
}
body.dark-mode .trust-feature-icon {
    background: rgba(0, 240, 255, 0.1);
    color: var(--accent);
}

.upload-input-hidden {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

/* Mobile responsive scaling for Wondershare-style upload zone */
@media (max-width: 576px) {
    .logo-wrapper {
        font-size: 19px !important;
        gap: 6px !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
    }
    .logo-wrapper img {
        height: 28px !important;
    }
    .header-container {
        padding: 0 12px !important;
    }
    .upload-zone {
        padding: 40px 16px;
        border-radius: 18px;
    }
    .upload-icon {
        width: 60px;
        height: 60px;
        font-size: 24px !important;
        margin-bottom: 4px;
    }
    .upload-title {
        font-size: 13.5px;
        padding: 10px 24px;
    }
    .upload-subtitle {
        font-size: 12px;
    }
    .upload-subtitle::before {
        content: 'Or drop - ';
    }
    .tool-trust-features-bar {
        gap: 12px;
        margin-top: 20px;
        padding: 8px 16px 20px !important;
    }
    .trust-feature-item {
        font-size: 12.5px;
        gap: 8px;
    }
    .trust-feature-icon {
        width: 18px;
        height: 18px;
        font-size: 10px;
    }
}

/* Tool controls grids */
.tool-controls-layout {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 40px;
    margin-top: 36px;
}

@media(max-width: 991px) {
    .tool-controls-layout {
        grid-template-columns: 1fr;
    }
}

.tool-preview-area {
    background-color: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 380px;
    position: relative;
    overflow: hidden;
}

@media(min-width: 992px) {
    .tool-preview-area {
        position: sticky;
        top: 100px;
        align-self: flex-start;
    }
}

.preview-canvas {
    max-width: 100%;
    max-height: 480px;
    object-fit: contain;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-sm);
    background-color: #fff;
    background-image: linear-gradient(45deg, #ccc 25%, transparent 25%), linear-gradient(-45deg, #ccc 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #ccc 75%), linear-gradient(-45deg, transparent 75%, #ccc 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
}

.tool-options-panel {
    background-color: rgba(15, 98, 254, 0.01);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 28px;
}

body.dark-mode .tool-options-panel {
    background-color: rgba(255, 255, 255, 0.01);
}

.options-group {
    margin-bottom: 24px;
}

.options-group:last-child {
    margin-bottom: 0;
}

.option-label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 10px;
}

/* Sliders */
.option-input-range {
    width: 100%;
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
    transition: all 0.3s;
}

.option-input-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(15, 98, 254, 0.4);
    transition: all 0.2s;
}

body.dark-mode .option-input-range::-webkit-slider-thumb {
    background: var(--accent);
    box-shadow: 0 2px 8px rgba(0, 240, 255, 0.4);
}

.option-input-range::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.option-select, .option-input-text {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    outline: none;
    font-size: 14px;
    background-color: var(--bg-card);
    color: var(--text-main);
    transition: all 0.3s;
}

.option-select:focus, .option-input-text:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(15, 98, 254, 0.2);
}

body.dark-mode .option-select:focus, body.dark-mode .option-input-text:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.2);
}

/* Upload Files list styles */
.file-list {
    list-style: none;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    transition: all 0.3s;
}

.file-item:hover {
    border-color: var(--primary);
}

.file-item-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.file-item-name {
    font-weight: 700;
    font-size: 14px;
}

.file-item-size {
    font-size: 12px;
    color: var(--text-muted);
}

.file-item-remove {
    cursor: pointer;
    color: #EF4444;
    font-size: 18px;
    background: none;
    border: none;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}

.file-item-remove:hover {
    transform: scale(1.15) rotate(5deg);
}

/* Tool execution status alerts */
.tool-status-alert {
    padding: 16px 24px;
    border-radius: var(--radius-md);
    margin-top: 24px;
    display: none;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 14.5px;
    box-shadow: var(--shadow-sm);
}

.alert-success {
    background-color: var(--secondary-light);
    color: var(--secondary-hover);
    border: 1px solid rgba(16, 185, 129, 0.15);
}

.alert-error {
    background-color: rgba(239, 68, 68, 0.08);
    color: #EF4444;
    border: 1px solid rgba(239, 68, 68, 0.15);
}

.alert-info {
    background-color: var(--primary-light);
    color: var(--primary-hover);
    border: 1px solid rgba(15, 98, 254, 0.15);
}

/* Loading animations & progress bar */
.progress-container {
    margin-top: 20px;
    background-color: var(--border);
    border-radius: 10px;
    height: 8px;
    width: 100%;
    overflow: hidden;
    display: none;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    width: 0%;
    transition: width 0.4s ease;
}

.skeleton-loading {
    background: linear-gradient(90deg, var(--border) 25%, var(--border-hover) 37%, var(--border) 63%);
    background-size: 400% 100%;
    animation: skeleton-shimmer 1.4s ease infinite;
}

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

/* SEO Articles layout inside tool page */
.seo-article-section {
    padding-top: 60px;
    border-top: 1px solid var(--border);
}

.seo-article {
    max-width: 880px;
    margin: 0 auto;
}

.seo-article h2 {
    font-size: 30px;
    font-weight: 800;
    margin-top: 48px;
    margin-bottom: 24px;
    position: relative;
    padding-left: 20px;
}

.seo-article h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    bottom: 6px;
    width: 5px;
    background: linear-gradient(to bottom, var(--primary), var(--accent));
    border-radius: 4px;
}

.seo-article h3 {
    font-size: 21px;
    font-weight: 700;
    margin-top: 32px;
    margin-bottom: 16px;
}

.seo-article p {
    font-size: 15.5px;
    color: var(--text-muted);
    margin-bottom: 24px;
    line-height: 1.8;
}

.seo-article ul, .seo-article ol {
    margin-bottom: 24px;
    padding-left: 28px;
    color: var(--text-muted);
}

.seo-article li {
    margin-bottom: 10px;
    line-height: 1.75;
}

/* FAQ Accordion Section */
.faq-accordion {
    margin-top: 36px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.faq-item {
    border-bottom: 1px solid var(--border);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    width: 100%;
    padding: 22px 28px;
    background-color: var(--bg-card);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 16px;
    color: var(--text-main);
    text-align: left;
    cursor: pointer;
    border: none;
    outline: none;
    transition: background-color 0.3s;
}

.faq-question:hover {
    background-color: var(--bg-alt);
}

.faq-question-icon {
    font-size: 18px;
    color: var(--primary);
    transition: transform 0.3s ease;
}

body.dark-mode .faq-question-icon {
    color: var(--accent);
}

.faq-answer {
    padding: 0 28px;
    max-height: 0;
    overflow: hidden;
    background-color: rgba(15, 98, 254, 0.01);
    transition: all 0.3s ease-out;
}

.faq-item.active .faq-answer {
    padding: 22px 28px;
    max-height: 1000px;
    border-top: 1px solid var(--border);
}

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

/* Statistics Counter Section */
.statistics-section {
    padding: 80px 0;
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    text-align: center;
}

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

.stats-card {
    background: var(--bg-card);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 32px 20px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s;
}

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

.stats-num {
    font-size: 40px;
    font-family: var(--font-heading);
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
}

.stats-title {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Testimonials section */
.testimonials-section {
    padding: 100px 0;
    background-color: var(--bg-main);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

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

.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 36px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s;
}

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

.testimonial-text {
    font-style: italic;
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 24px;
    line-height: 1.7;
}

.testimonial-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-circle);
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 800;
    font-size: 16px;
    font-family: var(--font-heading);
}

.testimonial-name {
    font-weight: 700;
    font-size: 14.5px;
    color: var(--text-main);
}

.testimonial-role {
    font-size: 12px;
    color: var(--text-muted);
}

/* Standard documents layout about/contact etc */
.standard-page-section {
    padding: 120px 0 80px;
    margin-top: var(--header-height);
}

.standard-content-box {
    background-color: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 60px 80px;
    box-shadow: var(--shadow-md);
    max-width: 900px;
    margin: 0 auto;
}

@media(max-width: 767px) {
    .standard-content-box {
        padding: 36px 24px;
    }
}

.standard-title {
    font-size: 46px;
    font-weight: 900;
    margin-bottom: 28px;
    text-align: center;
    letter-spacing: -1.5px;
}

.standard-body h2 {
    font-size: 26px;
    font-weight: 800;
    margin-top: 40px;
    margin-bottom: 18px;
}

.standard-body p {
    font-size: 15.5px;
    color: var(--text-muted);
    margin-bottom: 24px;
    line-height: 1.8;
}

/* Interactive Contact form styling */
.contact-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 48px;
    margin-top: 44px;
}

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

.contact-form-card {
    background-color: rgba(15, 98, 254, 0.01);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 36px;
}

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

.form-group label {
    display: block;
    font-size: 14.5px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-main);
}

.form-input {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14.5px;
    outline: none;
    background-color: var(--bg-card);
    color: var(--text-main);
    transition: all 0.3s;
}

.form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(15, 98, 254, 0.2);
}

body.dark-mode .form-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.2);
}

.form-textarea {
    resize: vertical;
    min-height: 130px;
}

.contact-info-card {
    display: flex;
    flex-direction: column;
    gap: 36px;
}

.info-item {
    display: flex;
    gap: 20px;
}

.info-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-sm);
    background-color: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 22px;
}

body.dark-mode .info-icon {
    background-color: rgba(0, 240, 255, 0.06);
    color: var(--accent);
}

.info-text h2 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 8px;
}

.info-text p {
    font-size: 14.5px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Ultra Modern SaaS Footer */
footer {
    background-color: var(--bg-footer);
    color: #94A3B8;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding: 90px 0 36px;
    font-size: 14.5px;
    position: relative;
    overflow: hidden;
}

/* Subtle background glow inside footer */
footer::before {
    content: '';
    position: absolute;
    top: 0;
    right: 10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(15, 98, 254, 0.04) 0%, transparent 70%);
    filter: blur(30px);
    z-index: 0;
    pointer-events: none;
}

footer .container {
    position: relative;
    z-index: 1;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr 0.75fr 1.25fr;
    gap: 56px;
    margin-bottom: 64px;
}

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

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

.footer-column-title {
    color: var(--text-white);
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-column-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 32px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

.footer-about-text {
    margin-top: 18px;
    margin-bottom: 28px;
    line-height: 1.7;
}

/* Brand glowing social media icons */
.footer-social-links {
    display: flex;
    gap: 14px;
}

.social-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    background-color: rgba(255, 255, 255, 0.03);
    color: var(--text-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.social-icon.facebook:hover {
    background-color: #1877F2;
    border-color: #1877F2;
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(24, 119, 242, 0.4);
}

.social-icon.twitter:hover {
    background-color: #1DA1F2;
    border-color: #1DA1F2;
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(29, 161, 242, 0.4);
}

.social-icon.instagram:hover {
    background-color: #E1306C;
    border-color: #E1306C;
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(225, 48, 108, 0.4);
}

.social-icon.linkedin:hover {
    background-color: #0077B5;
    border-color: #0077B5;
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 119, 181, 0.4);
}

.footer-links-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-links-list a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.footer-links-list a::before {
    content: '→';
    font-size: 12px;
    opacity: 0;
    transition: all 0.3s ease;
    transform: translateX(-10px);
    color: var(--accent);
}

.footer-links-list a:hover {
    color: var(--text-white);
    transform: translateX(6px);
}

.footer-links-list a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

/* Newsletter subscribe box styling */
.newsletter-form {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    position: relative;
}

.newsletter-input {
    flex-grow: 1;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    color: var(--text-white);
    outline: none;
    font-size: 13.5px;
    transition: all 0.3s;
}

.newsletter-input:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.06);
}

.newsletter-btn {
    padding: 12px 20px;
    background: var(--primary);
    color: var(--text-white);
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-weight: 700;
    transition: all 0.3s;
}

.newsletter-btn:hover {
    background: var(--primary-hover);
    box-shadow: 0 0 15px rgba(15, 98, 254, 0.5);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 36px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13.5px;
}

@media(max-width: 767px) {
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

/* Mobile Drawer Nav menu styling */
@media (max-width: 991px) {
    .mobile-nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: var(--bg-main);
        flex-direction: column;
        align-items: flex-start;
        padding: 30px 16px;
        gap: 20px;
        overflow-y: auto;
        transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
        border-top: 1px solid var(--border);
        box-shadow: var(--shadow-lg);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-item {
        width: 100%;
        padding: 0;
    }
    
    .nav-link {
        font-size: 18px;
        justify-content: space-between;
        padding: 12px 0;
        border-bottom: 1px solid var(--border);
    }
    
    .nav-link::after {
        display: none;
    }
    
    .mega-dropdown {
        position: static;
        transform: none;
        width: 100%;
        max-width: 100%;
        box-shadow: none;
        border: none;
        opacity: 1;
        visibility: visible;
        display: none;
        padding: 0;
        pointer-events: auto;
        background: transparent;
        backdrop-filter: none;
    }
    
    .nav-item.active .mega-dropdown {
        display: block;
    }
    
    .mega-dropdown-header {
        display: none;
    }
    
    .mega-dropdown-content {
        grid-template-columns: 1fr;
        padding: 16px 8px;
        gap: 24px;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 56px;
    }
    
    .hero-animation-container {
        height: 400px;
    }
    
    .hero-headline {
        font-size: 46px;
    }
}

/* Homepage Search Wrapper Focus Glow */
.home-search-wrapper:focus-within {
    border-color: var(--primary) !important;
    box-shadow: 0 0 25px rgba(15, 98, 254, 0.25), var(--shadow-sm) !important;
}
body.dark-mode .home-search-wrapper:focus-within {
    border-color: var(--accent) !important;
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.25), var(--shadow-sm) !important;
}

/* Advanced AI Passport Photo Maker Styles System */
.passport-tool-wrapper {
    width: 100%;
    margin: 0 auto;
}

/* Steps progress flow */
.process-flow-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 680px;
    margin: 0 auto 48px;
    padding: 0 16px;
}

.flow-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
    z-index: 2;
    transition: all 0.3s ease;
    opacity: 0.5;
}

.flow-step.active {
    opacity: 1;
}

.step-number {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-circle);
    background: var(--bg-card);
    border: 2px solid var(--border);
    color: var(--text-muted);
    font-weight: 800;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: var(--shadow-sm);
}

.flow-step.active .step-number {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    box-shadow: 0 0 15px rgba(15, 98, 254, 0.35);
}

body.dark-mode .flow-step.active .step-number {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-color: var(--accent);
    color: #03060C;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.35);
}

.step-label {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
}

.flow-step.active .step-label {
    color: var(--text-main);
}

.flow-step-connector {
    flex-grow: 1;
    height: 2px;
    background: var(--border);
    margin: 0 16px;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
}

/* Step container layout split */
.workspace-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: stretch;
}

@media(max-width: 767px) {
    .workspace-split {
        grid-template-columns: 1fr;
    }
}

/* Camera capture card styling */
.camera-capture-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    justify-content: center;
}

.camera-preview-box {
    width: 100%;
    height: 220px;
    background: var(--bg-alt);
    border: 1.5px dashed var(--border);
    border-radius: var(--radius-md);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.camera-placeholder {
    text-align: center;
    padding: 24px;
    color: var(--text-muted);
}

.camera-icon {
    font-size: 40px;
    margin-bottom: 8px;
    display: block;
}

.camera-placeholder p {
    font-size: 13px;
    font-weight: 600;
}

/* Simulated AI scanner animations */
.processing-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 60px 40px;
    text-align: center;
    max-width: 580px;
    margin: 0 auto;
    box-shadow: var(--shadow-md);
}

.scanning-avatar-box {
    width: 180px;
    height: 220px;
    border-radius: var(--radius-md);
    margin: 0 auto 36px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--border);
}

.laser-scanner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent, #00F0FF, transparent);
    box-shadow: 0 0 12px #00F0FF;
    animation: sweepLaser 2s ease-in-out infinite;
}

@keyframes sweepLaser {
    0%, 100% { top: 0%; }
    50% { top: 98%; }
}

.processing-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 8px;
}

.processing-subtitle {
    font-size: 13.5px;
    color: var(--text-muted);
    margin-bottom: 28px;
}

.ai-progress-bar-container {
    width: 100%;
    height: 6px;
    background: var(--border);
    border-radius: 4px;
    overflow: hidden;
}

.ai-progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transition: width 0.1s linear;
}

/* Trust Badges row */
.trust-badges-row {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.trust-badge {
    padding: 8px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 40px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    box-shadow: var(--shadow-sm);
}

/* Before / After split comparison slider */
.comparison-container {
    position: relative;
    width: 100%;
    height: 460px;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    background: var(--bg-alt);
    user-select: none;
}

.slider-image-before {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
    background: #000;
}

.slider-image-after {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: #fff;
}

.slider-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background: var(--white);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
    cursor: ew-resize;
    z-index: 2;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-handle::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--white);
    border: 3px solid var(--primary);
    box-shadow: var(--shadow-md);
    z-index: 3;
}

body.dark-mode .slider-handle::after {
    border-color: var(--accent);
    background: #060913;
}

.slider-arrow {
    position: absolute;
    font-size: 10px;
    font-weight: 900;
    color: var(--primary);
    z-index: 4;
    pointer-events: none;
}

body.dark-mode .slider-arrow {
    color: var(--accent);
}

.arrow-left { transform: translateX(-11px); }
.arrow-right { transform: translateX(11px); }

.slider-label {
    position: absolute;
    bottom: 16px;
    padding: 6px 12px;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    color: var(--white);
    font-size: 11px;
    font-weight: 800;
    border-radius: 4px;
    z-index: 5;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    pointer-events: none;
}

.label-before { left: 16px; }
.label-after { right: 16px; }

.slider-hint {
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
    margin-top: 12px;
    margin-bottom: 24px;
}

/* Swatches grid background */
.bg-swatches-grid {
    display: flex;
    gap: 12px;
    align-items: center;
}

.bg-swatch {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
}

.bg-swatch.active {
    border-color: var(--primary);
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(15, 98, 254, 0.25);
}

body.dark-mode .bg-swatch.active {
    border-color: var(--accent);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.25);
}

.color-picker-wrapper {
    position: relative;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-alt);
}

.color-picker-wrapper input[type="color"] {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0;
    cursor: pointer;
}

.color-picker-wrapper span {
    font-size: 16px;
    pointer-events: none;
}

/* AI Biometric Checklist */
.ai-checker-panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px;
}

.checker-header h4, .checker-header h3 {
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 18px;
    color: var(--text-main);
}

.checker-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 18px;
}

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

.checker-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-alt);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.chk-status {
    font-size: 16px;
    flex-shrink: 0;
}

.chk-label {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--text-muted);
}

.checker-verdict {
    padding: 12px;
    background: rgba(16, 185, 129, 0.05);
    color: var(--secondary-hover);
    border: 1px solid rgba(16, 185, 129, 0.15);
    border-radius: var(--radius-sm);
    text-align: center;
    font-size: 13.5px;
    font-weight: 700;
}

.slider-header-info {
    display: flex;
    justify-content: space-between;
    font-size: 12.5px;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 6px;
}

/* PDF Editor Mobile Responsive Canvas & Workspace Styles */
.pdf-page-wrapper {
    position: relative;
    max-width: 100%;
    margin: 0 auto 24px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.pdf-page-canvas {
    max-width: 100%;
    height: auto !important;
    display: block;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border-radius: var(--radius-sm);
}
.pdf-page-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    touch-action: none; /* Prevents default browser panning and zooming behaviors on touch */
}
@media (max-width: 767px) {
    .pdf-editor-toolbar {
        padding: 10px !important;
        gap: 8px !important;
        justify-content: center;
    }
    .pdf-editor-toolbar button {
        padding: 5px 10px !important;
        font-size: 11px !important;
    }
    .pdf-pages-scroll-container {
        padding: 10px !important;
        max-height: 450px !important;
    }
    .pdf-text-editor-input {
        font-size: 12px !important;
        padding: 2px 4px !important;
    }
}

/* --- Global Mobile-First Viewport & Table Responsiveness Upgrades --- */
canvas {
    max-width: 100% !important;
    height: auto !important;
}

@media (max-width: 767px) {
    /* Optimize workspace card padding on smartphones to secure max preview width */
    .tool-container .container {
        padding: 0 !important;
    }
    .tool-workspace {
        padding: 16px 12px !important;
        border-radius: 0 !important;
        border-left: none !important;
        border-right: none !important;
        margin-bottom: 32px !important;
    }
    
    .seo-article-section,
    .related-tools-section {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
    
    /* Make all tabular SEO tables horizontally scrollable on tap gestures */
    .seo-article table {
        display: block !important;
        width: 100% !important;
        overflow-x: auto !important;
        white-space: nowrap !important;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Ensure breadcrumbs wrap nicely on narrow screens */
    .tool-breadcrumbs {
        flex-wrap: wrap;
        gap: 4px 8px;
    }
    
    /* Reduce hero header padding for a tighter mobile layout */
    .tool-page-header {
        padding: 60px 0 28px !important;
    }
    .tool-title {
        font-size: 28px !important;
        letter-spacing: -0.5px !important;
    }
    .tool-tagline {
        font-size: 14px !important;
    }
}

/* ==========================================================================
   ConvertXpert AI Document Scanner Extensions
   ========================================================================== */

/* Progress Step Indicator */
.scanner-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 20px 24px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-premium);
    backdrop-filter: blur(8px);
}
.scanner-step {
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0.5;
    transition: all 0.3s ease;
}
.scanner-step.active {
    opacity: 1;
}
.scanner-step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--border);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}
.scanner-step.active .scanner-step-num {
    background: var(--primary);
    color: #fff;
    border-color: #00F0FF;
    box-shadow: 0 0 10px rgba(15, 98, 254, 0.4);
}
.scanner-step-label {
    font-weight: 700;
    font-size: 14px;
    color: var(--text);
}
.scanner-step-arrow {
    font-size: 14px;
    color: var(--text-muted);
    opacity: 0.5;
}

/* Draggable Crop Container */
.scanner-crop-container {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-premium);
    display: flex;
    justify-content: center;
    align-items: center;
}
.scanner-crop-wrapper {
    position: relative;
    display: inline-block;
}
#cropSourceImage {
    display: block;
    max-width: 100%;
    max-height: 500px;
    user-select: none;
    -webkit-user-drag: none;
}
.corner-overlay-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}
.corner-handle {
    position: absolute;
    width: 24px;
    height: 24px;
    margin-left: -12px;
    margin-top: -12px;
    background: rgba(15, 98, 254, 0.7);
    border: 3px solid #00F0FF;
    border-radius: 50%;
    cursor: move;
    z-index: 20;
    box-shadow: 0 0 12px #00F0FF;
    transition: transform 0.1s ease, background 0.1s ease;
    touch-action: none;
}
.corner-handle:hover, .corner-handle:active {
    background: rgba(0, 240, 255, 0.9);
    transform: scale(1.3);
}

/* Page List & Scanned Sheets Card */
.scanner-pages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 16px;
    margin-top: 16px;
}
.scanner-page-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: var(--shadow-premium);
    transition: all 0.3s ease;
    cursor: grab;
}
.scanner-page-card:active {
    cursor: grabbing;
}
.scanner-page-card:hover {
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(15, 98, 254, 0.2);
}
.scanner-page-thumb {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid var(--border);
    background: #000;
}
.scanner-page-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(15, 98, 254, 0.9);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.scanner-page-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 4px;
}
.btn-page-action {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 14px;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
}
.btn-page-action:hover {
    background: var(--bg-alt);
    color: #EF4444;
}
.btn-page-action.move-btn:hover {
    color: var(--primary);
}

/* Before / After Slider Preview */
.scanner-split-container {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    max-height: 450px;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-premium);
    display: flex;
    justify-content: center;
    align-items: center;
}
.scanner-split-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}
.scanner-split-image canvas, .scanner-split-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
}
.scanner-split-before {
    z-index: 5;
}
.scanner-split-after {
    z-index: 10;
    width: 100%;
    clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%);
}
.scanner-split-handle {
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 100%;
    background: #00F0FF;
    z-index: 15;
    cursor: col-resize;
    box-shadow: 0 0 10px #00F0FF;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: -2px;
}
.scanner-split-handle-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #00F0FF;
    border: 3px solid var(--bg-card);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--bg-card);
    font-size: 11px;
    font-weight: 900;
    box-shadow: 0 0 8px rgba(0, 240, 255, 0.6);
}
.scanner-split-label {
    position: absolute;
    top: 12px;
    background: rgba(15, 98, 254, 0.85);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 4px;
    z-index: 12;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.scanner-split-label.label-before {
    left: 12px;
}
.scanner-split-label.label-after {
    right: 12px;
}

/* Glassmorphism Loader Panels */
.scanner-loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(12px);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
}
.scanner-loader-card {
    background: rgba(30, 41, 59, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px 40px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    text-align: center;
    max-width: 400px;
    width: 90%;
}
.scanner-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(15, 98, 254, 0.1);
    border-top: 4px solid #00F0FF;
    border-radius: 50%;
    animation: scanSpinnerSpin 1s linear infinite;
    margin: 0 auto 16px;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}
@keyframes scanSpinnerSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Neon Glow Alert Badge */
.scanner-alert-badge {
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid #00F0FF;
    color: #00F0FF;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12.5px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.15);
}

/* Mobile responsive fixes */
@media (max-width: 768px) {
    .scanner-steps {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
    .scanner-step-arrow {
        display: none;
    }
}

/* ==========================================================================
   Passport Size Photo Maker Styles
   ========================================================================= */
.passport-tool-wrapper {
    width: 100%;
    margin: 0 auto;
}

/* Steps Progress Indicator */
.passport-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid var(--border);
    backdrop-filter: blur(12px);
    border-radius: 12px;
    padding: 16px 24px;
    margin-bottom: 30px;
    gap: 8px;
}
.passport-step {
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0.5;
    transition: all 0.3s ease;
}
.passport-step.active {
    opacity: 1;
}
.passport-step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 2px solid var(--border);
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 800;
    font-size: 13px;
    color: var(--text-muted);
}
.passport-step.active .passport-step-num {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 0 10px rgba(15, 98, 254, 0.4);
}
.passport-step-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-muted);
}
.passport-step.active .passport-step-label {
    color: var(--text-primary);
}
.passport-step-arrow {
    color: var(--text-muted);
    font-weight: 900;
}

/* Alert badge */
.passport-alert-badge {
    background: rgba(0, 240, 255, 0.08);
    border: 1px solid rgba(0, 240, 255, 0.3);
    color: #00F0FF;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

/* Cropper workspace */
.cropper-view-container {
    width: 100%;
    max-height: 480px;
    min-height: 320px;
    background: #090d16;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}
.cropper-view-container img {
    max-width: 100%;
    max-height: 100%;
    display: block;
}

/* Presets grid layout */
.presets-grid .btn {
    display: flex;
    align-items: center;
    text-align: left;
    padding: 10px 16px;
    background: rgba(30, 41, 59, 0.3);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-muted);
    transition: all 0.2s ease;
}
.presets-grid .btn:hover {
    background: rgba(30, 41, 59, 0.6);
    border-color: var(--text-muted);
}
.presets-grid .btn.active-preset {
    background: rgba(15, 98, 254, 0.15);
    border-color: var(--primary);
    color: var(--text-primary);
    box-shadow: inset 0 0 4px rgba(15, 98, 254, 0.3);
}

/* Background replacement color buttons */
.color-btn {
    transition: all 0.2s ease;
}
.color-btn:hover {
    transform: scale(1.1);
}
.color-btn.active-color {
    transform: scale(1.15);
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* A4 Grid sheet compiler */
.a4-sheet-container {
    background: #1e293b;
    border: 1px solid var(--border);
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.a4-sheet-container canvas {
    max-width: 100%;
    max-height: 100%;
    display: block;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    background: white;
}

/* Loader overlays */
.passport-loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(12px);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
}
.passport-loader-card {
    background: rgba(30, 41, 59, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px 40px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    text-align: center;
    max-width: 400px;
    width: 90%;
}
.passport-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(15, 98, 254, 0.1);
    border-top: 4px solid #00F0FF;
    border-radius: 50%;
    animation: passportSpinnerSpin 1s linear infinite;
    margin: 0 auto 16px;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}
@keyframes passportSpinnerSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .passport-steps {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
        padding: 16px;
    }
    .passport-step-arrow {
        display: none;
    }
}

/* Screen Reader Only Utility for Semantic Headings */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ==========================================================================
   Passport Photo Maker SEO Content Mobile Optimizations
   ========================================================================== */

/* Compact intro section spacing */
.tool-intro-section {
    padding: 0 4px;
}
.tool-intro-section p {
    font-size: 15px !important;
    line-height: 1.7 !important;
    margin-bottom: 16px !important;
}

/* Base headers styling in SEO section */
.seo-article h2 {
    transition: color 0.3s ease;
}

/* Grids: How-To-Use and Mistakes Rejections */
@media (max-width: 768px) {
    .seo-article h2 {
        font-size: 20px !important;
        margin-top: 36px !important;
        margin-bottom: 16px !important;
        padding-left: 16px !important;
    }
    
    .seo-article h3 {
        font-size: 17px !important;
        margin-top: 24px !important;
        margin-bottom: 12px !important;
    }
    
    .seo-article p {
        font-size: 14.5px !important;
        line-height: 1.65 !important;
        margin-bottom: 16px !important;
    }
    
    .seo-article ul,
    .seo-article ol {
        padding-left: 20px !important;
        margin-bottom: 16px !important;
    }
    
    .seo-article li {
        font-size: 14.5px !important;
        line-height: 1.6 !important;
        margin-bottom: 8px !important;
    }
    
    .how-to-use-grid, .mistakes-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 16px !important;
        margin-bottom: 32px !important;
    }
    
    .step-card, .mistake-card {
        padding: 16px !important;
        border-radius: 12px !important;
        transition: transform 0.2s ease, border-color 0.2s ease !important;
    }
    
    .step-card:hover, .mistake-card:hover {
        transform: translateY(-2px);
        border-color: var(--primary) !important;
    }
    
    .step-card h3, .mistake-card h3 {
        font-size: 16px !important;
        margin-bottom: 8px !important;
        font-weight: 700 !important;
    }
    
    .step-card p, .mistake-card p {
        font-size: 13px !important;
        line-height: 1.6 !important;
        margin-bottom: 0 !important;
    }
    
    .step-icon {
        font-size: 28px !important;
        margin-bottom: 8px !important;
    }
}

/* Table Responsive Stacked Cards on Mobile (max-width: 600px) */
@media (max-width: 600px) {
    .table-responsive {
        border: none !important;
        background: transparent !important;
        overflow-x: visible !important;
        margin-bottom: 24px !important;
    }
    
    .requirements-table, 
    .requirements-table thead, 
    .requirements-table tbody, 
    .requirements-table tr, 
    .requirements-table th, 
    .requirements-table td {
        display: block !important;
        width: 100% !important;
        box-sizing: border-box;
        white-space: normal !important;
    }
    
    .requirements-table thead {
        display: none !important; /* Hide header columns */
    }
    
    .requirements-table tr {
        margin-bottom: 16px;
        background: var(--bg-card) !important;
        border: 1px solid var(--border) !important;
        border-radius: 12px !important;
        padding: 16px !important;
        box-shadow: var(--shadow-sm);
        transition: border-color 0.2s ease, box-shadow 0.2s ease;
    }
    
    .requirements-table tr:hover {
        border-color: var(--border-hover) !important;
        box-shadow: var(--shadow-md);
    }
    
    .requirements-table td {
        padding: 8px 0 !important;
        border-bottom: none !important;
        text-align: left !important;
        font-size: 13.5px !important;
        color: var(--text-main) !important;
    }
    
    .requirements-table td:not(:last-child) {
        border-bottom: 1px solid rgba(15, 98, 254, 0.05) !important;
        padding-bottom: 10px !important;
    }
    
    body.dark-mode .requirements-table td:not(:last-child) {
        border-bottom: 1px solid rgba(255, 255, 255, 0.04) !important;
    }
    
    .requirements-table td:not(:first-child) {
        padding-top: 10px !important;
    }
    
    /* Dynamically inject section headers using pseudo-elements with sleek HSL coloring */
    .requirements-table td::before {
        font-weight: 800;
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: 0.8px;
        color: var(--primary);
        display: block;
        margin-bottom: 4px;
    }
    
    body.dark-mode .requirements-table td::before {
        color: var(--accent);
    }
    
    .requirements-table tr td:nth-child(1)::before { content: "Specification"; }
    .requirements-table tr td:nth-child(2)::before { content: "Requirement"; }
    .requirements-table tr td:nth-child(3)::before { content: "Details"; }
}

/* FAQ Mobile Styling Compaction */
@media (max-width: 600px) {
    .faq-question {
        padding: 14px 16px !important;
        font-size: 14px !important;
    }
    
    .faq-question span {
        max-width: 85%;
        line-height: 1.4;
    }
    
    .faq-answer {
        padding: 0 16px !important;
    }
    
    .faq-item.active .faq-answer {
        padding: 14px 16px !important;
    }
    
    .faq-answer p {
        font-size: 13px !important;
        line-height: 1.6 !important;
        margin: 0 !important;
    }
    
    .related-internal-links {
        padding: 16px !important;
        margin-top: 24px !important;
    }
    
    .related-internal-links h3 {
        font-size: 15px !important;
    }
    
    .related-internal-links p {
        font-size: 13px !important;
        margin-bottom: 12px !important;
    }
    
    .related-internal-links a {
        font-size: 12.5px !important;
    }
}

/* Premium interactive hover styling for content cards on Image Resizer and tools pages */
.step-card, .when-card, .tool-card, .faq-item {
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
}

/* 1. Desktop Hover Highlights - Only triggered on devices that support hover pointer interaction */
@media (hover: hover) {
    .step-card:hover, .when-card:hover {
        transform: translateY(-5px);
        border-color: var(--primary) !important;
        background-color: rgba(15, 98, 254, 0.09) !important; /* Premium visible soft blue (9% opacity) */
        box-shadow: 0 15px 35px rgba(15, 98, 254, 0.12);
    }

    body.dark-mode .step-card:hover, body.dark-mode .when-card:hover {
        border-color: var(--accent) !important;
        background-color: rgba(0, 240, 255, 0.1) !important; /* Premium visible soft cyan (10% opacity) */
        box-shadow: 0 15px 35px rgba(0, 240, 255, 0.18);
    }

    /* Tool recommendation cards hover glow */
    .tool-card:hover {
        transform: translateY(-5px);
        border-color: var(--primary) !important;
        background-color: rgba(15, 98, 254, 0.09) !important;
        box-shadow: 0 18px 40px rgba(15, 98, 254, 0.15) !important;
    }

    body.dark-mode .tool-card:hover {
        border-color: var(--accent) !important;
        background-color: rgba(0, 240, 255, 0.1) !important;
        box-shadow: 0 18px 40px rgba(0, 240, 255, 0.18) !important;
    }

    /* FAQ item hover highlights */
    .faq-item:hover {
        border-color: var(--primary) !important;
        background-color: rgba(15, 98, 254, 0.06) !important; /* Elegant visible background on FAQ hover */
        box-shadow: 0 8px 25px rgba(15, 98, 254, 0.08);
    }

    body.dark-mode .faq-item:hover {
        border-color: var(--accent) !important;
        background-color: rgba(0, 240, 255, 0.06) !important;
        box-shadow: 0 8px 25px rgba(0, 240, 255, 0.1);
    }
}

/* 2. Mobile-Friendly Touch Feedback - Uses active tap state to avoid sticky hover problems */
@media (hover: none) {
    .step-card:active, .when-card:active {
        transform: scale(0.97);
        border-color: var(--primary) !important;
        background-color: rgba(15, 98, 254, 0.14) !important; /* High-contrast immediate touch highlight */
    }

    body.dark-mode .step-card:active, body.dark-mode .when-card:active {
        border-color: var(--accent) !important;
        background-color: rgba(0, 240, 255, 0.15) !important;
    }

    .tool-card:active {
        transform: scale(0.97);
        border-color: var(--primary) !important;
        background-color: rgba(15, 98, 254, 0.14) !important;
    }

    body.dark-mode .tool-card:active {
        border-color: var(--accent) !important;
        background-color: rgba(0, 240, 255, 0.15) !important;
    }

    .faq-item:active {
        border-color: var(--primary) !important;
        background-color: rgba(15, 98, 254, 0.08) !important;
    }

    body.dark-mode .faq-item:active {
        border-color: var(--accent) !important;
        background-color: rgba(0, 240, 255, 0.08) !important;
    }
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    background: var(--bg-card);
}

/* Extra small mobile responsive scales */
@media (max-width: 375px) {
    .logo-wrapper {
        font-size: 17.5px !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
    }
    .logo-wrapper img {
        height: 25px !important;
    }
}

/* ==========================================================================
   Premium About Us (SaaS-Style) Layout Styles
   ========================================================================= */
.about-hero {
    text-align: center;
    padding: 60px 40px;
    background: linear-gradient(135deg, rgba(15, 98, 254, 0.05) 0%, rgba(0, 240, 255, 0.05) 100%);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    margin-bottom: 48px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.about-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.03) 0%, transparent 60%);
    animation: rotate-hero-bg 20s infinite linear;
    pointer-events: none;
}

@keyframes rotate-hero-bg {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.about-hero-title {
    font-size: 44px;
    font-weight: 900;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--text-main) 30%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1.5px;
}

body.dark-mode .about-hero-title {
    background: linear-gradient(135deg, var(--white) 30%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.about-hero-subtitle {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.about-section-container {
    margin-bottom: 54px;
}

.about-section-title {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 2px solid var(--border);
    padding-bottom: 10px;
}

.about-section-title span.accent-dot {
    color: var(--primary);
}

body.dark-mode .about-section-title span.accent-dot {
    color: var(--accent);
}

.about-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 24px;
}

.about-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 24px;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.about-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: 0 10px 25px rgba(15, 98, 254, 0.06);
    background: rgba(255, 255, 255, 0.04);
}

body.dark-mode .about-card:hover {
    border-color: var(--accent);
    box-shadow: 0 10px 25px rgba(0, 240, 255, 0.08);
}

.about-card-icon {
    font-size: 32px;
    margin-bottom: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(15, 98, 254, 0.06);
    border: 1px solid rgba(15, 98, 254, 0.1);
}

body.dark-mode .about-card-icon {
    background: rgba(0, 240, 255, 0.06);
    border-color: rgba(0, 240, 255, 0.1);
}

.about-card-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-main);
}

.about-card-desc {
    font-size: 14.5px;
    color: var(--text-muted);
    line-height: 1.6;
}

.about-features-2col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 24px;
}

.about-badge-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.about-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 30px;
    font-weight: 700;
    font-size: 14px;
    color: var(--text-main);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.about-badge:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

body.dark-mode .about-badge:hover {
    border-color: var(--accent);
}

.about-vision-box {
    background: rgba(15, 98, 254, 0.02);
    border-left: 4px solid var(--primary);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    padding: 24px 32px;
    margin-top: 24px;
}

body.dark-mode .about-vision-box {
    background: rgba(0, 240, 255, 0.02);
    border-left-color: var(--accent);
}

.about-vision-text {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-main);
    line-height: 1.8;
}

.about-footer-card {
    text-align: center;
    background: linear-gradient(135deg, rgba(15, 98, 254, 0.03) 0%, rgba(0, 240, 255, 0.03) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 48px;
    margin-top: 64px;
    box-shadow: var(--shadow-sm);
}

.about-footer-slogan {
    font-size: 22px;
    font-weight: 900;
    color: var(--primary);
    margin-top: 20px;
    letter-spacing: -0.5px;
    text-transform: uppercase;
}

body.dark-mode .about-footer-slogan {
    color: var(--accent);
}

@media(max-width: 991px) {
    .about-card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media(max-width: 576px) {
    .about-card-grid, .about-features-2col {
        grid-template-columns: 1fr;
    }
    .about-hero {
        padding: 40px 20px;
    }
    .about-hero-title {
        font-size: 32px;
    }
    .about-footer-card {
        padding: 30px 20px;
    }
}

