/* =============================================
   Etsy Fee Calculator - Main Stylesheet
   ============================================= */

/* CSS Variables */
:root {
    --primary: #00A67E;
    --primary-dark: #008f6b;
    --primary-light: #e6f9f3;
    --secondary: #FF6B35;
    --secondary-light: #fff3ee;
    --bg: #f8fafb;
    --white: #ffffff;
    --dark: #1a1a2e;
    --text: #333344;
    --text-light: #6b7280;
    --text-muted: #9ca3af;
    --border: #e5e7eb;
    --border-light: #f0f0f5;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 36px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 24px 48px rgba(0, 0, 0, 0.16);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --max-width: 1200px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --red: #ef4444;
    --green: #10b981;
    --blue: #3b82f6;
}

/* Reset */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

/* Container */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.container-narrow {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
}

/* =============================================
   HEADER / NAVIGATION
   ============================================= */
.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.95);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    max-width: var(--max-width);
    margin: 0 auto;
    height: 72px;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 20px;
    color: var(--dark);
}

.site-logo .logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary), #00c896);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
}

.site-logo img {
    height: 36px;
    width: auto;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 0;
}

.main-nav a {
    padding: 8px 18px;
    color: var(--text);
    font-weight: 500;
    font-size: 15px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    position: relative;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary);
    background: var(--primary-light);
}

.nav-cta {
    background: linear-gradient(135deg, var(--primary), #00c896) !important;
    color: #fff !important;
    padding: 10px 24px !important;
    border-radius: 50px !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 16px rgba(0, 166, 126, 0.3);
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 166, 126, 0.4) !important;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary)) !important;
    color: #fff !important;
}

/* Mobile Menu */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
}

.mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--dark);
    transition: var(--transition);
    border-radius: 2px;
}

/* =============================================
   HERO SECTION
   ============================================= */
.hero {
    background: linear-gradient(135deg, #0a1628 0%, #1a2d4a 40%, #0d3b2e 100%);
    padding: 80px 0 90px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 166, 126, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-content {
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 48px;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.hero h1 span {
    color: var(--primary);
}

.hero p {
    font-size: 19px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 32px;
    line-height: 1.7;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    background: linear-gradient(135deg, var(--primary), #00c896);
    color: #fff;
    font-weight: 700;
    font-size: 17px;
    border-radius: 50px;
    box-shadow: 0 8px 32px rgba(0, 166, 126, 0.35);
    transition: var(--transition);
}

.hero-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 166, 126, 0.45);
    color: #fff;
}

/* Stats Bar */
.stats-bar {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
    display: block;
}

.stat-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 4px;
}

/* =============================================
   SECTION STYLES
   ============================================= */
.section {
    padding: 80px 0;
}

.section-alt {
    background: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.section-header p {
    font-size: 18px;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* =============================================
   CALCULATOR WIDGET
   ============================================= */
.calculator-section {
    padding: 80px 0;
    background: var(--white);
}

.calculator-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    max-width: 1000px;
    margin: 0 auto;
}

.calc-form {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow);
}

.calc-form h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-family: var(--font);
    transition: var(--transition);
    background: var(--bg);
    color: var(--text);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(0, 166, 126, 0.1);
}

.input-prefix {
    position: relative;
}

.input-prefix .prefix {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-weight: 600;
    z-index: 1;
}

.input-prefix input {
    padding-left: 32px;
}

/* Toggle */
.toggle-group {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
}

.toggle {
    position: relative;
    width: 48px;
    height: 26px;
    flex-shrink: 0;
}

.toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--border);
    border-radius: 26px;
    transition: var(--transition);
}

.toggle-slider::before {
    content: '';
    position: absolute;
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background: var(--white);
    border-radius: 50%;
    transition: var(--transition);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.toggle input:checked+.toggle-slider {
    background: var(--primary);
}

.toggle input:checked+.toggle-slider::before {
    transform: translateX(22px);
}

.toggle-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
}

/* Calculator Results */
.calc-results {
    background: linear-gradient(135deg, #0a1628 0%, #122240 50%, #0d3b2e 100%);
    border-radius: var(--radius-lg);
    padding: 32px;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.calc-results::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 166, 126, 0.2) 0%, transparent 70%);
    border-radius: 50%;
}

