:root {
    --primary: #4F46E5;
    --primary-hover: #4338CA;
    --secondary: #6366F1;
    --background: #F8FAFC;
    --text-main: #111827;
    --text-muted: #64748B;
    --white: #FFFFFF;
    --border: #E2E8F0;
    --radius: 16px;
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--background);
    color: var(--text-main);
    line-height: 1.7;
    overflow-x: hidden;
}

p {
    line-height: 1.7;
}

h1, h2, h3 {
    line-height: 1.3;
}

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

@media (min-width: 768px) {
  .container {
    padding: 0 32px;
  }
}

@media (min-width: 1200px) {
  .container {
    padding: 0 40px;
  }
}

section {
  padding: 60px 0;
}

@media (max-width: 768px) {
  section {
    padding: 40px 0;
  }
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 72px;
    display: flex;
    align-items: center;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 48px;
    width: auto;
    display: block;
    transition: transform 0.2s;
}

.logo-img:hover {
    transform: scale(1.05);
}

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

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

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 8px 20px;
    border-radius: 50px;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.nav-links a:hover {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
}

.nav-links li:last-child a {
    background: var(--primary);
    color: white;
}

.nav-links li:last-child a:hover {
    background: var(--primary-hover);
}

/* Hero Section */
.hero {
  padding: 60px 0 40px;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0) 0%, rgba(79, 70, 229, 0.04) 100%),
              radial-gradient(circle at 90% 10%, rgba(79, 70, 229, 0.08), transparent 40%),
              radial-gradient(circle at 10% 90%, rgba(129, 140, 248, 0.08), transparent 40%);
  position: relative;
  overflow: hidden;
}

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

.hero-header {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 40px;
    animation: fadeInUp 0.8s ease-out;
}

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

.hero h1 {
    font-size: 3.75rem;
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 20px;
    letter-spacing: -0.04em;
    color: var(--text-main);
}

.hero-title-black {
    color: #000000;
    -webkit-text-fill-color: #000000;
    display: inline-block;
    margin-bottom: 4px;
    transition: transform 0.3s ease;
}

.hero-title-black:hover {
    transform: scale(1.02);
}

.hero-title-gradient {
    background: linear-gradient(135deg, #4F46E5 0%, #818CF8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    transition: transform 0.3s ease;
}

.hero-title-gradient:hover {
    transform: scale(1.02);
    filter: brightness(1.1);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 24px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.ai-snippet {
    margin-top: 24px;
    padding: 20px;
    background: #f8fafc;
    border-left: 4px solid var(--primary);
    border-radius: 8px;
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.6;
    text-align: left;
}

.trust-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 0;
}

.badge {
    background: white;
    color: var(--text-main);
    padding: 8px 16px;
    border-radius: 99px;
    font-size: 0.875rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    border: 1px solid var(--border);
    transition: all 0.2s;
}

.badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-color: var(--primary);
}

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

/* Content Expansion */
.content-expansion {
    margin-top: 60px;
}

.content-expansion p,
.content-expansion h2 {
    margin-bottom: 16px;
}

.seo-content,
.unique-content,
.formats-section,
.trust-authority {
  margin-top: 60px;
}

.seo-content p,
.unique-content p {
  margin-bottom: 16px;
}

.seo-content h2,
.unique-content h2 {
  margin-bottom: 16px;
}

.seo-content h3,
.unique-content h3 {
  margin-top: 30px;
  margin-bottom: 10px;
}

.content-grid {
    display: grid;
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.content-section h2 {
    font-size: 1.75rem;
    margin-bottom: 16px;
    color: var(--text-main);
}

.content-section p {
    margin-bottom: 16px;
    line-height: 1.7;
    color: var(--text-muted);
}

.content-section ul {
    margin-bottom: 16px;
    padding-left: 20px;
}

.content-section li {
    margin-bottom: 8px;
    color: var(--text-muted);
}

/* Benefits Section */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 30px;
}

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

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

