/* ===========================================================
   GTM Configurator v2 — Modern AI Server Configurator
   Pilot deploy: AS-5126GS-TNRT2 (others use legacy configurator.tpl)
   Last update: 2026-06-30
   =========================================================== */

#gtm-cfg2, #gtm-cfg2 * { box-sizing: border-box; }
#gtm-cfg2 { font-family: 'Lato', system-ui, sans-serif; color: #34495E; max-width: 1440px; margin: 0 auto; padding: 24px; }

/* HERO */
#gtm-cfg2 .cfg-hero { display: grid; grid-template-columns: 360px 1fr; gap: 32px; background: #fff; border-radius: 16px; padding: 32px; margin-bottom: 20px; border: 1px solid #e1eaf2; }
#gtm-cfg2 .cfg-hero-gallery { display: flex; flex-direction: column; gap: 12px; }
#gtm-cfg2 .gallery-main { aspect-ratio: 4/3; background: #f6f9fc; border-radius: 12px; padding: 16px; display: flex; align-items: center; justify-content: center; border: 1px solid #eef1f4; }
#gtm-cfg2 .gallery-main img { max-width: 100%; max-height: 100%; object-fit: contain; display: none; }
#gtm-cfg2 .gallery-main img.active { display: block; }
#gtm-cfg2 .gallery-thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
#gtm-cfg2 .gallery-thumb { width: 56px; height: 56px; padding: 4px; border: 1px solid #e1eaf2; border-radius: 8px; background: #fff; cursor: pointer; transition: border-color .15s ease; }
#gtm-cfg2 .gallery-thumb img { width: 100%; height: 100%; object-fit: contain; }
#gtm-cfg2 .gallery-thumb.active { border-color: #003A70; }
#gtm-cfg2 .cfg-hero-info h1 { font-size: clamp(20px, 2.6vw, 26px); color: #003A70; font-weight: 800; margin: 0 0 6px; letter-spacing: -0.3px; }
#gtm-cfg2 .cfg-subtitle-bar { background: linear-gradient(135deg, #003A70, #005a8a); color: #fff; padding: 10px 14px; border-radius: 8px; font-size: 13px; font-weight: 600; display: inline-flex; gap: 8px; margin-bottom: 14px; align-items: center; }
#gtm-cfg2 .cfg-subtitle-bar i { color: #76B900; }
#gtm-cfg2 .cfg-desc { font-size: 14px; line-height: 1.6; margin: 0 0 16px; color: #34495E; }
#gtm-cfg2 .cfg-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
#gtm-cfg2 .feat-item { display: flex; gap: 10px; padding: 10px 12px; background: #f6f9fc; border-radius: 8px; border: 1px solid #eef1f4; align-items: flex-start; }
#gtm-cfg2 .feat-item i { color: #76B900; font-size: 16px; margin-top: 2px; }
#gtm-cfg2 .feat-item span { font-size: 12.5px; color: #003A70; font-weight: 600; line-height: 1.4; }

/* SECTION TITLE */
#gtm-cfg2 .cfg-section-title { font-size: 13px; color: #5a6878; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; padding: 0 4px; margin: 0 0 10px; display: flex; align-items: center; gap: 8px; }
#gtm-cfg2 .cfg-section-title i { color: #76B900; }

/* CHASSIS TABS */
#gtm-cfg2 .cfg-tabs { background: #fff; border-radius: 14px; padding: 14px; margin-bottom: 20px; border: 1px solid #e1eaf2; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 10px; }
#gtm-cfg2 .cfg-tab { background: #f6f9fc; border: 2px solid transparent; border-radius: 10px; padding: 14px 16px; cursor: pointer; transition: all .15s ease; text-align: left; display: flex; flex-direction: column; gap: 4px; }
#gtm-cfg2 .cfg-tab:hover { background: #eef4fb; }
#gtm-cfg2 .cfg-tab.active { background: linear-gradient(135deg, #003A70, #005a8a); border-color: #76B900; }
#gtm-cfg2 .cfg-tab-badge { display: inline-block; background: #76B900; color: #fff; font-size: 9.5px; font-weight: 800; letter-spacing: 1px; padding: 2px 8px; border-radius: 999px; align-self: flex-start; }
#gtm-cfg2 .cfg-tab.active .cfg-tab-badge { background: #e67e22; }
#gtm-cfg2 .cfg-tab-name { font-size: 13px; font-weight: 800; color: #003A70; line-height: 1.3; }
#gtm-cfg2 .cfg-tab.active .cfg-tab-name { color: #fff; }
#gtm-cfg2 .cfg-tab-sub { font-size: 11.5px; color: #5a6878; line-height: 1.4; }
#gtm-cfg2 .cfg-tab.active .cfg-tab-sub { color: rgba(255,255,255,.85); }
#gtm-cfg2 .cfg-tab-price { font-size: 11.5px; font-weight: 800; color: #76B900; }
#gtm-cfg2 .cfg-tab.active .cfg-tab-price { color: #b3e063; }

