/* ============================================================
   EggCalc Pro - Main Theme Stylesheet
   Light, modern design with CSS custom properties
   ============================================================ */

/* 1. CSS Custom Properties (Defaults - overridden by Customizer) */
:root {
    --ec-primary:       #2563eb;
    --ec-secondary:     #059669;
    --ec-accent:        #f59e0b;
    --ec-text:          #1e293b;
    --ec-text-muted:    #64748b;
    --ec-bg:            #f8fafc;
    --ec-header-bg:     #ffffff;
    --ec-hero-bg:       #eef4ff;
    --ec-font:          'Inter', sans-serif;
    --ec-card-bg:       #ffffff;
    --ec-border:        #e2e8f0;
    --ec-shadow-sm:     0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --ec-shadow:        0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -1px rgba(0,0,0,0.04);
    --ec-shadow-md:     0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -2px rgba(0,0,0,0.04);
    --ec-shadow-lg:     0 20px 25px -5px rgba(0,0,0,0.08), 0 10px 10px -5px rgba(0,0,0,0.03);
    --ec-radius:        12px;
    --ec-radius-sm:     8px;
    --ec-radius-lg:     20px;
    --ec-transition:    all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --ec-max-width:     1200px;
    --ec-primary-light: rgba(37, 99, 235, 0.08);
    --ec-primary-rgb:   37, 99, 235;
}

/* 2. Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: var(--ec-font);
    color: var(--ec-text);
    background-color: var(--ec-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ec-primary); text-decoration: none; transition: var(--ec-transition); }
a:hover { color: #1d4ed8; }
ul, ol { list-style: none; }
button, input, select, textarea { font-family: inherit; }
h1, h2, h3, h4, h5, h6 { line-height: 1.25; font-weight: 700; color: var(--ec-text); }

/* 3. Utility Classes */
.container { max-width: var(--ec-max-width); margin: 0 auto; padding: 0 24px; }
.section-padding { padding: 80px 0; }
.section-padding-sm { padding: 48px 0; }
.text-center { text-align: center; }
.text-primary { color: var(--ec-primary); }
.text-muted { color: var(--ec-text-muted); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--ec-transition);
    text-decoration: none;
    white-space: nowrap;
}
.btn-primary {
    background: var(--ec-primary);
    color: #fff;
    border-color: var(--ec-primary);
}
.btn-primary:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(var(--ec-primary-rgb), 0.35);
}
.btn-secondary {
    background: transparent;
    color: var(--ec-primary);
    border-color: var(--ec-primary);
}
.btn-secondary:hover {
    background: var(--ec-primary);
    color: #fff;
    transform: translateY(-2px);
}
.btn-accent {
    background: var(--ec-accent);
    color: #fff;
    border-color: var(--ec-accent);
}
.btn-accent:hover {
    background: #d97706;
    border-color: #d97706;
    color: #fff;
    transform: translateY(-2px);
}
.btn-lg { padding: 16px 36px; font-size: 1.05rem; }
.btn-sm { padding: 8px 20px; font-size: 0.875rem; }

.section-header { text-align: center; margin-bottom: 48px; }
.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: var(--ec-primary-light);
    color: var(--ec-primary);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.section-title {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 12px;
    line-height: 1.2;
}
.section-subtitle {
    font-size: 1.05rem;
    color: var(--ec-text-muted);
    max-width: 580px;
    margin: 0 auto;
    line-height: 1.7;
}

/* 4. Skip Link */
.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    padding: 12px 24px;
    background: var(--ec-primary);
    color: #fff;
    border-radius: 0 0 8px 8px;
    font-weight: 600;
    z-index: 9999;
    transition: top 0.2s;
}
.skip-link:focus { top: 0; color: #fff; }

/* ============================================================
   5. HEADER / NAVIGATION
   ============================================================ */
#site-header {
    background: var(--ec-header-bg);
    border-bottom: 1px solid var(--ec-border);
    position: sticky;
    top: 0;
    z-index: 999;
    transition: var(--ec-transition);
}
#site-header.scrolled {
    box-shadow: var(--ec-shadow);
}
.header-not-sticky #site-header { position: relative; }

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    gap: 24px;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.custom-logo { height: 48px; width: auto; }
.site-title-wrap .site-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--ec-text);
    line-height: 1.1;
}
.site-title-wrap .site-title a { color: inherit; }
.site-title-wrap .site-title a:hover { color: var(--ec-primary); }
.site-tagline {
    font-size: 0.75rem;
    color: var(--ec-text-muted);
    font-weight: 400;
}

.primary-nav { flex: 1; }
.nav-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}
.nav-menu li { position: relative; }
.nav-menu a {
    display: block;
    padding: 8px 14px;
    color: var(--ec-text);
    font-weight: 500;
    font-size: 0.925rem;
    border-radius: 8px;
    transition: var(--ec-transition);
}
.nav-menu a:hover,
.nav-menu .current-menu-item > a,
.nav-menu .current-page-ancestor > a {
    color: var(--ec-primary);
    background: var(--ec-primary-light);
}

/* Dropdown */
.nav-menu .sub-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 220px;
    background: #fff;
    border-radius: var(--ec-radius);
    box-shadow: var(--ec-shadow-md);
    border: 1px solid var(--ec-border);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: var(--ec-transition);
    z-index: 100;
    padding: 8px;
}
.nav-menu li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.nav-menu .sub-menu a {
    padding: 10px 14px;
    font-size: 0.9rem;
    border-radius: 8px;
}

.header-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.header-cta { }

/* Mobile toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 8px;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--ec-text);
    border-radius: 2px;
    transition: var(--ec-transition);
}
.nav-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-active span:nth-child(2) { opacity: 0; }
.nav-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   6. HERO SECTION
   ============================================================ */
.ec-hero {
    background: var(--ec-hero-bg);
    position: relative;
    overflow: hidden;
    padding: 64px 0 80px;
}
.ec-hero-bg-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.ec-hero-overlay {
    position: absolute;
    inset: 0;
    background: var(--ec-primary);
}
.ec-hero-decor {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}
.ec-hero-decor::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--ec-primary-rgb), 0.08) 0%, transparent 70%);
}
.ec-hero-decor::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -60px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(5, 150, 105, 0.06) 0%, transparent 70%);
}

.ec-hero-inner { position: relative; z-index: 2; }
.ec-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: rgba(var(--ec-primary-rgb), 0.1);
    border: 1px solid rgba(var(--ec-primary-rgb), 0.2);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ec-primary);
    margin-bottom: 20px;
    animation: fadeInDown 0.6s ease both;
}
.ec-hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--ec-text);
    margin-bottom: 16px;
    animation: fadeInUp 0.6s ease 0.1s both;
    line-height: 1.15;
}
.ec-hero-title span { color: var(--ec-primary); }
.ec-hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--ec-text-muted);
    max-width: 600px;
    line-height: 1.7;
    margin-bottom: 40px;
    animation: fadeInUp 0.6s ease 0.2s both;
}

/* Hero Stats */
.ec-hero-stats {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    animation: fadeInUp 0.6s ease 0.35s both;
}
.ec-hero-stat {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: #fff;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--ec-text);
    box-shadow: var(--ec-shadow-sm);
    border: 1px solid var(--ec-border);
}
.ec-hero-stat i { color: var(--ec-secondary); font-size: 1rem; }

/* ============================================================
   7. CALCULATOR SECTION
   ============================================================ */
.ec-calculator-section { padding: 0 0 80px; }
.ec-calc-wrap {
    background: #fff;
    border-radius: var(--ec-radius-lg);
    box-shadow: var(--ec-shadow-lg);
    overflow: hidden;
    margin-top: -32px;
    position: relative;
    z-index: 10;
    border: 1px solid var(--ec-border);
}
.ec-calc-header {
    background: linear-gradient(135deg, var(--ec-primary) 0%, #1d4ed8 100%);
    padding: 28px 36px;
    color: #fff;
}
.ec-calc-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
}
.ec-calc-header p {
    font-size: 0.95rem;
    opacity: 0.85;
    max-width: 600px;
    line-height: 1.5;
}
.ec-calc-body { padding: 36px; }

.ec-calc-form { }
.ec-calc-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}
.ec-field-group { display: flex; flex-direction: column; gap: 8px; }
.ec-field-group label {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--ec-text);
}
.ec-field-group label span { color: var(--ec-primary); margin-left: 2px; }
.ec-field-group select,
.ec-field-group input[type="date"],
.ec-field-group input[type="number"],
.ec-field-group input[type="text"] {
    padding: 12px 16px;
    border: 2px solid var(--ec-border);
    border-radius: var(--ec-radius-sm);
    font-size: 0.95rem;
    color: var(--ec-text);
    background: var(--ec-bg);
    transition: var(--ec-transition);
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
}
.ec-field-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}
.ec-field-group select:focus,
.ec-field-group input:focus {
    outline: none;
    border-color: var(--ec-primary);
    box-shadow: 0 0 0 3px rgba(var(--ec-primary-rgb), 0.12);
    background: #fff;
}

/* Species info tooltip */
.ec-species-info {
    display: none;
    padding: 12px 16px;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: var(--ec-radius-sm);
    font-size: 0.85rem;
    color: #0369a1;
    margin-top: 4px;
}
.ec-species-info.visible { display: block; animation: fadeIn 0.3s ease; }

