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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1e293b;
    background-color: #ffffff;
    overflow-x: hidden;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1rem;
    color: #64748b;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 48px;
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px 0 rgba(59, 130, 246, 0.4);
}

.btn-secondary {
    background: white;
    color: #3b82f6;
    border: 2px solid #3b82f6;
}

.btn-secondary:hover {
    background: #3b82f6;
    color: white;
    transform: translateY(-2px);
}

.btn-large {
    padding: 16px 32px;
    font-size: 18px;
    min-height: 56px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23e2e8f0" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    text-align: center;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: #0f172a;
    text-align: center;
}


.highlight {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.125rem;
    color: #64748b;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 3rem;
    align-items: center;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 400px;
    margin: 0 auto;
}

.stat {
    text-align: center;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: #3b82f6;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 500;
}


/* Featured Tools Section */
.featured-tools {
    padding: 80px 0;
    background: white;
}

.section-title {
    text-align: center;
    font-size: 2.25rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    font-size: 1.125rem;
    color: #64748b;
    margin-bottom: 3rem;
}

.tools-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.tool-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.tool-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: #3b82f6;
}

.tool-card:hover::before {
    transform: scaleX(1);
}

.tool-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.tool-icon svg {
    width: 32px;
    height: 32px;
}

.tool-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 12px;
}

.tool-description {
    color: #64748b;
    margin-bottom: 20px;
    line-height: 1.6;
}

.tool-features {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.feature-tag {
    background: #f1f5f9;
    color: #475569;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.tool-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.usage-count {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 500;
}

.rating {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stars {
    color: #fbbf24;
    font-size: 0.875rem;
}

.rating-text {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 600;
}

/* FAQ Section */
.faq-section {
    margin-top: 80px;
    padding: 60px 0;
    background: #ffffff;
}

.faq-section .container {
    max-width: 900px;
}

.faq-section h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.faq-grid {
    display: grid;
    gap: 20px;
}

.faq-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px 24px;
}

.faq-item h3 {
    margin-bottom: 0.5rem;
    color: #0f172a;
}

.faq-item p {
    margin: 0;
    color: #475569;
    line-height: 1.5;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="%23374151" opacity="0.3"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
}

.cta-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: white;
    text-align: center;
}

.cta-description {
    font-size: 1.125rem;
    color: #cbd5e1;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.trust-elements {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    min-height: 96px;
    width: 100%;
}

.trust-icon {
    font-size: 2rem;
    width: 56px;
    height: 56px;
    min-width: 56px;
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    flex-shrink: 0;
}

.trust-text {
    text-align: left;
    flex: 1;
    min-width: 0;
}

.trust-text strong {
    display: block;
    color: white;
    font-weight: 600;
    margin-bottom: 4px;
}

.trust-text span {
    color: #cbd5e1;
    font-size: 0.875rem;
}

.social-proof {
    margin-top: 3rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    align-items: center;
}

.testimonial {
    background: rgba(255, 255, 255, 0.05);
    padding: 24px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.testimonial p {
    font-style: italic;
    color: #e2e8f0;
    margin-bottom: 16px;
    font-size: 1.125rem;
}

.testimonial-author strong {
    color: white;
    font-weight: 600;
}

.testimonial-author span {
    color: #cbd5e1;
    font-size: 0.875rem;
    margin-left: 8px;
}

.user-count {
    text-align: center;
    padding: 24px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.count-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: #3b82f6;
    margin-bottom: 4px;
}

.count-label {
    color: #cbd5e1;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Footer */
.footer {
    background: #f8fafc;
    padding: 40px 0 20px;
    border-top: 1px solid #e2e8f0;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 24px;
    text-align: center;
}

.footer-brand h3 {
    color: #0f172a;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.footer-brand p {
    color: #64748b;
    font-size: 0.875rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #64748b;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #3b82f6;
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid #e2e8f0;
}

.footer-bottom p {
    color: #94a3b8;
    font-size: 0.875rem;
    margin: 0;
}

/* Responsive Design */
@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
        justify-content: center;
    }
    
    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .trust-elements {
        grid-template-columns: repeat(2, 1fr);
        max-width: 100%;
        gap: 20px;
    }
    
    .trust-item {
        flex-direction: column;
        text-align: center;
        min-height: 140px;
        padding: 24px 20px;
    }
    
    .trust-icon {
        margin-bottom: 12px;
    }
    
    .trust-text {
        text-align: center;
    }
    
    .social-proof {
        grid-template-columns: 2fr 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr auto;
        text-align: left;
    }
    
    .footer-links {
        justify-content: flex-end;
    }
}

@media (min-width: 768px) {
    .hero {
        padding: 120px 0 80px;
    }
    
    .hero .container {
        grid-template-columns: 1fr;
        gap: 60px;
        align-items: center;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .hero-title {
        font-size: 3.5rem;
        text-align: center;
    }
    
    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-buttons {
        flex-direction: row;
        justify-content: center;
    }
    
    .hero-stats {
        margin: 0 auto;
    }
    
    .section-title {
        font-size: 3rem;
    }
    
    .tools-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .trust-elements {
        grid-template-columns: repeat(3, 1fr);
        max-width: 100%;
        gap: 20px;
    }
    
    .trust-item {
        flex-direction: column;
        text-align: center;
        min-height: 140px;
        padding: 24px 20px;
    }
    
    .trust-icon {
        margin-bottom: 12px;
    }
    
    .trust-text {
        text-align: center;
    }
    
    .cta-title {
        font-size: 3.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 40px;
    }
    
    .hero-title {
        font-size: 4rem;
        text-align: center;
    }
    
    .section-title {
        font-size: 3.5rem;
    }
    
    .cta-title {
        font-size: 4rem;
    }
}

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

.tool-card {
    animation: fadeInUp 0.6s ease forwards;
}

.tool-card:nth-child(1) { animation-delay: 0.1s; }
.tool-card:nth-child(2) { animation-delay: 0.2s; }
.tool-card:nth-child(3) { animation-delay: 0.3s; }

/* Focus states for accessibility */
.btn:focus,
.tool-card:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Ad Sections */
.ad-section {
    padding: 20px 0;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.ad-banner {
    max-width: 728px;
    margin: 0 auto;
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* How To Video Section */
.how-to-video-section {
    padding: 12px 0;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
}

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

.how-to-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 16px;
    background: transparent;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    margin: 0 auto;
}

.how-to-toggle:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #475569;
}

.how-to-toggle svg {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}

.how-to-toggle.active svg {
    transform: rotate(180deg);
}

.how-to-video-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    margin-top: 0;
}

.how-to-video-content.active {
    max-height: 1000px;
    margin-top: 16px;
}

.how-to-video-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: #f8fafc;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #e2e8f0;
}

.how-to-video-embed {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 6px;
    background: #000;
}

.how-to-video-embed iframe,
.how-to-video-embed video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 6px;
}

