/* Demir Fiyatlari Istanbul - Akilli Muhendislik Hesaplama & GEO Motoru */
.df-calc-wrap {
    margin: 28px 0;
    padding: 0;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.08);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
    color: #0f172a;
    overflow: hidden;
    box-sizing: border-box;
}
.df-calc-wrap *, .df-calc-wrap *::before, .df-calc-wrap *::after {
    box-sizing: border-box;
}
.df-calc-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
    color: #ffffff;
    padding: 18px 22px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.df-calc-title-group h2.df-calc-main-title {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 19px !important;
    line-height: 1.3 !important;
    font-weight: 700 !important;
    color: #ffffff !important;
}
.df-calc-subtitle {
    margin: 4px 0 0 0 !important;
    font-size: 13px !important;
    color: #cbd5e1 !important;
}
.df-calc-badge {
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #f8fafc;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 11px;
    border-radius: 999px;
    white-space: nowrap;
}
.df-calc-tabs {
    display: flex;
    gap: 6px;
    padding: 10px 16px;
    background: #f1f5f9;
    border-bottom: 1px solid #e2e8f0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}
.df-calc-tab {
    appearance: none;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #334155;
    padding: 7px 13px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s ease;
    line-height: 1.2;
}
.df-calc-tab:hover {
    background: #e2e8f0;
    color: #0f172a;
}
.df-calc-tab.is-active {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.28);
}
.df-calc-body {
    padding: 20px 22px;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 22px;
    align-items: start;
}
@media (max-width: 780px) {
    .df-calc-body {
        grid-template-columns: 1fr;
        padding: 16px;
        gap: 16px;
    }
}
.df-calc-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
}
@media (max-width: 520px) {
    .df-calc-grid {
        grid-template-columns: 1fr;
    }
}
.df-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.df-field.df-full {
    grid-column: 1 / -1;
}
.df-field label {
    font-size: 12.5px;
    font-weight: 600;
    color: #334155;
    margin: 0;
}
.df-field input, .df-field select {
    width: 100%;
    height: 42px;
    padding: 8px 11px;
    font-size: 14.5px;
    font-weight: 500;
    color: #0f172a;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.15s ease, background 0.15s ease;
}
.df-field input:focus, .df-field select:focus {
    background: #ffffff;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.df-results-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 18px;
}
.df-results-heading {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #475569;
    margin: 0 0 12px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.df-primary-metric {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    padding: 13px 15px;
    margin-bottom: 12px;
}
.df-primary-label {
    font-size: 12.5px;
    color: #1e40af;
    font-weight: 600;
}
.df-primary-val {
    font-size: 25px;
    font-weight: 800;
    color: #1e3a8a;
    line-height: 1.2;
    margin-top: 3px;
}
.df-metrics-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
}
.df-metric-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 13.5px;
    padding-bottom: 7px;
    border-bottom: 1px dashed #cbd5e1;
    gap: 8px;
}
.df-metric-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.df-metric-row span {
    color: #475569;
}
.df-metric-row strong {
    color: #0f172a;
    font-weight: 700;
    text-align: right;
}
.df-price-highlight {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 9px;
    padding: 11px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.df-price-highlight span {
    font-size: 13px;
    font-weight: 600;
    color: #065f46;
}
.df-price-highlight strong {
    font-size: 19px;
    font-weight: 800;
    color: #047857;
}
.df-action-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.df-btn {
    flex: 1 1 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 700;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    text-decoration: none !important;
    transition: opacity 0.15s ease, transform 0.1s ease;
}
.df-btn:active {
    transform: scale(0.98);
}
.df-btn-add {
    background: #0f172a;
    color: #ffffff !important;
}
.df-btn-copy {
    background: #e2e8f0;
    color: #1e293b !important;
}
.df-btn-wa {
    background: #16a34a;
    color: #ffffff !important;
    width: 100%;
    margin-top: 4px;
}
.df-basket-box {
    margin: 0 22px 18px 22px;
    padding: 14px 16px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 10px;
    display: none;
}
.df-basket-box.has-items {
    display: block;
}
.df-basket-title {
    font-size: 13.5px;
    font-weight: 700;
    color: #92400e;
    margin: 0 0 8px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.df-basket-items {
    list-style: none !important;
    margin: 0 0 10px 0 !important;
    padding: 0 !important;
    font-size: 13px;
    color: #78350f;
}
.df-basket-items li {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    border-bottom: 1px dashed #fcd34d;
    gap: 10px;
}
.df-basket-remove {
    background: none;
    border: none;
    color: #dc2626;
    font-weight: 700;
    cursor: pointer;
    padding: 0 4px;
}
.df-cross-links {
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    padding: 13px 22px;
    font-size: 12.5px;
    color: #475569;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    align-items: center;
}
.df-cross-links a {
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
}
.df-cross-links a:hover {
    text-decoration: underline;
}
.df-geo-ai-box {
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    padding: 15px 22px;
    font-size: 13.5px;
    line-height: 1.6;
    color: #334155;
}
.df-geo-ai-box strong {
    color: #0f172a;
}
.df-sarf-alert {
    margin-top: 10px;
    padding: 9px 12px;
    background: #eff6ff;
    border-left: 3px solid #2563eb;
    border-radius: 6px;
    font-size: 12.5px;
    color: #1e3a8a;
}
.df-sarf-alert a {
    color: #1d4ed8;
    font-weight: 700;
    text-decoration: underline;
}


.df-calc-wrap.is-single-mode .df-calc-tabs {
    display: none !important;
}
.df-price-source-note {
    font-size: 11.5px;
    color: #047857;
    background: #ecfdf5;
    border: 1px dashed #6ee7b7;
    padding: 5px 10px;
    border-radius: 6px;
    margin-bottom: 10px;
    display: inline-block;
    font-weight: 600;
}
