@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,600;9..144,900&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --font-heading: 'Fraunces', Georgia, serif;
    --font-body: 'Inter', sans-serif;
    
    /* Brand Palette - Prism Light Theme */
    --ink: #1E1B24;
    --glass: rgba(255, 255, 255, 0.6);
    --glassBorder: rgba(30, 27, 36, 0.10);
    
    /* Prism Palette */
    --r1: #FF6F91; /* Rose */
    --r2: #FFC65C; /* Amber */
    --r3: #63E6BE; /* Mint */
    --r4: #6EA8FF; /* Blue */
    --r5: #B983FF; /* Violet */
    
    /* System Colors */
    --bg-base: #FFFFFF;
    --bg-alt: #F8F8FC;
    --bg-hero: linear-gradient(135deg, #FDFDFF 0%, #F7F6FB 100%);
    
    --success: #10B981;
    --error: #EF4444;
    --warning: #F59E0B;
    
    --shadow-sm: 0 2px 8px rgba(30, 27, 36, 0.04);
    --shadow-md: 0 10px 30px -10px rgba(30, 27, 36, 0.08);
    --shadow-lg: 0 20px 40px -15px rgba(30, 27, 36, 0.12);
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-base);
    color: var(--ink);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header & Nav Styling */
.header-wrapper {
    position: absolute;
    top: 24px;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0 2rem;
    transition: var(--transition);
}

.header-container {
    background: var(--glass);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border: 1px solid var(--glassBorder);
    max-width: 920px;
    margin: 0 auto;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 1.5rem;
    box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255,255,255,0.6);
    transition: var(--transition);
}

/* Sticky top bar transition on scroll */
.header-wrapper.sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.header-wrapper.sticky .header-container {
    max-width: 100%;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    border-top: 0;
    padding: 0.8rem 2rem;
    background: rgba(255, 255, 255, 0.85);
}

/* Non-Hero Page Default Sticky Navbar */
.non-hero-page .header-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 0;
}

.non-hero-page .header-container {
    max-width: 100%;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    border-top: 0;
    padding: 0.8rem 2rem;
    background: rgba(255, 255, 255, 0.85);
}

.logo-wrapper {
    display: flex;
    align-items: center;
}

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

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-link {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--ink);
    opacity: 0.8;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
}

.nav-link:hover, .nav-link.active {
    opacity: 1;
    background: rgba(30, 27, 36, 0.05);
}

/* Mega Menu Dropdown */
.nav-item.has-mega-menu {
    position: relative;
}

.mega-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
}

.mega-arrow {
    font-size: 0.7rem;
    transition: transform 0.2s ease;
}

.has-mega-menu:hover .mega-arrow {
    transform: rotate(180deg);
}

.mega-menu-panel {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    width: 90vw;
    max-width: 820px;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--glassBorder);
    border-radius: 14px;
    box-shadow: 0 14px 30px rgba(30, 27, 36, 0.10);
    padding: 0.8rem 1rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1000;
}

.has-mega-menu:hover .mega-menu-panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.mega-menu-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.6rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid rgba(30, 27, 36, 0.06);
}

.mega-badge {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--r5);
    background: rgba(185, 131, 255, 0.1);
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
}

.mega-menu-title-block h3 {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    margin-top: 0.1rem;
}

.mega-all-btn {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--ink);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.mega-all-btn:hover {
    color: var(--r1);
}

.mega-menu-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem 0.65rem;
    margin-bottom: 0.6rem;
}

@media (max-width: 860px) {
    .mega-menu-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.mega-cat-card {
    background: rgba(30, 27, 36, 0.02);
    border: 1px solid rgba(30, 27, 36, 0.04);
    border-radius: 8px;
    padding: 0.45rem 0.65rem;
    transition: var(--transition);
}

.mega-cat-card:hover {
    background: #FFFFFF;
    box-shadow: 0 2px 8px rgba(30, 27, 36, 0.05);
    border-color: rgba(185, 131, 255, 0.3);
    transform: translateY(-1px);
}

.mega-cat-header {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 0.2rem;
}

.mega-cat-emoji {
    font-size: 0.95rem;
}

.mega-cat-title {
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--ink);
}