.benefit-card {
    background: white;
    padding: 24px;
    border-radius: 16px;
    border: 1px solid var(--border);
    transition: transform 0.2s ease;
}

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

.benefit-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

/* Formats Section */
.formats-section {
    margin-top: 60px;
    text-align: center;
}

.formats-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 30px;
}

.format-item {
    background: #F8FAFC;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 0.95rem;
    border: 1px solid var(--border);
    width: 100%;
    max-width: 600px;
    text-align: left;
    transition: all 0.2s ease;
}

.format-item:hover {
    border-color: var(--primary);
    background: var(--white);
    transform: translateX(5px);
}

/* Blog Section */
.blog-section {
    padding: 60px 0;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero {
        padding: 40px 0 30px;
    }

    .hero h1 {
        font-size: 2.25rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }

    .content-expansion, .tools-section, .faq-section, .blog-section, .trust-authority, .formats-section {
        padding: 40px 0;
    }
    
    .trust-badges {
        gap: 8px;
    }
    
    .badge {
        font-size: 0.75rem;
        padding: 4px 10px;
    }

    .upload-card {
        padding: 40px 20px;
        min-height: 280px;
    }

    .btn {
        min-height: 48px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.85rem;
    }
    
    .hero {
        padding: 30px 0 20px;
    }

    .content-expansion, .tools-section, .faq-section, .blog-section, .trust-authority, .formats-section {
        padding: 30px 0;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .btn-cta {
        width: 100%;
        padding: 14px 24px;
    }
}

/* Hero Grid Layout */
.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

.hero-grid.single-col {
    max-width: 700px;
}

.hero-content {
    width: 100%;
    height: 100%;
}

.settings-section {
    width: 100%;
}

@media (min-width: 992px) {
    .hero-grid:not(.single-col) {
        grid-template-columns: 1fr 1fr;
        align-items: stretch;
    }
    
    .settings-section {
        display: flex;
        height: 100%;
    }
    
    .settings-card {
        flex: 1;
        display: flex;
        flex-direction: column;
        height: 100%;
    }
    
    .action-buttons {
        margin-top: auto;
    }
}

.hidden {
    display: none !important;
}

/* Upload Card */
.upload-card {
    background: var(--white);
    border: 2px dashed rgba(79, 70, 229, 0.2);
    border-radius: 24px;
    padding: 32px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    min-height: 350px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05);
}

.upload-card:hover, .upload-card.drag-over {
    border-color: var(--primary);
    border-style: solid;
    background: #F8FAFC;
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(79, 70, 229, 0.1), 0 10px 10px -5px rgba(79, 70, 229, 0.04);
}

.upload-placeholder h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-main);
    letter-spacing: -0.02em;
}

.upload-placeholder p {
    color: var(--text-muted);
    margin-bottom: 24px;
    font-size: 1rem;
}

.upload-icon {
    color: var(--primary);
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.upload-card:hover .upload-icon {
    transform: scale(1.1) translateY(-5px);
}

.preview-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 20px;
}

.preview-container img {
    max-width: 100%;
    max-height: 300px;
    border-radius: 12px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    object-fit: contain;
}

.btn-remove {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #EF4444;
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: transform 0.2s;
    z-index: 10;
}

.btn-remove:hover {
    transform: scale(1.1);
}

/* Settings Card */
.settings-card {
    background: var(--white);
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
    border: 1px solid #F1F5F9;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.settings-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-main);
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.settings-card h3::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 20px;
    background: var(--primary);
    border-radius: 4px;
}

.control-group {
    margin-bottom: 18px;
}

.control-group label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 8px;
    color: var(--text-main);
}

.input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 12px;
}

