/* Modern CSS Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* CSS Variables */
:root {
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --secondary: #10b981;
    --accent: #f59e0b;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --white: #ffffff;
    --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);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --radius: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
}

/* Base Styles */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--gray-900);
    background: var(--gray-50);
    font-size: 16px;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--gray-900);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

/* Header */
.header {
    background: var(--white);
    border-bottom: 3px solid;
    border-image: linear-gradient(90deg, var(--primary), var(--secondary)) 1;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 50;
    box-shadow: var(--shadow-sm);
    height: 78px;
}

.header .container {
    padding: 0 1rem;
    height: 100%;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    height: 100%;
}

.nav-brand {
    flex-shrink: 0;
}

.logo {
    height: 45px;
    width: auto;
    display: block;
    vertical-align: top;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0;
    background: none;
    border: none;
    z-index: 100;
    position: relative;
    justify-content: center;
    align-items: center;
}

.nav-toggle:hover {
    opacity: 0.7;
}

.nav-toggle span {
    width: 30px;
    height: 4px;
    background: var(--primary);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--gray-600);
    font-weight: 500;
    transition: color 0.2s;
    padding: 0.5rem 0;
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background: var(--primary);
    transition: width 0.3s;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.get-started-btn {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.get-started-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 120px 0 5rem;
    text-align: center;
    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"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></svg>');
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    color: var(--white);
}

.hero .highlight {
    background: linear-gradient(45deg, var(--accent), #ef4444);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.search-container {
    max-width: 500px;
    margin: 0 auto;
    position: relative;
}

.search-box {
    display: flex;
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.search-box input {
    flex: 1;
    padding: 1.25rem 1.5rem;
    border: none;
    outline: none;
    font-size: 1rem;
    color: var(--gray-900);
    background: transparent;
}

.search-box input::placeholder {
    color: var(--gray-500);
}

.search-box button {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 1.25rem 2rem;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.search-box button:hover {
    background: var(--primary-dark);
}

/* Intro Section */
.intro-section {
    padding: 4rem 0;
    background: var(--white);
    text-align: center;
}

.intro-text p {
    font-size: 1.125rem;
    color: var(--gray-600);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Categories */
.categories {
    padding: 5rem 0;
    background: var(--gray-50);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.category-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    border: 1px solid var(--gray-200);
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.category-icon {
    width: 4rem;
    height: 4rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.category-icon i {
    font-size: 1.5rem;
    color: var(--white);
}

.category-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--gray-900);
}

.category-desc {
    font-size: 0.95rem;
    color: var(--gray-600);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.calculator-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.calculator-list a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #2563eb;
    padding: 0.875rem 1rem;
    border-radius: var(--radius);
    transition: all 0.2s;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.calculator-list a:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateX(4px);
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.calculator-list a i {
    margin-right: 0.75rem;
    color: var(--secondary);
    width: 20px;
    transition: color 0.2s;
}

.calculator-list a:hover i {
    color: var(--white);
}

/* Related Calculators Section */
.related-calculators {
    padding: 3rem 0;
    background: var(--gray-50);
    border-top: 1px solid var(--gray-200);
}

.related-calculators h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--gray-900);
}

.calculator-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.calc-category h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--primary);
    border-bottom: 2px solid var(--primary);
    padding-bottom: 0.5rem;
}

.calc-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.calc-links a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--gray-700);
    padding: 0.5rem;
    border-radius: var(--radius);
    transition: all 0.2s;
    font-size: 0.9rem;
}

.calc-links a:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateX(4px);
}

.calc-links a i {
    margin-right: 0.5rem;
    width: 16px;
    color: var(--secondary);
    transition: color 0.2s;
}

.calc-links a:hover i {
    color: var(--white);
}

/* Content Sections */
.examples-section, .guide-section, .faq-section {
    padding: 4rem 0;
    background: var(--white);
}

.examples-section {
    background: var(--gray-50);
}

.faq-section {
    background: var(--gray-50);
}

.examples-section h2, .guide-section h2, .faq-section h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 3rem;
    color: var(--gray-900);
}

/* Examples */
.examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.example-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-xl);
    border: 1px solid var(--gray-200);
    text-align: center;
    transition: all 0.3s;
    box-shadow: var(--shadow);
}

.example-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.example-card h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.example-card p {
    color: var(--gray-600);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.example-btn {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-lg);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.example-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Guide Steps */
.guide-steps {
    max-width: 900px;
    margin: 0 auto;
}

.step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 3rem;
    gap: 2rem;
    padding: 2rem;
    background: var(--gray-50);
    border-radius: var(--radius-xl);
    border: 1px solid var(--gray-200);
}

.step-number {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.5rem;
    flex-shrink: 0;
    box-shadow: var(--shadow-md);
}