.mega-tool-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mega-tool-list li a {
    font-size: 0.72rem;
    color: var(--ink);
    opacity: 0.7;
    display: block;
    padding: 0.05rem 0;
    transition: opacity 0.15s;
}

.mega-tool-list li a:hover {
    opacity: 1;
    color: var(--r1);
}

.mega-menu-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(30, 27, 36, 0.06);
    font-size: 0.75rem;
}

.mega-popular-chips {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.mega-chip {
    background: rgba(30, 27, 36, 0.04);
    border: 1px solid rgba(30, 27, 36, 0.08);
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    font-size: 0.7rem;
    color: var(--ink);
    font-weight: 500;
}

.mega-chip:hover {
    background: var(--ink);
    color: white;
}

.mega-chip:hover {
    background: var(--ink);
    color: white;
}

/* Breadcrumbs Styling */
.breadcrumb-container {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.breadcrumb-nav {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--ink);
    opacity: 0.8;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    padding: 0.4rem 1.1rem;
    border-radius: 999px;
    border: 1px solid var(--glassBorder);
    box-shadow: var(--shadow-sm);
}

.breadcrumb-nav a {
    color: var(--ink);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.breadcrumb-nav a:hover {
    color: var(--r1);
    opacity: 1;
}

.breadcrumb-separator {
    font-size: 0.6rem;
    opacity: 0.4;
}

.breadcrumb-current {
    font-weight: 700;
    color: var(--r1);
    opacity: 1;
}

/* Nav CTA button styling */
.nav-cta {
    background: linear-gradient(135deg, var(--r1) 0%, var(--r5) 100%);
    color: white;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.6rem 1.2rem;
    border-radius: 999px;
    box-shadow: 0 4px 15px rgba(185, 131, 255, 0.3);
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(185, 131, 255, 0.4);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--ink);
}

/* Hero Section */
.heroWrap {
    position: relative;
    min-height: auto;
    background: var(--bg-hero);
    overflow: hidden;
    display: flex;
    align-items: center;
    padding-top: 95px;
    padding-bottom: 1.5rem;
}

.three-canvas-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 4rem 1rem 2.5rem 1rem;
}

/* Prism Gradient Text Headline */
.prism-text-gradient {
    font-size: 4rem;
    font-weight: 900;
    background: linear-gradient(to right, var(--r1), var(--r2), var(--r3), var(--r4), var(--r5));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    padding-bottom: 0.2em;
}

@media (max-width: 768px) {
    .prism-text-gradient {
        font-size: 2.8rem;
    }
}

.hero-subtext {
    font-size: 1.15rem;
    color: var(--ink);
    opacity: 0.8;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Search Bar styling */
.search-container {
    position: relative;
    max-width: 580px;
    margin: 0 auto 1.5rem auto;
}

.search-bar-wrap {
    background: var(--glass);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glassBorder);
    border-radius: 999px;
    display: flex;
    align-items: center;
    padding: 0.4rem;
    box-shadow: var(--shadow-md);
}

.search-input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 0.8rem 1.2rem;
    font-size: 1rem;
    font-family: var(--font-body);
    color: var(--ink);
    outline: none;
}

.search-input::placeholder {
    color: var(--ink);
    opacity: 0.5;
}

.search-btn {
    background: var(--ink);
    color: white;
    border: none;
    padding: 0.8rem 1.8rem;
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.search-btn:hover {
    background: #000;
}

/* Autocomplete suggestions */
.autocomplete-suggestions {
    position: absolute;
    top: 105%;
    left: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glassBorder);
    border-radius: 16px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 100;
    box-shadow: var(--shadow-lg);
    display: none;
}