.calc-results::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -20%;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.calc-form-header,
.calc-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.calc-results-header {
    border-bottom-color: rgba(255, 255, 255, 0.1);
    position: relative;
}

.calc-form-header h3,
.calc-results-header h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.calc-badge {
    padding: 4px 12px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}

.calc-results h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 24px;
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
}

.result-row:last-of-type {
    border-bottom: none;
}

.result-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.result-label small {
    opacity: 0.6;
    font-weight: 400;
}

.result-value {
    font-size: 16px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    transition: all 0.4s ease;
}

.result-value.fee {
    color: #f87171;
}

.result-value.revenue {
    color: #34d399;
}

.result-value.profit {
    color: #60a5fa;
}

.result-value.updating {
    animation: valueFlash 0.3s ease;
}

@keyframes valueFlash {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
        color: #fbbf24;
    }

    100% {
        transform: scale(1);
    }
}

.result-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.15), transparent);
    margin: 12px 0;
}

.result-total {
    margin-top: 8px;
    padding-top: 12px;
    border-top: 2px solid rgba(255, 255, 255, 0.15);
    border-bottom: none !important;
}

.result-total .result-label {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

.result-total .result-value {
    font-size: 22px;
}

.result-highlight {
    background: linear-gradient(135deg, rgba(0, 166, 126, 0.15), rgba(0, 200, 150, 0.1));
    border: 1px solid rgba(0, 166, 126, 0.3);
    border-radius: var(--radius);
    padding: 20px;
    margin-top: 16px;
    text-align: center;
    position: relative;
}

.result-highlight .big-number {
    font-size: 40px;
    font-weight: 800;
    color: #34d399;
    line-height: 1;
}

.result-highlight .big-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 8px;
}

.calc-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    position: relative;
}


.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    font-family: var(--font);
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #00c896);
    color: #fff;
    box-shadow: 0 4px 16px rgba(0, 166, 126, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 166, 126, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: #fff;
}

.btn-danger {
    background: var(--red);
    color: #fff;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

.btn-lg {
    padding: 16px 36px;
    font-size: 16px;
}

/* =============================================
   HOW IT WORKS
   ============================================= */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.step-card {
    text-align: center;
    padding: 32px 24px;
    border-radius: var(--radius-lg);
    background: var(--white);
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
}

.step-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.step-number {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary-light), #d1fae5);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 800;
    margin: 0 auto 20px;
}

.step-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--dark);
}

.step-card p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
}

/* =============================================
   FEATURE CARDS
   ============================================= */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    padding: 28px;
    border-radius: var(--radius);
    background: var(--white);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: var(--primary);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--dark);
}

.feature-card p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
}

/* =============================================
   BLOG CARDS
   ============================================= */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.blog-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.blog-card-image {
    height: 200px;
    background: linear-gradient(135deg, var(--primary-light), #d1fae5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    overflow: hidden;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.blog-card-body {
    padding: 24px;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 12px;
    color: var(--text-muted);
}

.blog-card-meta .category {
    background: var(--primary-light);
    color: var(--primary);
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 600;
}

.blog-card h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--dark);
    line-height: 1.4;
}

.blog-card h3 a {
    color: inherit;
}

.blog-card h3 a:hover {
    color: var(--primary);
}

.blog-card p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
}

.blog-card .read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
}

.blog-card .read-more:hover {
    gap: 10px;
}

/* =============================================
   FAQ ACCORDION
   ============================================= */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 12px;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    border-color: var(--primary);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    cursor: pointer;
    background: var(--white);
    font-weight: 600;
    font-size: 16px;
    color: var(--dark);
    transition: var(--transition);
}

.faq-question:hover {
    color: var(--primary);
}

.faq-icon {
    font-size: 20px;
    transition: transform 0.3s ease;
    color: var(--primary);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer-inner {
    padding: 0 24px 18px;
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.7;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
    background: linear-gradient(135deg, #0a1628 0%, #1a2d4a 100%);
    color: rgba(255, 255, 255, 0.6);
    padding: 64px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
}

.footer-brand h3 {
    font-size: 22px;
    color: #fff;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-brand p {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 18px;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-3px);
}

.footer-col h4 {
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 10px;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    transition: var(--transition);
}

.footer-col a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.4);
}