.step-content h3 {
    color: var(--gray-900);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.step-content p {
    color: var(--gray-600);
    line-height: 1.7;
    font-size: 1.1rem;
}

/* FAQ */
.faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    margin-bottom: 1.5rem;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.faq-item:hover {
    box-shadow: var(--shadow-md);
}

.faq-question {
    background: var(--white);
    padding: 1.5rem 2rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s;
}

.faq-question:hover {
    background: var(--gray-50);
}

.faq-question h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-900);
}

.faq-question i {
    color: var(--primary);
    font-size: 1.2rem;
    transition: transform 0.3s;
}

.faq-answer {
    padding: 0 2rem 2rem 2rem;
    background: var(--white);
    display: none;
    border-top: 1px solid var(--gray-200);
}

.faq-answer p {
    color: var(--gray-600);
    line-height: 1.7;
    margin: 0;
    font-size: 1.1rem;
}

/* Popular Section */
.popular {
    padding: 5rem 0;
    background: var(--white);
}

.popular h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 3rem;
    color: var(--gray-900);
}

.popular-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.popular-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.popular-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transition: transform 0.3s;
}

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

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

.card-icon {
    width: 4rem;
    height: 4rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.card-icon i {
    font-size: 1.5rem;
    color: var(--white);
}

.popular-card h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-900);
}

/* Features */
.features {
    padding: 5rem 0;
    background: var(--gray-50);
}

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

.feature {
    text-align: center;
    padding: 2rem;
}

.feature-icon {
    width: 4rem;
    height: 4rem;
    background: linear-gradient(135deg, var(--secondary), #059669);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.feature-icon i {
    font-size: 1.5rem;
    color: var(--white);
}

.feature h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--gray-900);
}

.feature p {
    color: var(--gray-600);
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Footer */
.footer {
    background: var(--gray-900);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
}

.footer .logo {
    height: 59px !important;
    max-width: 208px !important;
    max-height: 59px !important;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--gray-400);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-description {
    text-align: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray-700);
}

.footer-description p {
    color: var(--gray-400);
    font-size: 0.95rem;
}

.footer-bottom {
    text-align: center;
}

.footer-bottom p {
    color: var(--gray-400);
    font-size: 0.9rem;
}

/* Calculator Pages */
.calc-container {
    max-width: 900px;
    margin: 6rem auto 3rem;
    padding: 0 1rem;
}

.calc-header {
    text-align: center;
    margin-bottom: 3rem;
}

.calc-header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.calc-header h1 i {
    color: var(--primary);
}

.calc-header p {
    font-size: 1.125rem;
    color: var(--gray-600);
}

.calc-description {
    background: var(--white);
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
}

.calc-description p {
    color: var(--gray-600);
    line-height: 1.7;
    font-size: 1rem;
}

.calc-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--gray-900);
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 1rem;
    transition: all 0.2s;
    background: var(--white);
    color: var(--gray-900);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgb(59 130 246 / 0.1);
}

.calc-btn {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 1rem 2rem;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 50px;
}

.calc-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.result {
    margin-top: 2rem;
    padding: 2rem;
    background: #f0fdf4;
    border-radius: var(--radius-xl);
    border: 1px solid #bbf7d0;
}

.result h3 {
    color: var(--gray-900);
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    text-align: center;
}

.result-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 0.5rem;
    text-align: center;
}

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

.result-grid > div {
    text-align: center;
    padding: 1rem;
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid #bbf7d0;
}

/* Calculator Categories */
.calculator-categories {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.calc-category {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray-200);
}

.calc-category h2 {
    color: var(--gray-900);
    margin-bottom: 2rem;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.calc-category h2 i {
    color: var(--primary);
}

.calc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
}

.calc-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--gray-700);
    transition: all 0.2s;
    font-weight: 500;
}

.calc-item:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.calc-item i {
    color: var(--secondary);
    width: 20px;
    text-align: center;
    transition: color 0.2s;
}

