/* ============================================
   Ağ Araçları sayfası (/tr/araclar, /en/tools): kısa araç hero'su, 4x2 araç seçici, tek kart panel düzeni.
   Yalnız .ntp kapsamında; Mail Server Araçları ve diğer tool-hero sayfaları etkilenmez.
   ============================================ */

/* ---- Hero: alçak bant, sağda 3D sahne; kendi alanında biter, alt kenarda kısa geçiş ---- */
.cs .ntp-hero {
    --ntp-fade: 56px;
    padding: 40px 0 var(--ntp-fade);
    background:
        radial-gradient(620px 330px at 74% 54%, #003562 0%, rgb(0 53 98 / .55) 45%, rgb(0 53 98 / 0) 100%),
        var(--hm-navy-950);
}
.ntp-hero::after { height: var(--ntp-fade); }
.ntp-hero-grid {
    position: relative; z-index: 2; display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 566px);
    grid-template-areas: "copy viz";
    column-gap: 32px;
}
.ntp-hero-copy { grid-area: copy; align-self: center; padding: 0 0 8px; }
.ntp-hero-viz { grid-area: viz; align-self: end; justify-self: end; width: 100%; max-width: 566px; }
.ntp-hero-viz img { display: block; width: 100%; height: auto; }
.ntp-hero-head { display: flex; align-items: center; gap: 18px; }
.ntp-hero-ic {
    flex: 0 0 auto; width: 56px; height: 56px; display: grid; place-items: center; border-radius: 14px;
    background: linear-gradient(160deg, rgb(58 144 206 / .30), rgb(29 110 168 / .14));
    border: 1px solid rgb(140 196 232 / .38); color: #8fd0ff; font-size: 26px;
    box-shadow: inset 0 1px 0 rgb(255 255 255 / .12), 0 14px 30px -18px rgb(36 132 214 / .9);
}
.cs .ntp-hero .hs-t { font-size: clamp(2rem, 3.4vw, 2.75rem); line-height: 1.05; }
.ntp-hero .hs-t span { display: inline; }
.ntp-hero .hs-t .hs-em { color: #3fa2ea; }
.ntp-hero-lead { margin: 10px 0 0; font-size: 17px; line-height: 1.4; color: var(--hm-on-dark); }
.cs .ntp-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 0; padding: 0; list-style: none; }
.ntp-chips li {
    display: inline-flex; align-items: center; gap: 9px; min-height: 36px; padding: 0 14px; border-radius: 10px;
    background: rgb(255 255 255 / .06); border: 1px solid rgb(140 196 232 / .2);
    font-size: 14.5px; font-weight: 600; color: #fff; white-space: nowrap;
}
.ntp-chips li i { color: #6cbcf5; font-size: 15px; }

/* ---- Araç yüzeyi ---- */
.ntp .tp-tool { margin-top: 28px; }
.ntp .mst-panel > *:not(:first-child) { margin-top: 0; }

/* ---- Ziyaretçi IP barı: sorgu alanının en üstünde, tek satır, açık zemin ---- */
.ntp-ipbar {
    display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; grid-template-areas: "ic lbl val copy"; align-items: center; gap: 16px;
    margin-bottom: 16px; padding: 12px 12px 12px 14px; border-radius: 16px;
    background: linear-gradient(100deg, #eaf4fc 0%, #f7fbfe 46%, #fff 100%);
    border: 1px solid #c8e0f1; border-left: 4px solid var(--hm-blue-600);
    box-shadow: 0 1px 2px rgb(6 32 51 / .05), 0 18px 36px -28px rgb(23 90 138 / .55);
}
.ntp-ipbar-ic {
    grid-area: ic; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; color: #fff; font-size: 19px;
    background: linear-gradient(145deg, #2484c6, #175a8a); box-shadow: 0 10px 20px -12px rgb(23 90 138 / .9);
}
.ntp-ipbar-lbl { grid-area: lbl; font: 700 15px/1.2 var(--hm-display); color: var(--hm-ink-2); white-space: nowrap; }
.ntp-ipbar-val {
    grid-area: val; min-width: 0; padding-left: 16px; border-left: 1px solid #c8e0f1;
    font: 700 28px/1.15 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: -.01em; color: var(--hm-ink); word-break: break-all;
}
.ntp-ipbar-val.is-long { font-size: 19px; }
.ntp-ipbar.is-unknown .ntp-ipbar-val { font: 600 16px/1.4 var(--hm-display); color: var(--hm-ink-2); }
.cs .ntp-ipbar-copy {
    grid-area: copy; display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 20px; cursor: pointer;
    border: 1px solid var(--hm-blue-600); border-radius: 11px; background: #fff; color: var(--hm-blue-700); font: 700 15px/1 var(--hm-display);
    transition: background .15s, color .15s, border-color .15s;
}
.cs .ntp-ipbar-copy:hover { background: var(--hm-blue-600); color: #fff; }
.cs .ntp-ipbar-copy:focus-visible { outline: 2px solid var(--hm-blue-600); outline-offset: 2px; }
.cs .ntp-ipbar-copy.is-copied { border-color: #059669; background: #ecfdf5; color: #047857; }

/* ---- Araç seçici: beyaz kart, 4x2 premium düğme ---- */
.ntp-picker {
    margin-bottom: 26px; padding: 20px; border-radius: 18px; background: #fff;
    border: 1px solid rgb(223 232 241 / .9);
    box-shadow: 0 1px 2px rgb(6 32 51 / .05), 0 24px 48px -30px rgb(6 32 51 / .45);
}
.ntp .mst-tabs.ntx-tabs {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px;
    margin: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; overflow: visible;
}
.ntp .mst-tabs.ntx-tabs .mst-tab {
    min-width: 0; min-height: 76px; gap: 14px; padding: 13px 16px; border: 1px solid var(--hm-line); border-radius: 13px;
    background: #fff; color: var(--hm-ink);
    box-shadow: 0 1px 2px rgb(6 32 51 / .04);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}
.ntp .mst-tabs.ntx-tabs .mst-tab::after { display: none; }
.ntp .mst-tabs.ntx-tabs .mst-tab:hover {
    transform: translateY(-2px); background: #fff; border-color: var(--hm-blue-300);
    box-shadow: 0 14px 26px -18px rgb(6 32 51 / .45);
}
.ntp .mst-tabs.ntx-tabs .mst-tab-ic {
    width: 46px; height: 46px; flex: 0 0 46px; border-radius: 12px; border: 1px solid #e3edf6;
    background: linear-gradient(180deg, #f6f9fc, #edf3f9); color: var(--hm-blue-600); font-size: 19px; box-shadow: none;
}
.ntp .mst-tabs.ntx-tabs .mst-tab-tx { min-width: 0; line-height: 1.3; }
.ntp .mst-tabs.ntx-tabs .mst-tab-tx b { display: block; font-size: 16px; font-weight: 800; letter-spacing: -.01em; color: var(--hm-ink); white-space: normal; overflow: visible; }
.ntp .mst-tabs.ntx-tabs .mst-tab-tx small { display: block; margin-top: 3px; font-size: 14px; font-weight: 500; color: var(--hm-ink-2); white-space: normal; overflow: visible; }
.ntp .mst-tabs.ntx-tabs .mst-tab.active {
    border-color: #2f86c6; background: linear-gradient(135deg, #1f78b8 0%, #165d92 100%);
    box-shadow: 0 0 0 3px rgb(58 144 206 / .18), 0 16px 30px -16px rgb(22 93 146 / .8);
}
.ntp .mst-tabs.ntx-tabs .mst-tab.active:hover { transform: none; }
.ntp .mst-tabs.ntx-tabs .mst-tab.active .mst-tab-ic {
    border-color: rgb(255 255 255 / .2); background: rgb(255 255 255 / .14); color: #fff; box-shadow: inset 0 1px 0 rgb(255 255 255 / .15);
}
.ntp .mst-tabs.ntx-tabs .mst-tab.active .mst-tab-tx b, .ntp .mst-tabs.ntx-tabs .mst-tab.active .mst-tab-tx small { color: #fff; }
.ntp .mst-tabs.ntx-tabs .mst-tab:focus-visible { outline: 2px solid var(--hm-blue-600); outline-offset: 3px; }


/* ---- Panel kartı: başlık solda, giriş + düğme sağda; altında sonuç alanı ---- */
.ntp-card {
    padding: 28px 30px 30px; border-radius: 18px; background: #fff; border: 1px solid rgb(223 232 241 / .9);
    box-shadow: 0 1px 2px rgb(6 32 51 / .05), 0 24px 48px -32px rgb(6 32 51 / .4);
}
.ntp .ntp-card .msx-search {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); align-items: center; column-gap: 40px; row-gap: 0;
    padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; overflow: visible;
}
.ntp .ntp-card .msx-search > * { grid-column: 2; }
.ntp .ntp-card .msx-search > :not(.msx-search-head) + * { margin-top: 12px; }
.ntp .ntp-card .msx-search > .msx-search-head { grid-column: 1; grid-row: 1 / span 4; align-self: center; margin: 0; gap: 18px; }
.ntp .ntp-card .msx-search-ic {
    width: 56px; height: 56px; flex: 0 0 56px; border-radius: 14px; font-size: 22px;
    background: linear-gradient(145deg, #2484c6, #175a8a); box-shadow: 0 14px 26px -14px rgb(23 90 138 / .85);
}
.ntp .ntp-card .msx-search-title { font-size: clamp(1.35rem, 2vw, 1.6rem); line-height: 1.2; letter-spacing: -.02em; }
.ntp .ntp-card .msx-search-sub { margin-top: 6px; font-size: 15px; line-height: 1.55; }
.ntp .ntp-card .msx-search-row { gap: 12px; flex-wrap: nowrap; }
.ntp .ntp-card .msx-input { height: 54px; border-width: 1px; border-color: #d3dfeb; border-radius: 11px; background: #fff; font-weight: 500; }
.ntp .ntp-card .msx-input:focus { border-color: var(--hm-blue-600); }
.ntp .ntp-card .nlx-select, .ntp .ntp-card .nlx-port { height: 54px; border-color: #d3dfeb; border-radius: 11px; background: #fff; }
.ntp .ntp-card .msx-btn-lg { height: 54px; min-width: 9.5rem; padding: 0 1.6rem; border-radius: 11px; font-size: 16px; box-shadow: 0 12px 22px -14px rgb(201 71 22 / .9); }
.ntp .ntp-card .ntx-inline-err { margin: 0; }
.ntp .ntp-card .msx-search > .ntx-inline-err:empty { display: none; }

/* Port ve WHOIS: mod seçici + ek alan sağ sütunda, girişin altında */
.ntp .ntp-portopts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.ntp .ntp-portopts .ntx-modes, .ntp .ntp-card .ntx-modeblock .ntx-modes { margin: 0; }
.ntp .ntp-portopts .ntx-mode-pane.is-on { flex: 1 1 12rem; min-width: 0; }
.ntp .ntp-portopts .mtx-inp-port .mst-input { max-width: 11rem; }
.ntp .ntp-portopts .mtx-chips { margin: 0; }
.ntp .ntp-card .ntx-modeblock { gap: 0; }
.ntp .ntp-card .ntx-mode-pane .msx-search-row { margin: 0; }
.ntp .ntp-card .ntx-mode-pane .mtx-run { margin-top: 10px; }

/* Sonuç alanı: kart içinde, boş durum kesik çizgili kutu */
.ntp .ntp-card > .msx-out, .ntp .ntp-card > .nlx-main, .ntp .ntp-card > .nlx-whois-results { margin-top: 26px; }
.ntp .ntp-card > .msx-out:empty { display: none; }
.ntp .ntp-card .msx-empty {
    padding: 30px 24px 32px; border: 1.5px dashed #c9d8e7; border-radius: 14px; background: #fbfdff; box-shadow: none;
}
.ntp .ntp-card .msx-empty-icons {
    display: block; width: 128px; height: 80px; margin: 0 auto 14px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='128' height='80' viewBox='0 0 128 80'%3E%3Cg stroke='%23c9daec' stroke-width='1.5' fill='%23e6eff8'%3E%3Crect x='3' y='4' width='86' height='20' rx='5'/%3E%3Crect x='3' y='29' width='86' height='20' rx='5'/%3E%3Crect x='3' y='54' width='86' height='20' rx='5'/%3E%3C/g%3E%3Cg fill='%2393b1d1'%3E%3Ccircle cx='15' cy='14' r='3'/%3E%3Ccircle cx='24' cy='14' r='3'/%3E%3Ccircle cx='33' cy='14' r='3'/%3E%3Ccircle cx='15' cy='39' r='3'/%3E%3Ccircle cx='24' cy='39' r='3'/%3E%3Ccircle cx='33' cy='39' r='3'/%3E%3Ccircle cx='15' cy='64' r='3'/%3E%3Ccircle cx='24' cy='64' r='3'/%3E%3Ccircle cx='33' cy='64' r='3'/%3E%3C/g%3E%3Cg fill='%23c3d5e8'%3E%3Crect x='60' y='12' width='8' height='4' rx='2'/%3E%3Crect x='71' y='12' width='8' height='4' rx='2'/%3E%3C/g%3E%3Ccircle cx='96' cy='46' r='21' fill='%23fff' stroke='%23fff' stroke-width='6'/%3E%3Ccircle cx='96' cy='46' r='17' fill='%23fbfdff' stroke='%236f95bd' stroke-width='5.5'/%3E%3Cpath d='M108.5 58.5L121 71' stroke='%23fff' stroke-width='13' stroke-linecap='round'/%3E%3Cpath d='M108.5 58.5L121 71' stroke='%236f95bd' stroke-width='8' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.ntp .ntp-card .msx-empty-ic { display: none; }
.ntp .ntp-card .msx-empty-title { margin-bottom: 8px; font-size: 1.25rem; }
.ntp .ntp-card .msx-empty-desc { max-width: 470px; margin-bottom: 0; font-size: 15px; line-height: 1.6; }

/* ---- İpuçları: kartın altında tek satır, dört sütun, ince ayraçlı ---- */
.ntp .mst-panel > .ntp-tips { margin-top: 20px; }
.ntp .ntp-tips .msx-tips { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 0; margin: 0; padding: 0; border: 0; }
.ntp .ntp-tips .msx-tips li { padding: 0 18px 0 46px; font-size: 14px; line-height: 1.5; color: var(--hm-ink-2); border-left: 1px solid var(--hm-line); }
.ntp .ntp-tips .msx-tips li i { left: 20px; top: 3px; font-size: 15px; color: #16a34a; }
.ntp .ntp-tips .msx-tips li:nth-child(4n+1) { padding-left: 26px; border-left: 0; }
.ntp .ntp-tips .msx-tips li:nth-child(4n+1) i { left: 0; }

/* ---- Bilgi kartları: en altta ızgara ---- */
.ntp .mst-panel > .ntp-info { margin-top: 30px; }
.ntp .ntp-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 16px; align-items: start; margin-top: 30px; }
.ntp .ntp-info .mtx-card { border-radius: 14px; }

/* ---- Duyarlı ---- */
@media (max-width: 1180px) {
    .ntp-hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 42%); column-gap: 20px; }
    .cs .ntp-chips { gap: 8px; }
    .ntp-chips li { min-height: 38px; padding: 0 12px; font-size: 14px; }
    .ntp .mst-tabs.ntx-tabs { gap: 12px; }
    .ntp .mst-tabs.ntx-tabs .mst-tab { gap: 11px; padding: 12px 13px; }
    .ntp .mst-tabs.ntx-tabs .mst-tab-ic { width: 40px; height: 40px; flex-basis: 40px; border-radius: 11px; font-size: 17px; }
    .ntp .mst-tabs.ntx-tabs .mst-tab-tx b { font-size: 15px; }
}
@media (max-width: 900px) {
    .ntp .mst-tabs.ntx-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
    .ntp .ntp-card .msx-search { grid-template-columns: minmax(0, 1fr); }
    .ntp .ntp-card .msx-search > *, .ntp .ntp-card .msx-search > .msx-search-head { grid-column: 1; grid-row: auto; }
    .ntp .ntp-card .msx-search > .msx-search-head { margin-bottom: 8px; }
    .ntp .ntp-tips .msx-tips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ntp .ntp-tips .msx-tips li:nth-child(4n+1) { padding-left: 46px; border-left: 1px solid var(--hm-line); }
    .ntp .ntp-tips .msx-tips li:nth-child(4n+1) i { left: 20px; }
    .ntp .ntp-tips .msx-tips li:nth-child(2n+1) { padding-left: 26px; border-left: 0; }
    .ntp .ntp-tips .msx-tips li:nth-child(2n+1) i { left: 0; }
}
@media (max-width: 860px) {
    .ntp-hero-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "copy" "viz"; }
    .ntp-hero-copy { padding: 0 0 14px; }
    .ntp-hero-viz { justify-self: center; max-width: 430px; }
}
@media (max-width: 640px) {
    .cs .ntp-hero { --ntp-fade: 44px; padding-top: 26px; }
    .ntp .tp-tool { margin-top: 20px; }
    .ntp-hero-head { gap: 14px; }
    .ntp-hero-ic { width: 52px; height: 52px; border-radius: 13px; font-size: 21px; }
    .ntp-ipbar { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "ic lbl copy" "val val val"; gap: 10px 12px; padding: 12px 12px 14px; }
    .ntp-ipbar-ic { width: 40px; height: 40px; font-size: 17px; }
    .ntp-ipbar-val { padding: 0 0 0 2px; border-left: 0; font-size: 24px; }
    .ntp-ipbar-val.is-long { font-size: 16px; }
    .ntp-ipbar.is-unknown { grid-template-areas: "ic lbl" "val val"; grid-template-columns: auto minmax(0, 1fr); }
    .cs .ntp-ipbar-copy { height: 40px; padding: 0 14px; font-size: 14px; }
    .ntp-hero-lead { font-size: 15.5px; }
    .cs .ntp-chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .ntp-chips li { min-height: 40px; padding: 0 12px; font-size: 14px; white-space: normal; }
    .ntp-picker { padding: 12px; border-radius: 16px; }
    .ntp .mst-tabs.ntx-tabs { gap: 10px; }
    .ntp .mst-tabs.ntx-tabs .mst-tab { min-height: 60px; gap: 10px; padding: 10px 11px; }
    .ntp .mst-tabs.ntx-tabs .mst-tab-ic { width: 38px; height: 38px; flex-basis: 38px; border-radius: 10px; font-size: 16px; }
    .ntp .mst-tabs.ntx-tabs .mst-tab-tx b { font-size: 14.5px; }
    .ntp .mst-tabs.ntx-tabs .mst-tab-tx small { display: none; }
    .ntp-card { padding: 20px 16px 18px; border-radius: 16px; }
    .ntp .ntp-card .msx-search-row { flex-direction: column; flex-wrap: nowrap; }
    .ntp .ntp-card .msx-search-row > * { flex: 0 0 auto; width: 100%; }
    .ntp .ntp-card .msx-btn-lg { width: 100%; }
    .ntp .ntp-card .nlx-select, .ntp .ntp-card .nlx-port { max-width: none; width: 100%; }
    .ntp .ntp-card .msx-search-ic { width: 48px; height: 48px; flex-basis: 48px; font-size: 19px; }
    .ntp .ntp-card .msx-empty { padding: 24px 14px; }
    .ntp .ntp-tips .msx-tips { grid-template-columns: minmax(0, 1fr); }
    .ntp .ntp-tips .msx-tips li, .ntp .ntp-tips .msx-tips li:nth-child(n) { padding-left: 26px; border-left: 0; }
    .ntp .ntp-tips .msx-tips li i, .ntp .ntp-tips .msx-tips li:nth-child(n) i { left: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .ntp .mst-tabs.ntx-tabs .mst-tab, .ntp .mst-tabs.ntx-tabs .mst-tab:hover { transition: none; transform: none; }
}
