/* ── Dark mode — site değişkenleri tanımlı değilse burası devreye girer ── */
[data-theme="dark"] .efh-card,
[data-theme="dark"] .calc-card,
[data-theme="dark"] .result-card,
[data-theme="dark"] .price-item { background: #1e293b !important; border-color: rgba(255,255,255,.08) !important; }

[data-theme="dark"] .efh-info-note { background: #0f172a !important; border-color: rgba(255,255,255,.08) !important; }
[data-theme="dark"] .info-badge    { background: #0f172a !important; border-color: rgba(44,123,229,.4) !important; }
[data-theme="dark"] .price-grid    { background: #0f172a !important; }
[data-theme="dark"] .footer-info   { background: #0f172a !important; border-color: rgba(255,255,255,.06) !important; }

[data-theme="dark"] .card-title    { color: #e2e8f0 !important; border-color: rgba(255,255,255,.08) !important; }
[data-theme="dark"] .invoice-row   { color: #e2e8f0 !important; border-color: rgba(255,255,255,.08) !important; }
[data-theme="dark"] .invoice-row.highlight { background: rgba(44,123,229,.10) !important; color: #e2e8f0 !important; }
[data-theme="dark"] .invoice-total { color: #60a5fa !important; border-color: #60a5fa !important; }

[data-theme="dark"] .result-labels { border-color: rgba(255,255,255,.08) !important; }
[data-theme="dark"] .result-label  { background: #0f172a !important; color: #94a3b8 !important; }
[data-theme="dark"] .result-label.info          { background: rgba(14,165,233,.12) !important; color: #38bdf8 !important; }
[data-theme="dark"] .result-label.limit-warning { background: rgba(251,191,36,.10) !important; color: #fbbf24 !important; }

[data-theme="dark"] .form-group label { color: #94a3b8 !important; }
[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group select,
[data-theme="dark"] .price-item input {
    background: #0f172a !important;
    border-color: rgba(255,255,255,.12) !important;
    color: #e2e8f0 !important;
}
[data-theme="dark"] .form-group input:focus,
[data-theme="dark"] .form-group select:focus {
    border-color: #2c7be5 !important;
    background: #1e293b !important;
}
[data-theme="dark"] .efh-info-note,
[data-theme="dark"] .info-badge,
[data-theme="dark"] .footer-info { color: #94a3b8 !important; }
[data-theme="dark"] .efh-info-note strong,
[data-theme="dark"] .footer-item strong { color: #e2e8f0 !important; }
[data-theme="dark"] .priceInfoBadge { background: #0f172a !important; }

.efh-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 10px;
}

.efh-card {
    background: var(--surface, #fff);
    border-radius: 32px;
    box-shadow: var(--sh-md, 0 8px 32px rgba(0,0,0,.10));
    overflow: hidden;
    border: 1px solid var(--border, #e9eef3);
    width: 100%;
}

/* ── Başlık ── */
.efh-header {
    background: linear-gradient(135deg, #2c7be5 0%, #0ea5e9 100%);
    padding: 26px 24px;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 12px;
}
.efh-header i { font-size: 1.6rem; opacity: .9; }
.efh-header h1 {
    font-size: clamp(1.2rem, 4vw, 1.55rem);
    font-weight: 800;
    margin: 0;
    line-height: 1.3;
}

/* ── Bilgi notu (eski limit-card yerine) ── */
.efh-info-note {
    margin: 16px 16px 0;
    padding: 12px 16px;
    border-radius: 14px;
    background: var(--surface2, #f1f5f9);
    border: 1px solid var(--border, #e2e8f0);
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: var(--txt-mid, #475569);
    line-height: 1.6;
}
.efh-info-note i { color: #2c7be5; margin-top: 2px; flex-shrink: 0; }
.efh-info-note strong { color: var(--txt, #1e293b); }

/* ── İçerik grid ── */
.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 16px;
}
@media (max-width: 850px) {
    .content-grid { grid-template-columns: 1fr; gap: 12px; }
}

.calc-card {
    background: var(--surface, #fff);
    border-radius: 20px;
    padding: 18px;
    box-shadow: var(--sh-sm, 0 2px 8px rgba(0,0,0,.06));
    border: 1px solid var(--border, #e9eef3);
    width: 100%;
    box-sizing: border-box;
}

.card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--txt, #0f2b5e);
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--border, #e9eef3);
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group { margin-bottom: 16px; }
.form-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--txt-mid, #475569);
    margin-bottom: 6px;
}
.form-group input,
.form-group select {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--border, #e2e8f0);
    border-radius: 14px;
    font-size: 14px;
    background: var(--surface2, #f9fbfd);
    color: var(--txt, #1e293b);
    box-sizing: border-box;
    font-family: inherit;
    transition: border-color .2s;
}
.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #2c7be5;
    background: var(--surface, #fff);
    box-shadow: 0 0 0 3px rgba(44,123,229,.12);
}

/* ── Fiyat grid ── */
.price-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    background: var(--surface2, #f1f5f9);
    padding: 12px;
    border-radius: 16px;
}
@media (max-width: 480px) { .price-grid { grid-template-columns: 1fr; } }

.price-item {
    background: var(--surface, #fff);
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid var(--border, #e2e8f0);
}
.price-item label { font-size: 10px; color: var(--txt-low, #64748b); }
.price-item input {
    padding: 7px 10px;
    font-size: 13px;
    width: 100%;
    box-sizing: border-box;
}

.info-badge {
    background: var(--surface2, #f1f5f9);
    padding: 11px 14px;
    border-radius: 12px;
    margin-top: 14px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12px;
    color: var(--txt-mid, #475569);
    border-left: 3px solid #2c7be5;
    line-height: 1.5;
}

/* ── Sonuç kartı ── */
.result-card {
    background: var(--surface, #fff);
    border-radius: 20px;
    margin: 0 16px 20px;
    padding: 20px;
    border: 1px solid var(--border, #e2e8f0);
    overflow-x: auto;
}

.invoice-header {
    background: linear-gradient(135deg, #2c7be5, #0ea5e9);
    color: white;
    padding: 12px 18px;
    border-radius: 14px;
    margin-bottom: 16px;
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.invoice-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 11px 0;
    border-bottom: 1px dashed var(--border, #d1d9e6);
    font-size: 14px;
    color: var(--txt, #1e293b);
    gap: 10px;
    flex-wrap: wrap;
}
.invoice-row span:first-child {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}
.invoice-row span:first-child i {
    flex: 0 0 auto;
}
.invoice-row span:last-child { font-weight: 600; white-space: nowrap; }

.invoice-row.highlight {
    background: var(--surface2, #f0f9ff);
    padding: 11px 14px;
    border-radius: 12px;
    margin: 8px 0;
    font-weight: 600;
    border-bottom: none;
    color: var(--txt, #1e293b);
}

.invoice-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0 4px;
    margin-top: 12px;
    font-size: clamp(1.1rem, 5vw, 1.4rem);
    font-weight: 800;
    color: #2c7be5;
    border-top: 2px solid #2c7be5;
}

.result-labels {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--border, #e2e8f0);
}
.result-label {
    background: var(--surface2, #f1f5f9);
    color: var(--txt-mid, #475569);
    padding: 5px 12px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
}
.result-label.limit-warning { background: #fff7ed; color: #9a3412; }
.result-label.info { background: #e0f2fe; color: #0369a1; }

/* ── Footer ── */
.footer-info {
    background: var(--surface2, #f8fafc);
    padding: 18px 16px;
    border-top: 1px solid var(--border, #e2e8f0);
    font-size: 12px;
    color: var(--txt-mid, #475569);
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
}
.footer-item { display: flex; gap: 8px; word-break: break-word; }
.footer-item strong { color: var(--txt, #1e293b); }

/* ── Mobil ── */
@media (max-width: 480px) {
    .efh-header { padding: 18px 14px; }
    .efh-header i { font-size: 1.3rem; }
    .content-grid { padding: 10px; gap: 10px; }
    .calc-card { padding: 14px; border-radius: 16px; }
    .result-card { margin: 0 10px 16px; padding: 14px; }
    .invoice-row { font-size: 13px; }
    .efh-info-note { margin: 12px 10px 0; font-size: 12px; }
}