.ec-calc-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.ec-calc-submit {
    flex: 1;
    justify-content: center;
    font-size: 1rem;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 700;
}
.ec-calc-reset {
    padding: 14px 24px;
    background: none;
    border: 2px solid var(--ec-border);
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--ec-text-muted);
    transition: var(--ec-transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.ec-calc-reset:hover { border-color: var(--ec-primary); color: var(--ec-primary); }

/* Tab wrapper — always visible below the form actions */
.ec-result-tabs-wrap {
    margin-top: 28px;
    padding-top: 28px;
    border-top: 2px solid var(--ec-border);
}
/* Pre-calculation placeholder */
.ec-calc-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 36px 24px;
    text-align: center;
    color: var(--ec-text-muted);
    background: #f8fafc;
    border: 1.5px dashed var(--ec-border);
    border-radius: var(--ec-radius);
    margin-top: 16px;
}
.ec-calc-placeholder svg { opacity: 0.35; }
.ec-calc-placeholder p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
    max-width: 360px;
}
.ec-calc-placeholder strong { color: var(--ec-primary); }
/* Results Panel */
.ec-calc-results {
    display: none;
    margin-top: 0;
    padding-top: 20px;
    animation: fadeInUp 0.5s ease;
}
.ec-calc-results.visible { display: block; }

.ec-result-title {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ec-text-muted);
    margin-bottom: 6px;
}
.ec-hatch-date-display {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 800;
    color: var(--ec-primary);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.ec-hatch-icon { font-size: 2rem; animation: bounce 1s ease infinite alternate; }

.ec-result-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    margin: 24px 0;
}
.ec-result-card {
    background: var(--ec-bg);
    border: 1px solid var(--ec-border);
    border-radius: var(--ec-radius);
    padding: 20px;
    text-align: center;
    transition: var(--ec-transition);
}
.ec-result-card:hover { transform: translateY(-3px); box-shadow: var(--ec-shadow); }
.ec-result-card-icon {
    font-size: 1.8rem;
    margin-bottom: 8px;
}
.ec-result-card-value {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--ec-primary);
    display: block;
    margin-bottom: 4px;
}
.ec-result-card-label {
    font-size: 0.8rem;
    color: var(--ec-text-muted);
    font-weight: 500;
}

/* Progress Bar */
.ec-progress-section { margin: 24px 0; }
.ec-progress-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.875rem;
    font-weight: 600;
}
.ec-progress-bar {
    height: 12px;
    background: var(--ec-border);
    border-radius: 50px;
    overflow: hidden;
}
.ec-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--ec-primary), var(--ec-secondary));
    border-radius: 50px;
    transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    width: 0%;
}