/* BUNDLE DETAILS PANEL */
#gtm-cfg2 .bundle-panel { background: #fff; border-radius: 14px; padding: 28px 32px; margin-bottom: 16px; border: 1px solid #e1eaf2; }
#gtm-cfg2 .bundle-panel-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; padding-bottom: 16px; border-bottom: 2px solid #76B900; }
#gtm-cfg2 .bundle-icon { width: 48px; height: 48px; border-radius: 12px; background: linear-gradient(135deg, #76B900, #5a9000); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 22px; }
#gtm-cfg2 .bundle-head-text h2 { margin: 0 0 4px; font-size: 22px; color: #003A70; font-weight: 800; letter-spacing: -0.3px; }
#gtm-cfg2 .bundle-head-text .use-case { font-size: 13px; color: #5a6878; }
#gtm-cfg2 .bundle-included-label { font-size: 11.5px; color: #76B900; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
#gtm-cfg2 .bundle-components { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
#gtm-cfg2 .bundle-comp { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: #f4f7fb; border-radius: 8px; border-left: 3px solid #76B900; }
#gtm-cfg2 .bundle-comp i { color: #003A70; font-size: 18px; width: 22px; text-align: center; }
#gtm-cfg2 .bundle-comp span { font-size: 13px; color: #003A70; font-weight: 600; line-height: 1.4; }

/* MAIN GRID */
#gtm-cfg2 .cfg-main { display: grid; grid-template-columns: 1fr 380px; gap: 20px; align-items: start; }
#gtm-cfg2 .cfg-cats { display: flex; flex-direction: column; gap: 16px; }

/* CATEGORY CARDS */
#gtm-cfg2 .cfg-cat { background: #fff; border-radius: 14px; border: 1px solid #e1eaf2; overflow: hidden; transition: border-color .15s ease; }
#gtm-cfg2 .cfg-cat.invalid { border-color: #f5b7b1; }
#gtm-cfg2 .cfg-cat-head { display: flex; align-items: center; gap: 12px; padding: 16px 22px; background: linear-gradient(135deg, #f4f8fc, #fff); border-bottom: 1px solid #e1eaf2; }
#gtm-cfg2 .cfg-cat.invalid .cfg-cat-head { background: linear-gradient(135deg, #fff5f5, #fff); }
#gtm-cfg2 .cat-icon { width: 36px; height: 36px; border-radius: 9px; background: linear-gradient(135deg, #003A70, #005a8a); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 15px; }
#gtm-cfg2 .cat-info { flex: 1; }
#gtm-cfg2 .cat-info h3 { margin: 0; font-size: 15.5px; color: #003A70; font-weight: 800; }
#gtm-cfg2 .cat-meta { font-size: 11.5px; color: #5a6878; margin-top: 2px; }
#gtm-cfg2 .cat-status { font-size: 11px; font-weight: 800; padding: 4px 10px; border-radius: 999px; display: inline-flex; align-items: center; gap: 4px; }
#gtm-cfg2 .cat-status.empty { background: #fff4e6; color: #c05621; }
#gtm-cfg2 .cat-status.ok { background: #e7f5e7; color: #2f7a2f; }
#gtm-cfg2 .cat-status.error { background: #ffe6e6; color: #c53030; }
#gtm-cfg2 .cfg-cat-body { padding: 14px 22px 18px; }

/* OPTION GROUPS */
#gtm-cfg2 .opt-group { margin-bottom: 14px; }
#gtm-cfg2 .opt-group:last-child { margin-bottom: 0; }
#gtm-cfg2 .opt-group-head { font-size: 12px; color: #003A70; font-weight: 800; margin-bottom: 8px; padding-bottom: 6px; border-bottom: 1px solid #eef1f4; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
#gtm-cfg2 .opt-group-type-badge { font-size: 9.5px; color: #5a6878; background: #f4f7fb; padding: 2px 8px; border-radius: 999px; font-weight: 700; text-transform: uppercase; }

/* OPTION ROWS */
#gtm-cfg2 .opt-row { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; cursor: pointer; border: 1px solid transparent; transition: background .12s ease; }
#gtm-cfg2 .opt-row:hover:not(.disabled) { background: #f4f7fb; }
#gtm-cfg2 .opt-row.selected { background: rgba(118,185,0,.06); border-color: rgba(118,185,0,.3); }
#gtm-cfg2 .opt-row.disabled { opacity: .45; cursor: not-allowed; }
#gtm-cfg2 .opt-row input { accent-color: #003A70; margin: 0; }
#gtm-cfg2 .opt-text { flex: 1; font-size: 12.5px; color: #34495E; line-height: 1.4; }
#gtm-cfg2 .opt-row.selected .opt-text { color: #003A70; font-weight: 700; }
#gtm-cfg2 .opt-price { font-size: 11.5px; color: #5a6878; font-weight: 700; white-space: nowrap; }
#gtm-cfg2 .opt-row.selected .opt-price { color: #76B900; }
#gtm-cfg2 .opt-qty-pill { font-size: 11.5px; color: #76B900; font-weight: 800; padding: 2px 8px; background: rgba(118,185,0,.1); border-radius: 999px; }

