@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-gradient: linear-gradient(135deg, #0b0f19 0%, #111827 100%);
    --card-bg: rgba(30, 41, 59, 0.45);
    --card-border: rgba(255, 255, 255, 0.08);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --primary-grad: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    --primary-color: #6366f1;
    --secondary-grad: linear-gradient(135deg, #10b981 0%, #14b8a6 100%);
    --secondary-color: #10b981;
    --accent-grad: linear-gradient(135deg, #f43f5e 0%, #f97316 100%);
    --accent-color: #f43f5e;
    
    --glow-color: rgba(99, 102, 241, 0.15);
    --shadow-sm: 0 2px 8px -2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.4), 0 8px 16px -6px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 20px 40px -10px rgba(0, 0, 0, 0.5), 0 12px 24px -8px rgba(0, 0, 0, 0.5);
    
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Theme Variables */
[data-theme="light"] {
    --bg-gradient: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    --card-bg: rgba(255, 255, 255, 0.7);
    --card-border: rgba(15, 23, 42, 0.06);
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --glow-color: rgba(99, 102, 241, 0.08);
    --shadow-sm: 0 2px 8px -2px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 16px -6px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 20px 40px -10px rgba(15, 23, 42, 0.12), 0 12px 24px -8px rgba(15, 23, 42, 0.12);
}

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

html, body {
    font-family: 'Outfit', sans-serif;
    background: var(--bg-gradient);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    max-width: 100%;
    line-height: 1.6;
    transition: var(--transition);
    position: relative;
}

/* Dynamic Ambient Glow Orbs */
.ambient-glow {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    top: -100px;
    left: -100px;
    z-index: -1;
    pointer-events: none;
    filter: blur(80px);
    animation: pulse Glow 10s infinite alternate;
}

.ambient-glow-2 {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(244, 63, 94, 0.1) 0%, rgba(0, 0, 0, 0) 70%);
    bottom: -150px;
    right: -100px;
    z-index: -1;
    pointer-events: none;
    filter: blur(100px);
}

@keyframes pulseGlow {
    0% { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.1) translate(20px, 20px); }
}

/* Header & Navigation (Ultra-Premium Glassmorphic Sticky Header) */
header {
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: var(--transition);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03), inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

[data-theme="light"] header {
    background: rgba(255, 255, 255, 0.75);
    border-bottom: 1px solid rgba(15, 23, 42, 0.05);
    box-shadow: 0 4px 30px rgba(15, 23, 42, 0.02), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.85rem 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--accent-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: var(--transition);
}

.logo:hover {
    transform: scale(1.02);
}

.logo svg {
    width: 2.2rem;
    height: 2.2rem;
    stroke: url(#accentGradient);
    fill: none;
}

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

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.92rem;
    transition: var(--transition);
    padding: 0.5rem 1.25rem;
    border-radius: 9999px; /* Premium rounded pill */
    position: relative;
    overflow: hidden;
}

.nav-link:hover {
    color: var(--text-primary);
    background: rgba(99, 102, 241, 0.08); /* Indigo subtle glow tint */
    box-shadow: inset 0 0 12px rgba(99, 102, 241, 0.05);
}

.theme-toggle-btn {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    color: var(--text-primary);
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.theme-toggle-btn:hover {
    transform: rotate(15deg) scale(1.05);
    border-color: var(--primary-color);
}

/* Page Layout Main */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
    position: relative;
    z-index: 10;
}

/* Hero Section */
.hero {
    text-align: center;
    margin-bottom: 3.5rem;
    animation: fadeIn 0.8s ease-out;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    background: linear-gradient(to right, var(--text-primary), var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero h1 span {
    background: var(--accent-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 1.5rem auto;
}

/* Grid layout for PDF tools */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.tool-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius-md);
    padding: 2rem;
    text-decoration: none;
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(800px circle at var(--x, 0px) var(--y, 0px), rgba(255,255,255,0.06), transparent 40%);
    pointer-events: none;
}

.tool-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-color);
    box-shadow: 0 12px 30px -10px var(--glow-color), var(--shadow-md);
}

.tool-icon-wrapper {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--card-border);
    transition: var(--transition);
}