.input-field span {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.input-field input {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #E2E8F0;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    outline: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    background: #F8FAFC;
    color: var(--text-main);
}

.input-field input:focus {
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

.checkbox-field {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s;
}

.checkbox-field:hover {
    color: var(--text-main);
}

.checkbox-field input {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
    cursor: pointer;
}

.select-field {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #E2E8F0;
    border-radius: 10px;
    background: #F8FAFC;
    font-size: 0.9rem;
    font-weight: 600;
    outline: none;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748B'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 14px;
}

.select-field:focus {
    border-color: var(--primary);
    background-color: var(--white);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

.label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.range-field {
    width: 100%;
    height: 6px;
    background: #E2E8F0;
    border-radius: 10px;
    appearance: none;
    outline: none;
    margin: 8px 0;
    cursor: pointer;
}

.range-field::-webkit-slider-runnable-track {
    width: 100%;
    height: 6px;
    cursor: pointer;
    background: #E2E8F0;
    border-radius: 10px;
}

.range-field::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--white);
    border: 2px solid var(--primary);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: -7px;
}

.range-field::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 0 0 6px rgba(79, 70, 229, 0.1);
}

.info-panel {
    background: #F8FAFC;
    border-radius: 16px;
    padding: 14px;
    margin-bottom: 20px;
    border: 1px solid #F1F5F9;
}

.info-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    margin-bottom: 6px;
}

.info-item:last-child {
    margin-bottom: 0;
}

.text-primary {
    color: var(--primary);
    font-weight: 700;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    font-size: 0.95rem;
    user-select: none;
}

.btn:active:not(:disabled) {
    transform: scale(0.96);
}

.btn-primary {
    background: linear-gradient(135deg, #4F46E5, #6366F1);
    color: white;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
}

.btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #4338CA, #4F46E5);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(79, 70, 229, 0.35);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(0) scale(0.96);
    box-shadow: 0 4px 8px rgba(79, 70, 229, 0.2);
}

.btn-cta {
    padding: 16px 48px;
    font-size: 1.1rem;
    border-radius: 50px;
    margin-top: 8px;
}

.btn-secondary {
    background: var(--white);
    color: var(--text-main);
    border: 2px solid #E2E8F0;
}

.btn-secondary:hover:not(:disabled) {
    background: var(--white);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.btn-secondary:active:not(:disabled) {
    transform: translateY(0) scale(0.96);
}

.btn-full {
    width: 100%;
    margin-bottom: 12px;
}

.btn:disabled {
    background: #F1F5F9;
    color: #94A3B8;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
    border-color: #E2E8F0;
    opacity: 0.7;
}

/* Tools Section */
.tools-section {
    padding: 40px 0;
    content-visibility: auto;
    contain-intrinsic-size: 1px 1000px;
}

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

.section-header h2 {
    font-size: 2.25rem;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.125rem;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    justify-content: center;
    margin-top: 30px;
}

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

@media (max-width: 640px) {
    .tools-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

.tool-card {
    background: var(--white);
    padding: 0;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    min-width: 0; /* Prevent overflow in grid */
    word-wrap: break-word;
    border: 1px solid transparent;
}

.tool-card a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 100%;
    padding: 28px;
}

.tool-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}

.tool-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.tool-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.tool-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    flex-grow: 1;
}

/* BLOG SECTION */
.blog-section {
    margin-top: 80px;
    padding: 60px 20px;
    background: #f9fafc;
    text-align: center;
}

.blog-title {
    font-size: 32px;
    margin-bottom: 10px;
    font-weight: 700;
}

.blog-subtitle {
    color: #666;
    margin-bottom: 40px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
    max-width: 1100px;
    margin: auto;
}

.blog-card {
    background: white;
    border-radius: 10px;
    padding: 24px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    text-decoration: none;
    color: #222;
    transition: 0.3s;
    display: block;
    text-align: center;
}