/* QTY CONTROL */
#gtm-cfg2 .opt-qty-control { display: flex; background: #fff; border: 1px solid #e1eaf2; border-radius: 6px; overflow: hidden; }
#gtm-cfg2 .opt-qty-control button { background: #f6f9fc; border: none; width: 28px; height: 28px; cursor: pointer; color: #003A70; font-weight: 800; font-size: 15px; }
#gtm-cfg2 .opt-qty-control button:hover:not(:disabled) { background: #003A70; color: #fff; }
#gtm-cfg2 .opt-qty-control button:disabled { opacity: .35; cursor: not-allowed; }
#gtm-cfg2 .opt-qty-control .qty-value { padding: 0 12px; font-weight: 800; color: #003A70; font-size: 13px; min-width: 34px; text-align: center; line-height: 28px; }

/* SUMMARY (sticky) */
#gtm-cfg2 .cfg-summary { position: sticky; top: 60px; background: #fff; border-radius: 14px; border: 1px solid #e1eaf2; padding: 22px; }
#gtm-cfg2 .cfg-summary-head { border-bottom: 1px solid #eef1f4; padding-bottom: 14px; margin-bottom: 14px; }
#gtm-cfg2 .cfg-summary-head h3 { font-size: 15px; color: #003A70; font-weight: 800; margin: 0 0 4px; }
#gtm-cfg2 .active-cfg { font-size: 11.5px; color: #5a6878; }
#gtm-cfg2 .active-cfg b { color: #003A70; }

/* CONFIG CODE BOX */
#gtm-cfg2 .cfg-code-box { background: linear-gradient(135deg, #003A70, #005a8a); color: #fff; border-radius: 10px; padding: 14px 16px; margin-bottom: 14px; }
#gtm-cfg2 .cfg-code-box .cc-label { font-size: 10px; opacity: .8; text-transform: uppercase; letter-spacing: 1.2px; margin-bottom: 6px; display: flex; align-items: center; gap: 6px; }
#gtm-cfg2 .cfg-code-box .cc-label i { color: #76B900; }
#gtm-cfg2 .cfg-code-row { display: flex; align-items: center; gap: 8px; }
#gtm-cfg2 .cfg-code-row .cc-value { flex: 1; font-family: 'JetBrains Mono', 'Courier New', monospace; font-size: 14.5px; font-weight: 700; letter-spacing: 1px; color: #76B900; }
#gtm-cfg2 .cfg-code-copy { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.25); border-radius: 6px; padding: 4px 10px; font-size: 11.5px; cursor: pointer; font-weight: 700; display: inline-flex; align-items: center; gap: 4px; }
#gtm-cfg2 .cfg-code-copy:hover { background: rgba(255,255,255,.22); }
#gtm-cfg2 .cfg-code-copy.copied { background: #76B900; border-color: #76B900; }

/* VALIDATION */
#gtm-cfg2 .validation-banner { background: #fff5f5; border: 1px solid #f5b7b1; border-left: 4px solid #c53030; border-radius: 6px; padding: 10px 12px; margin-bottom: 12px; font-size: 12px; color: #c53030; display: none; }
#gtm-cfg2 .validation-banner.active { display: block; }
#gtm-cfg2 .validation-banner b { display: block; margin-bottom: 4px; font-size: 12.5px; }
#gtm-cfg2 .validation-banner ul { margin: 4px 0 0; padding-left: 18px; }

/* SUMMARY LIST */
#gtm-cfg2 .cfg-summary-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; max-height: 320px; overflow-y: auto; }
#gtm-cfg2 .cfg-sum-row { padding: 8px 0; border-bottom: 1px solid #f4f7fb; }
#gtm-cfg2 .cfg-sum-row:last-child { border-bottom: 0; }
#gtm-cfg2 .cat-name-sum { font-size: 10.5px; color: #5a6878; font-weight: 700; text-transform: uppercase; margin-bottom: 2px; display: flex; justify-content: space-between; }
#gtm-cfg2 .cat-name-sum .cat-total { color: #76B900; font-weight: 800; }
#gtm-cfg2 .cat-name-sum.invalid .cat-total { color: #c53030; }
#gtm-cfg2 .opt-list-sum { font-size: 12.5px; color: #003A70; line-height: 1.55; }
#gtm-cfg2 .opt-list-sum .placeholder { color: #c0c8d2; font-style: italic; font-size: 11.5px; }
/* Tam metin göster (kopya için), pill wrap edilebilir */
#gtm-cfg2 .opt-pill { display: inline; background: transparent; padding: 0; margin: 0; font-size: 12px; word-break: break-word; }
#gtm-cfg2 .opt-pill::after { content: ''; display: block; height: 4px; }
#gtm-cfg2 .opt-pill .qty { color: #76B900; font-weight: 800; margin-right: 4px; }
#gtm-cfg2 .cfg-sys-name { font-size: 13px; font-weight: 800; color: #003A70; line-height: 1.35; margin-bottom: 3px; }
#gtm-cfg2 .cfg-sys-chassis { font-size: 11px; color: #5a6878; font-weight: 600; }

/* Sistem bilgisi kartı — Processor'ın üstünde */
#gtm-cfg2 .cfg-sysinfo-card {
  display: flex; gap: 14px; align-items: center;
  background: linear-gradient(135deg, #003A70 0%, #002850 100%);
  color: #fff; padding: 16px 20px; border-radius: 12px;
  margin-bottom: 14px;
}
#gtm-cfg2 .cfg-sysinfo-card i { font-size: 26px; color: #76B900; flex-shrink: 0; }
#gtm-cfg2 .cfg-sysinfo-title { font-size: 15px; font-weight: 800; letter-spacing: -0.2px; line-height: 1.3; }
#gtm-cfg2 .cfg-sysinfo-sub { font-size: 12px; color: rgba(255,255,255,0.75); margin-top: 3px; font-weight: 500; }