/* =============================================
   BREADCRUMBS
   ============================================= */
.breadcrumbs {
    padding: 16px 0;
}

.breadcrumbs ol {
    display: flex;
    align-items: center;
    gap: 0;
    list-style: none;
    font-size: 14px;
}

.breadcrumbs li::after {
    content: '›';
    margin: 0 10px;
    color: var(--text-muted);
}

.breadcrumbs li:last-child::after {
    display: none;
}

.breadcrumbs a {
    color: var(--text-light);
}

.breadcrumbs a:hover {
    color: var(--primary);
}

.breadcrumbs li:last-child {
    color: var(--text-muted);
}

/* =============================================
   BLOG POST PAGE
   ============================================= */
.post-header {
    padding: 48px 0 32px;
}

.post-header h1 {
    font-size: 38px;
    font-weight: 800;
    color: var(--dark);
    line-height: 1.25;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 14px;
    color: var(--text-muted);
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.post-featured-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 32px;
    max-height: 400px;
}

.post-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Table of Contents */
.toc {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 32px;
}

.toc h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--dark);
}

.toc ul {
    list-style: none;
}

.toc li {
    margin-bottom: 8px;
}

.toc li a {
    font-size: 14px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
}

.toc li a:hover {
    color: var(--primary);
}

.toc li.toc-sub {
    padding-left: 20px;
}

/* Post Content */
.post-content {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text);
}

.post-content h2 {
    font-size: 28px;
    font-weight: 800;
    margin: 40px 0 16px;
    color: var(--dark);
    letter-spacing: -0.01em;
}

.post-content h3 {
    font-size: 22px;
    font-weight: 700;
    margin: 32px 0 12px;
    color: var(--dark);
}

.post-content p {
    margin-bottom: 18px;
}

.post-content ul,
.post-content ol {
    margin: 16px 0;
    padding-left: 28px;
}

.post-content li {
    margin-bottom: 8px;
}

.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 15px;
}

.post-content table th,
.post-content table td {
    padding: 12px 16px;
    border: 1px solid var(--border);
    text-align: left;
}

.post-content table th {
    background: var(--bg);
    font-weight: 700;
    color: var(--dark);
}

.post-content blockquote {
    border-left: 4px solid var(--primary);
    padding: 16px 24px;
    margin: 24px 0;
    background: var(--primary-light);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic;
}

.post-content code {
    background: var(--bg);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 14px;
}

/* CTA Box */
.cta-box {
    background: linear-gradient(135deg, var(--primary-light), #d1fae5);
    border: 2px solid var(--primary);
    border-radius: var(--radius-lg);
    padding: 32px;
    text-align: center;
    margin: 40px 0;
}

.cta-box h3 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--dark);
}

.cta-box p {
    margin-bottom: 20px;
    color: var(--text-light);
}

/* Related Posts */
.related-posts {
    margin-top: 48px;
    padding-top: 48px;
    border-top: 1px solid var(--border);
}

.related-posts h3 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 24px;
    color: var(--dark);
}

/* =============================================
   PAGE STYLES
   ============================================= */
.page-header {
    background: linear-gradient(135deg, #0a1628 0%, #1a2d4a 100%);
    padding: 60px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 38px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
}

.page-header p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.6);
}

.page-content {
    padding: 48px 0;
}

.page-content .container-narrow {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 48px;
    box-shadow: var(--shadow-sm);
    margin-top: -40px;
    position: relative;
    z-index: 1;
}

/* Contact Form */
.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-family: var(--font);
    transition: var(--transition);
    background: var(--bg);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(0, 166, 126, 0.1);
}

.contact-form textarea {
    min-height: 160px;
    resize: vertical;
}

.contact-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    font-size: 14px;
    color: var(--text);
}

/* =============================================
   TOOL PAGE LAYOUT
   ============================================= */
.tool-page {
    padding: 48px 0;
}

.tool-intro {
    max-width: 800px;
    margin: 0 auto 40px;
    text-align: center;
}

.tool-intro h1 {
    font-size: 38px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 16px;
}