/* Temperature & Humidity Care Guide */
.ec-care-guide {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: var(--ec-radius);
    padding: 20px;
    margin: 16px 0;
}
.ec-care-guide h4 { color: #065f46; margin-bottom: 16px; font-size: 0.95rem; }

/* Phase timeline */
.ec-phase-timeline {
    display: flex;
    gap: 8px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}
.ec-phase {
    flex: 1;
    min-width: 120px;
    padding: 12px 14px;
    border-radius: var(--ec-radius-sm);
    text-align: center;
}
.ec-phase-incubation { background: #dcfce7; border: 1.5px solid #86efac; }
.ec-phase-lockdown   { background: #fef9c3; border: 1.5px solid #fde047; }
.ec-phase-hatch      { background: #dbeafe; border: 1.5px solid #93c5fd; }
.ec-phase-label  { font-size: 0.88rem; font-weight: 800; color: var(--ec-text); margin-bottom: 4px; }
.ec-phase-days   { font-size: 0.75rem; font-weight: 600; color: var(--ec-text-muted); margin-bottom: 4px; }
.ec-phase-dates  { font-size: 0.72rem; color: var(--ec-text-muted); line-height: 1.4; }

.ec-care-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 12px;
}
.ec-care-item {
    background: #fff;
    border-radius: var(--ec-radius-sm);
    padding: 14px 10px;
    text-align: center;
    border: 1px solid #d1fae5;
}
.ec-care-item-icon { font-size: 1.5rem; margin-bottom: 6px; }
.ec-care-item-val  { font-size: 1rem; font-weight: 700; color: #065f46; margin-bottom: 4px; }
.ec-care-item-lbl  { font-size: 0.75rem; color: var(--ec-text-muted); line-height: 1.4; }
.ec-care-item-lbl small { display: block; font-size: 0.68rem; color: var(--ec-primary); font-weight: 600; margin-top: 3px; }

/* Lockdown Notice */
.ec-lockdown-notice {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: var(--ec-radius);
    padding: 16px 20px;
    margin: 16px 0;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.ec-lockdown-notice i { color: #d97706; font-size: 1.2rem; margin-top: 2px; }
.ec-lockdown-notice-text strong { display: block; color: #92400e; margin-bottom: 2px; }
.ec-lockdown-notice-text span { font-size: 0.875rem; color: #78350f; }

/* Turning Schedule */
.ec-turning-schedule {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: var(--ec-radius);
    padding: 20px;
    margin: 16px 0;
}
.ec-turning-schedule h4 { color: #1e40af; margin-bottom: 12px; font-size: 0.95rem; }
.ec-turning-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 8px; }
.ec-turning-day {
    background: #fff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    padding: 10px 8px;
    text-align: center;
    font-size: 0.8rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}
.ec-turning-day.lockdown  { background: #fef3c7; border-color: #fde68a; }
.ec-turning-day.current   { border: 2px solid var(--ec-primary); background: var(--ec-primary-light); }
.ec-turning-day strong    { display: block; font-size: 0.78rem; color: var(--ec-text-muted); }
.ec-turning-date          { font-size: 0.72rem; color: var(--ec-primary); font-weight: 600; }
.ec-turning-action        { font-size: 0.75rem; margin-top: 2px; }


/* Countdown timer */
.ec-countdown {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    border-radius: var(--ec-radius);
    padding: 24px;
    margin: 20px 0;
    color: #fff;
    text-align: center;
}
.ec-countdown-title { font-size: 0.8rem; opacity: 0.7; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px; }
.ec-countdown-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.ec-countdown-unit { background: rgba(255,255,255,0.1); border-radius: 10px; padding: 14px 8px; }
.ec-countdown-num { font-size: 2rem; font-weight: 800; display: block; }
.ec-countdown-lbl { font-size: 0.7rem; opacity: 0.65; text-transform: uppercase; }

/* ============================================================
   8. FAQ SECTION
   ============================================================ */
.ec-faq-section { background: #fff; }
.ec-faq-layout { display: grid; grid-template-columns: 1fr 2fr; gap: 60px; align-items: start; }
.ec-faq-sidebar { }
.ec-faq-sidebar-img {
    border-radius: var(--ec-radius-lg);
    overflow: hidden;
    box-shadow: var(--ec-shadow-md);
}
.ec-faq-sidebar-img img { width: 100%; display: block; }
.ec-faq-sidebar-badge {
    background: var(--ec-primary);
    color: #fff;
    border-radius: var(--ec-radius);
    padding: 20px 24px;
    margin-top: 20px;
    text-align: center;
}
.ec-faq-sidebar-badge .badge-number {
    font-size: 2.5rem;
    font-weight: 800;
    display: block;
}
.ec-faq-sidebar-badge .badge-label { font-size: 0.85rem; opacity: 0.9; }

.ec-faq-list { }
.ec-faq-item {
    border: 1px solid var(--ec-border);
    border-radius: var(--ec-radius);
    margin-bottom: 12px;
    overflow: hidden;
    transition: var(--ec-transition);
}
.ec-faq-item:hover { box-shadow: var(--ec-shadow-sm); }
.ec-faq-question {
    width: 100%;
    text-align: left;
    padding: 20px 24px;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-size: 0.975rem;
    font-weight: 600;
    color: var(--ec-text);
    font-family: var(--ec-font);
    transition: var(--ec-transition);
}
.ec-faq-question:hover, .ec-faq-question.active { color: var(--ec-primary); background: var(--ec-primary-light); }
.ec-faq-icon { flex-shrink: 0; transition: transform 0.3s ease; color: var(--ec-text-muted); }
.ec-faq-question.active .ec-faq-icon { transform: rotate(180deg); color: var(--ec-primary); }
.ec-faq-answer { display: none; }
.ec-faq-answer-inner {
    padding: 0 24px 20px;
    font-size: 0.95rem;
    color: var(--ec-text-muted);
    line-height: 1.75;
    border-top: 1px solid var(--ec-border);
    padding-top: 16px;
}
.ec-faq-answer-inner p { margin-bottom: 8px; }
.ec-faq-answer-inner p:last-child { margin-bottom: 0; }

/* ============================================================
   9. BLOG SECTION
   ============================================================ */
.ec-blog-section { background: var(--ec-bg); }
.ec-blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-bottom: 40px; }
.ec-blog-grid.layout-list { grid-template-columns: 1fr; }

.ec-blog-card {
    background: #fff;
    border-radius: var(--ec-radius-lg);
    overflow: hidden;
    border: 1px solid var(--ec-border);
    transition: var(--ec-transition);
    display: flex;
    flex-direction: column;
}
.ec-blog-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--ec-shadow-lg);
    border-color: transparent;
}
.ec-blog-card.layout-list {
    flex-direction: row;
}
.ec-blog-thumb {
    overflow: hidden;
    height: 200px;
    flex-shrink: 0;
}
.ec-blog-card.layout-list .ec-blog-thumb { width: 280px; height: auto; }
.ec-blog-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.ec-blog-card:hover .ec-blog-thumb img { transform: scale(1.05); }
.ec-blog-thumb-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--ec-primary-light) 0%, rgba(5,150,105,0.08) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.ec-blog-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.ec-blog-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.ec-blog-category {
    padding: 4px 12px;
    background: var(--ec-primary-light);
    color: var(--ec-primary);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.ec-blog-date { font-size: 0.8rem; color: var(--ec-text-muted); }
.ec-blog-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ec-text);
    margin-bottom: 10px;
    line-height: 1.4;
    transition: var(--ec-transition);
}
.ec-blog-card:hover .ec-blog-title { color: var(--ec-primary); }
.ec-blog-excerpt { font-size: 0.875rem; color: var(--ec-text-muted); line-height: 1.65; flex: 1; margin-bottom: 16px; }
.ec-blog-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}
.ec-blog-read-more {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--ec-primary);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--ec-transition);
}
.ec-blog-read-more:hover { gap: 10px; color: #1d4ed8; }
.ec-blog-read-time { font-size: 0.8rem; color: var(--ec-text-muted); }

.ec-blog-cta { text-align: center; }

/* ============================================================
   10. CTA BANNER
   ============================================================ */
.ec-cta-section {
    background: linear-gradient(135deg, var(--ec-primary) 0%, #1d4ed8 100%);
    padding: 64px 0;
    position: relative;
    overflow: hidden;
}
.ec-cta-section::before {
    content: '🥚';
    position: absolute;
    font-size: 8rem;
    opacity: 0.1;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
}
.ec-cta-inner { text-align: center; color: #fff; position: relative; }
.ec-cta-inner h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); color: #fff; margin-bottom: 12px; }
.ec-cta-inner p { font-size: 1.05rem; opacity: 0.85; max-width: 520px; margin: 0 auto 28px; }
.ec-cta-inner .btn {
    background: #fff;
    color: var(--ec-primary);
    border-color: #fff;
}
.ec-cta-inner .btn:hover { background: transparent; color: #fff; }

/* ============================================================
   11. FOOTER
   ============================================================ */
#site-footer {
    background: var(--ec-footer-bg, #1e293b);
    color: var(--ec-footer-text, #94a3b8);
}
.footer-main { padding: 64px 0 40px; }
.footer-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1fr;
    gap: 40px;
}
.footer-brand {}
.footer-logo { height: 48px; width: auto; margin-bottom: 16px; filter: brightness(10); }
.footer-site-name { font-size: 1.4rem; font-weight: 800; color: #fff; margin-bottom: 12px; }
.footer-desc { font-size: 0.875rem; line-height: 1.7; margin-bottom: 20px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 0.95rem;
    transition: var(--ec-transition);
}
.footer-social a:hover { background: var(--ec-primary); color: #fff; transform: translateY(-3px); }

.footer-col h4 {
    color: #fff;
    font-size: 0.925rem;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: 0.02em;
}
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a {
    font-size: 0.875rem;
    color: #94a3b8;
    transition: var(--ec-transition);
    display: flex;
    align-items: center;
    gap: 6px;
}
.footer-links a:hover { color: #fff; padding-left: 4px; }
.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 0.875rem;
}
.footer-contact-item i { color: var(--ec-primary); margin-top: 3px; flex-shrink: 0; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 24px 0;
}
.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.footer-copyright { font-size: 0.85rem; }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { font-size: 0.85rem; color: #94a3b8; }
.footer-bottom-links a:hover { color: #fff; }

/* ============================================================
   12. INNER PAGES
   ============================================================ */
.ec-page-hero {
    background: linear-gradient(135deg, var(--ec-hero-bg) 0%, #e0e7ff 100%);
    padding: 64px 0;
    text-align: center;
    border-bottom: 1px solid var(--ec-border);
}
.ec-page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 12px; }
.ec-page-hero p { font-size: 1.05rem; color: var(--ec-text-muted); max-width: 560px; margin: 0 auto; }
.ec-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--ec-text-muted);
    margin-bottom: 16px;
}
.ec-breadcrumb a { color: var(--ec-text-muted); }
.ec-breadcrumb a:hover { color: var(--ec-primary); }
.ec-breadcrumb-sep { color: var(--ec-border); }

.ec-page-content {
    padding: 64px 0;
}
.ec-content-wrap {
    max-width: 820px;
    margin: 0 auto;
}

/* Blog Archive */
.ec-archive-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; align-items: start; }
.ec-archive-posts { }
.ec-archive-card {
    background: #fff;
    border-radius: var(--ec-radius-lg);
    overflow: hidden;
    border: 1px solid var(--ec-border);
    margin-bottom: 28px;
    transition: var(--ec-transition);
    display: grid;
    grid-template-columns: 1fr;
}
.ec-archive-card:hover { box-shadow: var(--ec-shadow-md); transform: translateY(-3px); }
.ec-archive-thumb { height: 220px; overflow: hidden; }
.ec-archive-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.ec-archive-card:hover .ec-archive-thumb img { transform: scale(1.04); }
.ec-archive-body { padding: 28px; }
.ec-archive-body h2 { font-size: 1.3rem; margin-bottom: 10px; line-height: 1.35; }
.ec-archive-body h2 a { color: var(--ec-text); }
.ec-archive-body h2 a:hover { color: var(--ec-primary); }
.ec-pagination { display: flex; gap: 8px; justify-content: center; margin-top: 40px; }
.ec-pagination a, .ec-pagination span {
    padding: 10px 18px;
    border: 1px solid var(--ec-border);
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--ec-text);
    transition: var(--ec-transition);
}
.ec-pagination a:hover, .ec-pagination .current {
    background: var(--ec-primary);
    border-color: var(--ec-primary);
    color: #fff;
}

/* Single Post */
.ec-single-post { }
.ec-post-header { margin-bottom: 32px; }
.ec-post-title { font-size: clamp(1.6rem, 3vw, 2.4rem); margin-bottom: 16px; }
.ec-post-meta { display: flex; gap: 20px; color: var(--ec-text-muted); font-size: 0.875rem; flex-wrap: wrap; }
.ec-post-meta span { display: flex; align-items: center; gap: 6px; }
.ec-post-featured-image { border-radius: var(--ec-radius-lg); overflow: hidden; margin-bottom: 36px; }
.ec-post-featured-image img { width: 100%; }
.ec-post-content { font-size: 1rem; line-height: 1.8; }
.ec-post-content h2 { font-size: 1.5rem; margin: 32px 0 16px; }
.ec-post-content h3 { font-size: 1.2rem; margin: 24px 0 12px; }
.ec-post-content p { margin-bottom: 20px; }
.ec-post-content ul, .ec-post-content ol { padding-left: 24px; margin-bottom: 20px; list-style: disc; }
.ec-post-content ol { list-style: decimal; }
.ec-post-content li { margin-bottom: 6px; }
.ec-post-content blockquote {
    border-left: 4px solid var(--ec-primary);
    background: var(--ec-primary-light);
    padding: 16px 24px;
    margin: 24px 0;
    border-radius: 0 var(--ec-radius-sm) var(--ec-radius-sm) 0;
    font-style: italic;
    color: var(--ec-text);
}
.ec-post-content a { text-decoration: underline; }
.ec-post-content code {
    background: var(--ec-bg);
    border: 1px solid var(--ec-border);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.875em;
    font-family: monospace;
}
.ec-post-tags { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--ec-border); display: flex; gap: 8px; flex-wrap: wrap; }
.ec-post-tag {
    padding: 6px 14px;
    background: var(--ec-bg);
    border: 1px solid var(--ec-border);
    border-radius: 50px;
    font-size: 0.8rem;
    color: var(--ec-text-muted);
    transition: var(--ec-transition);
}
.ec-post-tag:hover { background: var(--ec-primary-light); color: var(--ec-primary); border-color: var(--ec-primary); }

/* About Page */
.ec-about-mission {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
}
.ec-about-image { border-radius: var(--ec-radius-lg); overflow: hidden; box-shadow: var(--ec-shadow-lg); }
.ec-about-image img { width: 100%; }
.ec-about-text h2 { font-size: 1.8rem; margin-bottom: 16px; }
.ec-about-text p { color: var(--ec-text-muted); line-height: 1.75; margin-bottom: 16px; }

.ec-values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 60px; }
.ec-value-card {
    background: #fff;
    border: 1px solid var(--ec-border);
    border-radius: var(--ec-radius-lg);
    padding: 28px;
    text-align: center;
    transition: var(--ec-transition);
}
.ec-value-card:hover { box-shadow: var(--ec-shadow-md); transform: translateY(-4px); }
.ec-value-icon { font-size: 2.5rem; margin-bottom: 16px; }
.ec-value-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.ec-value-card p { font-size: 0.9rem; color: var(--ec-text-muted); line-height: 1.65; }

/* Contact Page */
.ec-contact-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; }
.ec-contact-form-wrap { }
.ec-contact-info { }
.ec-contact-info-card {
    background: #fff;
    border: 1px solid var(--ec-border);
    border-radius: var(--ec-radius-lg);
    padding: 28px;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transition: var(--ec-transition);
}
.ec-contact-info-card:hover { box-shadow: var(--ec-shadow); transform: translateY(-2px); }
.ec-contact-info-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--ec-primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ec-primary);
    font-size: 1.2rem;
    flex-shrink: 0;
}
.ec-contact-info-text h4 { font-size: 0.925rem; margin-bottom: 4px; }
.ec-contact-info-text p, .ec-contact-info-text a { font-size: 0.9rem; color: var(--ec-text-muted); }