.suggestion-item {
    padding: 0.8rem 1.5rem;
    text-align: left;
    cursor: pointer;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(0,0,0,0.03);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.suggestion-item:hover {
    background: var(--bg-alt);
}

.suggestion-category {
    font-size: 0.75rem;
    color: var(--r5);
    background: rgba(185, 131, 255, 0.1);
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-weight: 600;
}

/* Popular tags/chips */
.popular-chips {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1.5rem;
}

.popular-chips span {
    font-size: 0.85rem;
    opacity: 0.7;
    margin-right: 0.4rem;
}

.chip {
    background: var(--glass);
    border: 1px solid var(--glassBorder);
    padding: 0.4rem 1rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: var(--transition);
}

.chip:hover {
    background: rgba(30, 27, 36, 0.05);
    transform: translateY(-1px);
}

/* Category Sections & Tools Grid */
.section-wrapper {
    padding: 6rem 0;
}

.section-wrapper.alt-bg {
    background-color: var(--bg-alt);
}

.section-heading-cluster {
    text-align: center;
    margin-bottom: 3.5rem;
}

.eyebrow {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 700;
    color: var(--ink);
    opacity: 0.5;
    margin-bottom: 0.6rem;
    display: block;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 900;
}

.section-desc {
    font-size: 1rem;
    color: var(--ink);
    opacity: 0.7;
    max-width: 600px;
    margin: 0.8rem auto 0 auto;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.4rem;
    max-width: 1080px;
    margin: 0 auto;
}

/* Premium Card-Stack Layered Depth effect */
.tool-card {
    position: relative;
    background: #FFFFFF;
    border-radius: 14px;
    padding: 1.2rem 1.3rem;
    z-index: 10;
    box-shadow: 0 3px 14px rgba(30, 27, 36, 0.03);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.tool-card::before, .tool-card::after {
    content: '';
    position: absolute;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid var(--glassBorder);
    border-radius: 14px;
    z-index: -1;
    transition: var(--transition);
}

/* Stacking layers */
.tool-card::before {
    top: 4px;
    left: 4px;
    right: -4px;
    bottom: -4px;
    opacity: 0.5;
}

.tool-card::after {
    top: 8px;
    left: 8px;
    right: -8px;
    bottom: -8px;
    opacity: 0.2;
}

.tool-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.tool-card:hover::before {
    transform: translate(1px, 1px);
}

.tool-card:hover::after {
    transform: translate(3px, 3px);
}

/* Card content */
.card-header-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.8rem;
}

.card-icon-badge {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    background: rgba(30, 27, 36, 0.03);
    flex-shrink: 0;
}

.card-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
}

.card-description {
    font-size: 0.8rem;
    line-height: 1.4;
    color: var(--ink);
    opacity: 0.7;
    margin-bottom: 1rem;
    flex: 1;
}

.card-divider {
    border: none;
    border-top: 1px solid rgba(30, 27, 36, 0.06);
    margin-bottom: 0.8rem;
}

/* Custom card gradient button using CSS properties */
.card-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.5rem 0.8rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--cc1, var(--r1)) 0%, var(--cc2, var(--r5)) 100%);
    color: white;
    font-weight: 600;
    font-size: 0.8rem;
    transition: var(--transition);
}

.card-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--cc2, var(--r5));
}

/* Main Dashboard UI on Tool page */
.tool-dashboard-wrapper {
    padding-top: 130px;
    padding-bottom: 4rem;
}

.tool-header-block {
    text-align: center;
    margin-bottom: 2.5rem;
}

.tool-header-block h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.tool-header-block p {
    color: var(--ink);
    opacity: 0.7;
    max-width: 600px;
    margin: 0 auto;
}

/* Tool Interface Panels */
.tool-ui-container {
    max-width: 900px;
    margin: 0 auto;
}

/* Dropzone (Solid White Panel, compact & modern) */
.dropzone-panel {
    background: #FFFFFF;
    border: 2px dashed rgba(30, 27, 36, 0.15);
    border-radius: 16px;
    padding: 2.2rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
}