.blog-icon {
    display: block;
    margin: 0 auto 20px;
    width: 48px;
    height: 48px;
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.blog-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.blog-card p {
    font-size: 14px;
    color: #666;
}

/* Benefits & Tool Details */
.benefits-section {
    padding: 40px 0;
    border-bottom: 1px solid var(--border);
}

.benefits-section h2, .trust-authority h2 {
    font-size: 2rem;
    margin-bottom: 32px;
    text-align: center;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    color: var(--text-muted);
}

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

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

.tool-details {
    padding: 40px 0;
}

.detail-section {
    margin-bottom: 48px;
    padding: 32px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.detail-section h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: var(--primary);
}

.detail-section p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.tool-internal-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.tool-internal-links a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 6px 12px;
    background: var(--bg);
    border-radius: 6px;
    transition: all 0.2s ease;
}

.tool-internal-links a:hover {
    background: var(--primary);
    color: var(--white);
}

/* FAQ */
.faq-section {
    padding: 40px 0;
    background: var(--white);
    content-visibility: auto;
    contain-intrinsic-size: 1px 500px;
}

.seo-faq-section {
    padding-bottom: 30px;
    border-top: 1px solid var(--border);
}

.faq-grid, .faq-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    max-width: 1000px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .faq-grid, .faq-container {
        grid-template-columns: 1fr;
    }
}

.faq-item h3 {
    font-size: 1.125rem;
    margin-bottom: 12px;
}

.faq-item p {
    color: var(--text-muted);
}

.action-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-top: 8px;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-main);
    padding: 8px;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(79, 70, 229, 0.05);
}

/* Breadcrumbs */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

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

.breadcrumbs a:hover {
    text-decoration: underline;
}

.breadcrumbs span {
    color: var(--text-muted);
}

.breadcrumbs .separator {
    color: var(--border);
    font-size: 0.8rem;
}

/* Footer */
.footer {
    background: #000000;
    color: #FFFFFF;
    padding: 60px 20px 30px;
    border-top: 1px solid #333;
    margin-top: 80px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.footer-col h4,
.footer-col h3 {
    color: #FFFFFF;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

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

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col a {
    color: #94A3B8;
    text-decoration: none;
    transition: color 0.2s;
    font-size: 0.95rem;
}

.footer-col a:hover {
    color: var(--primary);
}

.footer-bottom {
    margin-top: 64px;
    padding-top: 32px;
    border-top: 1px solid #333;
    text-align: center;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
}

.footer-about {
    max-width: 800px;
    margin: 0 auto 32px;
}

.footer-about h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: #FFFFFF;
}

.footer-about p {
    color: #94A3B8;
    font-size: 0.95rem;
    line-height: 1.7;
}

.footer-bottom p {
    color: #64748B;
    font-size: 0.875rem;
}

.footer-note {
    margin-top: 8px;
    opacity: 0.8;
}

/* Error Message */
.error-message {
    background: #FEF2F2;
    border: 1px solid #FCA5A5;
    color: #B91C1C;
    padding: 12px 16px;
    border-radius: 12px;
    margin-top: 16px;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
}

@keyframes shake {
    10%, 90% { transform: translate3d(-1px, 0, 0); }
    20%, 80% { transform: translate3d(2px, 0, 0); }
    30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
    40%, 60% { transform: translate3d(4px, 0, 0); }
}

.error-message::before {
    content: '⚠️';
}

@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }
}

/* Ads */
.ad-banner {
    margin: 24px auto;
    text-align: center;
    min-height: 90px;
    max-width: 100%;
    overflow-x: auto;
    display: flex;
    justify-content: center;
}

.ad-banner iframe {
    max-width: 100% !important;
}

.ad-native {
    margin-top: 32px;
    text-align: center;
}

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

.hero, .tools-grid, .faq-grid {
    animation: fadeIn 0.6s ease-out forwards;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    width: 40px;
    height: 40px;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--text-main);
    border-radius: 2px;
    transition: all 0.3s;
}

/* Responsive Media Queries */

/* Global Responsive Rules */
img, button, input, select, textarea {
    max-width: 100%;
}

/* Tablet (max-width: 1024px) */
@media (max-width: 1024px) {
    .container {
        max-width: 95%;
    }
    
    .hero h1 {
        font-size: 3.5rem;
    }
}