.tool-card:hover .tool-icon-wrapper {
    background: var(--accent-grad);
    transform: scale(1.05);
    border-color: transparent;
}

.tool-card:hover .tool-icon-wrapper svg {
    stroke: #ffffff;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.15));
}

.tool-icon-wrapper svg {
    width: 28px;
    height: 28px;
    stroke: var(--accent-color);
    fill: none;
    stroke-width: 2;
    transition: var(--transition);
}

.tool-card h2 {
    font-size: 1.35rem;
    font-weight: 700;
}

.tool-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Tool Actions Dashboard Layout */
.tool-dashboard {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    padding: 3rem;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    transition: var(--transition);
    position: relative;
}

/* Beautiful Drag-and-Drop Area */
.dropzone {
    border: 2px dashed rgba(255, 255, 255, 0.15);
    width: 100%;
    max-width: 700px;
    border-radius: var(--radius-md);
    padding: 4rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.01);
    position: relative;
}

.dropzone:hover, .dropzone.dragover {
    border-color: var(--accent-color);
    background: rgba(244, 63, 94, 0.03);
    box-shadow: 0 0 20px rgba(244, 63, 94, 0.1) inset;
}

.dropzone-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 1.5rem auto;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--card-border);
    transition: var(--transition);
}

.dropzone:hover .dropzone-icon {
    background: var(--accent-grad);
    transform: scale(1.05);
    border-color: transparent;
}

.dropzone:hover .dropzone-icon svg {
    stroke: #ffffff;
}

.dropzone-icon svg {
    width: 32px;
    height: 32px;
    stroke: var(--accent-color);
    fill: none;
    stroke-width: 2;
    transition: var(--transition);
}

.dropzone h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.dropzone p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.btn-upload {
    background: var(--accent-grad);
    color: #ffffff;
    border: none;
    padding: 0.85rem 2rem;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(244, 63, 94, 0.3);
    transition: var(--transition);
}

.btn-upload:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(244, 63, 94, 0.5);
}

/* File list & sorting area */
.file-list {
    width: 100%;
    max-width: 800px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.file-item {
    background: rgba(15, 23, 42, 0.3);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 1rem;
    text-align: center;
    position: relative;
    cursor: grab;
    transition: var(--transition);
    user-select: none;
}

.file-item:active {
    cursor: grabbing;
}

.file-item-delete {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    background: rgba(244, 63, 94, 0.2);
    border: 1px solid rgba(244, 63, 94, 0.4);
    border-radius: 50%;
    color: #f43f5e;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.file-item-delete:hover {
    background: #f43f5e;
    color: #ffffff;
}

.file-thumbnail {
    width: 90px;
    height: 120px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-sm);
    margin: 0.5rem auto 1rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.file-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.file-thumbnail svg {
    width: 36px;
    height: 36px;
    stroke: var(--accent-color);
    fill: none;
    stroke-width: 1.5;
}

.file-info {
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-primary);
}

.file-size {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

/* Control Panel & Config (For watermarks, rotate, splits) */
.control-panel {
    background: rgba(15, 23, 42, 0.2);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    width: 100%;
    max-width: 800px;
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.control-group {
    flex: 1 1 200px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.control-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.control-input {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    padding: 0.6rem 0.8rem;
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition);
}

.control-input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 10px rgba(244, 63, 94, 0.15);
}

.action-bar {
    margin-top: 2.5rem;
    display: flex;
    gap: 1rem;
    width: 100%;
    max-width: 800px;
    justify-content: center;
}

.btn-primary {
    background: var(--accent-grad);
    color: #ffffff;
    border: none;
    padding: 1rem 3rem;
    border-radius: var(--radius-md);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(244, 63, 94, 0.35);
    transition: var(--transition);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(244, 63, 94, 0.5);
}

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

.btn-secondary {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    color: var(--text-primary);
    padding: 1rem 2.5rem;
    border-radius: var(--radius-md);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--text-secondary);
}

/* Live Loading Overlay */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    z-index: 50;
    animation: fadeIn 0.3s ease-out;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(244, 63, 94, 0.1);
    border-top: 4px solid var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success Download Dashboard Screen */
