/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Variables - Light Theme */
    --background: #ffffff;
    --foreground: #0f172a;
    --muted: #f1f5f9;
    --muted-foreground: #64748b;
    --popover: #ffffff;
    --popover-foreground: #0f172a;
    --card: #ffffff;
    --card-foreground: #0f172a;
    --border: #e2e8f0;
    --input: #e2e8f0;
    --primary: #0f172a;
    --primary-foreground: #f8fafc;
    --secondary: #f1f5f9;
    --secondary-foreground: #0f172a;
    --accent: #f1f5f9;
    --accent-foreground: #0f172a;
    --destructive: #ef4444;
    --destructive-foreground: #f8fafc;
    --ring: #94a3b8;
    
    /* Spacing */
    --spacing: 0.25rem;
    
    /* Typography */
    --font-family: 'Poppins', ui-sans-serif, system-ui, sans-serif;
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    --text-6xl: 3.75rem;
    
    /* Border Radius */
    --radius: 0.5rem;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    
    /* Transitions */
    --transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Theme */
.dark {
    --background: #0f172a;
    --foreground: #f8fafc;
    --muted: #1e293b;
    --muted-foreground: #94a3b8;
    --popover: #0f172a;
    --popover-foreground: #f8fafc;
    --card: #0f172a;
    --card-foreground: #f8fafc;
    --border: #1e293b;
    --input: #1e293b;
    --primary: #f8fafc;
    --primary-foreground: #0f172a;
    --secondary: #1e293b;
    --secondary-foreground: #f8fafc;
    --accent: #1e293b;
    --accent-foreground: #f8fafc;
    --destructive: #ef4444;
    --destructive-foreground: #f8fafc;
    --ring: #475569;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-family);
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: var(--transition);
}

/* Utility Classes */
.container {
    width: 100%;
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1rem;
}

.hidden {
    display: none !important;
}

.icon {
    width: 1.25rem;
    height: 1.25rem;
    stroke-width: 2;
}

/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border-radius: var(--radius);
    font-size: var(--text-sm);
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    text-decoration: none;
    white-space: nowrap;
    padding: 0.5rem 1rem;
    min-height: 2.5rem;
}

.btn:disabled {
    pointer-events: none;
    opacity: 0.5;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--primary-foreground);
}

.btn-primary:hover {
    opacity: 0.9;
}

.btn-outline {
    border: 1px solid var(--border);
    background-color: var(--background);
    color: var(--foreground);
}

.btn-outline:hover {
    background-color: var(--accent);
    color: var(--accent-foreground);
}

.btn-full {
    width: 100%;
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background-color: rgba(var(--background), 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
}

.logo-link {
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

.logo-link:hover {
    opacity: 0.8;
}

.nav-desktop {
    display: none;
    gap: 2rem;
}

.nav-link {
    color: var(--foreground);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary);
}

.header-actions {
    display: none;
    align-items: center;
    gap: 1rem;
}

.mobile-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--radius);
    border: none;
    background-color: transparent;
    color: var(--foreground);
    cursor: pointer;
    transition: var(--transition);
}

.theme-toggle:hover {
    background-color: var(--accent);
}

.mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--radius);
    border: none;
    background-color: transparent;
    color: var(--foreground);
    cursor: pointer;
    transition: var(--transition);
}

.mobile-menu-toggle:hover {
    background-color: var(--accent);
}

.nav-mobile {
    border-top: 1px solid var(--border);
    background-color: var(--background);
}

.mobile-nav-content {
    padding: 0.5rem 0.5rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.mobile-nav-link {
    display: block;
    padding: 0.5rem 0.75rem;
    color: var(--foreground);
    text-decoration: none;
    border-radius: var(--radius);
    transition: var(--transition);
}

.mobile-nav-link:hover {
    color: var(--primary);
    background-color: var(--accent);
}

/* Hero Section */
.hero {
    padding-top: 4rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--background) 0%, var(--background) 70%, var(--accent) 100%);
}

.hero-content {
    max-width: 64rem;
    margin: 0 auto;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    background-color: rgba(var(--primary), 0.1);
    color: var(--primary);
    font-size: var(--text-sm);
    font-weight: 500;
    margin-bottom: 2rem;
    animation: fadeInUp 0.6s ease-out;
}