/* Contact Form Styles */
.ec-form { }
.ec-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ec-form-group { margin-bottom: 20px; }
.ec-form-group label { display: block; font-weight: 600; font-size: 0.875rem; margin-bottom: 6px; }
.ec-form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--ec-border);
    border-radius: var(--ec-radius-sm);
    font-size: 0.95rem;
    color: var(--ec-text);
    background: var(--ec-bg);
    transition: var(--ec-transition);
    font-family: var(--ec-font);
}
.ec-form-control:focus { outline: none; border-color: var(--ec-primary); box-shadow: 0 0 0 3px rgba(var(--ec-primary-rgb), 0.12); background: #fff; }
textarea.ec-form-control { resize: vertical; min-height: 140px; }
.ec-form-submit {
    display: flex;
    align-items: center;
    gap: 16px;
}
.ec-form-message { font-size: 0.9rem; padding: 12px 16px; border-radius: var(--ec-radius-sm); display: none; }
.ec-form-message.success { background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; display: block; }
.ec-form-message.error { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; display: block; }

/* Legal Pages */
.ec-legal-content h2 { font-size: 1.4rem; margin: 36px 0 12px; color: var(--ec-text); padding-bottom: 8px; border-bottom: 2px solid var(--ec-border); }
.ec-legal-content h3 { font-size: 1.1rem; margin: 24px 0 10px; color: var(--ec-text); }
.ec-legal-content p { margin-bottom: 16px; color: var(--ec-text-muted); line-height: 1.8; }
.ec-legal-content ul { padding-left: 20px; margin-bottom: 16px; list-style: disc; }
.ec-legal-content li { color: var(--ec-text-muted); line-height: 1.7; margin-bottom: 6px; }
.ec-legal-content a { color: var(--ec-primary); text-decoration: underline; }
.ec-legal-content .last-updated {
    background: var(--ec-bg);
    border: 1px solid var(--ec-border);
    border-radius: var(--ec-radius-sm);
    padding: 12px 16px;
    font-size: 0.875rem;
    color: var(--ec-text-muted);
    margin-bottom: 32px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* ============================================================
   13. SIDEBAR
   ============================================================ */
.widget {
    background: #fff;
    border: 1px solid var(--ec-border);
    border-radius: var(--ec-radius-lg);
    padding: 24px;
    margin-bottom: 24px;
}
.widget-title { font-size: 1rem; font-weight: 700; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 2px solid var(--ec-border); }
.widget ul li { padding: 8px 0; border-bottom: 1px solid var(--ec-border); font-size: 0.9rem; }
.widget ul li:last-child { border-bottom: none; }
.widget ul li a { color: var(--ec-text-muted); transition: var(--ec-transition); }
.widget ul li a:hover { color: var(--ec-primary); }

/* ============================================================
   14. COMMENTS
   ============================================================ */
.ec-comments-section { margin-top: 48px; padding-top: 40px; border-top: 1px solid var(--ec-border); }
.ec-comments-section h2 { font-size: 1.4rem; margin-bottom: 28px; }
.comment-body {
    background: #fff;
    border: 1px solid var(--ec-border);
    border-radius: var(--ec-radius);
    padding: 20px;
    margin-bottom: 16px;
}
.comment-author { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.comment-author img { border-radius: 50%; }
.comment-author .fn { font-weight: 600; font-size: 0.95rem; }
.comment-author time { font-size: 0.8rem; color: var(--ec-text-muted); }
.comment-content { font-size: 0.925rem; color: var(--ec-text-muted); line-height: 1.7; }

/* ============================================================
   15. 404 PAGE
   ============================================================ */
.ec-404 { text-align: center; padding: 80px 0; }
.ec-404 .ec-404-icon { font-size: 6rem; margin-bottom: 24px; animation: bounce 2s ease infinite alternate; }
.ec-404 h1 { font-size: 5rem; color: var(--ec-primary); margin-bottom: 8px; }
.ec-404 h2 { font-size: 1.8rem; margin-bottom: 16px; }
.ec-404 p { color: var(--ec-text-muted); max-width: 480px; margin: 0 auto 28px; }

/* ============================================================
   16. MAP EMBED
   ============================================================ */
.ec-map-embed { border-radius: var(--ec-radius-lg); overflow: hidden; margin-top: 24px; border: 1px solid var(--ec-border); }
.ec-map-embed iframe { width: 100%; display: block; border: none; }

/* ============================================================
   17. ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@keyframes bounce {
    from { transform: translateY(0); }
    to   { transform: translateY(-8px); }
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
.animate-on-scroll {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Loading spinner */
.ec-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    display: none;
}
.loading .ec-spinner { display: inline-block; }
.loading .btn-text { display: none; }

/* ============================================================
   18. BACK TO TOP
   ============================================================ */
.ec-back-to-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 48px;
    height: 48px;
    background: var(--ec-primary);
    color: #fff;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: var(--ec-shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: var(--ec-transition);
    z-index: 998;
}
.ec-back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.ec-back-to-top:hover { background: #1d4ed8; transform: translateY(-4px); }

/* ============================================================
   19. RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .ec-faq-layout { grid-template-columns: 1fr; }
    .ec-faq-sidebar { display: none; }
    .ec-about-mission { grid-template-columns: 1fr; }
    .ec-values-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
    .ec-blog-grid { grid-template-columns: 1fr 1fr; }
    .ec-archive-grid { grid-template-columns: 1fr; }
    .ec-contact-layout { grid-template-columns: 1fr; }
    .ec-calc-fields { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .section-padding { padding: 56px 0; }
    .container { padding: 0 16px; }
    .nav-toggle { display: flex; }
    .primary-nav {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: #fff;
        border-bottom: 1px solid var(--ec-border);
        padding: 16px;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--ec-transition);
        z-index: 998;
        box-shadow: var(--ec-shadow-lg);
        max-height: calc(100vh - 72px);
        overflow-y: auto;
    }
    .primary-nav.is-open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    .nav-menu {
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
    }
    .nav-menu a { padding: 12px 16px; }
    .nav-menu .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background: var(--ec-bg);
        border-radius: 8px;
        margin-top: 4px;
        display: none;
    }
    .nav-menu li.is-open > .sub-menu { display: block; }
    .header-cta { display: none; }
    .ec-hero { padding: 40px 0 60px; }
    .ec-hero-stats { gap: 10px; }
    .ec-hero-stat { padding: 8px 14px; font-size: 0.8rem; }
    .ec-calc-body { padding: 20px; }
    .ec-calc-header { padding: 20px; }
    .ec-blog-grid { grid-template-columns: 1fr; }
    .ec-blog-card.layout-list { flex-direction: column; }
    .ec-blog-card.layout-list .ec-blog-thumb { width: 100%; height: 200px; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom-inner { flex-direction: column; text-align: center; }
    .ec-result-cards { grid-template-columns: 1fr 1fr; }
    .ec-countdown-grid { grid-template-columns: repeat(4, 1fr); gap: 8px; }
    .ec-countdown-num { font-size: 1.4rem; }
    .ec-form-row { grid-template-columns: 1fr; }
    .ec-values-grid { grid-template-columns: 1fr; }
    .ec-about-mission { grid-template-columns: 1fr; gap: 32px; }
    .ec-calc-actions { flex-direction: column; }
    .ec-calc-submit { width: 100%; }
    .ec-calc-reset { width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
    .ec-result-cards { grid-template-columns: 1fr; }
    .ec-hero-title { font-size: 1.7rem; }
    .ec-hatch-date-display { font-size: 1.4rem; }
    .ec-care-grid { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   SEARCH FORM — Premium Redesign
   ============================================================ */
.ec-search-form {
    width: 100%;
}

.ec-search-wrap {
    display: flex;
    align-items: center;
    position: relative;
    background: #f1f5f9;
    border: 2px solid var(--ec-border);
    border-radius: 50px;
    overflow: hidden;
    transition: var(--ec-transition);
}

.ec-search-wrap:focus-within {
    background: #fff;
    border-color: var(--ec-primary);
    box-shadow: 0 0 0 4px rgba(var(--ec-primary-rgb), 0.12);
}

/* Left magnifier icon */
.ec-search-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 0 0 16px;
    color: var(--ec-text-muted);
    flex-shrink: 0;
    pointer-events: none;
    transition: color 0.2s;
}

.ec-search-wrap:focus-within .ec-search-icon-wrap {
    color: var(--ec-primary);
}

.ec-search-icon {
    display: block;
}

/* Text input */
.ec-search-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 13px 10px 13px 10px;
    font-size: 0.9rem;
    color: var(--ec-text);
    outline: none;
    min-width: 0;
    line-height: 1.4;
}

.ec-search-input::placeholder {
    color: var(--ec-text-muted);
    font-style: italic;
}

/* Cancel the browser's default search-input styling */
.ec-search-input::-webkit-search-decoration,
.ec-search-input::-webkit-search-cancel-button,
.ec-search-input::-webkit-search-results-button {
    -webkit-appearance: none;
}

/* Submit arrow button */
.ec-search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    margin: 3px;
    background: var(--ec-primary);
    color: #fff;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--ec-transition);
}

.ec-search-btn:hover {
    background: #1d4ed8;
    transform: scale(1.08);
    box-shadow: 0 4px 14px rgba(var(--ec-primary-rgb), 0.4);
}

.ec-search-btn:active {
    transform: scale(0.96);
}

/* Widget title override for search widget */
.widget:has(.ec-search-form) .widget-title {
    margin-bottom: 14px;
}

/* ============================================================
   SINGLE POST — COMPLETE REDESIGN
   ============================================================ */

/* --- Reading Progress Bar --- */
.ec-reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    z-index: 10000;
    background: transparent;
    pointer-events: none;
}
.ec-reading-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--ec-primary), #7c3aed);
    transition: width 0.1s linear;
    border-radius: 0 2px 2px 0;
}