/* PRICE BOX */
#gtm-cfg2 .cfg-summary-price { background: linear-gradient(135deg, #003A70, #005a8a); color: #fff; border-radius: 10px; padding: 16px; margin-bottom: 14px; }
#gtm-cfg2 .cfg-summary-price .label { font-size: 11px; opacity: .8; text-transform: uppercase; margin-bottom: 2px; }
#gtm-cfg2 .cfg-summary-price .price { font-size: 26px; font-weight: 800; }
#gtm-cfg2 .cfg-summary-price .price small { font-size: 12px; opacity: .7; }
#gtm-cfg2 .cfg-summary-price .breakdown { font-size: 11px; opacity: .8; margin-top: 4px; }

/* CTA BUTTONS */
#gtm-cfg2 .cfg-cta-primary { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 14px 18px; background: #e67e22; color: #fff !important; border: none; border-radius: 10px; font-weight: 800; font-size: 14px; cursor: pointer; box-shadow: 0 4px 12px rgba(230,126,34,.3); margin-bottom: 8px; text-decoration: none; }
#gtm-cfg2 .cfg-cta-primary:hover:not(:disabled) { background: #d47b10; transform: translateY(-1px); }
#gtm-cfg2 .cfg-cta-primary:disabled { background: #c0c8d2; cursor: not-allowed; box-shadow: none; }
#gtm-cfg2 .cfg-cta-share { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 12px 18px; background: linear-gradient(135deg, #003A70, #005a8a); color: #fff !important; border: none; border-radius: 10px; font-weight: 700; font-size: 13px; cursor: pointer; margin-bottom: 8px; box-shadow: 0 4px 12px rgba(0,58,112,.25); text-decoration: none; }
#gtm-cfg2 .cfg-cta-share:hover:not(:disabled) { background: linear-gradient(135deg, #002645, #003A70); transform: translateY(-1px); }
#gtm-cfg2 .cfg-cta-share:disabled { opacity: .6; cursor: wait; }
#gtm-cfg2 .cfg-cta-secondary { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 11px 18px; background: #fff; color: #003A70 !important; border: 1px solid #e1eaf2; border-radius: 10px; font-weight: 700; font-size: 12.5px; cursor: pointer; text-decoration: none; }
#gtm-cfg2 .cfg-cta-secondary:hover { border-color: #003A70; background: #f6f9fc; }

/* RECOMMENDED BADGE */
#gtm-cfg2 .opt-row.recommended { background: linear-gradient(90deg, rgba(118,185,0,.04), transparent); }
#gtm-cfg2 .opt-row.recommended.selected { background: rgba(118,185,0,.1); }
#gtm-cfg2 .opt-recommended-badge { display: inline-flex; align-items: center; gap: 3px; background: #76B900; color: #fff; font-size: 9.5px; font-weight: 800; letter-spacing: .5px; padding: 2px 7px; border-radius: 999px; text-transform: uppercase; flex-shrink: 0; }
#gtm-cfg2 .opt-recommended-badge i { font-size: 8px; }

/* CHASSIS TAB BADGES (Gold/Custom/Bundle) */
#gtm-cfg2 .cfg-tab[data-tier="gold"] { border-color: #d4a417; background: linear-gradient(135deg, #fffaeb, #fff); }
#gtm-cfg2 .cfg-tab[data-tier="gold"].active { background: linear-gradient(135deg, #d4a417, #a87f10); border-color: #d4a417; }
#gtm-cfg2 .cfg-tab[data-tier="gold"] .cfg-tab-badge { background: #d4a417; }
#gtm-cfg2 .cfg-tab[data-tier="custom"] .cfg-tab-badge { background: #2980b9; }
#gtm-cfg2 .cfg-tab[data-tier="custom"].active .cfg-tab-badge { background: #e67e22; }

/* BUNDLE PANEL — Category-grouped components */
#gtm-cfg2 .bundle-cat-group { margin-bottom: 16px; }
#gtm-cfg2 .bundle-cat-group:last-child { margin-bottom: 0; }
#gtm-cfg2 .bundle-cat-head { font-size: 11px; color: #5a6878; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px; display: flex; align-items: center; gap: 6px; padding-left: 2px; }
#gtm-cfg2 .bundle-cat-head i { color: #76B900; font-size: 13px; }
#gtm-cfg2 .bundle-cat-group .bundle-components { gap: 8px; }
#gtm-cfg2 .bundle-comp .qty-badge { background: #003A70; color: #fff !important; font-weight: 800; font-size: 11.5px; padding: 2px 8px; border-radius: 4px; margin-right: 6px; flex-shrink: 0; }
#gtm-cfg2 .bundle-comp .comp-text { flex: 1; font-size: 12.5px; color: #003A70; font-weight: 600; line-height: 1.4; }