.hero-title {
    font-size: var(--text-4xl);
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 1.5rem;
    line-height: 1.1;
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.hero-title-highlight {
    color: var(--primary);
    background: linear-gradient(135deg, var(--primary) 0%, rgba(var(--primary), 0.7) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: var(--text-lg);
    color: var(--muted-foreground);
    margin-bottom: 2rem;
    max-width: 32rem;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.6s ease-out 0.4s both;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    margin-bottom: 4rem;
    animation: fadeInUp 0.6s ease-out 0.6s both;
}

.hero-buttons .btn {
    padding: 0.75rem 2rem;
    font-size: var(--text-base);
}

.hero-buttons .btn .icon {
    transition: transform 0.2s ease;
}

.hero-buttons .btn:hover .icon {
    transform: translateX(0.25rem);
}

.hero-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    animation: fadeInUp 0.6s ease-out 0.8s both;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--muted-foreground);
    font-size: var(--text-sm);
}

/* Section Styles */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: var(--text-lg);
    color: var(--muted-foreground);
    max-width: 48rem;
    margin: 0 auto;
}

/* Blog Section */
.blog-section {
    padding: 5rem 0;
    background-color: var(--background);
}

.category-filter {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.category-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border);
    background-color: var(--background);
    color: var(--foreground);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    font-size: var(--text-sm);
    font-weight: 500;
}

.category-btn:hover,
.category-btn.active {
    background-color: var(--primary);
    color: var(--primary-foreground);
    border-color: var(--primary);
}

.articles-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

/* Tools Section */
.tools-section {
    padding: 5rem 0;
    background-color: var(--muted);
}

.tools-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.tool-card {
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
}

.tool-card:hover {
    transform: translateY(-0.25rem);
    box-shadow: var(--shadow-lg);
}

.tool-icon {
    width: 3rem;
    height: 3rem;
    margin: 0 auto 1rem;
    background-color: var(--primary);
    color: var(--primary-foreground);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
}

.tool-icon .icon {
    width: 1.5rem;
    height: 1.5rem;
}

.tool-title {
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 0.5rem;
}

.tool-description {
    color: var(--muted-foreground);
    font-size: var(--text-sm);
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.tool-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    font-size: var(--text-sm);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition: var(--transition);
}

.tool-link:hover {
    opacity: 0.8;
}

.tool-link .icon {
    width: 1rem;
    height: 1rem;
    transition: transform 0.2s ease;
}

.tool-link:hover .icon {
    transform: translateX(0.125rem);
}

/* About Section */
.about-section {
    padding: 5rem 0;
    background-color: var(--background);
}

.about-content {
    max-width: 72rem;
    margin: 0 auto;
}

.about-text {
    text-align: center;
    margin-bottom: 4rem;
}

.about-description {
    font-size: var(--text-lg);
    color: var(--muted-foreground);
    line-height: 1.7;
    max-width: 48rem;
    margin: 0 auto;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 4rem;
}

.feature {
    text-align: center;
    padding: 1.5rem;
}