/* --- Hero Section --- */
.ec-single-hero {
    position: relative;
    overflow: hidden;
}
.ec-single-hero--has-image {
    min-height: 520px;
    display: flex;
    align-items: flex-end;
    padding-bottom: 0;
}
.ec-single-hero--no-image {
    background: linear-gradient(135deg, #eef4ff 0%, #f0fdf4 100%);
    padding: 60px 0 48px;
    border-bottom: 1px solid var(--ec-border);
}
.ec-single-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.ec-single-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.ec-single-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(10, 15, 30, 0.25) 0%,
        rgba(10, 15, 30, 0.55) 50%,
        rgba(10, 15, 30, 0.88) 100%
    );
}
.ec-single-hero-inner {
    position: relative;
    z-index: 1;
    padding-top: 48px;
    padding-bottom: 52px;
    max-width: 860px;
}

/* Breadcrumb */
.ec-single-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 18px;
    font-size: 0.82rem;
    flex-wrap: wrap;
}
.ec-single-hero--has-image .ec-single-breadcrumb,
.ec-single-hero--has-image .ec-single-breadcrumb a,
.ec-single-hero--has-image .ec-single-breadcrumb span {
    color: rgba(255,255,255,0.75);
}
.ec-single-hero--has-image .ec-single-breadcrumb a:hover { color: #fff; }
.ec-single-hero--no-image .ec-single-breadcrumb a { color: var(--ec-text-muted); }
.ec-single-hero--no-image .ec-single-breadcrumb a:hover { color: var(--ec-primary); }
.ec-single-hero--no-image .ec-single-breadcrumb span { color: var(--ec-text-muted); }
.ec-single-breadcrumb svg { opacity: 0.55; flex-shrink: 0; }

/* Category badge */
.ec-single-cat-badge {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    margin-bottom: 14px;
    text-decoration: none;
    transition: var(--ec-transition);
}
.ec-single-hero--has-image .ec-single-cat-badge {
    background: rgba(255,255,255,0.2);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.35);
    backdrop-filter: blur(4px);
}
.ec-single-hero--has-image .ec-single-cat-badge:hover {
    background: var(--ec-primary);
    border-color: var(--ec-primary);
}
.ec-single-hero--no-image .ec-single-cat-badge {
    background: var(--ec-primary-light);
    color: var(--ec-primary);
}
.ec-single-hero--no-image .ec-single-cat-badge:hover { background: var(--ec-primary); color: #fff; }

/* Title */
.ec-single-title {
    font-size: clamp(1.7rem, 3.5vw, 2.6rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}
.ec-single-hero--has-image .ec-single-title { color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,0.3); }
.ec-single-hero--no-image .ec-single-title { color: var(--ec-text); }

/* Meta row */
.ec-single-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
.ec-single-hero--has-image .ec-single-meta,
.ec-single-hero--has-image .ec-single-meta a { color: rgba(255,255,255,0.85); }
.ec-single-hero--no-image .ec-single-meta { color: var(--ec-text-muted); }
.ec-single-author-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    font-weight: 600;
}
.ec-author-avatar-sm {
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    border: 2px solid rgba(255,255,255,0.4);
}
.ec-single-meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.84rem;
}
.ec-single-meta-divider {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.4;
    flex-shrink: 0;
}

/* --- Body Layout --- */
.ec-single-body {
    padding: 56px 0 40px;
    background: var(--ec-bg);
}
.ec-single-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 48px;
    align-items: start;
}

/* --- Article --- */
.ec-single-article {
    min-width: 0;
    background: #fff;
    border-radius: var(--ec-radius);
    border: 1px solid var(--ec-border);
    overflow: hidden;
}

/* --- Post Content Typography --- */
.ec-single-content {
    padding: 40px 44px;
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--ec-text);
}
.ec-single-content h2 {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 2em 0 0.6em;
    padding-bottom: 0.4em;
    border-bottom: 2px solid var(--ec-primary-light);
    color: var(--ec-text);
    letter-spacing: -0.01em;
}
.ec-single-content h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 1.6em 0 0.5em;
    color: var(--ec-text);
}
.ec-single-content h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 1.4em 0 0.4em;
}
.ec-single-content p { margin-bottom: 1.3em; }
.ec-single-content ul,
.ec-single-content ol {
    margin: 0 0 1.3em 1.2em;
    list-style: initial;
}
.ec-single-content ol { list-style: decimal; }
.ec-single-content li { margin-bottom: 0.4em; }
.ec-single-content strong { font-weight: 700; color: var(--ec-text); }
.ec-single-content a { color: var(--ec-primary); text-decoration: underline; text-underline-offset: 3px; }
.ec-single-content a:hover { color: #1d4ed8; }
.ec-single-content blockquote {
    margin: 1.8em 0;
    padding: 20px 24px;
    border-left: 4px solid var(--ec-primary);
    background: var(--ec-primary-light);
    border-radius: 0 var(--ec-radius-sm) var(--ec-radius-sm) 0;
    font-style: italic;
    font-size: 1.05rem;
}
.ec-single-content blockquote p:last-child { margin-bottom: 0; }
.ec-single-content code {
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.88em;
    font-family: 'Fira Code', monospace;
}
.ec-single-content pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 20px 24px;
    border-radius: var(--ec-radius-sm);
    overflow-x: auto;
    margin: 1.5em 0;
    font-size: 0.9rem;
}
.ec-single-content pre code { background: none; padding: 0; color: inherit; }
.ec-single-content img {
    border-radius: var(--ec-radius-sm);
    margin: 1em 0;
    width: 100%;
    height: auto;
}
.ec-single-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
    font-size: 0.9rem;
}
.ec-single-content th {
    background: var(--ec-primary-light);
    color: var(--ec-primary);
    font-weight: 700;
    padding: 10px 14px;
    text-align: left;
    border-bottom: 2px solid var(--ec-primary);
}
.ec-single-content td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--ec-border);
}
.ec-single-content tr:last-child td { border-bottom: none; }
.ec-single-content tr:nth-child(even) td { background: #f8fafc; }

/* --- Tags Row --- */
.ec-single-tags {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    flex-wrap: wrap;
    padding: 20px 44px;
    border-top: 1px solid var(--ec-border);
}
.ec-single-tags-label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--ec-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding-top: 4px;
    flex-shrink: 0;
}
.ec-single-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* --- Share Bar --- */
.ec-single-share {
    padding: 24px 44px;
    border-top: 1px solid var(--ec-border);
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    background: #f8fafc;
}
.ec-single-share-label {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--ec-text);
    white-space: nowrap;
}
.ec-share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.ec-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    border: none;
    transition: var(--ec-transition);
    line-height: 1;
    white-space: nowrap;
}
.ec-share-facebook { background: #1877f2; color: #fff; }
.ec-share-facebook:hover { background: #145dbf; color: #fff; transform: translateY(-2px); }
.ec-share-twitter { background: #000; color: #fff; }
.ec-share-twitter:hover { background: #333; color: #fff; transform: translateY(-2px); }
.ec-share-linkedin { background: #0a66c2; color: #fff; }
.ec-share-linkedin:hover { background: #084f99; color: #fff; transform: translateY(-2px); }
.ec-share-pinterest { background: #e60023; color: #fff; }
.ec-share-pinterest:hover { background: #ad081b; color: #fff; transform: translateY(-2px); }
.ec-share-copy {
    background: #fff;
    color: var(--ec-text);
    border: 1px solid var(--ec-border) !important;
    font-family: inherit;
}
.ec-share-copy:hover { background: var(--ec-bg); border-color: var(--ec-text-muted) !important; transform: translateY(-2px); }

/* --- Author Box --- */
.ec-author-box {
    display: flex;
    gap: 22px;
    align-items: flex-start;
    padding: 32px 44px;
    border-top: 1px solid var(--ec-border);
    background: linear-gradient(135deg, #f8faff 0%, #f0fdf4 100%);
}
.ec-author-box-avatar { flex-shrink: 0; }
.ec-author-avatar-lg {
    width: 80px !important;
    height: 80px !important;
    border-radius: 50% !important;
    border: 3px solid #fff;
    box-shadow: var(--ec-shadow);
}
.ec-author-box-byline {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ec-text-muted);
    margin-bottom: 4px !important;
}
.ec-author-box-name {
    font-size: 1.05rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--ec-text);
}
.ec-author-box-bio {
    font-size: 0.875rem;
    color: var(--ec-text-muted);
    line-height: 1.65;
    margin: 0 !important;
}

/* --- Post Navigation --- */
.ec-post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 28px 44px;
    border-top: 1px solid var(--ec-border);
}
.ec-post-nav-link {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 18px 20px;
    border: 1.5px solid var(--ec-border);
    border-radius: var(--ec-radius);
    text-decoration: none;
    background: #fff;
    transition: var(--ec-transition);
}
.ec-post-nav-link:hover {
    border-color: var(--ec-primary);
    box-shadow: var(--ec-shadow);
    transform: translateY(-2px);
}
.ec-post-nav-next { text-align: right; }
.ec-post-nav-dir {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--ec-primary);
}
.ec-post-nav-next .ec-post-nav-dir { justify-content: flex-end; }
.ec-post-nav-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--ec-text);
    line-height: 1.4;
}

/* --- Comments Section --- */
.ec-comments-section {
    padding: 32px 44px;
    border-top: 1px solid var(--ec-border);
}
.ec-comments-section .comments-title {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--ec-border);
}

/* --- Sidebar --- */
.ec-single-sidebar {
    position: sticky;
    top: 88px;
    align-self: start;   /* essential for sticky in a grid row */
}
.ec-single-sidebar .widget { position: static; }
.ec-single-sidebar .widget + .widget { margin-top: 20px; }

/* CTA Widget */
.ec-cta-widget {
    background: linear-gradient(145deg, var(--ec-primary) 0%, #1d4ed8 60%, #4f46e5 100%) !important;
    border: none !important;
    text-align: center;
}
.ec-cta-icon { font-size: 2.8rem; margin-bottom: 10px; }
.ec-cta-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff !important;
    margin-bottom: 8px;
    border: none !important;
    padding: 0 !important;
}
.ec-cta-text {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.85);
    margin-bottom: 18px;
    line-height: 1.55;
}
.ec-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 13px 20px;
    background: #fff;
    color: var(--ec-primary);
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: 50px;
    text-decoration: none;
    transition: var(--ec-transition);
    border: 2px solid #fff;
}
.ec-cta-btn:hover {
    background: transparent;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* Related List */
.ec-related-list { list-style: none; margin: 0; padding: 0; }
.ec-related-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 10px 0;
    border-bottom: 1px solid var(--ec-border);
}
.ec-related-item:last-child { border-bottom: none; padding-bottom: 0; }
.ec-related-thumb {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    display: block;
}
.ec-related-thumb img { width: 60px; height: 60px; object-fit: cover; }
.ec-related-info { flex: 1; min-width: 0; }
.ec-related-title {
    display: block;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--ec-text);
    line-height: 1.4;
    margin-bottom: 4px;
    text-decoration: none;
}
.ec-related-title:hover { color: var(--ec-primary); }
.ec-related-date { font-size: 0.75rem; color: var(--ec-text-muted); }