.how-to-video-upload {
    text-align: center;
    padding: 40px 20px;
    border: 2px dashed #cbd5e1;
    border-radius: 6px;
    background: #ffffff;
}

.how-to-video-upload p {
    color: #64748b;
    font-size: 14px;
    margin-bottom: 12px;
}

.how-to-video-upload input[type="file"] {
    display: none;
}

.how-to-video-upload label {
    display: inline-block;
    padding: 8px 16px;
    background: #3b82f6;
    color: white;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
}

.how-to-video-upload label:hover {
    background: #2563eb;
}

.ad-placeholder {
    background: #f1f5f9;
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    width: 100%;
    min-height: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.ad-placeholder:hover {
    border-color: #94a3b8;
    background: #e2e8f0;
}

.ad-label {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.ad-content {
    color: #94a3b8;
    font-size: 0.875rem;
    font-style: italic;
}

/* Categories Page Styles */
.page-header {
    background: white;
    border-bottom: 1px solid #e2e8f0;
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo h1 {
    color: #0f172a;
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0;
    text-decoration: none;
}

.logo {
    text-decoration: none;
}

/* Header logo layout */
.logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.logo-icon {
    width: 32px;
    height: 32px;
    max-width: 32px;
    max-height: 32px;
    flex-shrink: 0;
    border-radius: 6px;
    object-fit: contain;
    display: block;
}

.header-nav {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.header-nav a {
    color: #64748b;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.header-nav a:hover,
.header-nav a.active {
    color: #3b82f6;
}

/* Search Styles */
.header-search {
    flex: 1;
    max-width: 400px;
    margin: 0 24px;
    position: relative;
}

.search-container {
    position: relative;
    width: 100%;
}

#search-input {
    width: 100%;
    padding: 12px 48px 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    background: white;
    transition: all 0.3s ease;
    outline: none;
}

#search-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

#search-input::placeholder {
    color: #94a3b8;
}

.search-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: #64748b;
    transition: color 0.3s ease;
    border-radius: 4px;
}

.search-btn:hover {
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
}

.search-btn svg {
    width: 18px;
    height: 18px;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    max-height: 400px;
    overflow-y: auto;
    display: none;
    margin-top: 4px;
}

.search-results.show {
    display: block;
}

.search-result-item {
    padding: 12px 16px;
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

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

.search-result-item:hover {
    background-color: #f8fafc;
}

.search-result-item.selected {
    background-color: #eff6ff;
}

.search-result-icon {
    width: 20px;
    height: 20px;
    color: #64748b;
    flex-shrink: 0;
}

.search-result-content {
    flex: 1;
}

.search-result-title {
    font-weight: 600;
    color: #0f172a;
    font-size: 14px;
    margin-bottom: 2px;
}

.search-result-description {
    font-size: 12px;
    color: #64748b;
    line-height: 1.4;
}

.search-result-category {
    font-size: 11px;
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    margin-top: 4px;
    display: inline-block;
}

.search-no-results {
    padding: 20px;
    text-align: center;
    color: #64748b;
    font-size: 14px;
}

.search-highlight {
    background-color: #fef3c7;
    color: #92400e;
    padding: 1px 2px;
    border-radius: 2px;
}

/* Mobile Search Styles */
@media (max-width: 768px) {
    .header-search {
        max-width: none;
        margin: 0 16px;
    }
    
    .search-results {
        max-height: 300px;
    }
    
    .search-result-item {
        padding: 10px 12px;
    }
    
    .search-result-title {
        font-size: 13px;
    }
    
    .search-result-description {
        font-size: 11px;
    }
}

@media (max-width: 640px) {
    .header-content {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .header-search {
        width: 100%;
        margin: 0;
    }

    .header-nav {
        width: 100%;
        justify-content: center;
        gap: 16px;
    }

    .header-nav a {
        flex: 1 0 auto;
        text-align: center;
    }
}

/* Colour Picker Tool Styles */
.color-picker-section {
    margin-bottom: 32px;
}

.color-picker-main {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
}

#color-picker {
    width: 80px;
    height: 80px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.color-preview {
    width: 120px;
    height: 80px;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.color-values {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.value-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.value-group label {
    font-weight: 600;
    color: #374151;
    font-size: 14px;
}

.value-group input {
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.value-group input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.palette-section {
    background: #f8fafc;
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 24px;
}

.palette-section h3 {
    margin-bottom: 16px;
    color: #0f172a;
}

.palette-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.color-details {
    margin-bottom: 24px;
}

.color-info-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.color-swatch {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    border: 2px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.color-info h4 {
    margin-bottom: 4px;
    color: #0f172a;
}

.color-info p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
}

.palette-display {
    margin-bottom: 24px;
}

.palette-display h4 {
    margin-bottom: 16px;
    color: #0f172a;
}

.palette-colors {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.palette-color-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.palette-color-item:hover {
    border-color: #3b82f6;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
}

.palette-color-swatch {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.palette-color-info {
    flex: 1;
}

.palette-color-hex {
    font-weight: 600;
    color: #0f172a;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 14px;
}

.palette-color-rgb {
    color: #64748b;
    font-size: 12px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

.palette-copy-btn {
    background: none;
    border: none;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    color: #64748b;
    transition: all 0.3s ease;
}

.palette-copy-btn:hover {
    background: #f1f5f9;
    color: #3b82f6;
}

.palette-copy-btn svg {
    width: 16px;
    height: 16px;
}

.palette-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.color-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Password Generator Tool Styles */
.password-options {
    margin-bottom: 32px;
}

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

.option-group label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 12px;
}

.length-control {
    display: flex;
    align-items: center;
    gap: 16px;
}

#password-length {
    flex: 1;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    outline: none;
    -webkit-appearance: none;
}

#password-length::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: #3b82f6;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.3);
}

#password-length::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #3b82f6;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.3);
}

#length-value {
    font-weight: 600;
    color: #3b82f6;
    font-size: 18px;
    min-width: 30px;
    text-align: center;
}

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 12px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 12px;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.checkbox-label:hover {
    background: #f8fafc;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: #3b82f6;
    border-color: #3b82f6;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.password-strength {
    margin-bottom: 24px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.strength-label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.strength-meter {
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.strength-bar {
    height: 100%;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.strength-bar.very-weak { background: #ef4444; width: 20%; }
.strength-bar.weak { background: #f97316; width: 40%; }
.strength-bar.fair { background: #eab308; width: 60%; }
.strength-bar.good { background: #22c55e; width: 80%; }
.strength-bar.strong { background: #3b82f6; width: 100%; }
.strength-bar.very-strong { background: #8b5cf6; width: 100%; }

.strength-text {
    font-weight: 600;
    font-size: 14px;
}

.strength-text.very-weak { color: #ef4444; }
.strength-text.weak { color: #f97316; }
.strength-text.fair { color: #eab308; }
.strength-text.good { color: #22c55e; }
.strength-text.strong { color: #3b82f6; }
.strength-text.very-strong { color: #8b5cf6; }

.passwords-container {
    margin-bottom: 24px;
}

.password-item {
    margin-bottom: 12px;
}

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

.password-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 14px;
    background: #f8fafc;
    color: #374151;
}

.password-copy-btn {
    background: none;
    border: none;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    color: #64748b;
    transition: all 0.3s ease;
    border: 2px solid #e2e8f0;
}

.password-copy-btn:hover {
    background: #f1f5f9;
    color: #3b82f6;
    border-color: #3b82f6;
}

.password-copy-btn svg {
    width: 18px;
    height: 18px;
}

.password-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.password-stats {
    background: #f8fafc;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.password-stats h4 {
    margin-bottom: 16px;
    color: #0f172a;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #e2e8f0;
}

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

.stat-label {
    color: #64748b;
    font-size: 14px;
}

.stat-value {
    font-weight: 600;
    color: #0f172a;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 14px;
}


/* PDF Editor Tool Styles */
.pdf-upload-section {
    margin-bottom: 32px;
}

.pdf-info {
    background: #f8fafc;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    margin-bottom: 24px;
}

.pdf-info h3 {
    margin-bottom: 16px;
    color: #0f172a;
}

.pdf-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #e2e8f0;
}

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

.detail-label {
    font-weight: 600;
    color: #374151;
}

.detail-value {
    color: #64748b;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

.pdf-editor-section {
    background: white;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.editor-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.toolbar-group {
    display: flex;
    gap: 8px;
}

.toolbar-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s ease;
}

.toolbar-btn:hover {
    background: #f1f5f9;
    border-color: #3b82f6;
    color: #3b82f6;
}

.toolbar-btn.active {
    background: #3b82f6;
    border-color: #3b82f6;
    color: white;
}

.toolbar-btn.danger {
    color: #ef4444;
}

.toolbar-btn.danger:hover {
    background: #fef2f2;
    border-color: #ef4444;
}

.toolbar-btn svg {
    width: 16px;
    height: 16px;
}

.pdf-viewer-container {
    padding: 20px;
    background: #f8fafc;
}

.pdf-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.page-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.page-btn:hover:not(:disabled) {
    background: #3b82f6;
    border-color: #3b82f6;
    color: white;
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-btn svg {
    width: 18px;
    height: 18px;
}

.page-info {
    font-weight: 600;
    color: #374151;
    font-size: 14px;
}

.pdf-canvas-container {
    position: relative;
    display: flex;
    justify-content: center;
    background: white;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    padding: 20px;
    overflow: auto;
    max-height: 80vh;
}

#pdf-canvas {
    max-width: 100%;
    height: auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.signature-overlay {
    position: absolute;
    top: 20px;
    left: 20px;
    pointer-events: none;
    z-index: 10;
}

.signature-panel {
    padding: 20px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.signature-panel h4 {
    margin-bottom: 16px;
    color: #0f172a;
}

.signature-options {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.signature-method {
    display: flex;
    gap: 8px;
}

.signature-btn {
    padding: 8px 16px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s ease;
}

.signature-btn:hover {
    background: #f1f5f9;
    border-color: #3b82f6;
    color: #3b82f6;
}

.signature-btn.active {
    background: #3b82f6;
    border-color: #3b82f6;
    color: white;
}

.signature-area {
    display: none;
}

.signature-area.active {
    display: block;
}

#signature-draw-canvas {
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    cursor: crosshair;
    display: block;
    margin: 0 auto 16px;
}

.signature-controls {
    display: flex;
    gap: 12px;
    justify-content: center;
}

#signature-text {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 16px;
}

#signature-text:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.signature-style-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.signature-style-options label {
    font-weight: 600;
    color: #374151;
    font-size: 14px;
}

.signature-style-options select,
.signature-style-options input[type="range"] {
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 14px;
}

.signature-upload-area {
    text-align: center;
    padding: 20px;
    border: 2px dashed #e2e8f0;
    border-radius: 8px;
    background: white;
}

.signature-upload-area p {
    margin-top: 12px;
    color: #64748b;
    font-size: 14px;
}

.pdf-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    padding: 20px;
    background: white;
    border-top: 1px solid #e2e8f0;
}

/* Mobile Responsive Adjustments for PDF Editor */
@media (max-width: 768px) {
    .editor-toolbar {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }
    
    .toolbar-group {
        justify-content: center;
    }
    
    .pdf-details {
        grid-template-columns: 1fr;
    }
    
    .signature-method {
        flex-direction: column;
    }
    
    .signature-style-options {
        grid-template-columns: 1fr;
    }
    
    .pdf-actions {
        flex-direction: column;
    }
    
    .pdf-canvas-container {
        padding: 10px;
    }
    
    #signature-draw-canvas {
        width: 100%;
        max-width: 300px;
        height: auto;
    }
}

/* Word Frequency Analyser Tool Styles */
.input-method-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    border-bottom: 1px solid #e2e8f0;
}

.tab-btn {
    padding: 12px 24px;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    font-size: 16px;
    font-weight: 500;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    color: #3b82f6;
}

.tab-btn.active {
    color: #3b82f6;
    border-bottom-color: #3b82f6;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

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

#text-input {
    width: 100%;
    min-height: 200px;
    padding: 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    resize: vertical;
    transition: border-color 0.3s ease;
}

#text-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.analysis-options {
    background: #f8fafc;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    margin-bottom: 24px;
}

.analysis-options h3 {
    margin-bottom: 16px;
    color: #0f172a;
}

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

.option-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.option-group label {
    font-weight: 600;
    color: #374151;
    font-size: 14px;
}

.option-group input,
.option-group select {
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 14px;
}

.option-group input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
}

.result-section {
    background: white;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    padding: 24px;
}

.word-search-section {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e2e8f0;
}

.word-search-section h4 {
    margin-bottom: 16px;
    color: #0f172a;
}

.search-word-container {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

#search-word-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
}

#search-word-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.word-search-result {
    background: #f8fafc;
    padding: 16px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.search-result h5 {
    margin-bottom: 12px;
    color: #0f172a;
    font-size: 18px;
}

.search-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
}

.search-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.search-label {
    font-weight: 600;
    color: #374151;
}

.search-value {
    color: #3b82f6;
    font-weight: 700;
    font-size: 18px;
}

.stats-section {
    margin-bottom: 32px;
}

.stats-section h4 {
    margin-bottom: 20px;
    color: #0f172a;
}

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

.stat-card {
    background: #f8fafc;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 16px;
}

.stat-icon {
    font-size: 24px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #3b82f6;
    color: white;
    border-radius: 8px;
}

.stat-content {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1;
}

.stat-label {
    font-size: 14px;
    color: #64748b;
    margin-top: 4px;
}

.frequency-list-section {
    margin-bottom: 32px;
}

.frequency-list-section h4 {
    margin-bottom: 20px;
    color: #0f172a;
}

.frequency-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.frequency-item {
    display: grid;
    grid-template-columns: 40px 1fr 80px 200px;
    gap: 16px;
    align-items: center;
    padding: 12px 16px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.frequency-rank {
    font-weight: 700;
    color: #3b82f6;
    font-size: 18px;
    text-align: center;
}

.frequency-word {
    font-weight: 600;
    color: #0f172a;
    font-size: 16px;
}

.frequency-count {
    font-weight: 700;
    color: #64748b;
    text-align: right;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

.frequency-bar {
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

.frequency-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #1d4ed8);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.chart-section {
    margin-bottom: 32px;
}

.chart-section h4 {
    margin-bottom: 20px;
    color: #0f172a;
}

.chart-container {
    position: relative;
    height: 400px;
    background: #f8fafc;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #e2e8f0;
}

.result-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    padding-top: 24px;
    border-top: 1px solid #e2e8f0;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
}

.file-info svg {
    width: 24px;
    height: 24px;
    color: #16a34a;
}

.file-details h4 {
    margin: 0;
    color: #166534;
    font-size: 14px;
    font-weight: 600;
}

.file-details p {
    margin: 0;
    color: #16a34a;
    font-size: 12px;
}

.remove-file-btn {
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
}

.remove-file-btn:hover {
    background: #dc2626;
}

/* Mobile Responsive Adjustments for Word Frequency Analyser */
@media (max-width: 768px) {
    .input-method-tabs {
        flex-direction: column;
    }
    
    .tab-btn {
        text-align: center;
        border-bottom: none;
        border-left: 2px solid transparent;
    }
    
    .tab-btn.active {
        border-bottom: none;
        border-left-color: #3b82f6;
    }
    
    .options-grid {
        grid-template-columns: 1fr;
    }
    
    .search-word-container {
        flex-direction: column;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .frequency-item {
        grid-template-columns: 1fr;
        gap: 8px;
        text-align: center;
    }
    
    .frequency-rank {
        order: 1;
    }
    
    .frequency-word {
        order: 2;
    }
    
    .frequency-count {
        order: 3;
        text-align: center;
    }
    
    .frequency-bar {
        order: 4;
    }
    
    .result-actions {
        flex-direction: column;
    }
    
    .chart-container {
        height: 300px;
        padding: 10px;
    }
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    .color-picker-main {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .color-values {
        grid-template-columns: 1fr;
    }
    
    .palette-options {
        grid-template-columns: 1fr;
    }
    
    .checkbox-group {
        grid-template-columns: 1fr;
    }
    
    .palette-colors {
        grid-template-columns: 1fr;
    }
    
    .color-actions,
    .palette-actions,
    .password-actions {
        flex-direction: column;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .examples-grid {
        flex-direction: column;
    }
    
    .example-btn {
        text-align: center;
    }
    
    .success-message {
        top: 10px;
        right: 10px;
        left: 10px;
    }
}

/* QR Generator Tool Styles */
#qr-canvas {
    display: block;
    margin: 0 auto;
    border: 2px solid #3b82f6;
    border-radius: 8px;
    background: white;
    min-width: 200px;
    min-height: 200px;
    max-width: 100%;
    height: auto;
}

.qr-display {
    text-align: center;
    padding: 20px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    margin-bottom: 20px;
}

.qr-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 20px;
}

.qr-info {
    background: #f8fafc;
    padding: 16px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    text-align: center;
}

.qr-info p {
    margin: 8px 0;
    color: #374151;
}

.qr-info strong {
    color: #0f172a;
}

/* Mobile Responsive for QR Generator */
@media (max-width: 768px) {
    .qr-actions {
        flex-direction: column;
    }
}

.page-hero {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 60px 0 40px;
    text-align: center;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 1rem;
}

.page-subtitle {
    font-size: 1.125rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
}

.page-section {
    padding: 80px 0;
    background: #ffffff;
}

.page-section-alt {
    background: #f8fafc;
}

.section-header {
    max-width: 720px;
    margin: 0 auto 48px;
    text-align: center;
}

.section-header .section-title {
    margin-bottom: 0.75rem;
}

.section-description {
    font-size: 1.05rem;
    color: #64748b;
    line-height: 1.7;
    margin: 0;
}

.categories-section {
    padding: 60px 0;
    background: white;
}

.category-group {
    margin-bottom: 60px;
}

.category-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 16px;
    border: 1px solid #e2e8f0;
}

.category-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    display: block;
}

.category-title {
    font-size: 2rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 8px;
}

.category-description {
    font-size: 1.125rem;
    color: #64748b;
    margin: 0;
}

/* Responsive adjustments for ads */
@media (max-width: 768px) {
    .ad-banner {
        min-height: 50px;
    }
    
    .ad-placeholder {
        min-height: 50px;
        padding: 12px;
    }
    
    .ad-label {
        font-size: 0.625rem;
    }
    
    .ad-content {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .ad-section {
        padding: 12px 0;
    }
    
    .ad-banner {
        min-height: 50px;
    }
    
    .ad-placeholder {
        min-height: 50px;
        padding: 8px;
    }
}

/* QR Generator Tool Styles */
.tool-hero {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 60px 0 40px;
    text-align: center;
}

.tool-hero-content {
    max-width: 600px;
    margin: 0 auto;
}

.tool-icon-large {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.tool-icon-large svg {
    width: 40px;
    height: 40px;
}

.tool-section {
    padding: 60px 0;
    background: white;
}

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

.tool-input-section {
    background: #f8fafc;
    padding: 40px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
}

.tool-input-section h2 {
    color: #0f172a;
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.tool-input-section p {
    color: #64748b;
    margin-bottom: 32px;
}

.qr-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label {
    font-weight: 600;
    color: #374151;
    font-size: 0.875rem;
}

.input-group input {
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
}

.input-group input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.input-group input.valid {
    border-color: #10b981;
}

.input-group input.invalid {
    border-color: #ef4444;
}

.input-hint {
    color: #64748b;
    font-size: 0.75rem;
    margin-top: 4px;
}

.options-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.option-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.option-row label {
    font-weight: 600;
    color: #374151;
    font-size: 0.875rem;
}

.option-row select {
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    background: white;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.option-row select:focus {
    outline: none;
    border-color: #3b82f6;
}

.tool-output-section {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 40px;
    text-align: center;
}

.qr-result h3 {
    color: #0f172a;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 24px;
}

.qr-display {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    display: inline-block;
}

.qr-display canvas {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.qr-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.qr-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
}

.qr-actions .btn svg {
    width: 16px;
    height: 16px;
}

.qr-info {
    background: #f8fafc;
    border-radius: 8px;
    padding: 20px;
    text-align: left;
}

.qr-info p {
    margin-bottom: 8px;
    color: #374151;
    font-size: 0.875rem;
}

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

.qr-info strong {
    color: #0f172a;
    font-weight: 600;
}

.qr-placeholder {
    padding: 60px 20px;
    color: #64748b;
}

.placeholder-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 24px;
    background: #f1f5f9;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
}

.placeholder-icon svg {
    width: 32px;
    height: 32px;
}

.qr-placeholder h3 {
    color: #374151;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.qr-placeholder p {
    color: #64748b;
    margin: 0;
}

/* Features Section */
.features-section {
    padding: 60px 0;
    background: #f8fafc;
}

.features-section h2 {
    text-align: center;
    font-size: 2.25rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 40px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.feature-card {
    background: white;
    padding: 32px 24px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #e2e8f0;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
    display: block;
}

.feature-card h3 {
    color: #0f172a;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.feature-card p {
    color: #64748b;
    margin: 0;
    line-height: 1.6;
}

/* Examples Section */
.examples-section {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e2e8f0;
}

.examples-section h4 {
    color: #374151;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.examples-grid {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.example-btn {
    padding: 8px 16px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    font-size: 0.875rem;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s ease;
}

.example-btn:hover {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

/* Messages */
.error-message,
.success-message {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 16px;
}

.error-message {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.success-message {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
    z-index: 1000;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.error-message svg,
.success-message svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Loading Spinner */
.spinner {
    width: 16px;
    height: 16px;
    margin-right: 8px;
}

.btn-loading {
    display: none;
    align-items: center;
}

/* Responsive Design */
@media (min-width: 768px) {
    .tool-container {
        grid-template-columns: 1fr 1fr;
        gap: 60px;
    }
    
    .options-group {
        grid-template-columns: 1fr 1fr;
    }
    
    .qr-actions {
        flex-direction: row;
    }
}

@media (max-width: 640px) {
    .tool-input-section,
    .tool-output-section {
        padding: 24px;
    }
    
    .options-group {
        grid-template-columns: 1fr;
    }
    
    .qr-actions {
        flex-direction: column;
    }
    
    .examples-grid {
        flex-direction: column;
    }
    
    .example-btn {
        text-align: center;
    }
}

/* Whitespace Removal Tool Styles */
.input-method-tabs {
    display: flex;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 24px;
}

.tab-btn {
    padding: 12px 24px;
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.tab-btn.active {
    color: #3b82f6;
    border-bottom-color: #3b82f6;
}

.tab-btn:hover {
    color: #3b82f6;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.whitespace-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.input-group textarea {
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    font-family: 'Inter', monospace;
    resize: vertical;
    min-height: 120px;
    transition: all 0.3s ease;
    background: white;
}

.input-group textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.file-upload-area {
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f8fafc;
}

.file-upload-area:hover,
.file-upload-area.drag-over {
    border-color: #3b82f6;
    background: #f0f9ff;
}

.upload-placeholder svg {
    width: 48px;
    height: 48px;
    color: #94a3b8;
    margin-bottom: 16px;
}

.upload-placeholder h3 {
    color: #374151;
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.upload-placeholder p {
    color: #64748b;
    margin-bottom: 8px;
}

.file-size-limit {
    color: #94a3b8;
    font-size: 0.875rem;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: white;
    border: 2px solid #10b981;
    border-radius: 12px;
}

.file-info svg {
    width: 32px;
    height: 32px;
    color: #10b981;
    flex-shrink: 0;
}

.file-details h4 {
    color: #0f172a;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.file-details p {
    color: #64748b;
    font-size: 0.875rem;
    margin: 0;
}

.remove-file-btn {
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    margin-left: auto;
}

.remove-file-btn:hover {
    background: #dc2626;
}

.result-section {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 32px;
}

.result-section h3 {
    color: #0f172a;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 24px;
}

.result-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
}

.stat-item {
    text-align: center;
}

.stat-label {
    display: block;
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 4px;
}

.stat-value {
    display: block;
    color: #0f172a;
    font-size: 1.125rem;
    font-weight: 700;
}

.result-display {
    margin-bottom: 24px;
}

.result-display textarea {
    width: 100%;
    min-height: 200px;
    padding: 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-family: 'Inter', monospace;
    font-size: 14px;
    line-height: 1.6;
    resize: vertical;
    background: #f8fafc;
}

.result-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.result-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
}

.result-actions .btn svg {
    width: 16px;
    height: 16px;
}

.placeholder-section {
    padding: 60px 20px;
    text-align: center;
    color: #64748b;
}

.placeholder-section .placeholder-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 24px;
    background: #f1f5f9;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
}

.placeholder-section .placeholder-icon svg {
    width: 32px;
    height: 32px;
}

.placeholder-section h3 {
    color: #374151;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.placeholder-section p {
    color: #64748b;
    margin: 0;
}

/* Responsive adjustments for whitespace tool */
@media (max-width: 768px) {
    .input-method-tabs {
        flex-direction: column;
    }
    
    .tab-btn {
        text-align: center;
        border-bottom: none;
        border-left: 3px solid transparent;
    }
    
    .tab-btn.active {
        border-bottom-color: transparent;
        border-left-color: #3b82f6;
    }
    
    .result-stats {
        grid-template-columns: 1fr;
    }
    
    .result-actions {
        flex-direction: column;
    }
    
    .file-info {
        flex-direction: column;
        text-align: center;
    }
    
    .remove-file-btn {
        margin-left: 0;
        margin-top: 12px;
    }
}

/* Word Counter Tool Styles */
.counter-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px -5px rgba(0, 0, 0, 0.1);
}

.stat-card.primary {
    border-color: #3b82f6;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.stat-card.secondary {
    border-color: #10b981;
    background: white;
}

.stat-icon {
    font-size: 2rem;
    margin-bottom: 12px;
    display: block;
}

.stat-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 4px;
    line-height: 1;
}

.stat-card.primary .stat-number {
    color: #3b82f6;
}

.stat-card.secondary .stat-number {
    color: #10b981;
}

.stat-label {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detailed-stats {
    background: #f8fafc;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.detailed-stats h4 {
    color: #0f172a;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 16px;
    text-align: center;
}

.detailed-stats .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    margin-bottom: 0;
}

.detailed-stats .stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.detailed-stats .stat-label {
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: none;
    letter-spacing: normal;
}

.detailed-stats .stat-value {
    color: #0f172a;
    font-size: 1rem;
    font-weight: 700;
}

.text-preview {
    background: #f8fafc;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.text-preview h4 {
    color: #0f172a;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.preview-content {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    max-height: 200px;
    overflow-y: auto;
}

.preview-content p {
    color: #374151;
    font-size: 0.875rem;
    line-height: 1.6;
    margin: 0;
    font-family: 'Inter', monospace;
}

/* Word counter specific responsive adjustments */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .detailed-stats .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .detailed-stats .stat-item {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    .stat-card {
        padding: 20px;
    }
    
    .stat-number {
        font-size: 1.75rem;
    }
}

@media (max-width: 480px) {
    .stat-card {
        padding: 16px;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-icon {
        font-size: 1.5rem;
    }
    
    .detailed-stats,
    .text-preview {
        padding: 16px;
    }
}

/* Smooth scrolling for older browsers */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* Image Converter Tool Styles */
.file-upload-section {
    margin-bottom: 32px;
}

.image-info {
    background: #f8fafc;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    margin-bottom: 24px;
}

.image-info h3 {
    margin-bottom: 16px;
    color: #0f172a;
}

.image-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.conversion-options {
    background: #f8fafc;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    margin-bottom: 24px;
}

.conversion-options h3 {
    margin-bottom: 20px;
    color: #0f172a;
}

.quality-control {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 8px;
}

#quality {
    flex: 1;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    outline: none;
    -webkit-appearance: none;
}

#quality::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: #3b82f6;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.3);
}

#quality::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #3b82f6;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.3);
}

#quality-value {
    font-weight: 600;
    color: #3b82f6;
    font-size: 16px;
    min-width: 50px;
    text-align: center;
}

.image-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 32px;
}

.image-preview-item {
    text-align: center;
}

.image-preview-item h4 {
    margin-bottom: 16px;
    color: #0f172a;
    font-size: 1.125rem;
    font-weight: 600;
}

.image-preview-container {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.image-preview-container img {
    max-width: 100%;
    max-height: 400px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.image-stats {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 500;
}

/* Mobile Responsive for Image Converter */
@media (max-width: 768px) {
    .image-comparison {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .image-details {
        grid-template-columns: 1fr;
    }
    
    .result-actions {
        flex-direction: column;
    }
}

/* Speech to Text Tool Styles */
.audio-info {
    background: #f8fafc;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    margin-bottom: 24px;
}

.audio-info h3 {
    margin-bottom: 16px;
    color: #0f172a;
}

.audio-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.audio-player-section {
    background: #f8fafc;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    margin-bottom: 24px;
}

.audio-player-section h3 {
    margin-bottom: 16px;
    color: #0f172a;
}

.audio-player-section audio {
    width: 100%;
    border-radius: 8px;
}

.recognition-options {
    background: #f8fafc;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    margin-bottom: 24px;
}

.recognition-options h3 {
    margin-bottom: 20px;
    color: #0f172a;
}

.recognition-options .option-group {
    margin-bottom: 20px;
}

.recognition-options .option-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 500;
    color: #374151;
}

.recognition-options .option-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.transcription-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.transcription-stats .stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.transcription-stats .stat-label {
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 500;
}

.transcription-stats .stat-value {
    font-weight: 700;
    color: #0f172a;
    font-size: 1rem;
}

.transcription-output {
    margin-bottom: 24px;
}

.transcription-output textarea {
    width: 100%;
    min-height: 200px;
    padding: 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    resize: vertical;
    background: white;
    color: #1e293b;
}

.transcription-output textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.browser-notice {
    margin-top: 24px;
    padding: 16px;
    background: #fef3c7;
    border: 1px solid #fbbf24;
    border-radius: 8px;
}

.browser-notice.error {
    background: #fef2f2;
    border-color: #f87171;
}

.notice-content {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.notice-content svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    margin-top: 2px;
    color: #f59e0b;
}

.browser-notice.error svg {
    color: #ef4444;
}

.notice-content strong {
    display: block;
    color: #92400e;
    font-weight: 600;
    margin-bottom: 4px;
}

.browser-notice.error strong {
    color: #991b1b;
}

.notice-content p {
    margin: 0;
    color: #78350f;
    font-size: 0.875rem;
    line-height: 1.5;
}

.browser-notice.error p {
    color: #7f1d1d;
}

/* Mobile Responsive for Speech to Text */
@media (max-width: 768px) {
    .audio-details {
        grid-template-columns: 1fr;
    }
    
    .transcription-stats {
        grid-template-columns: 1fr;
    }
    
    .result-actions {
        flex-direction: column;
    }
}

/* Image Resizer Tool Styles */
.resize-options {
    background: #f8fafc;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    margin-bottom: 24px;
}

.resize-options h3 {
    margin-bottom: 20px;
    color: #0f172a;
}

.resize-mode-content {
    margin-bottom: 20px;
}

.percentage-control {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}

.percentage-control input[type="range"] {
    flex: 1;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    outline: none;
    -webkit-appearance: none;
}

.percentage-control input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: #3b82f6;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.3);
}

.percentage-control input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #3b82f6;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.3);
}

.percentage-control input[type="number"] {
    width: 80px;
    padding: 8px 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    color: #0f172a;
}

.percentage-control input[type="number"]:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.percentage-control span {
    font-weight: 600;
    color: #64748b;
    font-size: 16px;
}

.input-hint {
    display: block;
    margin-top: 8px;
    font-size: 0.875rem;
    color: #64748b;
    font-style: italic;
}

.dimension-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 16px;
}

.dimension-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dimension-group label {
    font-weight: 600;
    color: #0f172a;
    font-size: 0.875rem;
}

.dimension-group input[type="number"] {
    width: 100%;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    color: #0f172a;
}

.dimension-group input[type="number"]:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.preset-sizes {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.preset-sizes label {
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
    color: #0f172a;
    font-size: 0.875rem;
}

.preset-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.preset-btn {
    padding: 8px 16px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
}

.preset-btn:hover {
    border-color: #3b82f6;
    color: #3b82f6;
    background: #eff6ff;
}

.preset-btn:active {
    transform: scale(0.98);
}

/* Mobile Responsive for Image Resizer */
@media (max-width: 768px) {
    .dimension-controls {
        grid-template-columns: 1fr;
    }
    
    .preset-buttons {
        flex-direction: column;
    }
    
    .preset-btn {
        width: 100%;
    }
}

/* Image Compressor Tool Styles */
.compression-options {
    background: #f8fafc;
    padding: 24px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    margin-bottom: 24px;
}

.compression-options h3 {
    margin-bottom: 20px;
    color: #0f172a;
}

.quality-description {
    margin-top: 8px;
    margin-bottom: 12px;
}

.quality-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.compression-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 32px;
    padding: 24px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    flex-wrap: wrap;
}

.stat-card {
    text-align: center;
    padding: 16px 24px;
    background: white;
    border-radius: 8px;
    border: 2px solid #e2e8f0;
    min-width: 120px;
    flex: 1;
    max-width: 200px;
}

.stat-card.original {
    border-color: #94a3b8;
}

.stat-card.compressed {
    border-color: #3b82f6;
}

.stat-card.savings {
    border-color: #10b981;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
}

.stat-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 4px;
}

.stat-value.savings-amount {
    color: #10b981;
}

.stat-dimensions {
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 4px;
}

.stat-percentage {
    font-size: 0.875rem;
    font-weight: 600;
    color: #10b981;
    margin-top: 4px;
}

.stat-arrow {
    font-size: 2rem;
    color: #3b82f6;
    font-weight: bold;
}

/* Mobile Responsive for Image Compressor */
@media (max-width: 768px) {
    .compression-stats {
        flex-direction: column;
        gap: 12px;
    }
    
    .stat-card {
        width: 100%;
        max-width: 100%;
    }
    
    .stat-arrow {
        transform: rotate(90deg);
        font-size: 1.5rem;
    }
    
    .quality-presets {
        flex-direction: column;
    }
    
    .quality-presets .preset-btn {
        width: 100%;
    }
}

/* Fun Tools Styles */
.primary-btn, .secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 48px;
}

.primary-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(59, 130, 246, 0.3);
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px 0 rgba(59, 130, 246, 0.4);
}

.secondary-btn {
    background: white;
    color: #3b82f6;
    border: 2px solid #3b82f6;
}

.secondary-btn:hover {
    background: #3b82f6;
    color: white;
    transform: translateY(-2px);
}

.primary-btn svg, .secondary-btn svg {
    width: 20px;
    height: 20px;
}

.generate-section {
    margin: 32px 0;
    text-align: center;
}

/* Excuse Generator Styles */
.excuse-categories {
    margin-bottom: 32px;
}

.excuse-categories label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 12px;
}

.category-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.category-btn {
    flex: 1;
    min-width: 150px;
    padding: 12px 24px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-btn:hover {
    border-color: #3b82f6;
    color: #3b82f6;
    background: #eff6ff;
}

.category-btn.active {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

.excuse-result, .name-result {
    margin-top: 32px;
    padding: 32px;
    background: white;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
}

.excuse-content, .name-content {
    margin-bottom: 24px;
}

.excuse-content p {
    font-size: 1.25rem;
    line-height: 1.8;
    color: #0f172a;
    padding: 24px;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 4px solid #3b82f6;
}

.name-content h3 {
    font-size: 2rem;
    color: #0f172a;
    text-align: center;
    padding: 24px;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-radius: 8px;
    border: 2px solid #3b82f6;
}

.excuse-actions, .name-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.excuse-actions .secondary-btn, .name-actions .secondary-btn {
    flex: 1;
    min-width: 150px;
}

/* Resume Builder Styles */
.resume-builder-section {
    max-width: 800px;
    margin: 0 auto;
}

.resume-section {
    margin-bottom: 32px;
    padding: 24px;
    background: white;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.resume-section h3 {
    color: #0f172a;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

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

.form-group label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.form-group input[type="text"],
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

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

.input-with-button {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.input-with-button input {
    flex: 1;
}

.generate-random-btn {
    padding: 12px 20px;
    background: #f1f5f9;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.generate-random-btn:hover {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

.resume-actions {
    margin-top: 32px;
    text-align: center;
}

.resume-result {
    margin-top: 32px;
    padding: 32px;
    background: white;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
}

.resume-preview {
    margin-bottom: 24px;
}

.resume-header {
    text-align: center;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 2px solid #e2e8f0;
}

.resume-header h2 {
    font-size: 2rem;
    color: #0f172a;
    margin-bottom: 8px;
}

.resume-header p {
    font-size: 1.25rem;
    color: #64748b;
    margin-bottom: 0;
}

.resume-content {
    display: grid;
    gap: 24px;
}

.resume-block {
    padding: 20px;
    background: #f8fafc;
    border-radius: 8px;
}

.resume-block h3 {
    font-size: 1.25rem;
    color: #0f172a;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e2e8f0;
}

.resume-block ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.resume-block li {
    padding: 12px 0;
    color: #374151;
    line-height: 1.6;
    border-bottom: 1px solid #e2e8f0;
}

.resume-block li:last-child {
    border-bottom: none;
}

.resume-block li::before {
    content: "•";
    color: #3b82f6;
    font-weight: bold;
    margin-right: 12px;
}

/* Mobile Responsive for Fun Tools */
@media (max-width: 768px) {
    .category-buttons {
        flex-direction: column;
    }
    
    .category-btn {
        width: 100%;
    }
    
    .excuse-actions, .name-actions {
        flex-direction: column;
    }
    
    .excuse-actions .secondary-btn, .name-actions .secondary-btn {
        width: 100%;
    }
    
    .input-with-button {
        flex-direction: column;
    }
    
    .generate-random-btn {
        width: 100%;
    }
    
    .name-content h3 {
        font-size: 1.5rem;
    }
}

/* Bio Generator Styles */
.bio-styles {
    margin-bottom: 32px;
}

.bio-styles label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 12px;
}

.style-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
}

.style-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px 16px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 100px;
}

.style-btn:hover {
    border-color: #3b82f6;
    color: #3b82f6;
    background: #eff6ff;
    transform: translateY(-2px);
}

.style-btn.active {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    border-color: #3b82f6;
    box-shadow: 0 4px 14px 0 rgba(59, 130, 246, 0.3);
}

.style-emoji {
    font-size: 2rem;
    line-height: 1;
}

.style-name {
    font-size: 14px;
}

.bio-result {
    margin-top: 32px;
    padding: 32px;
    background: white;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
}

.bio-result h3 {
    color: #0f172a;
    margin-bottom: 24px;
    font-size: 1.5rem;
}

.bio-list {
    display: grid;
    gap: 16px;
    margin-bottom: 24px;
}

.bio-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 20px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.bio-item:hover {
    border-color: #3b82f6;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
}

.bio-content {
    flex: 1;
}

.bio-content p {
    margin: 0;
    color: #0f172a;
    font-size: 1rem;
    line-height: 1.6;
}

.copy-bio-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: white;
    border: 2px solid #3b82f6;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #3b82f6;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.copy-bio-btn:hover {
    background: #3b82f6;
    color: white;
}

.copy-bio-btn svg {
    width: 16px;
    height: 16px;
}

.bio-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    padding-top: 24px;
    border-top: 2px solid #e2e8f0;
}

.bio-actions .secondary-btn {
    flex: 1;
    min-width: 150px;
}

/* Mobile Responsive for Bio Generator */
@media (max-width: 768px) {
    .style-buttons {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .style-btn {
        min-height: 80px;
        padding: 16px 12px;
    }
    
    .style-emoji {
        font-size: 1.5rem;
    }
    
    .bio-item {
        flex-direction: column;
    }
    
    .copy-bio-btn {
        width: 100%;
        justify-content: center;
    }
    
    .bio-actions {
        flex-direction: column;
    }
    
    .bio-actions .secondary-btn {
        width: 100%;
    }
}

/* Compliment / Roast Tool Styles */
.mood-selection {
    margin-bottom: 32px;
}

.mood-selection label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 12px;
}

.mood-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
}

.mood-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 24px 16px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 120px;
}

.mood-btn:hover {
    border-color: #3b82f6;
    color: #3b82f6;
    background: #eff6ff;
    transform: translateY(-2px);
}

.mood-btn.active {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    border-color: #3b82f6;
    box-shadow: 0 4px 14px 0 rgba(59, 130, 246, 0.3);
}

.mood-btn[data-mood="kind"].active {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-color: #10b981;
    box-shadow: 0 4px 14px 0 rgba(16, 185, 129, 0.3);
}

.mood-btn[data-mood="savage"].active {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border-color: #ef4444;
    box-shadow: 0 4px 14px 0 rgba(239, 68, 68, 0.3);
}

.mood-btn[data-mood="funny"].active {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border-color: #f59e0b;
    box-shadow: 0 4px 14px 0 rgba(245, 158, 11, 0.3);
}

.mood-emoji {
    font-size: 2.5rem;
    line-height: 1;
}

.mood-name {
    font-size: 16px;
    font-weight: 600;
}

.line-result {
    margin-top: 32px;
    padding: 32px;
    background: white;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
}

.line-content {
    margin-bottom: 24px;
    padding: 32px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
    border-left: 4px solid #3b82f6;
    text-align: center;
}

.line-content p {
    font-size: 1.5rem;
    line-height: 1.8;
    color: #0f172a;
    margin: 0;
    font-weight: 500;
}

.line-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.line-actions .secondary-btn {
    flex: 1;
    min-width: 150px;
}

/* Mobile Responsive for Compliment / Roast Tool */
@media (max-width: 768px) {
    .mood-buttons {
        grid-template-columns: 1fr;
    }
    
    .mood-btn {
        min-height: 100px;
        padding: 20px 16px;
    }
    
    .mood-emoji {
        font-size: 2rem;
    }
    
    .line-content {
        padding: 24px 16px;
    }
    
    .line-content p {
        font-size: 1.25rem;
    }
    
    .line-actions {
        flex-direction: column;
    }
    
    .line-actions .secondary-btn {
        width: 100%;
    }
}

/* Share Section Styles */
.share-section {
    padding: 40px 0;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

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

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

.share-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 12px;
}

.share-description {
    color: #64748b;
    margin-bottom: 24px;
    font-size: 1rem;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    color: #64748b;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    min-width: 120px;
}

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

.share-btn svg {
    width: 20px;
    height: 20px;
}

.share-btn.link {
    border-color: #3b82f6;
    color: #3b82f6;
}

.share-btn.link:hover {
    background: #3b82f6;
    color: white;
}

.share-btn.email {
    border-color: #10b981;
    color: #10b981;
}

.share-btn.email:hover {
    background: #10b981;
    color: white;
}

.share-btn.whatsapp {
    border-color: #25d366;
    color: #25d366;
}

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

.share-btn.twitter {
    border-color: #1da1f2;
    color: #1da1f2;
}

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

.share-btn.facebook {
    border-color: #1877f2;
    color: #1877f2;
}

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

.share-btn.copy-link {
    border-color: #8b5cf6;
    color: #8b5cf6;
}

.share-btn.copy-link:hover {
    background: #8b5cf6;
    color: white;
}

/* Mobile Responsive for Share Section */
@media (max-width: 768px) {
    .share-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .share-btn {
        width: 100%;
        justify-content: center;
    }
    
    .share-title {
        font-size: 1.25rem;
    }
}

.contact-section {
    padding: 80px 0;
    background: #f8fafc;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
}

.contact-card {
    background: white;
    border-radius: 16px;
    padding: 32px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.contact-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 12px;
}

.contact-card p {
    color: #475569;
}

.contact-form {
    margin-top: 24px;
    display: grid;
    gap: 16px;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-row label {
    font-weight: 600;
    color: #1f2937;
}

.form-input {
    position: relative;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.12) 0%, rgba(59, 130, 246, 0.02) 100%);
    border-radius: 14px;
    padding: 2px;
    border: 1px solid transparent;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus-within {
    border-color: rgba(59, 130, 246, 0.35);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.12);
}

.form-input input,
.form-input textarea {
    flex: 1;
    width: 100%;
    padding: 14px 18px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-family: inherit;
    color: #0f172a;
    background-color: rgba(255, 255, 255, 0.92);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.form-input input::placeholder,
.form-input textarea::placeholder {
    color: #94a3b8;
}

.form-input input:focus,
.form-input textarea:focus {
    outline: none;
    background-color: #ffffff;
}

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

.contact-form .btn {
    margin-top: 8px;
}

.form-note {
    font-size: 0.875rem;
    color: #64748b;
    margin-top: 8px;
}

.form-note a {
    color: #3b82f6;
    text-decoration: none;
}

.form-note a:hover {
    text-decoration: underline;
}

.form-status {
    margin-top: 16px;
    padding: 16px;
    border-radius: 12px;
    background-color: #ecfdf5;
    color: #047857;
    border: 1px solid #bbf7d0;
    font-weight: 500;
    display: none;
}

.form-status.visible {
    display: block;
}

.contact-details ul {
    list-style: none;
    margin-top: 16px;
    display: grid;
    gap: 16px;
}

.contact-details li {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.detail-label {
    font-weight: 600;
    color: #1f2937;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.75rem;
}

.contact-details a {
    color: #1d4ed8;
    text-decoration: none;
    font-weight: 600;
}

.contact-details a:hover {
    text-decoration: underline;
}

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

/* Legal / Privacy Pages */
.legal-meta {
    margin-top: 20px;
    font-size: 0.95rem;
    color: #6366f1;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.legal-section {
    padding: 80px 0;
    background: #ffffff;
}

.legal-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
}

.legal-card {
    position: relative;
    background: linear-gradient(145deg, rgba(148, 163, 184, 0.08), rgba(226, 232, 240, 0.22));
    border-radius: 20px;
    padding: 36px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    box-shadow: 0 20px 40px -20px rgba(15, 23, 42, 0.18);
    overflow: hidden;
}

.legal-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.35), rgba(139, 92, 246, 0.35));
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.legal-card::after {
    content: '';
    position: absolute;
    top: -120px;
    right: -120px;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle at center, rgba(59, 130, 246, 0.18), transparent 70%);
    transform: rotate(25deg);
    pointer-events: none;
}

.legal-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 16px;
}

.legal-card p {
    color: #475569;
    margin-bottom: 16px;
}

.legal-card ul {
    margin-left: 0;
    padding-left: 20px;
    color: #475569;
    display: grid;
    gap: 10px;
}

.legal-card li {
    line-height: 1.6;
}

.legal-card a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
}

.legal-card a:hover {
    text-decoration: underline;
}

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

    .legal-meta {
        margin-top: 16px;
    }
}