/* TRUST */
#gtm-cfg2 .cfg-trust { margin-top: 16px; padding-top: 14px; border-top: 1px solid #eef1f4; display: flex; flex-direction: column; gap: 6px; }
#gtm-cfg2 .cfg-trust-item { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: #5a6878; }
#gtm-cfg2 .cfg-trust-item i { color: #76B900; width: 14px; text-align: center; }

/* TOAST */
#gtm-cfg2-toast { position: fixed; bottom: 20px; right: 20px; background: #c53030; color: #fff; padding: 14px 20px; border-radius: 10px; font-weight: 700; font-size: 13.5px; z-index: 99999; opacity: 0; transform: translateY(10px); transition: opacity .2s ease, transform .2s ease; pointer-events: none; box-shadow: 0 8px 24px rgba(0,0,0,.15); }
#gtm-cfg2-toast.show { opacity: 1; transform: translateY(0); }
#gtm-cfg2-toast.success { background: #2f7a2f; }

/* CONTACT MODAL */
#gtm-cfg2-modal { display: none; position: fixed; inset: 0; background: rgba(0,30,60,.6); z-index: 99998; align-items: center; justify-content: center; padding: 20px; }
#gtm-cfg2-modal.show { display: flex; }
#gtm-cfg2-modal .modal-box { background: #fff; border-radius: 16px; padding: 32px; max-width: 560px; width: 100%; max-height: 90vh; overflow-y: auto; }
#gtm-cfg2-modal h3 { margin: 0 0 6px; color: #003A70; font-size: 22px; font-weight: 800; }
#gtm-cfg2-modal p.modal-sub { margin: 0 0 18px; color: #5a6878; font-size: 13px; }
#gtm-cfg2-modal .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
#gtm-cfg2-modal .form-grid .full { grid-column: span 2; }
#gtm-cfg2-modal label { display: block; font-size: 11.5px; color: #5a6878; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 4px; }
#gtm-cfg2-modal input, #gtm-cfg2-modal textarea, #gtm-cfg2-modal select { width: 100%; padding: 10px 12px; border: 1px solid #e1eaf2; border-radius: 8px; font-size: 13.5px; font-family: inherit; color: #003A70; background: #fff; }
#gtm-cfg2-modal input:focus, #gtm-cfg2-modal textarea:focus, #gtm-cfg2-modal select:focus { border-color: #003A70; outline: 0; box-shadow: 0 0 0 3px rgba(0,58,112,.1); }
#gtm-cfg2-modal textarea { min-height: 80px; resize: vertical; }
#gtm-cfg2-modal .kvkk { font-size: 11.5px; color: #5a6878; margin-top: 8px; display: flex; align-items: flex-start; gap: 8px; line-height: 1.5; }
#gtm-cfg2-modal .kvkk input { width: auto; }
#gtm-cfg2-modal .modal-actions { display: flex; gap: 10px; margin-top: 18px; }
#gtm-cfg2-modal .modal-actions button { flex: 1; padding: 12px; border-radius: 10px; font-weight: 800; font-size: 13.5px; cursor: pointer; border: none; }
#gtm-cfg2-modal .modal-actions .submit { background: #e67e22; color: #fff; }
#gtm-cfg2-modal .modal-actions .submit:hover:not(:disabled) { background: #d47b10; }
#gtm-cfg2-modal .modal-actions .submit:disabled { background: #c0c8d2; cursor: not-allowed; }
#gtm-cfg2-modal .modal-actions .cancel { background: #f4f7fb; color: #003A70; border: 1px solid #e1eaf2; }
#gtm-cfg2-modal .modal-actions .cancel:hover { background: #eef4fb; }

@media (max-width: 992px) {
  #gtm-cfg2 .cfg-hero, #gtm-cfg2 .cfg-main { grid-template-columns: 1fr; }
  #gtm-cfg2 .cfg-summary { position: static; }
  #gtm-cfg2-modal .form-grid { grid-template-columns: 1fr; }
  #gtm-cfg2-modal .form-grid .full { grid-column: span 1; }
  /* Hero mobil: içerik ortalı, dar padding */
  #gtm-cfg2 { padding: 0 12px; }
  #gtm-cfg2 .cfg-hero {
    padding: 20px 16px;
    gap: 20px;
    text-align: center;
  }
  #gtm-cfg2 .cfg-hero-gallery { align-items: center; }
  #gtm-cfg2 .gallery-main {
    aspect-ratio: auto;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    padding: 12px;
  }
  #gtm-cfg2 .gallery-thumbs { justify-content: center; }
  #gtm-cfg2 .cfg-hero-info { text-align: center; }
  #gtm-cfg2 .cfg-hero-info h1 { font-size: 20px; }
  #gtm-cfg2 .cfg-subtitle-bar { justify-content: center; }
  #gtm-cfg2 .cfg-desc { text-align: left; }
  #gtm-cfg2 .cfg-features { justify-content: flex-start; text-align: left; }
}