.feature-icon {
    width: 3rem;
    height: 3rem;
    margin: 0 auto 1rem;
    background-color: var(--accent);
    color: var(--accent-foreground);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon .icon {
    width: 1.5rem;
    height: 1.5rem;
}

.feature-title {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 0.5rem;
}

.feature-description {
    color: var(--muted-foreground);
    font-size: var(--text-sm);
    line-height: 1.5;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 4rem;
}

.about-cta {
    text-align: center;
    padding: 3rem;
    background-color: var(--muted);
    border-radius: var(--radius);
}

.cta-title {
    font-size: var(--text-2xl);
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 1rem;
}

.cta-description {
    color: var(--muted-foreground);
    font-size: var(--text-lg);
    margin-bottom: 2rem;
    max-width: 32rem;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

/* Contact Section */
.contact-section {
    padding: 5rem 0;
    background-color: var(--muted);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    max-width: 72rem;
    margin: 0 auto;
}

.contact-info {
    padding: 2rem 0;
}

.contact-description {
    color: var(--muted-foreground);
    font-size: var(--text-lg);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.contact-subtitle {
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 1rem;
}

.contact-text {
    color: var(--muted-foreground);
    margin-bottom: 2rem;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: auto;      /* allow natural row height */
    align-items: start;        /* prevent vertical stretching */
    gap: 2rem;
    align-items: center;
    justify-content: center;
}

.contact-method {
    display: flex;
    gap: 1rem;
}

.contact-method-icon {
    width: 3rem;
    height: 3rem;
    background-color: var(--primary);
    color: var(--primary-foreground);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-method-icon .icon {
    width: 1.25rem;
    height: 1.25rem;
}

.contact-method-content {
    flex: 1;
}

.contact-method-title {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 0.25rem;
}

.contact-method-description {
    color: var(--muted-foreground);
    font-size: var(--text-sm);
    margin-bottom: 0.25rem;
}

.contact-method-value {
    color: var(--foreground);
    font-weight: 500;
}

.contact-form-container {
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
}

.form-title {
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 0.5rem;
}

.form-description {
    color: var(--muted-foreground);
    margin-bottom: 2rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-label {
    font-weight: 500;
    color: var(--foreground);
    font-size: var(--text-sm);
}

.form-input,
.form-textarea {
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background-color: var(--background);
    color: var(--foreground);
    font-size: var(--text-sm);
    transition: var(--transition);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(var(--ring), 0.2);
}

.form-textarea {
    resize: vertical;
    min-height: 6rem;
}

/* Footer */
.footer {
    background-color: var(--background);
    border-top: 1px solid var(--border);
    padding: 3rem 0 1rem;
}

.footer-content {
    text-align: center;
    margin-bottom: 2rem;
}

.footer-links {
    margin-top: 1rem;
}

.footer-list {
    list-style: none;
    display: flex;              /* Make links horizontal */
    gap: 1.5rem;                /* Add spacing between links */
    padding: 0;
    margin: 0;
    justify-content: center;    /* Center the links (optional) */
    text-align: center;
}

.footer-brand {
    max-width: 20rem;
    text-align: center;
}

.footer-logo {
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    margin-bottom: 1rem;
    display: block;
}

.footer-description {
    color: var(--muted-foreground);
    font-size: var(--text-sm);
    line-height: 1.5;
}


.footer-section {
    display: flex;
    gap: 1rem;
}

.footer-title {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--foreground);
}

.footer-link {
    color: var(--muted-foreground);
    text-decoration: none;
    font-size: var(--text-sm);
    transition: var(--transition);
}

.footer-link:hover {
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 1rem;
    text-align: center;
}

.footer-copyright {
    color: var(--muted-foreground);
    font-size: var(--text-sm);
}

/* AdSense Prompt */
.adsense-prompt {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    z-index: 100;
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    max-width: 20rem;
    box-shadow: var(--shadow-lg);
}

.adsense-title {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 0.5rem;
}

.adsense-description {
    color: var(--muted-foreground);
    font-size: var(--text-sm);
    line-height: 1.5;
    margin-bottom: 1rem;
}

.adsense-buttons {
    display: flex;
    gap: 0.5rem;
}

.adsense-buttons .btn {
    flex: 1;
    padding: 0.5rem;
    font-size: var(--text-xs);
}

/* Tool Pages Layout */
.tool-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.email-generator, .inbox, .phone-validator, .network-providers, 
.bank-verification, .supported-banks, .url-extractor {
    width: 100%;
    max-width: 100%;
    padding: 1.5rem;
    margin: 0 0 1rem 0;
    box-sizing: border-box;
    overflow: hidden;
    word-wrap: break-word;
}

input, select, textarea {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    font-size: 16px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 0.75rem;
    word-wrap: break-word;
}

.btn {
    width: auto;
    min-width: auto;
    max-width: 100%;
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-sizing: border-box;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bank-list {
    max-height: 250px;
    overflow-y: auto;
    width: 100%;
    max-width: 100%;
}

.bank-item {
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    width: 100%;
    max-width: 100%;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    word-wrap: break-word;
}

.bank-item > div:last-child {
    flex: 1;
    min-width: 0;
    word-wrap: break-word;
}

.data-tabs {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.tab-headers {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    max-width: 100%;
}

.tab-btn {
    padding: 0.75rem;
    text-align: center;
    width: 100%;
    max-width: 100%;
    font-size: 0.875rem;
    box-sizing: border-box;
    word-wrap: break-word;
}

.tab-content {
    padding: 1rem;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    word-wrap: break-word;
}

.features-section {
    margin-bottom: 2rem;
    width: 100%;
    max-width: 100%;
}

.features-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
    word-wrap: break-word;
}

.features-section > div {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-width: 100%;
}

.features-section > div > div {
    padding: 1.5rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    word-wrap: break-word;
}

.security-notice {
    padding: 1rem;
    margin-bottom: 2rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.security-notice > div {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-width: 100%;
}

.security-notice h4 {
    font-size: 1rem;
    word-wrap: break-word;
}

.security-notice p {
    font-size: 0.875rem;
    line-height: 1.5;
    word-wrap: break-word;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-width: 100%;
}

.form-group {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    word-wrap: break-word;
}

.email-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    max-width: 100%;
}

.email-actions .btn {
    width: 100%;
    max-width: 100%;
    justify-content: center;
    box-sizing: border-box;
}

.validation-result {
    width: 100%;
    max-width: 100%;
    margin-top: 1rem;
    box-sizing: border-box;
}

.formatted-numbers {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    max-width: 100%;
}

.formatted-number {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem;
    background: var(--muted);
    border-radius: var(--radius);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.formatted-number span {
    flex: 1;
    min-width: 0;
    word-break: break-all;
    overflow-wrap: break-word;
}

.copy-btn {
    width: auto;
    min-width: auto;
    max-width: 100px;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    flex-shrink: 0;
    box-sizing: border-box;
}

/* Article Page Styles */
.article-card {
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
}

.article-card:hover {
    transform: translateY(-0.25rem);
    box-shadow: var(--shadow-lg);
}

.article-image {
    width: 100%;
    height: 12rem;
    object-fit: cover;
    background-color: var(--muted);
}

.article-category {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background-color: var(--accent);
    color: var(--accent-foreground);
    font-size: var(--text-xs);
    font-weight: 500;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.article-title {
    font-size: var(--text-xl);
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.article-excerpt {
    color: var(--muted-foreground);
    font-size: var(--text-sm);
    line-height: 1.5;
    margin-bottom: 1rem;
}

.article-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.article-header {
    margin-bottom: 2rem;
    text-align: center;
}

.article-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: var(--text-xs);
    color: var(--muted-foreground);
}

.article-content {
    padding: 1.5rem;
    line-height: 1.8;
    margin-bottom: 3rem;
}

.article-content h2 {
    margin: 2rem 0 1rem 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.article-content h3 {
    margin: 1.5rem 0 0.75rem 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.article-content p {
    margin-bottom: 1rem;
}

.article-content ul, .article-content ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

.article-content li {
    margin-bottom: 0.5rem;
}

.comments-section {
    border-top: 1px solid var(--border);
    padding-top: 2rem;
}

.comments-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.comment-form {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.comment-form textarea {
    width: 100%;
    min-height: 100px;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    resize: vertical;
    font-family: inherit;
    margin-bottom: 1rem;
}

.comment-form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.comment-form-meta {
    display: flex;
    gap: 1rem;
}

.comment-form-meta input {
    padding: 0.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.875rem;
}

.comment {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.comment-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.comment-avatar {
    width: 2.5rem;
    height: 2.5rem;
    background: var(--primary);
    color: var(--primary-foreground);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
}

.comment-meta {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.comment-content {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.comment-actions {
    display: flex;
    gap: 1rem;
}

.comment-action {
    background: none;
    border: none;
    color: var(--muted-foreground);
    cursor: pointer;
    font-size: 0.875rem;
    padding: 0.25rem 0;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.comment-action:hover {
    color: var(--primary);
}

.replies {
    margin-top: 1rem;
    margin-left: 2rem;
    border-left: 2px solid var(--border);
    padding-left: 1rem;
}

.reply-form {
    background: var(--muted);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
    margin-top: 1rem;
}

.reply-form textarea {
    width: 100%;
    min-height: 80px;
    padding: 0.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    resize: vertical;
    font-family: inherit;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
}

.reply-form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.reply-form-meta {
    display: flex;
    gap: 0.75rem;
}

.reply-form-meta input {
    padding: 0.375rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.75rem;
    width: 100px;
}

/* AdSense Ad Container Styles */
.ad-container {
    margin: 2rem 0;
    padding: 1rem;
    background: var(--muted);
    border-radius: var(--radius);
    text-align: center;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.ad-container:hover {
    background: var(--accent);
}

.ad-container .adsbygoogle {
    display: block;
    min-height: 90px;
    background: var(--background);
    border-radius: calc(var(--radius) - 2px);
}

/* Performance Optimizations */
.lazy-load {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.lazy-load.loaded {
    opacity: 1;
}

.sitemap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.sitemap-section {
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: var(--transition);
}

.sitemap-section:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.sitemap-section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sitemap-section-icon {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--primary);
}

.sitemap-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sitemap-links li {
    margin-bottom: 0.75rem;
}

.sitemap-link {
    color: var(--muted-foreground);
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    border-radius: calc(var(--radius) - 2px);
}

.sitemap-link:hover {
    color: var(--primary);
    background-color: var(--muted);
}

.sitemap-link-icon {
    width: 1rem;
    height: 1rem;
    opacity: 0.7;
}

.sitemap-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
    padding: 2rem;
    background-color: var(--muted);
    border-radius: var(--radius);
}

.sitemap-stat {
    text-align: center;
}

.sitemap-stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.sitemap-stat-label {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.search-box {
    position: relative;
    margin-bottom: 2rem;
}

.search-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 3rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background-color: var(--background);
    color: var(--foreground);
    font-size: 1rem;
    transition: var(--transition);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(var(--primary), 0.1);
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1rem;
    height: 1rem;
    color: var(--muted-foreground);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(2rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ============================================
   CONSOLIDATED RESPONSIVE DESIGN
   ============================================ */

/* Extra Small Screens (0-479px) */
@media (max-width: 479px) {
    .container {
        padding: 0 0.5rem;
        max-width: 100vw;
    }
    
    .tool-title {
        font-size: 1.5rem;
    }
    
    .tool-subtitle {
        font-size: 0.875rem;
    }
    
    .email-generator, .inbox, .phone-validator, .network-providers, 
    .bank-verification, .supported-banks, .url-extractor {
        padding: 0.75rem;
        width: 100%;
        max-width: 100%;
    }
    
    .tab-content {
        padding: 0.75rem;
        width: 100%;
        max-width: 100%;
    }
    
    .features-section h2 {
        font-size: 1.25rem;
    }
    
    .features-section > div > div {
        padding: 1rem;
        width: 100%;
        max-width: 100%;
    }
    
    .features-section > div > div h3 {
        font-size: 1rem;
        word-wrap: break-word;
    }
    
    .features-section > div > div p {
        font-size: 0.875rem;
        word-wrap: break-word;
    }
    
    .btn {
        padding: 0.625rem 1rem;
        font-size: 0.8125rem;
        max-width: 100%;
    }
    
    .bank-item {
        padding: 0.5rem;
        font-size: 0.875rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .tab-btn {
        padding: 0.625rem;
        font-size: 0.8125rem;
        width: 100%;
        max-width: 100%;
    }
    
    .formatted-number {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }
    
    .copy-btn {
        width: 100%;
        max-width: 100%;
    }
    
    .article-content img {
        height: 150px !important;
    }
    
    .article-header img {
        height: 150px !important;
    }
}

/* Small Screens (480-639px) */
@media (min-width: 480px) and (max-width: 639px) {
    .container {
        padding: 0 0.75rem;
    }
    
    .hero-buttons {
        flex-direction: row;
    }
    
    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .about-stats {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .cta-buttons {
        flex-direction: row;
    }
}

/* Medium Screens (640-767px) */
@media (min-width: 640px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .hero-title {
        font-size: var(--text-5xl);
    }
    
    .hero-subtitle {
        font-size: var(--text-xl);
    }
    
    .hero-buttons {
        flex-direction: row;
    }
    
    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .section-title {
        font-size: var(--text-4xl);
    }
    
    .about-stats {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .cta-buttons {
        flex-direction: row;
    }
    
    .footer-links {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Large Screens (768-1023px) */
@media (min-width: 768px) {
    .nav-desktop {
        display: flex;
    }
    
    .header-actions {
        display: flex;
    }
    
    .mobile-actions {
        display: none;
    }
    
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-features {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
    
    .tool-content {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    
    .article-container {
        padding: 1rem 0.75rem;
    }
    
    .article-meta {
        flex-direction: flex;
        gap: 0.5rem;
    }
    
    .comments-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .comment-form, .comment {
        padding: 1rem;
    }
    
    .comment-form-actions, .reply-form-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .comment-form-meta, .reply-form-meta {
        justify-content: space-between;
    }
    
    .comment-form-meta input, .reply-form-meta input {
        flex: 1;
        min-width: 0;
    }
    
    .replies {
        margin-left: 1rem;
        padding-left: 0.75rem;
    }
    
    .comment-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .comment-actions {
        flex-wrap: wrap;
    }
    
    .article-content div[style*="display: flex"] {
        flex-direction: column !important;
        gap: 1rem !important;
    }
    
    .article-content img {
        width: 100% !important;
        height: 200px !important;
        max-width: 100% !important;
    }
    
    .article-header img {
        height: 200px !important;
    }
    
    .ad-container {
        margin: 1.5rem 0;
        padding: 0.75rem;
    }
}

/* Mobile Responsive Fixes (max-width: 768px) */
@media (max-width: 768px) {
    .hero {
        padding-top: 6rem;
        padding-bottom: 3rem;
    }
    
    .hero-content {
        padding: 0 1rem;
    }
    
    .section-header {
        margin-bottom: 2rem;
    }
    
    .blog-section,
    .tools-section,
    .about-section,
    .contact-section {
        padding: 3rem 0;
    }
    
    .container {
        padding: 0 0.75rem;
        max-width: 100vw;
    }
    
    .tool-content {
        grid-template-columns: 1fr !important;
    }
    
    .email-generator, .inbox, .phone-validator, .network-providers, 
    .bank-verification, .supported-banks, .url-extractor {
        width: 100%;
        max-width: 100%;
        padding: 1rem;
        margin: 0 0 1rem 0;
        flex: none;
        display: block;
    }
    
    .bank-list {
        max-height: 250px;
        overflow-y: auto;
        width: 100%;
        max-width: 100%;
    }
    
    .bank-item {
        padding: 0.75rem;
        margin-bottom: 0.5rem;
        width: 100%;
        max-width: 100%;
        display: flex;
        align-items: center;
        gap: 0.75rem;
        flex-wrap: wrap;
        word-wrap: break-word;
    }
    
    .bank-item > div:last-child {
        flex: 1;
        min-width: 0;
        word-wrap: break-word;
    }
    
    .data-tabs {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }
    
    .tab-headers {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
        max-width: 100%;
    }
    
    .tab-btn {
        padding: 0.75rem;
        text-align: center;
        width: 100%;
        max-width: 100%;
        font-size: 0.875rem;
        box-sizing: border-box;
        word-wrap: break-word;
    }
    
    .tab-content {
        padding: 1rem;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
        word-wrap: break-word;
    }
    
    .features-section {
        margin-bottom: 2rem;
        width: 100%;
        max-width: 100%;
    }
    
    .features-section h2 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
        text-align: center;
        word-wrap: break-word;
    }
    
    .features-section > div {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        max-width: 100%;
    }
    
    .features-section > div > div {
        padding: 1.5rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        word-wrap: break-word;
    }
    
    .security-notice {
        padding: 1rem;
        margin-bottom: 2rem;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .security-notice > div {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        max-width: 100%;
    }
    
    .security-notice h4 {
        font-size: 1rem;
        word-wrap: break-word;
    }
    
    .security-notice p {
        font-size: 0.875rem;
        line-height: 1.5;
        word-wrap: break-word;
    }
    
    .form-row {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        max-width: 100%;
    }
    
    .form-group {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .form-group label {
        display: block;
        margin-bottom: 0.5rem;
        font-weight: 500;
        word-wrap: break-word;
    }
    
    .email-actions {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
        max-width: 100%;
    }
    
    .email-actions .btn {
        width: 100%;
        max-width: 100%;
        justify-content: center;
        box-sizing: border-box;
    }
    
    .validation-result {
        width: 100%;
        max-width: 100%;
        margin-top: 1rem;
        box-sizing: border-box;
    }
    
    .formatted-numbers {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
        max-width: 100%;
    }
    
    .formatted-number {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0.5rem;
        background: var(--muted);
        border-radius: var(--radius);
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .formatted-number span {
        flex: 1;
        min-width: 0;
        word-break: break-all;
        overflow-wrap: break-word;
    }
    
    .copy-btn {
        width: auto;
        min-width: auto;
        max-width: 100px;
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
        flex-shrink: 0;
        box-sizing: border-box;
    }
}

/* Extra Large Screens (1024px+) */
@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
    
    .hero-title {
        font-size: var(--text-6xl);
    }
    
    .articles-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .tools-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .about-features {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .contact-content {
        grid-template-columns: 1fr 1fr;
    }
}

/* Accessibility and Special Media Queries */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for accessibility */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .header,
    .footer,
    .adsense-prompt,
    .ad-container,
    .nav-mobile,
    .mobile-actions {
        display: none !important;
    }
    
    .hero {
        padding-top: 0;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}