/* Tag cloud */
.ec-tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }

/* --- More Articles (Full Width) --- */
.ec-more-articles {
    background: linear-gradient(180deg, #f0f6ff 0%, #f8fafc 100%);
    padding: 64px 0;
    border-top: 1px solid var(--ec-border);
}
.ec-more-articles-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 36px;
    flex-wrap: wrap;
    gap: 12px;
}
.ec-more-articles-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--ec-text);
}
.ec-more-articles-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--ec-primary);
    text-decoration: none;
    transition: var(--ec-transition);
}
.ec-more-articles-link:hover { gap: 10px; }
.ec-more-articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.ec-more-card {
    background: #fff;
    border-radius: var(--ec-radius);
    border: 1px solid var(--ec-border);
    overflow: hidden;
    transition: var(--ec-transition);
    display: flex;
    flex-direction: column;
}
.ec-more-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--ec-shadow-md);
    border-color: transparent;
}
.ec-more-card-thumb {
    position: relative;
    display: block;
    height: 185px;
    overflow: hidden;
}
.ec-more-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    margin: 0;
    border-radius: 0;
}
.ec-more-card:hover .ec-more-card-thumb img { transform: scale(1.05); }
.ec-more-card-cat {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--ec-primary);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.ec-more-card-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.ec-more-card-title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 10px;
}
.ec-more-card-title a { color: var(--ec-text); text-decoration: none; }
.ec-more-card-title a:hover { color: var(--ec-primary); }
.ec-more-card-excerpt {
    font-size: 0.875rem;
    color: var(--ec-text-muted);
    line-height: 1.6;
    flex: 1;
    margin-bottom: 16px;
}
.ec-more-card-meta {
    display: flex;
    gap: 12px;
    font-size: 0.78rem;
    color: var(--ec-text-muted);
    font-weight: 500;
    padding-top: 14px;
    border-top: 1px solid var(--ec-border);
}

/* --- Single Post Responsive --- */
@media (max-width: 1024px) {
    .ec-single-layout { grid-template-columns: 1fr 300px; gap: 32px; }
    .ec-single-content { padding: 32px; }
    .ec-single-tags, .ec-single-share { padding: 18px 32px; }
    .ec-author-box { padding: 28px 32px; }
    .ec-post-nav { padding: 24px 32px; }
    .ec-comments-section { padding: 28px 32px; }
}
@media (max-width: 860px) {
    .ec-single-layout {
        grid-template-columns: 1fr;
    }
    .ec-single-sidebar {
        position: static;
        align-self: auto;
    }
    .ec-single-hero--has-image { min-height: 420px; }
    .ec-more-articles-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
    .ec-single-content { padding: 24px 20px; font-size: 1rem; }
    .ec-single-tags, .ec-single-share { padding: 16px 20px; flex-direction: column; align-items: flex-start; }
    .ec-author-box { padding: 24px 20px; flex-direction: column; }
    .ec-post-nav { padding: 20px; grid-template-columns: 1fr; }
    .ec-comments-section { padding: 24px 20px; }
    .ec-more-articles-grid { grid-template-columns: 1fr; }
    .ec-single-hero--has-image { min-height: 340px; }
    .ec-share-buttons { gap: 6px; }
    .ec-share-btn span { display: none; }
    .ec-share-btn { padding: 10px; border-radius: 8px; }
}

/* ============================================================
   COMMENTS SECTION — COMPLETE REDESIGN
   ============================================================ */

/* Outer wrapper — sits inside .ec-comments-section */
.ec-comments-wrap {
    padding: 0;
}

/* --- Header --- */
.ec-comments-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--ec-border);
    flex-wrap: wrap;
    gap: 12px;
}
.ec-comments-header-left {
    display: flex;
    align-items: center;
    gap: 14px;
}
.ec-comments-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: var(--ec-primary-light);
    color: var(--ec-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.ec-comments-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--ec-text);
    margin: 0 0 2px;
    line-height: 1.2;
}
.ec-comments-count {
    color: var(--ec-primary);
}
.ec-comments-subtitle {
    font-size: 0.82rem;
    color: var(--ec-text-muted);
    margin: 0;
}

/* --- Comment List --- */
.ec-comment-list {
    list-style: none;
    margin: 0 0 40px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Nested replies */
.ec-comment-list .children {
    list-style: none;
    padding: 0;
    margin: 0;
}
.ec-comment-list .children .ec-comment-article {
    margin-left: 56px;
    background: #f8fafc;
    border-left: 3px solid var(--ec-primary-light);
    border-radius: 0 var(--ec-radius-sm) var(--ec-radius-sm) 0;
}

/* Individual comment */
.ec-comment {
    border-bottom: 1px solid var(--ec-border);
}
.ec-comment:last-child { border-bottom: none; }

.ec-comment-article {
    display: flex;
    gap: 16px;
    padding: 24px 0;
    align-items: flex-start;
}

/* Avatar column */
.ec-comment-avatar {
    flex-shrink: 0;
    position: relative;
}
.ec-comment-gravatar {
    width: 48px !important;
    height: 48px !important;
    border-radius: 50% !important;
    border: 2px solid #fff;
    box-shadow: var(--ec-shadow-sm);
    display: block;
}
.ec-reply-indicator {
    position: absolute;
    bottom: -4px;
    right: -4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--ec-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Comment body */
.ec-comment-body {
    flex: 1;
    min-width: 0;
}

/* Head row */
.ec-comment-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}
.ec-comment-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.ec-comment-author {
    font-size: 0.925rem;
    font-weight: 700;
    color: var(--ec-text);
}
.ec-comment-author a {
    color: inherit;
    text-decoration: none;
}
.ec-comment-author a:hover { color: var(--ec-primary); }
.ec-comment-pending {
    display: inline-block;
    padding: 2px 8px;
    background: #fef3c7;
    color: #92400e;
    font-size: 0.72rem;
    font-weight: 600;
    border-radius: 50px;
    border: 1px solid #fde68a;
}
.ec-comment-head-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.ec-comment-time {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.78rem;
    color: var(--ec-text-muted);
    white-space: nowrap;
}
.ec-comment-reply-link a,
.ec-comment-edit-link a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--ec-text-muted);
    text-decoration: none;
    padding: 4px 10px;
    border-radius: 50px;
    border: 1px solid var(--ec-border);
    background: #fff;
    transition: var(--ec-transition);
    white-space: nowrap;
}
.ec-comment-reply-link a:hover {
    color: var(--ec-primary);
    border-color: var(--ec-primary);
    background: var(--ec-primary-light);
}
.ec-comment-edit-link a {
    color: var(--ec-text-muted);
    font-size: 0.75rem;
}
.ec-comment-edit-link a:hover {
    color: var(--ec-accent);
    border-color: var(--ec-accent);
}

/* Comment text */
.ec-comment-text {
    font-size: 0.925rem;
    line-height: 1.75;
    color: var(--ec-text);
}
.ec-comment-text p { margin-bottom: 0.75em; }
.ec-comment-text p:last-child { margin-bottom: 0; }
.ec-comment-text a { color: var(--ec-primary); text-underline-offset: 3px; }
.ec-comment-text blockquote {
    border-left: 3px solid var(--ec-primary);
    padding: 8px 16px;
    background: var(--ec-primary-light);
    border-radius: 0 6px 6px 0;
    margin: 8px 0;
    font-style: italic;
    font-size: 0.9rem;
}

/* --- Pagination --- */
.ec-comment-pagination { margin-top: 20px; }
.ec-comment-pagination-inner {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.ec-comment-pagination-inner a,
.ec-comment-pagination-inner span {
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    border: 1.5px solid var(--ec-border);
    color: var(--ec-text);
    transition: var(--ec-transition);
}
.ec-comment-pagination-inner a:hover {
    border-color: var(--ec-primary);
    color: var(--ec-primary);
}
.ec-comment-pagination-inner .current {
    background: var(--ec-primary);
    color: #fff;
    border-color: var(--ec-primary);
}

/* --- Comments Closed Notice --- */
.ec-comments-closed {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 20px;
    background: #f1f5f9;
    border-radius: var(--ec-radius-sm);
    font-size: 0.875rem;
    color: var(--ec-text-muted);
    margin-bottom: 24px;
}

/* --- Comment Form Wrapper --- */
.ec-comment-form-wrap {
    margin-top: 36px;
}

/* Reply / Form header */
.ec-form-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--ec-border);
}
.ec-form-section-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--ec-text);
    margin: 0;
}
.ec-cancel-reply-wrap {
    margin-left: auto;
}
.ec-cancel-reply-wrap #cancel-comment-reply-link {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--ec-text-muted);
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid var(--ec-border);
    transition: var(--ec-transition);
}
.ec-cancel-reply-wrap #cancel-comment-reply-link:hover {
    color: #dc2626;
    border-color: #dc2626;
}