/* Küçük mobil (≤560): container marj azalt, tipografi düşür */
@media (max-width: 560px) {
  #gtm-cfg2 { padding: 0 8px; }
  #gtm-cfg2 .cfg-hero { padding: 16px 12px; border-radius: 12px; }
  #gtm-cfg2 .cfg-hero-info h1 { font-size: 18px; letter-spacing: -0.2px; }
  #gtm-cfg2 .cfg-section-title { font-size: 15px; padding: 12px; }
  /* Kit section — kompakt */
  #gtm-cfg2 .cfg-kits-section { padding: 14px 12px; border-radius: 12px; }
  #gtm-cfg2 .cfg-kits-header { flex-direction: column; align-items: center; text-align: center; gap: 8px; }
  #gtm-cfg2 .cfg-kits-title { font-size: 15px; }
  #gtm-cfg2 .cfg-kits-sub { font-size: 12px; text-align: center; }
  #gtm-cfg2 .cfg-kits-foot { flex-direction: column; text-align: center; font-size: 10.5px; padding: 10px 0 0; gap: 4px; }
  /* Modal padding'i */
  #gtm-cfg2-modal .modal-box { padding: 20px 16px; margin: 12px; max-width: calc(100vw - 24px); }
}

/* DISCLAIMER */
#gtm-cfg2 .cfg-disclaimer {
  margin-top: 24px;
  padding: 16px 20px;
  background: #fff8e6;
  border: 1px solid #f0d78a;
  border-left: 4px solid #e6a817;
  border-radius: 10px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  color: #6b5011;
  font-size: 13px;
  line-height: 1.55;
}
#gtm-cfg2 .cfg-disclaimer i { color: #d68b0d; font-size: 20px; margin-top: 2px; flex-shrink: 0; }
#gtm-cfg2 .cfg-disclaimer strong { color: #4a3810; }
#gtm-cfg2 .cfg-disclaimer a { color: #003A70; font-weight: 700; }

/* QuickShip notu (kit-only ürünler için) */
#gtm-cfg2 .cfg-quickship-note {
  margin-top: 20px;
  padding: 18px 22px;
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border: 1px solid #86efac;
  border-left: 4px solid #16a34a;
  border-radius: 12px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  color: #14532d;
  font-size: 13.5px;
  line-height: 1.6;
}
#gtm-cfg2 .cfg-quickship-note i { color: #16a34a; font-size: 22px; margin-top: 1px; flex-shrink: 0; }
#gtm-cfg2 .cfg-quickship-note strong { color: #14532d; }
#gtm-cfg2 .cfg-quickship-note b { color: #14532d; }

/* ============ QUOTE STATUS OVERLAY (sending / success / error) ============ */
#gtm-cfg2-qo {
  position: fixed; inset: 0;
  background: rgba(15, 25, 45, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: none;
  align-items: center; justify-content: center;
  z-index: 100000;
  padding: 20px;
  animation: qoFadeIn 0.25s ease-out;
}
#gtm-cfg2-qo.active { display: flex; }
@keyframes qoFadeIn { from { opacity: 0; } to { opacity: 1; } }

#gtm-cfg2-qo .qo-card {
  background: #ffffff;
  border-radius: 20px;
  max-width: 540px;
  width: 100%;
  padding: 44px 40px 36px;
  text-align: center;
  box-shadow: 0 30px 80px rgba(0,0,0,0.35);
  animation: qoSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}
@keyframes qoSlideUp {
  from { opacity: 0; transform: translateY(30px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

#gtm-cfg2-qo .qo-card h2,
#gtm-cfg2-qo .qo-card h3 {
  margin: 0 0 12px;
  color: #003A70;
  font-weight: 800;
  letter-spacing: -0.3px;
}
#gtm-cfg2-qo .qo-card h2 { font-size: 26px; }
#gtm-cfg2-qo .qo-card h3 { font-size: 20px; }
#gtm-cfg2-qo .qo-card p {
  margin: 0 0 20px;
  color: #4b5563;
  font-size: 15px;
  line-height: 1.6;
}
#gtm-cfg2-qo .qo-card .qo-msg { font-size: 16px; color: #1f2937; }
#gtm-cfg2-qo .qo-card .qo-msg b { color: #003A70; }

/* Spinner */
#gtm-cfg2-qo .qo-spinner {
  width: 64px; height: 64px;
  border: 5px solid #e5e7eb;
  border-top-color: #003A70;
  border-right-color: #D22630;
  border-radius: 50%;
  margin: 0 auto 24px;
  animation: qoSpin 0.9s linear infinite;
}
@keyframes qoSpin { to { transform: rotate(360deg); } }

/* Success check */
#gtm-cfg2-qo .qo-check-wrap {
  width: 88px; height: 88px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  display: flex; align-items: center; justify-content: center;
  animation: qoPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.15s both;
}
@keyframes qoPop {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
#gtm-cfg2-qo .qo-check-svg { width: 60px; height: 60px; }
#gtm-cfg2-qo .qo-check-svg circle,
#gtm-cfg2-qo .qo-check-svg path {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: qoDraw 0.7s ease-out 0.35s forwards;
}
#gtm-cfg2-qo .qo-check-svg path { animation-delay: 0.55s; }
@keyframes qoDraw { to { stroke-dashoffset: 0; } }

/* Error icon */
#gtm-cfg2-qo .qo-err-icon {
  width: 84px; height: 84px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 40px;
  color: #D22630;
}