.success-screen {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    animation: scaleUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.recommend-card:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: var(--primary-color) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.success-icon {
    width: 80px;
    height: 80px;
    background: rgba(16, 185, 129, 0.1);
    border: 2px solid var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
    animation: pulseGlowSuccess 2s infinite;
}

.success-icon svg {
    width: 44px;
    height: 44px;
    stroke-width: 2.5;
}

@keyframes pulseGlowSuccess {
    0% { box-shadow: 0 0 0 0px rgba(16, 185, 129, 0.3); }
    100% { box-shadow: 0 0 0 15px rgba(16, 185, 129, 0); }
}

/* Rich SEO Content Section under tools */
.seo-section {
    margin-top: 5rem;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: 3rem;
    box-shadow: var(--shadow-md);
}

.seo-section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
    background: var(--primary-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.seo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-bottom: 4rem;
}

.seo-block h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.seo-block h3 svg {
    stroke: var(--accent-color);
    width: 24px;
    height: 24px;
    fill: none;
}

.seo-block p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* FAQ Accordion Styling */
.faq-accordion {
    max-width: 800px;
    margin: 3rem auto 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--card-border);
    padding: 1.5rem 0;
}

.faq-question {
    font-weight: 600;
    font-size: 1.15rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    color: var(--text-secondary);
    font-size: 0.95rem;
    transition: var(--transition);
}

.faq-item.active .faq-answer {
    max-height: 200px;
    margin-top: 1rem;
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--accent-color);
    transition: var(--transition);
}

.faq-item.active .faq-question::after {
    content: '−';
    transform: rotate(180deg);
}

/* Premium AdSense Slots */
.ad-slot {
    margin: 1.5rem auto !important;
    text-align: center !important;
    position: relative !important;
    max-width: 100% !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    background: transparent !important;
    border: none !important;
    min-height: 0 !important;
    padding: 0 !important;
}

.ad-slot ins.adsbygoogle {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
    margin: 0 auto !important;
}

/* Hide placeholder text and labels entirely so they are invisible until AdSense loads an ad */
.ad-slot-placeholder,
.ad-slot::before {
    display: none !important;
}

/* Footer Section (Premium Glassmorphic Dark Card) */
footer {
    background: rgba(11, 15, 25, 0.85); /* Deep sleek card dark */
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 4.5rem 2rem 2rem 2rem;
    margin-top: 6rem;
    position: relative;
    z-index: 10;
    box-shadow: 0 -10px 40px -15px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

[data-theme="light"] footer {
    background: rgba(241, 245, 249, 0.9); /* Premium white glass */
    border-top: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 -10px 40px -15px rgba(15, 23, 42, 0.02);
}

footer::before {
    content: '';
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.07) 0%, rgba(0, 0, 0, 0) 70%);
    z-index: -1;
    pointer-events: none;
    filter: blur(60px);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3.5rem;
    margin-bottom: 3.5rem;
}

.footer-logo-col .logo {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    filter: drop-shadow(0 0 12px rgba(244, 63, 94, 0.25)); /* Glowing red-orange logo shadow */
}

.footer-logo-col p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    margin-top: 1rem;
    line-height: 1.6;
}

.footer-col h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--primary-grad);
    border-radius: 999px;
}

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

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

.footer-col ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.92rem;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.footer-col ul li a::before {
    content: '→';
    opacity: 0;
    transform: translateX(-6px);
    transition: var(--transition);
    color: var(--primary-color);
    font-size: 0.85rem;
    display: inline-block;
}

.footer-col ul li a:hover {
    color: var(--primary-color);
    transform: translateX(6px);
}

.footer-col ul li a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    border-top: 1px solid var(--card-border);
    padding-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.88rem;
}

/* Common Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes scaleUp {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* Hamburger Button & Overlay Styles */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 200;
}