/* Logged-in state */
.ec-logged-in-as {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: var(--ec-primary-light);
    border-radius: var(--ec-radius-sm);
    border: 1px solid rgba(var(--ec-primary-rgb), 0.15);
    margin-bottom: 20px;
    font-size: 0.875rem;
    color: var(--ec-text);
}
.ec-logged-in-avatar {
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    flex-shrink: 0;
}
.ec-logged-in-as a { color: var(--ec-primary); font-weight: 600; }
.ec-logged-in-as a:hover { text-decoration: underline; }

/* --- Comment Form --- */
#ec-comment-form {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Form fields row (name, email, url in 2-col grid) */
#ec-comment-form .comment-form-author,
#ec-comment-form .comment-form-email,
#ec-comment-form .comment-form-url,
.ec-comment-field {
    margin-bottom: 18px;
}

/* Label */
#ec-comment-form label,
.ec-comment-field label {
    display: block;
    font-size: 0.83rem;
    font-weight: 700;
    color: var(--ec-text);
    margin-bottom: 7px;
    letter-spacing: 0.01em;
}
#ec-comment-form label .required,
.ec-comment-field label .required {
    color: #dc2626;
    margin-left: 2px;
}

/* Input wrap with icon */
.ec-field-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.ec-field-wrap svg {
    position: absolute;
    left: 14px;
    color: var(--ec-text-muted);
    pointer-events: none;
    flex-shrink: 0;
    transition: color 0.2s;
}
.ec-field-wrap input {
    width: 100%;
    padding: 12px 14px 12px 42px;
    border: 1.5px solid var(--ec-border);
    border-radius: var(--ec-radius-sm);
    background: #fff;
    font-size: 0.9rem;
    color: var(--ec-text);
    transition: var(--ec-transition);
    outline: none;
    font-family: inherit;
}
.ec-field-wrap input:focus {
    border-color: var(--ec-primary);
    box-shadow: 0 0 0 3px rgba(var(--ec-primary-rgb), 0.12);
}
.ec-field-wrap:focus-within svg { color: var(--ec-primary); }
.ec-field-wrap input::placeholder { color: var(--ec-text-muted); font-style: italic; }

/* Field note */
.ec-field-note {
    font-size: 0.75rem;
    color: var(--ec-text-muted);
    margin: 5px 0 0;
    font-style: italic;
}

/* Three-column grid for name/email/url */
#ec-comment-form .comment-form-fields-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Textarea */
.ec-comment-field--textarea { margin-bottom: 20px; }
#ec-comment-form textarea,
.ec-comment-field--textarea textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid var(--ec-border);
    border-radius: var(--ec-radius-sm);
    background: #fff;
    font-size: 0.9rem;
    line-height: 1.65;
    color: var(--ec-text);
    resize: vertical;
    min-height: 150px;
    transition: var(--ec-transition);
    outline: none;
    font-family: inherit;
}
#ec-comment-form textarea:focus,
.ec-comment-field--textarea textarea:focus {
    border-color: var(--ec-primary);
    box-shadow: 0 0 0 3px rgba(var(--ec-primary-rgb), 0.12);
}
#ec-comment-form textarea::placeholder { color: var(--ec-text-muted); font-style: italic; }

/* Submit row */
.ec-comment-submit-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* Submit button */
.ec-comment-submit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    background: var(--ec-primary);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: 50px;
    border: 2px solid var(--ec-primary);
    cursor: pointer;
    transition: var(--ec-transition);
    font-family: inherit;
    white-space: nowrap;
}
.ec-comment-submit:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(var(--ec-primary-rgb), 0.35);
}
.ec-comment-submit:active { transform: translateY(0); }

/* Cookie consent checkbox (if enabled) */
#ec-comment-form .comment-form-cookies-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.83rem;
    color: var(--ec-text-muted);
    margin-bottom: 20px;
}
#ec-comment-form .comment-form-cookies-consent input[type="checkbox"] {
    margin-top: 2px;
    accent-color: var(--ec-primary);
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* --- Comments Responsive --- */
@media (max-width: 640px) {
    .ec-comment-article { gap: 12px; }
    .ec-comment-gravatar { width: 38px !important; height: 38px !important; }
    .ec-comment-head { flex-direction: column; gap: 6px; }
    .ec-comment-head-right { flex-wrap: wrap; }
    .ec-comment-list .children .ec-comment-article { margin-left: 32px; }
    .ec-comment-submit { width: 100%; justify-content: center; }
}

/* ============================================================
   CUSTOM DATEPICKER
   ============================================================ */

/* --- Wrap --- */
.ec-datepicker-wrap {
    position: relative;
    width: 100%;
}

/* --- Trigger Button --- */
.ec-datepicker-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12px 16px;
    background: #fff;
    border: 1.5px solid var(--ec-border);
    border-radius: var(--ec-radius-sm);
    font-size: 0.9rem;
    color: var(--ec-text-muted);
    cursor: pointer;
    transition: var(--ec-transition);
    font-family: inherit;
    text-align: left;
    outline: none;
}
.ec-datepicker-trigger:hover {
    border-color: var(--ec-primary);
    background: #f8faff;
}
.ec-datepicker-trigger:focus-visible {
    border-color: var(--ec-primary);
    box-shadow: 0 0 0 3px rgba(var(--ec-primary-rgb), 0.15);
}
.ec-datepicker-trigger.ec-dp-open {
    border-color: var(--ec-primary);
    box-shadow: 0 0 0 3px rgba(var(--ec-primary-rgb), 0.15);
}
.ec-datepicker-trigger.ec-dp-has-value {
    color: var(--ec-text);
    font-weight: 600;
}
.ec-dp-cal-icon {
    flex-shrink: 0;
    color: var(--ec-primary);
}
.ec-dp-display-text {
    flex: 1;
}
.ec-dp-chevron {
    flex-shrink: 0;
    color: var(--ec-text-muted);
    transition: transform 0.2s ease;
}
.ec-datepicker-trigger.ec-dp-open .ec-dp-chevron {
    transform: rotate(180deg);
    color: var(--ec-primary);
}

/* --- Popup --- */
.ec-datepicker-popup {
    /* position & coordinates set dynamically by datepicker.js (portal pattern) */
    z-index: 99999;
    width: 300px;
    background: #fff;
    border: 1.5px solid var(--ec-border);
    border-radius: var(--ec-radius);
    box-shadow: 0 20px 40px -8px rgba(0,0,0,0.15), 0 8px 16px -4px rgba(0,0,0,0.08);
    overflow: hidden;
    animation: ec-dp-appear 0.18s cubic-bezier(0.4,0,0.2,1);
}
.ec-datepicker-popup.ec-dp-flip {
    animation: ec-dp-appear-up 0.18s cubic-bezier(0.4,0,0.2,1);
}
@keyframes ec-dp-appear {
    from { opacity: 0; transform: translateY(-8px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0)   scale(1); }
}
@keyframes ec-dp-appear-up {
    from { opacity: 0; transform: translateY(8px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0)   scale(1); }
}

/* --- Header --- */
.ec-dp-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px 10px;
    border-bottom: 1px solid var(--ec-border);
    background: linear-gradient(135deg, #f8faff 0%, #f0fdf4 100%);
}
.ec-dp-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1.5px solid var(--ec-border);
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    color: var(--ec-text-muted);
    transition: var(--ec-transition);
    flex-shrink: 0;
}
.ec-dp-nav:hover {
    border-color: var(--ec-primary);
    color: var(--ec-primary);
    background: var(--ec-primary-light);
}
.ec-dp-month-year {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--ec-text);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 10px;
    border-radius: 6px;
    transition: var(--ec-transition);
    font-family: inherit;
    flex: 1;
    text-align: center;
}
.ec-dp-month-year:hover {
    background: var(--ec-primary-light);
    color: var(--ec-primary);
}

/* --- Weekday Labels --- */
.ec-dp-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    padding: 10px 12px 6px;
    gap: 2px;
}
.ec-dp-weekdays span {
    text-align: center;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--ec-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 4px 0;
}

/* --- Day Grid --- */
.ec-dp-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    padding: 4px 12px 12px;
    gap: 3px;
}
.ec-dp-day {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 1 / 1;
    border: none;
    background: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--ec-text);
    cursor: pointer;
    transition: background 0.15s, color 0.15s, transform 0.1s;
    font-family: inherit;
    position: relative;
}
.ec-dp-day:hover {
    background: var(--ec-primary-light);
    color: var(--ec-primary);
    transform: scale(1.1);
}
.ec-dp-day.ec-dp-empty {
    cursor: default;
    pointer-events: none;
}
/* Today ring */
.ec-dp-day.ec-dp-today {
    font-weight: 800;
    color: var(--ec-primary);
}
.ec-dp-day.ec-dp-today::after {
    content: '';
    position: absolute;
    bottom: 3px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--ec-primary);
}
/* Selected */
.ec-dp-day.ec-dp-selected {
    background: var(--ec-primary);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(var(--ec-primary-rgb), 0.4);
    transform: scale(1.08);
}
.ec-dp-day.ec-dp-selected:hover {
    background: #1d4ed8;
    color: #fff;
}
.ec-dp-day.ec-dp-selected.ec-dp-today::after {
    background: rgba(255,255,255,0.7);
}