/* Disclaimer note */
#gtm-cfg2-qo .qo-note {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 12px;
  padding: 14px 16px;
  margin: 22px 0 26px;
  display: flex; gap: 12px;
  text-align: left;
  font-size: 13px;
  line-height: 1.55;
  color: #6b5011;
}
#gtm-cfg2-qo .qo-note i {
  color: #d68b0d;
  font-size: 18px;
  margin-top: 1px;
  flex-shrink: 0;
}
#gtm-cfg2-qo .qo-note b { color: #4a3810; }

/* Actions */
#gtm-cfg2-qo .qo-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
#gtm-cfg2-qo .qo-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
#gtm-cfg2-qo .qo-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,0.15); }
#gtm-cfg2-qo .qo-btn-primary {
  background: linear-gradient(135deg, #003A70 0%, #002855 100%);
  color: #fff;
}
#gtm-cfg2-qo .qo-btn-secondary {
  background: #f3f4f6;
  color: #003A70;
  border: 1px solid #e5e7eb;
}

/* Mobile */
@media (max-width: 560px) {
  #gtm-cfg2-qo .qo-card { padding: 32px 22px 26px; border-radius: 16px; }
  #gtm-cfg2-qo .qo-card h2 { font-size: 22px; }
  #gtm-cfg2-qo .qo-actions { flex-direction: column; }
  #gtm-cfg2-qo .qo-btn { width: 100%; justify-content: center; }
}

/* ============ GOLD KIT SECTION (kompakt 3 kolon) ============ */
#gtm-cfg2 .cfg-kits-section {
  margin: 24px 0 30px;
  padding: 22px 22px 18px;
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border-radius: 16px;
  border: 1px solid #fde68a;
  position: relative;
  overflow: hidden;
}
#gtm-cfg2 .cfg-kits-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, #d4af37 0%, #f5d76e 30%, #d4af37 60%, #b8860b 100%);
}
#gtm-cfg2 .cfg-kits-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
#gtm-cfg2 .cfg-kits-badge {
  display: inline-flex; align-items: center; gap: 5px;
  background: linear-gradient(135deg, #b8860b 0%, #d4af37 50%, #f5d76e 100%);
  color: #4a3810;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 1.2px;
  padding: 6px 11px;
  border-radius: 7px;
  box-shadow: 0 2px 8px rgba(184, 134, 11, 0.3);
  flex-shrink: 0;
}
#gtm-cfg2 .cfg-kits-badge i { color: #4a3810; font-size: 11px; }
#gtm-cfg2 .cfg-kits-title {
  margin: 0 0 3px;
  color: #003A70;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.2px;
}
#gtm-cfg2 .cfg-kits-sub {
  color: #6b5011;
  font-size: 12.5px;
  line-height: 1.45;
}
#gtm-cfg2 .cfg-kits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 14px;
  align-items: stretch;
  justify-content: center;
}
/* Tek kart durumunda merkezle ve max-width uygula */
#gtm-cfg2 .cfg-kits-grid.single-kit {
  grid-template-columns: minmax(280px, 460px);
  justify-content: center;
}
/* Kit-only (custom yok) modunda 2 kolonlu grid tercih et */
#gtm-cfg2 .cfg-kits-grid.kit-only-grid:not(.single-kit) {
  grid-template-columns: repeat(auto-fit, minmax(320px, 460px));
  justify-content: center;
}

/* Kit card — kompakt */
#gtm-cfg2 .kit-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 14px 14px 12px;
  position: relative;
  box-shadow: 0 3px 12px rgba(184, 134, 11, 0.1);
  border: 2px solid transparent;
  background-clip: padding-box;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex; flex-direction: column;
}
#gtm-cfg2 .kit-card::before {
  content: '';
  position: absolute; top: -2px; left: -2px; right: -2px; bottom: -2px;
  background: linear-gradient(135deg, #d4af37 0%, #f5d76e 50%, #b8860b 100%);
  border-radius: 12px;
  z-index: -1;
}
#gtm-cfg2 .kit-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(184, 134, 11, 0.22);
}
#gtm-cfg2 .kit-card-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 6px;
}
#gtm-cfg2 .kit-badge {
  display: inline-block;
  background: linear-gradient(135deg, #b8860b 0%, #d4af37 100%);
  color: #ffffff;
  font-size: 10px; font-weight: 800;
  letter-spacing: 1.2px;
  padding: 4px 8px;
  border-radius: 5px;
}
#gtm-cfg2 .kit-flash {
  display: inline-flex; align-items: center; gap: 4px;
  background: #dcfce7;
  color: #14532d;
  font-size: 10px; font-weight: 700;
  padding: 3px 8px;
  border-radius: 5px;
}
#gtm-cfg2 .kit-flash i { color: #16a34a; font-size: 9px; }

#gtm-cfg2 .kit-code-line {
  font-family: 'SF Mono', Monaco, monospace;
  color: #003A70;
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: -0.2px;
  margin-bottom: 2px;
  word-break: break-word;
}
#gtm-cfg2 .kit-name-line {
  color: #4b5563;
  font-size: 11px;
  line-height: 1.35;
  margin-bottom: 8px;
  min-height: 30px;
}