.hamburger-btn span {
    width: 100%;
    height: 2px;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hamburger-btn.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger-btn.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 120;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.menu-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
    .ambient-glow,
    .ambient-glow-2 {
        display: none !important;
    }

    .nav-container {
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 0.75rem 1.5rem !important;
        width: 100% !important;
        flex-wrap: nowrap !important;
    }
    
    .hamburger-btn {
        display: flex !important;
    }
    
    .nav-links {
        position: fixed !important;
        top: 0 !important;
        right: -100% !important;
        width: 280px !important;
        height: 100vh !important;
        background: rgba(11, 15, 25, 0.96) !important;
        backdrop-filter: blur(24px) !important;
        -webkit-backdrop-filter: blur(24px) !important;
        border-left: 1px solid rgba(255, 255, 255, 0.08) !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        align-items: flex-start !important;
        padding: 6rem 2rem 2rem 2rem !important;
        gap: 1.25rem !important;
        z-index: 150 !important;
        transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5) !important;
    }
    
    .nav-links.active {
        right: 0 !important;
    }
    
    .nav-link {
        width: 100% !important;
        font-size: 1.05rem !important;
        padding: 0.8rem 1.5rem !important;
        border-radius: var(--radius-sm) !important;
        text-align: left !important;
        display: flex !important;
        align-items: center !important;
        background: rgba(255, 255, 255, 0.02) !important;
        border: 1px solid rgba(255, 255, 255, 0.03) !important;
    }

    [data-theme="light"] .nav-links {
        background: rgba(255, 255, 255, 0.96) !important;
        border-left: 1px solid rgba(15, 23, 42, 0.08) !important;
        box-shadow: -10px 0 30px rgba(15, 23, 42, 0.05) !important;
    }
    
    [data-theme="light"] .nav-link {
        background: rgba(15, 23, 42, 0.02) !important;
        border: 1px solid rgba(15, 23, 42, 0.03) !important;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1.05rem;
    }
    
    .tool-dashboard {
        padding: 1.5rem;
        min-height: 300px;
    }
    
    .seo-section {
        padding: 1.5rem;
    }
    
    .seo-section h2 {
        font-size: 1.6rem;
    }

    .seo-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    
    .footer-container {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
        text-align: center;
    }
    
    .footer-col h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 580px) {
    .logo span {
        font-size: 1.15rem !important;
    }
    
    .logo svg {
        width: 1.7rem !important;
        height: 1.7rem !important;
    }

    .tools-grid {
        grid-template-columns: 1fr !important;
        padding: 0.5rem !important;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .category-tabs {
        gap: 0.5rem !important;
    }
    
    .tab-chip {
        padding: 0.4rem 1rem !important;
        font-size: 0.8rem !important;
    }
}

/* ====================================================================
   ✨ COMPACT SUCCESS SCREENS GLOBAL OVERRIDES (ALL 12 TOOLS)
   ==================================================================== */
.success-screen {
    gap: 0.75rem !important;
}

.success-screen h2 {
    font-size: 1.55rem !important;
    margin-top: 0.25rem !important;
    margin-bottom: 0.15rem !important;
}

.success-screen p {
    font-size: 0.92rem !important;
    margin-bottom: 0.2rem !important;
    line-height: 1.45 !important;
}

.success-screen .success-icon {
    width: 54px !important;
    height: 54px !important;
    border-width: 2px !important;
    margin-bottom: 0.15rem !important;
}

.success-screen .success-icon svg {
    width: 28px !important;
    height: 28px !important;
    stroke-width: 3 !important;
}

.success-screen .action-bar {
    margin-top: 0.85rem !important;
    gap: 0.75rem !important;
}

.success-screen .btn-primary,
.success-screen .btn-secondary {
    padding: 0.7rem 2rem !important;
    font-size: 0.95rem !important;
    border-radius: var(--radius-sm) !important;
}

.success-screen .recommendations-panel {
    margin-top: 1.25rem !important;
    padding-top: 1rem !important;
}

.success-screen .recommendations-panel h4 {
    margin-bottom: 0.75rem !important;
    font-size: 0.85rem !important;
}

.success-screen .recommend-card {
    padding: 0.6rem 0.85rem !important;
    border-radius: var(--radius-sm) !important;
}

.success-screen .recommend-card svg {
    width: 16px !important;
    height: 16px !important;
}

.success-screen .recommend-card span {
    font-size: 0.85rem !important;
}
