/* Tools UI polish (v1.0.0): shared form, button, result and loading styles for every tool page. Loaded after the layout styles. */
.tool-page .panel, .generator-editor, .generator-preview-panel { position: relative; }
.tool-page .panel::before, .generator-editor::before { content: ""; position: absolute; inset: 0 20% auto; height: 1px; background: linear-gradient(90deg, transparent, rgba(214, 178, 94, .55), transparent); pointer-events: none; }
.input, .select, .textarea, .tool-page input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=range]), .tool-page select, .tool-page textarea { transition: border-color .2s, box-shadow .2s, background .2s; }
.input:hover, .select:hover, .textarea:hover { border-color: rgba(255, 255, 255, .2); }
.input:focus, .select:focus, .textarea:focus { background: #0a1220; border-color: rgba(214, 178, 94, .6); box-shadow: 0 0 0 4px rgba(214, 178, 94, .1); }
.input::placeholder, .textarea::placeholder { color: #5d6678; }
.button { position: relative; overflow: hidden; transition: transform .18s, box-shadow .2s, filter .2s, background .2s; }
.button:hover:not(:disabled) { transform: translateY(-1px); filter: brightness(1.06); }
.button:active:not(:disabled) { transform: translateY(0) scale(.98); }
.button:focus-visible { outline: 2px solid rgba(214, 178, 94, .8); outline-offset: 3px; }
.button:disabled { opacity: .6; cursor: not-allowed; }
.button[type=submit]:not(.button-secondary)::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .35), transparent); transform: skewX(-20deg); animation: tuiShine 5s ease-in-out infinite; pointer-events: none; }
/* the "working…" state while a server tool runs */
.button.is-loading { pointer-events: none; color: transparent !important; }
.button.is-loading::after { display: none; }
.button.is-loading::before { content: attr(data-loading); position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 10px; color: #1b1305; font-weight: 800; }
.button.button-secondary.is-loading::before { color: #fff; }
.button .tui-spin, .button.is-loading .tui-spin { display: none; }
.tui-spinner { position: absolute; top: 50%; inset-inline-start: 18px; width: 16px; height: 16px; margin-top: -8px; border-radius: 50%; border: 2px solid rgba(0, 0, 0, .25); border-top-color: #1b1305; animation: tuiSpin .7s linear infinite; }
/* results arrive with a little lift */
.result-section, .score-banner, .whois-result-card, .monitor-result, .breach-result, [data-tool-result] { animation: tuiIn .5s cubic-bezier(.2, .8, .2, 1) both; }
.data-table tbody tr { transition: background .15s; }
.data-table tbody tr:hover { background: rgba(255, 255, 255, .025); }
.alert { animation: tuiIn .4s ease-out both; }
.tui-flash { animation: tuiFlash 1.4s ease-out 1; }
@keyframes tuiShine { 0%, 70% { transform: translateX(0) skewX(-20deg); } 100% { transform: translateX(480%) skewX(-20deg); } }
@keyframes tuiSpin { to { transform: rotate(360deg); } }
@keyframes tuiIn { from { opacity: 0; transform: translateY(10px); } }
@keyframes tuiFlash { 0% { box-shadow: 0 0 0 0 rgba(214, 178, 94, .55); } 100% { box-shadow: 0 0 0 18px rgba(214, 178, 94, 0); } }
@media (prefers-reduced-motion: reduce) { .button::after, .result-section, .score-banner, .alert, .tui-flash { animation: none !important; } }
.button[aria-pressed=true] { background: linear-gradient(135deg, #ffe08a, #f2b84e) !important; color: #1b1305 !important; border-color: transparent !important; }

/* "Meet the developer" button in the tools header: a living portrait that invites a visit to the main site */
.tools-nav a.dev-cta { position: relative; display: inline-flex !important; align-items: center; gap: 10px; padding: 5px 14px 5px 6px !important; border-radius: 999px; color: #fff; text-decoration: none; overflow: hidden; isolation: isolate; background: linear-gradient(135deg, rgba(214, 178, 94, .2), rgba(101, 216, 255, .1)); border: 1px solid rgba(214, 178, 94, .45); box-shadow: 0 8px 26px rgba(214, 178, 94, .16); transition: transform .2s, box-shadow .2s, border-color .2s; animation: devBreath 3.2s ease-in-out infinite; }
[dir="rtl"] .tools-nav a.dev-cta { padding: 5px 6px 5px 14px !important; }
.tools-nav a.dev-cta:hover { transform: translateY(-2px); border-color: rgba(214, 178, 94, .85); box-shadow: 0 12px 34px rgba(214, 178, 94, .3); background: linear-gradient(135deg, rgba(214, 178, 94, .28), rgba(101, 216, 255, .14)); }
.tools-nav a.dev-cta::after { content: ""; position: absolute; inset: -20% auto -20% -40%; width: 30%; z-index: -1; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .28), transparent); transform: skewX(-20deg); animation: devShine 4.5s ease-in-out infinite; }
.dev-cta-av { position: relative; flex: none; display: grid; place-items: center; width: 38px; height: 38px; }
.dev-cta-av img { position: relative; z-index: 1; width: 32px; height: 32px; border-radius: 50%; object-fit: cover; border: 2px solid #0b0f19; }
.dev-cta-ring { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, #f1c666, #65d8ff, #9f84ff, #f1c666); animation: devSpin 3s linear infinite; }
.dev-cta-dot { position: absolute; z-index: 2; bottom: 1px; inset-inline-end: 1px; width: 10px; height: 10px; border-radius: 50%; background: #55e8aa; border: 2px solid #0b0f19; box-shadow: 0 0 0 0 rgba(85, 232, 170, .6); animation: devPing 2s ease-out infinite; }
.dev-cta-txt { display: grid; line-height: 1.15; text-align: start; }
.dev-cta-txt small { font-size: 10.5px; font-weight: 600; color: #e8d3a0; }
.dev-cta-txt b { font-size: 13.5px; font-weight: 800; }
.dev-cta-txt .dev-cta-short { display: none; }
.dev-cta-go { color: #f1c666; font-weight: 900; transition: transform .2s; }
.tools-nav a.dev-cta:hover .dev-cta-go { transform: translate(var(--dev-go, 3px), -3px); }
[dir="rtl"] .tools-nav a.dev-cta { --dev-go: -3px; }
@media (max-width: 940px) { .tools-nav a.dev-cta { display: inline-flex !important; } }
@media (max-width: 620px) {
    .tools-nav a.dev-cta, [dir="rtl"] .tools-nav a.dev-cta { gap: 7px; padding: 3px 10px 3px 4px !important; }
    [dir="rtl"] .tools-nav a.dev-cta { padding: 3px 4px 3px 10px !important; }
    .dev-cta-av { width: 32px; height: 32px; } .dev-cta-av img { width: 27px; height: 27px; }
    .dev-cta-txt small, .dev-cta-txt b:not(.dev-cta-short), .dev-cta-go { display: none; }
    .dev-cta-txt .dev-cta-short { display: block; font-size: 12.5px; }
}
@keyframes devSpin { to { transform: rotate(360deg); } }
@keyframes devPing { 70% { box-shadow: 0 0 0 7px rgba(85, 232, 170, 0); } 100% { box-shadow: 0 0 0 0 rgba(85, 232, 170, 0); } }
@keyframes devShine { 0%, 65% { transform: translateX(0) skewX(-20deg); } 100% { transform: translateX(520%) skewX(-20deg); } }
@keyframes devBreath { 0%, 100% { box-shadow: 0 8px 26px rgba(214, 178, 94, .16); } 50% { box-shadow: 0 8px 30px rgba(214, 178, 94, .34), 0 0 0 3px rgba(214, 178, 94, .08); } }
@media (prefers-reduced-motion: reduce) { .tools-nav a.dev-cta, .tools-nav a.dev-cta::after, .dev-cta-ring, .dev-cta-dot { animation: none !important; } }
@media (max-width: 370px) {
    .tools-nav a.dev-cta, [dir="rtl"] .tools-nav a.dev-cta { padding: 3px !important; }
    .dev-cta-txt { display: none; }
    .tools-filter-menu > summary { white-space: nowrap; }
}

/* grid columns may shrink below their content (long code lines and tables scroll inside instead of widening the page) */
.tool-page .page-grid > *{min-width:0}