#gtm-cfg2 .kit-specs {
  list-style: none;
  margin: 0 0 10px;
  padding: 8px 0;
  border-top: 1px solid #f3f4f6;
  border-bottom: 1px solid #f3f4f6;
}
#gtm-cfg2 .kit-specs li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  padding: 2.5px 0;
  font-size: 11.5px;
  line-height: 1.35;
}
#gtm-cfg2 .kit-spec-lbl {
  color: #6b7280;
  font-weight: 600;
  flex-shrink: 0;
  min-width: 72px;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
#gtm-cfg2 .kit-spec-val {
  color: #0f172a;
  font-weight: 600;
  text-align: right;
  font-size: 11.5px;
}

#gtm-cfg2 .kit-warranty-block { margin-bottom: 8px; }
#gtm-cfg2 .kit-warr-label {
  display: flex; align-items: center; gap: 5px;
  font-size: 10px;
  color: #003A70;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}
#gtm-cfg2 .kit-warr-label i { color: #d4af37; font-size: 10px; }
#gtm-cfg2 .kit-warr-sel {
  width: 100%;
  padding: 7px 9px;
  border-radius: 6px;
  border: 1.5px solid #e5e7eb;
  background: #f9fafb;
  color: #0f172a;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  transition: border-color 0.15s, background 0.15s;
}
#gtm-cfg2 .kit-warr-sel:focus,
#gtm-cfg2 .kit-warr-sel:hover {
  border-color: #d4af37;
  background: #ffffff;
}

#gtm-cfg2 .kit-price-row {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 10px;
  padding: 8px 0 10px;
  border-top: 1px dashed #e5e7eb;
  margin-bottom: 8px;
}
#gtm-cfg2 .kit-price-lines { font-size: 10.5px; color: #6b7280; flex: 1; min-width: 0; }
#gtm-cfg2 .kit-price-sub {
  display: flex; justify-content: space-between; gap: 8px;
  padding: 1px 0;
  font-size: 10.5px;
}
#gtm-cfg2 .kit-price-sub span:last-child { color: #0f172a; font-weight: 700; }
#gtm-cfg2 .kit-price-total { text-align: right; flex-shrink: 0; }
#gtm-cfg2 .kit-total-lbl {
  font-size: 9.5px;
  color: #6b7280;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
#gtm-cfg2 .kit-total-val {
  font-size: 18px;
  font-weight: 900;
  color: #003A70;
  letter-spacing: -0.4px;
  white-space: nowrap;
}

#gtm-cfg2 .kit-cta {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  width: 100%;
  background: linear-gradient(135deg, #003A70 0%, #001f3d 100%);
  color: #ffffff;
  border: none;
  padding: 10px 12px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 12.5px;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 3px 10px rgba(0, 58, 112, 0.28);
  margin-top: auto;
}
#gtm-cfg2 .kit-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 58, 112, 0.36);
}
#gtm-cfg2 .kit-cta:disabled { opacity: 0.7; cursor: wait; }
#gtm-cfg2 .kit-cta i { font-size: 11px; }

/* CUSTOM BUILD kartı — farklı renk (mavi çerçeve) */
#gtm-cfg2 .kit-card-custom::before {
  background: linear-gradient(135deg, #003A70 0%, #0369a1 50%, #003A70 100%);
}
#gtm-cfg2 .kit-badge-custom {
  background: linear-gradient(135deg, #003A70 0%, #001f3d 100%);
}
#gtm-cfg2 .kit-flash-flex {
  background: #dbeafe;
  color: #1e3a8a;
}
#gtm-cfg2 .kit-flash-flex i { color: #2563eb; }
#gtm-cfg2 .kit-custom-info {
  display: flex; gap: 8px;
  background: #eff6ff;
  border-left: 3px solid #3b82f6;
  padding: 8px 10px;
  border-radius: 6px;
  color: #1e40af;
  font-size: 11px;
  line-height: 1.45;
  margin-bottom: 10px;
}
#gtm-cfg2 .kit-custom-info i {
  color: #3b82f6;
  flex-shrink: 0;
  margin-top: 1px;
  font-size: 12px;
}
#gtm-cfg2 .kit-cta-custom {
  background: linear-gradient(135deg, #0369a1 0%, #003A70 100%);
  box-shadow: 0 3px 10px rgba(3, 105, 161, 0.3);
}

#gtm-cfg2 .cfg-kits-foot {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed rgba(217, 119, 6, 0.3);
  font-size: 11px;
  color: #92400e;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
#gtm-cfg2 .cfg-kits-foot i { color: #d97706; }

/* Tablet: 2 kolon */
@media (max-width: 960px) {
  #gtm-cfg2 .cfg-kits-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Mobile: 1 kolon */
@media (max-width: 640px) {
  #gtm-cfg2 .cfg-kits-section { padding: 16px 14px; margin: 18px 0 24px; }
  #gtm-cfg2 .cfg-kits-header { flex-direction: column; align-items: flex-start; gap: 8px; }
  #gtm-cfg2 .cfg-kits-title { font-size: 16px; }
  #gtm-cfg2 .cfg-kits-grid { grid-template-columns: 1fr; gap: 12px; }
  #gtm-cfg2 .kit-card { padding: 14px 12px; }
  #gtm-cfg2 .kit-total-val { font-size: 20px; }
  #gtm-cfg2 .kit-name-line { min-height: auto; }
}