.dropzone-panel:hover, .dropzone-panel.dragover {
    border-color: var(--r5);
    background: rgba(185, 131, 255, 0.02);
}

.dropzone-icon {
    font-size: 2.2rem;
    margin-bottom: 0.6rem;
    color: var(--ink);
    opacity: 0.3;
}

.dropzone-title {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.dropzone-sub {
    font-size: 0.8rem;
    color: var(--ink);
    opacity: 0.5;
}

/* Configuration Panels (Solid White) */
.config-panel {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 1.4rem;
    box-shadow: var(--shadow-md);
    margin-bottom: 1.5rem;
}

.config-section-title {
    font-size: 0.98rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    border-bottom: 1px solid rgba(30,27,36,0.06);
    padding-bottom: 0.4rem;
}

.config-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    opacity: 0.8;
}

.form-control {
    padding: 0.75rem 1rem;
    border-radius: 10px;
    border: 1px solid rgba(30, 27, 36, 0.12);
    font-family: var(--font-body);
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--r5);
}

/* Sliders */
.slider-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.slider-control {
    flex: 1;
    accent-color: var(--r5);
}

.slider-val {
    font-weight: 600;
    font-size: 0.9rem;
    min-width: 40px;
}

/* Preview & Queue lists */
.queue-panel {
    background: #FFFFFF;
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
}

.file-item {
    display: flex;
    flex-direction: column;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(30, 27, 36, 0.06);
}

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

.file-item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.file-icon {
    font-size: 1.5rem;
    color: var(--r5);
}

.file-meta {
    max-width: 300px;
}