/* --- Footer --- */
.ec-dp-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px 14px;
    border-top: 1px solid var(--ec-border);
    background: #f8fafc;
}
.ec-dp-today-btn,
.ec-dp-clear-btn {
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--ec-transition);
    font-family: inherit;
    border: 1.5px solid;
}
.ec-dp-today-btn {
    background: var(--ec-primary);
    color: #fff;
    border-color: var(--ec-primary);
}
.ec-dp-today-btn:hover {
    background: #1d4ed8;
    border-color: #1d4ed8;
    transform: translateY(-1px);
}
.ec-dp-clear-btn {
    background: transparent;
    color: var(--ec-text-muted);
    border-color: var(--ec-border);
}
.ec-dp-clear-btn:hover {
    color: #dc2626;
    border-color: #dc2626;
}

/* --- Responsive --- */
@media (max-width: 400px) {
    .ec-datepicker-popup { width: calc(100vw - 32px); left: 0; }
    .ec-dp-day { font-size: 0.8rem; }
}

/* ============================================================
   CALCULATOR RESULT TABS
   ============================================================ */

.ec-result-tabs {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 10px 14px;
    background: #fff;
    border: 1.5px solid var(--ec-border);
    border-radius: 50px;
    margin-bottom: 24px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex-wrap: nowrap;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.ec-result-tabs::-webkit-scrollbar { display: none; }

.ec-result-tab {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    border-radius: 50px;
    border: none;
    background: transparent;
    font-size: 0.855rem;
    font-weight: 600;
    color: var(--ec-text-muted);
    cursor: pointer;
    transition: background 0.18s, color 0.18s, box-shadow 0.18s;
    white-space: nowrap;
    font-family: inherit;
    flex-shrink: 0;
}
.ec-result-tab svg { flex-shrink: 0; }
.ec-result-tab:hover {
    color: var(--ec-primary);
    background: var(--ec-primary-light);
}
.ec-result-tab.active {
    background: linear-gradient(135deg, #6366f1 0%, var(--ec-primary) 100%);
    color: #fff;
    box-shadow: 0 4px 14px rgba(99,102,241,0.35);
}
.ec-result-tab.active svg { stroke: #fff; }
.ec-result-tab.active:hover { color: #fff; }

.ec-tab-panel { display: none; }
.ec-tab-panel.active { display: block; animation: ec-tab-fade 0.22s ease; }
@keyframes ec-tab-fade {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.ec-result-actions {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    flex-wrap: wrap;
}

/* ============================================================
   HATCH RATE TAB
   ============================================================ */
.ec-hatch-rate-content { padding: 4px 0; }
.ec-hr-header { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.ec-hr-emoji  { font-size: 2.5rem; line-height: 1; flex-shrink: 0; }
.ec-hr-header h4 { font-size: 1.05rem; font-weight: 800; color: var(--ec-text); margin: 0 0 4px; }
.ec-hr-header p  { font-size: 0.82rem; color: var(--ec-text-muted); margin: 0; }

.ec-hr-bars { display: flex; flex-direction: column; gap: 14px; margin-bottom: 24px; }
.ec-hr-bar-row { display: flex; align-items: center; gap: 12px; }
.ec-hr-label {
    width: 70px; font-size: 0.82rem; font-weight: 700;
    color: var(--ec-text-muted); flex-shrink: 0; text-align: right;
}
.ec-hr-track {
    flex: 1; height: 10px; background: #f1f5f9;
    border-radius: 50px; overflow: hidden;
}
.ec-hr-fill { height: 100%; border-radius: 50px; transition: width 0.8s cubic-bezier(0.4,0,0.2,1); }
.ec-hr-typical   { background: linear-gradient(90deg,#94a3b8,#64748b); }
.ec-hr-good      { background: linear-gradient(90deg,#34d399,#10b981); }
.ec-hr-excellent { background: linear-gradient(90deg,var(--ec-primary),#6366f1); }
.ec-hr-pct { width: 42px; font-size: 0.85rem; font-weight: 800; color: var(--ec-text); text-align: right; flex-shrink: 0; }

.ec-hr-tips { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.ec-hr-tip {
    display: flex; gap: 10px; align-items: flex-start;
    font-size: 0.855rem; color: var(--ec-text); line-height: 1.55;
    background: #f8fafc; padding: 10px 14px;
    border-radius: var(--ec-radius-sm); border-left: 3px solid var(--ec-primary-light);
}
.ec-hr-tip > span:first-child { font-size: 1rem; flex-shrink: 0; }
.ec-hr-note {
    font-size: 0.82rem; color: var(--ec-text-muted); margin: 0;
    padding: 10px 14px; background: var(--ec-primary-light); border-radius: var(--ec-radius-sm);
}

/* ============================================================
   CAPACITY TAB
   ============================================================ */
.ec-capacity-content { padding: 4px 0; }
.ec-cap-header { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; color: var(--ec-primary); }
.ec-cap-header svg { flex-shrink: 0; }
.ec-cap-header h4 { font-size: 1.05rem; font-weight: 800; color: var(--ec-text); margin: 0 0 4px; }
.ec-cap-header p  { font-size: 0.82rem; color: var(--ec-text-muted); margin: 0; }

.ec-cap-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 20px; }
.ec-cap-field label { display: block; font-size: 0.8rem; font-weight: 700; color: var(--ec-text); margin-bottom: 6px; }
.ec-cap-field select,
.ec-cap-field input {
    width: 100%; padding: 10px 12px;
    border: 1.5px solid var(--ec-border); border-radius: var(--ec-radius-sm);
    font-size: 0.875rem; font-family: inherit; color: var(--ec-text);
    background: #fff; outline: none; transition: var(--ec-transition);
}
.ec-cap-field select:focus,
.ec-cap-field input:focus {
    border-color: var(--ec-primary);
    box-shadow: 0 0 0 3px rgba(var(--ec-primary-rgb),0.12);
}
.ec-cap-result-inner {
    text-align: center; padding: 24px 20px;
    background: linear-gradient(135deg,var(--ec-primary-light) 0%,#f0fdf4 100%);
    border-radius: var(--ec-radius); border: 1.5px solid rgba(var(--ec-primary-rgb),0.15);
}
.ec-cap-result-num   { font-size: 3.5rem; font-weight: 900; color: var(--ec-primary); line-height: 1; margin-bottom: 4px; }
.ec-cap-result-label { font-size: 0.9rem; font-weight: 700; color: var(--ec-text-muted); margin-bottom: 12px; }
.ec-cap-result-note  { font-size: 0.8rem; color: var(--ec-text-muted); margin: 0; line-height: 1.5; }

/* ============================================================
   POWER BACKUP TAB
   ============================================================ */
.ec-power-content { padding: 4px 0; }
.ec-pw-header { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.ec-pw-header svg { flex-shrink: 0; stroke: #f59e0b; }
.ec-pw-header h4 { font-size: 1.05rem; font-weight: 800; color: var(--ec-text); margin: 0 0 4px; }
.ec-pw-header p  { font-size: 0.82rem; color: var(--ec-text-muted); margin: 0; }

.ec-pw-timeline { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.ec-pw-stage {
    display: flex; gap: 14px; align-items: flex-start;
    padding: 14px 16px; border-radius: var(--ec-radius-sm); border-left: 4px solid transparent;
}
.ec-pw-stage-icon { font-size: 1.3rem; flex-shrink: 0; line-height: 1.3; }
.ec-pw-stage-body strong { display: block; font-size: 0.875rem; font-weight: 700; margin-bottom: 4px; color: var(--ec-text); }
.ec-pw-stage-body p { font-size: 0.82rem; color: var(--ec-text-muted); margin: 0; line-height: 1.5; }
.ec-pw-safe     { background: #f0fdf4; border-color: #22c55e; }
.ec-pw-caution  { background: #fffbeb; border-color: #f59e0b; }
.ec-pw-critical { background: #fff7ed; border-color: #f97316; }
.ec-pw-danger   { background: #fef2f2; border-color: #ef4444; }

.ec-pw-tips h5 { font-size: 0.95rem; font-weight: 800; color: var(--ec-text); margin: 0 0 14px; }
.ec-pw-tip-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ec-pw-tip-card {
    padding: 14px; background: #f8fafc;
    border: 1.5px solid var(--ec-border); border-radius: var(--ec-radius-sm); font-size: 0.82rem;
}
.ec-pw-tip-card > span { font-size: 1.4rem; display: block; margin-bottom: 6px; }
.ec-pw-tip-card strong { display: block; font-weight: 700; color: var(--ec-text); margin-bottom: 4px; font-size: 0.855rem; }
.ec-pw-tip-card p { margin: 0; color: var(--ec-text-muted); line-height: 1.5; }

/* Responsive tabs */
@media (max-width: 640px) {
    .ec-result-tabs { padding: 8px 10px; gap: 2px; border-radius: 16px; }
    .ec-result-tab  { padding: 7px 11px; font-size: 0.78rem; gap: 5px; }
    .ec-cap-inputs  { grid-template-columns: 1fr; }
    .ec-pw-tip-grid { grid-template-columns: 1fr; }
    .ec-hr-label    { width: 56px; font-size: 0.75rem; }
    .ec-cap-result-num { font-size: 2.5rem; }
}