.tool-intro p {
    font-size: 17px;
    color: var(--text-light);
    line-height: 1.7;
}

.tool-content {
    max-width: 900px;
    margin: 48px auto 0;
}

.tool-content h2 {
    font-size: 26px;
    font-weight: 800;
    margin: 36px 0 16px;
    color: var(--dark);
}

.tool-content p {
    margin-bottom: 16px;
    color: var(--text);
    line-height: 1.7;
}

.tool-content ul,
.tool-content ol {
    margin: 16px 0;
    padding-left: 28px;
}

.tool-content li {
    margin-bottom: 8px;
}

/* =============================================
   COOKIE CONSENT
   ============================================= */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 18px 24px;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    font-size: 14px;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.2);
}

.cookie-banner.show {
    display: flex;
}

.cookie-banner p {
    flex: 1;
}

.cookie-banner a {
    color: var(--primary);
}

.cookie-btn {
    padding: 10px 28px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    flex-shrink: 0;
    transition: var(--transition);
}

.cookie-btn:hover {
    background: var(--primary-dark);
}

/* =============================================
   AD ZONES
   ============================================= */
.ad-zone {
    text-align: center;
    margin: 24px 0;
    padding: 12px 0;
}

.ad-label {
    display: block;
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 4px;
}

/* =============================================
   PAGINATION
   ============================================= */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 48px 0;
}

.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 8px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-weight: 500;
    font-size: 14px;
    transition: var(--transition);
}

.page-link:hover {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary);
}

.page-link.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* =============================================
   SIDEBAR
   ============================================= */
.content-with-sidebar {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
}

.sidebar .widget {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 24px;
}

.sidebar .widget h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--dark);
}

.sidebar .widget ul {
    list-style: none;
}

.sidebar .widget li {
    margin-bottom: 10px;
}

.sidebar .widget a {
    color: var(--text-light);
    font-size: 14px;
}

.sidebar .widget a:hover {
    color: var(--primary);
}

/* Alerts */
.alert {
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
}

.alert-success {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}

.alert-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.alert-warning {
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
}

.alert-info {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
}

/* 404 Page */
.error-page {
    text-align: center;
    padding: 100px 0;
}

.error-page .error-code {
    font-size: 120px;
    font-weight: 900;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 16px;
    opacity: 0.3;
}

.error-page h1 {
    font-size: 32px;
    margin-bottom: 12px;
    color: var(--dark);
}

.error-page p {
    color: var(--text-light);
    margin-bottom: 32px;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
    .calculator-wrapper {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .content-with-sidebar {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .mobile-toggle {
        display: flex;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 16px 24px;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-lg);
    }

    .main-nav.active {
        display: flex;
    }

    .main-nav a {
        padding: 12px 0;
    }

    .hero {
        padding: 48px 0 60px;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero p {
        font-size: 16px;
    }

    .stats-bar {
        flex-direction: column;
        gap: 20px;
    }

    .stat-number {
        font-size: 22px;
    }

    .section {
        padding: 48px 0;
    }

    .section-header h2 {
        font-size: 28px;
    }

    .steps-grid,
    .features-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .post-header h1,
    .page-header h1 {
        font-size: 28px;
    }

    .tool-intro h1 {
        font-size: 28px;
    }

    .page-content .container-narrow {
        padding: 24px;
        margin-top: -24px;
    }

    .cookie-banner {
        flex-direction: column;
        text-align: center;
    }

    .calc-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero h1 {
        font-size: 26px;
    }

    .calc-form,
    .calc-results {
        padding: 20px;
    }

    .result-highlight .big-number {
        font-size: 28px;
    }
}

/* =============================================
   ANIMATIONS
   ============================================= */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeInUp 0.5s ease forwards;
}

.result-value.updating {
    animation: countUp 0.3s ease;
}

/* Smooth scroll offset for sticky header */
[id] {
    scroll-margin-top: 80px;
}

/* Print styles */
@media print {

    .site-header,
    .site-footer,
    .cookie-banner,
    .ad-zone,
    .sidebar {
        display: none !important;
    }

    body {
        background: #fff;
    }

    .container {
        max-width: 100%;
    }
}