.file-name {
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-size {
    font-size: 0.75rem;
    opacity: 0.6;
}

.file-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.file-status {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
}

.status-pending {
    background: rgba(30, 27, 36, 0.05);
    color: var(--ink);
}

.status-converting {
    background: rgba(185, 131, 255, 0.1);
    color: var(--r5);
}

.status-success {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
}

.status-error {
    background: rgba(239, 68, 68, 0.15);
    color: var(--error);
}

.action-btn {
    border: none;
    background: none;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0.4rem;
    border-radius: 5px;
    transition: var(--transition);
}

.action-btn:hover {
    background: rgba(30,27,36,0.05);
}

.action-btn-download {
    background: var(--ink);
    color: white;
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
}

.action-btn-start {
    background: var(--r3);
    color: var(--ink);
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
}

/* Progress bar */
.file-progress-container {
    width: 100%;
    margin-top: 0.6rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.progress-bar-wrapper {
    flex: 1;
    height: 6px;
    background: var(--bg-alt);
    border-radius: 999px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(to right, var(--r1), var(--r5));
    width: 0%;
    transition: width 0.1s ease;
}

.progress-text {
    font-size: 0.75rem;
    font-weight: 600;
}

/* Dashboard Action Buttons block */
.dashboard-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.btn {
    padding: 0.8rem 2.2rem;
    border-radius: 999px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    transition: var(--transition);
    letter-spacing: 0.02em;
}

.btn-primary, .btn-gradient {
    background: linear-gradient(135deg, var(--r1) 0%, var(--r5) 100%);
    color: white;
    box-shadow: 0 4px 16px rgba(185, 131, 255, 0.35);
}

.btn-primary:hover, .btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(185, 131, 255, 0.5);
    color: white;
}

.btn-secondary {
    background: rgba(30, 27, 36, 0.04);
    border: 1px solid var(--glassBorder);
    color: var(--ink);
}

.btn-secondary:hover {
    background: rgba(30, 27, 36, 0.08);
    transform: translateY(-1px);
}

.btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* Editor preview layout */
.editor-preview-container {
    background: #FFFFFF;
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.preview-canvas-wrapper {
    position: relative;
    max-width: 100%;
    max-height: 500px;
    border-radius: 10px;
    overflow: hidden;
    background: #F1F1F4;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-canvas {
    max-width: 100%;
    max-height: 500px;
    display: block;
}

/* Crop handles overlay */
.crop-overlay {
    position: absolute;
    border: 2px dashed #FFF;
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.5);
    cursor: move;
}

.crop-handle {
    position: absolute;
    width: 12px;
    height: 12px;
    background: #FFF;
    border: 2px solid var(--r5);
    border-radius: 50%;
}

.crop-handle.tl { top: -6px; left: -6px; cursor: nwse-resize; }
.crop-handle.tr { top: -6px; right: -6px; cursor: nesw-resize; }
.crop-handle.bl { bottom: -6px; left: -6px; cursor: nesw-resize; }
.crop-handle.br { bottom: -6px; right: -6px; cursor: nwse-resize; }

/* Written SEO Article Section styling */
.seo-content-section {
    padding: 5rem 0;
    background-color: var(--bg-alt);
    border-top: 1px solid rgba(0,0,0,0.03);
}

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

.seo-article h2 {
    font-size: 1.8rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.seo-article h3 {
    font-size: 1.3rem;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
}

.seo-article p {
    font-size: 0.95rem;
    opacity: 0.8;
    margin-bottom: 1.2rem;
}

.seo-article ol, .seo-article ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.seo-article li {
    font-size: 0.95rem;
    opacity: 0.8;
    margin-bottom: 0.5rem;
}

/* FAQ block */
.faq-block {
    margin-top: 3rem;
    border-top: 1px solid rgba(0,0,0,0.06);
    padding-top: 2rem;
}

.faq-item {
    margin-bottom: 1.5rem;
}

.faq-question {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.faq-answer {
    font-size: 0.95rem;
    opacity: 0.8;
}

/* Related tools crosslinks */
.crosslinks-block {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0,0,0,0.06);
}

.crosslinks-title {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.crosslinks-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.crosslink-item {
    font-size: 0.85rem;
    background: #FFFFFF;
    border: 1px solid var(--glassBorder);
    padding: 0.4rem 1rem;
    border-radius: 999px;
    font-weight: 500;
}

.crosslink-item:hover {
    background: var(--ink);
    color: white;
}

/* Ads Containers (AdSense placeholding) */
.ad-slot-leaderboard {
    margin: 2rem auto;
    max-width: 728px;
    min-height: 90px;
    background: rgba(30, 27, 36, 0.02);
    border: 1px dashed rgba(30, 27, 36, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: var(--ink);
    opacity: 0.4;
    border-radius: 8px;
}

.ad-slot-in-content {
    margin: 2.5rem 0;
    min-height: 250px;
    background: rgba(30, 27, 36, 0.02);
    border: 1px dashed rgba(30, 27, 36, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: var(--ink);
    opacity: 0.4;
    border-radius: 8px;
}

/* Footer */
.footer {
    background: #FFFFFF;
    border-top: 1px solid rgba(30,27,36,0.05);
    padding: 4rem 0 2rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    color: var(--ink);
}

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

.footer-col li {
    margin-bottom: 0.6rem;
}

.footer-col a {
    font-size: 0.85rem;
    opacity: 0.7;
}

.footer-col a:hover {
    opacity: 1;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(30,27,36,0.05);
}

.footer-bottom p {
    font-size: 0.8rem;
    opacity: 0.5;
}

.footer-logo {
    display: flex;
    align-items: center;
}

/* Cookie consent banner */
.cookie-banner {
    position: fixed;
    bottom: 24px;
    left: 24px;
    right: 24px;
    max-width: 500px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glassBorder);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
    z-index: 10000;
    display: none;
    flex-direction: column;
    gap: 1rem;
}

.cookie-banner-text {
    font-size: 0.85rem;
    opacity: 0.8;
}

.cookie-banner-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 0.8rem;
}

.cookie-banner-btn {
    padding: 0.5rem 1.2rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
}

.cookie-banner-accept {
    background: var(--ink);
    color: white;
}

.cookie-banner-decline {
    background: var(--bg-alt);
    color: var(--ink);
    border: 1px solid var(--glassBorder);
}

/* Responsive Overrides */
@media (max-width: 768px) {
    .header-container {
        border-radius: 0;
        max-width: 100%;
        border-left: 0;
        border-right: 0;
        border-top: 0;
        padding: 0.8rem 1.5rem;
    }
    
    .header-wrapper {
        top: 0;
        padding: 0;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .nav-links {
        display: none; /* Collapses into mobile drawer */
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #FFFFFF;
        border-bottom: 1px solid var(--glassBorder);
        padding: 1.5rem;
        gap: 1rem;
        align-items: stretch;
        box-shadow: var(--shadow-md);
    }
    
    .nav-links.open {
        display: flex;
    }
    
    .nav-link {
        text-align: center;
        border-radius: 8px;
    }
    
    .nav-cta {
        text-align: center;
    }
}

/* Image Merger Gallery & Thumbnail Grid */
.merger-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.2rem;
    margin-bottom: 1.5rem;
}

.merger-thumb-card {
    position: relative;
    background: #FFFFFF;
    border: 1px solid rgba(30, 27, 36, 0.1);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(30, 27, 36, 0.05);
    aspect-ratio: 4 / 3;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.merger-thumb-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.merger-thumb-overlay {
    position: relative;
    z-index: 2;
    background: linear-gradient(0deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 100%);
    color: white;
    padding: 0.6rem 0.8rem;
    font-size: 0.75rem;
}

.merger-thumb-name {
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.merger-thumb-size {
    opacity: 0.75;
    font-size: 0.7rem;
}

.merger-thumb-remove {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 3;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    border-radius: 50%;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.8rem;
    transition: background 0.2s;
}

.merger-thumb-remove:hover {
    background: #e74c3c;
}

.add-image-card {
    border: 2px dashed rgba(30, 27, 36, 0.2);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    min-height: 160px;
    transition: all 0.2s ease;
    color: var(--ink);
    opacity: 0.75;
}

.add-image-card:hover {
    border-color: var(--r1);
    background: rgba(255, 255, 255, 0.95);
    opacity: 1;
    color: var(--r1);
    transform: translateY(-2px);
}

.add-image-card i {
    font-size: 1.8rem;
}

.add-image-card span {
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

@media (max-width: 768px) {
    .heroWrap {
        padding-top: 80px !important;
        padding-bottom: 0.8rem !important;
        min-height: auto !important;
    }

    .hero-content {
        padding: 2.8rem 1rem 1.6rem 1rem !important;
    }

    /* Hero & Heading Scaling */
    .prism-text-gradient {
        font-size: 2.5rem !important;
        letter-spacing: -0.02em;
    }

    .hero-subtext {
        font-size: 0.88rem !important;
        line-height: 1.5;
        margin-bottom: 1.2rem;
        padding: 0 0.5rem;
    }

    .eyebrow {
        font-size: 0.7rem !important;
        letter-spacing: 0.08em;
    }

    /* Section Headings */
    .section-title {
        font-size: 1.6rem !important;
        line-height: 1.25;
        margin-bottom: 0.5rem;
    }

    .section-desc {
        font-size: 0.85rem !important;
        line-height: 1.45;
        padding: 0 0.5rem;
    }

    .section-heading-cluster {
        margin-bottom: 2rem;
    }

    /* Category Hubs & Sitemap Header */
    .category-header, .sitemap-header, .page-header {
        margin-bottom: 1.8rem;
    }

    .category-header h1, .category-title, .sitemap-header h1, .page-header h1 {
        font-size: 1.95rem !important;
        line-height: 1.2;
    }

    .category-header p, .category-desc, .sitemap-header p, .page-header p {
        font-size: 0.85rem !important;
        line-height: 1.45;
    }

    .sitemap-cat-title {
        font-size: 1.25rem !important;
        margin-bottom: 0.8rem;
    }

    .sitemap-tool-link {
        font-size: 0.82rem !important;
        padding: 0.4rem 0.8rem;
    }

    /* Tool Dashboard Header */
    .tool-dashboard-wrapper {
        padding-top: 95px;
        padding-bottom: 2.5rem;
    }

    .tool-header-block {
        margin-bottom: 1.8rem;
    }

    .tool-header-block h1 {
        font-size: 1.95rem !important;
        line-height: 1.2;
    }

    .tool-header-block p {
        font-size: 0.85rem !important;
        line-height: 1.45;
    }

    /* Static Legal & Info Pages (About, FAQ, How It Works, Terms, Privacy, Contact) */
    .legal-wrapper, .info-wrapper, .static-page-wrapper {
        padding-top: 95px;
        padding-bottom: 2.5rem;
    }

    .legal-wrapper h1, .info-wrapper h1, .static-page-wrapper h1 {
        font-size: 1.95rem !important;
        line-height: 1.2;
        margin-bottom: 0.8rem;
    }

    .legal-wrapper h2, .info-wrapper h2, .static-page-wrapper h2 {
        font-size: 1.4rem !important;
        margin-top: 1.6rem;
        margin-bottom: 0.6rem;
        line-height: 1.25;
    }

    .legal-wrapper h3, .info-wrapper h3, .static-page-wrapper h3 {
        font-size: 1.15rem !important;
        margin-top: 1.2rem;
        margin-bottom: 0.5rem;
        line-height: 1.3;
    }

    .legal-wrapper p, .info-wrapper p, .static-page-wrapper p,
    .legal-wrapper li, .info-wrapper li, .static-page-wrapper li {
        font-size: 0.86rem !important;
        line-height: 1.55;
        margin-bottom: 0.8rem;
    }

    /* Article & SEO Written Content */
    .seo-article {
        font-size: 0.88rem !important;
        line-height: 1.6;
    }

    .seo-article h2 {
        font-size: 1.4rem !important;
        margin-top: 1.6rem;
        margin-bottom: 0.6rem;
        line-height: 1.25;
    }

    .seo-article h3 {
        font-size: 1.15rem !important;
        margin-top: 1.2rem;
        margin-bottom: 0.5rem;
        line-height: 1.3;
    }

    .seo-article p, .seo-article li {
        font-size: 0.86rem !important;
        line-height: 1.55;
        margin-bottom: 0.8rem;
    }

    .faq-question {
        font-size: 0.92rem !important;
        padding: 0.8rem 0;
    }

    .faq-answer {
        font-size: 0.84rem !important;
        line-height: 1.5;
    }

    /* Cards, Controls & Forms */
    .card-title {
        font-size: 0.92rem !important;
    }

    .card-description {
        font-size: 0.76rem !important;
        line-height: 1.4;
    }

    .card-btn {
        font-size: 0.76rem !important;
        padding: 0.45rem 0.7rem;
    }

    .btn {
        padding: 0.7rem 1.6rem !important;
        font-size: 0.86rem !important;
    }

    .form-group label {
        font-size: 0.8rem !important;
    }

    .form-control {
        font-size: 0.85rem !important;
        padding: 0.6rem 0.8rem;
    }

    /* Search Input & Chips */
    .search-bar-wrap {
        padding: 0.2rem 0.4rem;
    }

    .search-input {
        font-size: 0.85rem !important;
        padding: 0.6rem 0.6rem;
    }

    .search-btn {
        padding: 0.6rem 1.2rem !important;
        font-size: 0.82rem !important;
    }

    .chip {
        font-size: 0.72rem !important;
        padding: 0.3rem 0.75rem;
    }

    /* Compact Tool Page UI Elements for Mobile */
    .dropzone-panel {
        padding: 1.4rem 1rem !important;
        border-radius: 14px !important;
        margin-bottom: 1rem !important;
    }

    .dropzone-icon {
        font-size: 1.6rem !important;
        margin-bottom: 0.4rem !important;
    }

    .dropzone-title {
        font-size: 0.9rem !important;
        margin-bottom: 0.15rem !important;
    }

    .dropzone-sub {
        font-size: 0.74rem !important;
    }

    .config-panel {
        padding: 1rem !important;
        border-radius: 14px !important;
        margin-bottom: 1rem !important;
    }

    .config-section-title {
        font-size: 0.88rem !important;
        margin-bottom: 0.6rem !important;
        padding-bottom: 0.4rem !important;
    }

    .queue-panel {
        padding: 0.9rem !important;
        border-radius: 14px !important;
        margin-bottom: 1rem !important;
    }

    .file-item {
        padding: 0.5rem 0 !important;
    }

    .file-icon {
        font-size: 1.15rem !important;
    }

    .file-name {
        font-size: 0.8rem !important;
    }

    .file-size {
        font-size: 0.7rem !important;
    }

    .file-status {
        font-size: 0.7rem !important;
        padding: 0.15rem 0.5rem !important;
    }

    .action-btn-download, .action-btn-start {
        font-size: 0.72rem !important;
        padding: 0.3rem 0.65rem !important;
    }

    /* Action Bar Buttons */
    .dashboard-actions {
        margin-top: 1rem !important;
        gap: 0.5rem !important;
    }

    .dashboard-actions .btn {
        padding: 0.55rem 1.1rem !important;
        font-size: 0.78rem !important;
        border-radius: 999px !important;
        gap: 0.35rem !important;
    }

    .dashboard-actions .btn i {
        font-size: 0.78rem !important;
    }

    /* Footer & Cookie Banner */
    .footer {
        padding: 2.5rem 0 1.5rem 0;
    }

    .footer-col h4 {
        font-size: 0.88rem !important;
        margin-bottom: 0.8rem;
    }

    .footer-col a, .footer-bottom p {
        font-size: 0.78rem !important;
    }

    .cookie-banner-text {
        font-size: 0.78rem !important;
    }
}

/* Share Tool Container (Prism Light Theme) */
.share-tool-container {
    max-width: 900px;
    margin: 2rem auto 0 auto;
}

.share-tool-card {
    background: #FFFFFF;
    border: 1px solid var(--glassBorder);
    border-radius: 16px;
    padding: 1.25rem 1.8rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.2rem;
    transition: var(--transition);
}

.share-tool-card:hover {
    border-color: rgba(185, 131, 255, 0.3);
    box-shadow: var(--shadow-md);
}

.share-tool-header {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.share-icon-badge {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: rgba(185, 131, 255, 0.12);
    color: var(--r5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.share-tool-titles {
    display: flex;
    flex-direction: column;
}

.share-eyebrow {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--r5);
}

.share-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--ink);
    margin: 0;
}

.share-actions-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 0.95rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--ink);
    background: rgba(30, 27, 36, 0.04);
    border: 1px solid rgba(30, 27, 36, 0.08);
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.share-btn-copy:hover, .share-btn-copy.copied {
    background: var(--ink);
    color: white;
    border-color: var(--ink);
}

.share-btn-twitter:hover {
    background: #1DA1F2;
    color: white;
    border-color: #1DA1F2;
}

.share-btn-facebook:hover {
    background: #1877F2;
    color: white;
    border-color: #1877F2;
}

.share-btn-whatsapp:hover {
    background: #25D366;
    color: white;
    border-color: #25D366;
}

.share-btn-linkedin:hover {
    background: #0A66C2;
    color: white;
    border-color: #0A66C2;
}

.share-btn-telegram:hover {
    background: #0088cc;
    color: white;
    border-color: #0088cc;
}

@media (max-width: 768px) {
    .share-tool-card {
        padding: 1rem;
        flex-direction: column;
        align-items: stretch;
        gap: 0.8rem;
    }

    .share-tool-header {
        justify-content: center;
    }

    .share-title {
        font-size: 0.95rem;
        text-align: center;
    }

    .share-eyebrow {
        text-align: center;
    }

    .share-actions-row {
        justify-content: center;
        gap: 0.4rem;
    }

    .share-btn {
        padding: 0.45rem 0.75rem;
        font-size: 0.74rem;
    }
}