/* Small Tablet / Large Phone (max-width: 768px) */
@media (max-width: 768px) {
    .header {
        height: 64px;
    }

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

    .nav-links {
        position: fixed;
        top: 64px;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 24px;
        gap: 12px;
        border-bottom: 1px solid var(--border);
        transform: translateY(-150%);
        transition: transform 0.3s ease-in-out;
        box-shadow: 0 4px 12px rgba(0,0,0,0.05);
        z-index: 999;
    }

    .nav-links.active {
        transform: translateY(0);
    }

    .nav-links a {
        width: 100%;
        text-align: center;
        padding: 12px;
    }

    .hero {
        padding: 40px 0;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

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

    .upload-card {
        padding: 32px 20px;
        min-height: 320px;
    }

    .settings-card {
        padding: 24px 20px;
    }

    .preview-container img {
        max-height: 300px;
    }

    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        width: 100%;
    }

    .tool-card {
        padding: 20px 12px;
        min-width: 0;
    }

    .tool-icon {
        font-size: 2rem;
        margin-bottom: 12px;
    }

    .tool-card h3 {
        font-size: 1.1rem;
        margin-bottom: 8px;
    }

    .tool-card p {
        font-size: 0.85rem;
    }
    
}

/* Mobile (max-width: 480px) */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.75rem;
        word-wrap: break-word;
    }

    .hero p {
        font-size: 0.95rem;
    }

    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        width: 100%;
    }

    .tool-card {
        padding: 12px 6px;
        min-width: 0;
    }

    .tool-icon {
        font-size: 1.5rem;
        margin-bottom: 8px;
    }

    .tool-card h3 {
        font-size: 0.95rem;
    }

    .tool-card p {
        font-size: 0.75rem;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .btn-cta {
        padding: 10px 24px;
        font-size: 0.9rem;
    }

    .upload-placeholder p {
        font-size: 0.85rem;
    }
    
    .logo {
        font-size: 1.1rem;
    }
}

/* Hamburger Animation */
.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

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

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* NEW BLOG + ADS + MOBILE CSS */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 20px;
}

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

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

.blog-card {
    padding: 25px;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: 0.3s;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

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

.blog-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.blog-card p {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.blog-card a {
    text-decoration: none;
    color: #111;
}

.blog-icon {
    display: block;
    margin-bottom: 20px;
    width: 48px;
    height: 48px;
}

.read-more {
display: inline-block;
margin-top: 10px;
color: #007BFF;
font-weight: 600;
}

.kb-presets {
    margin-top: 40px;
    padding: 30px;
    background: #fff;
    border-radius: 16px;
    box-shadow: var(--shadow);
    text-align: center;
}

.kb-presets h3 {
    margin-bottom: 20px;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
}

.kb-grid {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.kb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    background: #f8fafc;
    border: 1px solid var(--border);
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.kb-btn:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
}

.ad-container {
max-width: 100%;
overflow: hidden;
text-align: center;
margin: 20px 0;
}

.adsterra-container iframe {
max-width: 100% !important;
height: auto !important;
}

/* MODAL OVERLAY */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99999;
}

/* SHOW MODAL */
.modal-overlay.active {
  display: flex;
}

/* MODAL BOX */
.modal-box {
  background: #ffffff;
  padding: 28px;
  border-radius: 16px;
  max-width: 420px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0,0,0,0.15);
  animation: fadeIn 0.25s ease;
}

/* TITLE */
.modal-box h3 {
  margin-bottom: 10px;
  font-size: 20px;
}

/* TEXT */
.modal-box p {
  font-size: 14px;
  color: #475569;
  line-height: 1.6;
}

/* BUTTON AREA */
.modal-actions {
  margin-top: 20px;
  display: flex;
  gap: 12px;
  justify-content: center;
}

/* BUTTONS */
.btn-primary {
  background: #4F46E5;
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
}

.btn-primary:hover {
  background: #4338CA;
}

.btn-secondary {
  background: #E2E8F0;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
}

/* ANIMATION */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