.calc-item:hover i {
    color: var(--white);
}
@media (max-width: 768px) {
    .header {
        height: 60px;
    }
    
    .navbar {
        padding: 0;
        height: 100%;
    }
    
    .logo {
        height: 40px;
        width: auto;
        max-width: 180px;
    }
    
    .nav-toggle {
        display: flex;
        padding: 0.5rem;
        min-width: 40px;
        min-height: 40px;
    }
    
    .hero {
        padding: 80px 0 4rem;
    }
    
    .nav-menu {
        position: fixed;
        top: 100px;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 0.5rem 0;
        box-shadow: var(--shadow-lg);
        transform: translateX(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s;
        border-top: 1px solid var(--gray-200);
        z-index: 50;
        gap: 0;
        margin-left: 0;
        align-items: flex-start;
    }
    
    .nav-menu.active {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-menu a {
        padding: 0.4rem 1rem;
        font-size: 0.85rem;
        display: block;
        width: 100%;
        color: var(--gray-700);
        font-weight: 500;
        border-bottom: 1px solid var(--gray-100);
        border-radius: 0;
    }
    
    .nav-menu a i {
        font-size: 0.85rem;
    }
    
    .nav-menu a:hover {
        background: var(--gray-50);
        color: var(--primary);
    }
    
    .get-started-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 100px;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 2rem 0;
        box-shadow: var(--shadow-lg);
        transform: translateX(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s;
        border-top: 1px solid var(--gray-200);
        z-index: 50;
    }
    
    .nav-menu.active {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-menu li {
        margin: 0;
        border-bottom: 1px solid var(--gray-100);
    }
    
    .nav-menu a {
        padding: 1.5rem 2rem;
        font-size: 1.2rem;
        display: block;
        width: 100%;
        color: var(--gray-700);
        font-weight: 600;
    }
    
    .nav-menu a:hover {
        background: var(--primary);
        color: var(--white);
    }
    
    .hero {
        padding: 6rem 0 4rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .search-box {
        flex-direction: column;
        border-radius: var(--radius-lg);
    }
    
    .search-box button {
        border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    }
    
    .category-grid {
        grid-template-columns: 1fr;
    }
    
    .popular-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .calc-container {
        margin-top: 5rem;
    }
    
    .calc-header h1 {
        font-size: 2rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .calc-card {
        padding: 2rem 1.5rem;
    }
}

/* Dark Mode Styles */
.dark-mode {
    --gray-50: #1f2937;
    --gray-100: #374151;
    --gray-200: #4b5563;
    --gray-300: #6b7280;
    --gray-600: #d1d5db;
    --gray-700: #e5e7eb;
    --gray-800: #f3f4f6;
    --gray-900: #f9fafb;
    --white: #111827;
    background: #111827;
    color: #f9fafb;
}

.dark-mode-toggle {
    background: none;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 0.5rem;
    border-radius: var(--radius);
    cursor: pointer;
    margin-left: 1rem;
    transition: all 0.2s;
}

.dark-mode-toggle:hover {
    background: var(--primary);
    color: var(--white);
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--gray-900);
    color: var(--white);
    padding: 1rem;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.cookie-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.accept-btn {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    cursor: pointer;
}

.privacy-link {
    color: var(--gray-300);
    text-decoration: none;
}

/* History Modal */
.history-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.history-modal-content {
    background: var(--white);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
}

.history-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
}

.history-list {
    padding: 1.5rem;
    max-height: 400px;
    overflow-y: auto;
}

.history-item {
    padding: 1rem;
    border-bottom: 1px solid var(--gray-200);
    margin-bottom: 1rem;
}

.history-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.history-result {
    color: var(--gray-600);
    font-size: 0.9rem;
}

.history-modal-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--gray-200);
    text-align: center;
}

.clear-btn {
    background: #e53e3e;
    color: var(--white);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    cursor: pointer;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray-500);
}

.history-btn {
    background: var(--secondary);
    color: var(--white);
    border: none;
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    cursor: pointer;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* PWA Install Button */
.install-btn {
    background: var(--secondary);
    color: var(--white);
    border: none;
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    cursor: pointer;
    display: none;
    align-items: center;
    gap: 0.5rem;
    margin-left: 1rem;
}

.install-btn.show {
    display: flex;
}

/* Print Styles */
@media print {
    .header, .footer, .nav-toggle, .dark-mode-toggle {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}

/* Mobile Responsive Updates */
@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .dark-mode-toggle {
        margin-left: 0.5rem;
        padding: 0.4rem;
    }
    
    .history-modal-content {
        width: 95%;
        margin: 1rem;
    }
}

/* Dark Mode Styles */
.dark-mode {
    --gray-50: #1f2937;
    --gray-100: #374151;
    --gray-200: #4b5563;
    --gray-300: #6b7280;
    --gray-600: #d1d5db;
    --gray-700: #e5e7eb;
    --gray-800: #f3f4f6;
    --gray-900: #f9fafb;
    --white: #111827;
    background: #111827;
    color: #f9fafb;
}

.dark-mode-toggle {
    background: none;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 0.5rem;
    border-radius: var(--radius);
    cursor: pointer;
    margin-left: 1rem;
    transition: all 0.2s;
}

.dark-mode-toggle:hover {
    background: var(--primary);
    color: var(--white);
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--gray-900);
    color: var(--white);
    padding: 1rem;
    z-index: 1000;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.cookie-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.accept-btn {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    cursor: pointer;
}

.privacy-link {
    color: var(--gray-300);
    text-decoration: none;
}

/* History Modal */
.history-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.history-modal-content {
    background: var(--white);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
}

.history-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
}

.history-list {
    padding: 1.5rem;
    max-height: 400px;
    overflow-y: auto;
}

.history-item {
    padding: 1rem;
    border-bottom: 1px solid var(--gray-200);
    margin-bottom: 1rem;
}

.history-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.history-result {
    color: var(--gray-600);
    font-size: 0.9rem;
}

.history-modal-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--gray-200);
    text-align: center;
}

.clear-btn {
    background: #e53e3e;
    color: var(--white);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    cursor: pointer;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray-500);
}

.history-btn {
    background: var(--secondary);
    color: var(--white);
    border: none;
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    cursor: pointer;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}