.tools-page {
    background: #f5f8fc;
}

.tools-visual {
    position: relative;
    overflow: hidden;
    padding: 190px 20px 95px;
    background: linear-gradient(135deg, #000c3f 0%, #005bac 58%, #00b7ff 100%);
    color: #fff;
    text-align: center;
}

.tools-visual.detail {
    padding-bottom: 80px;
}

.tools-visual .bgtxt {
    position: absolute;
    left: 50%;
    top: 105px;
    transform: translateX(-50%);
    width: 100%;
    color: rgba(255, 255, 255, 0.08);
    font-size: 118px;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
    pointer-events: none;
}

.tools-visual .bgtxt span {
    color: rgba(187, 230, 255, 0.16);
}

.tools-visual .title {
    position: relative;
    z-index: 1;
}

.tools-visual .title h3 {
    color: #fff;
    font-size: 48px;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.25;
}

.tools-visual .title h3 span {
    display: block;
    margin-bottom: 14px;
    color: #bbe6ff;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.25em;
}

.tools-visual .title p {
    margin-top: 22px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 20px;
    line-height: 1.7;
}

.back-link {
    display: inline-block;
    margin-top: 24px;
    padding: 12px 22px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 999px;
    color: #fff;
    font-weight: 700;
}

.tools-inner {
    max-width: 1560px;
    margin: 0 auto;
    padding: 0 20px;
}

.tools-list {
    padding: 90px 0 130px;
}

.tools-list ul {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.tools-list li a {
    position: relative;
    display: flex;
    min-height: 260px;
    height: 100%;
    flex-direction: column;
    justify-content: space-between;
    padding: 34px;
    border: 1px solid rgba(0, 91, 172, 0.12);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 16px 35px rgba(0, 19, 100, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.tools-list li a:hover,
.tools-list li a:focus {
    transform: translateY(-7px);
    border-color: rgba(0, 91, 172, 0.45);
    box-shadow: 0 24px 46px rgba(0, 91, 172, 0.15);
}

.tool-mark {
    display: inline-flex;
    width: 46px;
    height: 46px;
    align-items: center;
    justify-content: center;
    border-radius: 100%;
    background: linear-gradient(135deg, #005bac, #00b7ff);
    color: #fff;
    font-weight: 800;
}

.tools-list h4 {
    margin-top: 26px;
    color: #111;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.25;
}

.tools-list p {
    margin: 16px 0 26px;
    color: #586174;
    font-size: 16px;
    line-height: 1.65;
}

.tools-list em {
    color: #005bac;
    font-size: 15px;
    font-style: normal;
    font-weight: 800;
}

.tool-body {
    padding: 80px 0 130px;
}

.tool-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 30px;
    align-items: start;
}

.tool-panel,
.help-box {
    border: 1px solid rgba(0, 91, 172, 0.12);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 16px 35px rgba(0, 19, 100, 0.08);
}

.tool-panel {
    display: grid;
    gap: 14px;
    padding: 34px;
}

.tool-panel label,
.tool-current span,
.result-grid span {
    color: #526079;
    font-size: 14px;
    font-weight: 800;
}

.tool-textarea,
.tool-input,
.cron-output {
    width: 100%;
    border: 1px solid #dfe6f2;
    border-radius: 12px;
    background: #f9fbff;
    color: #111;
    font: 15px/1.65 Consolas, Monaco, "Courier New", monospace;
    padding: 15px 16px;
    outline: none;
}

.tool-textarea {
    min-height: 190px;
    resize: vertical;
}

.tool-textarea.small {
    min-height: 115px;
}

.tool-input {
    min-height: 50px;
}

.tool-textarea:focus,
.tool-input:focus {
    border-color: rgba(0, 91, 172, 0.55);
    box-shadow: 0 0 0 4px rgba(0, 91, 172, 0.08);
}

.tool-actions,
.tool-checks,
.preset-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tool-btn,
.preset-row button {
    min-height: 44px;
    padding: 10px 18px;
    border: 1px solid #dfe6f2;
    border-radius: 999px;
    background: #fff;
    color: #1f2a44;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tool-btn:hover,
.preset-row button:hover {
    border-color: #005bac;
    color: #005bac;
}

.tool-btn.primary {
    border-color: #005bac;
    background: #005bac;
    color: #fff;
}

.tool-status {
    min-height: 22px;
    color: #526079;
    font-size: 14px;
}

.tool-note {
    color: #667085;
    font-size: 13px;
    line-height: 1.6;
}

.tool-status.is-error {
    color: #d13b3b;
}

.tool-status.is-success {
    color: #0f7a56;
}

.tool-help {
    display: grid;
    gap: 20px;
}

.help-box {
    padding: 28px;
}

.help-box h2 {
    margin-bottom: 18px;
    color: #111;
    font-size: 22px;
    font-weight: 800;
}

.help-box ol {
    display: grid;
    gap: 10px;
    padding-left: 20px;
    color: #586174;
    line-height: 1.7;
}

.help-box details {
    padding: 15px 0;
    border-top: 1px solid #e8edf5;
}

.help-box details:first-of-type {
    border-top: 0;
}

.help-box summary {
    color: #1f2a44;
    font-weight: 800;
    cursor: pointer;
}

.help-box p {
    margin-top: 10px;
    color: #586174;
    line-height: 1.7;
}

.tool-current,
.result-grid > div,
.qr-preview {
    border: 1px solid #dfe6f2;
    border-radius: 14px;
    background: #f9fbff;
    padding: 17px;
}

.tool-current strong,
.result-grid strong {
    display: block;
    margin-top: 7px;
    overflow-wrap: anywhere;
    color: #111;
    font-family: Consolas, Monaco, "Courier New", monospace;
}

.result-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.result-grid.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tool-checks label {
    padding: 10px 14px;
    border: 1px solid #dfe6f2;
    border-radius: 999px;
    background: #f9fbff;
    color: #526079;
    font-size: 14px;
    font-weight: 700;
}

.mono {
    font-family: Consolas, Monaco, "Courier New", monospace;
}

.qr-preview {
    display: flex;
    min-height: 280px;
    align-items: center;
    justify-content: center;
}

.cron-output {
    min-height: 130px;
    display: grid;
    gap: 8px;
}

.cron-output p {
    margin: 0;
}

.color-picker {
    width: 100px;
    height: 54px;
    padding: 4px;
    border: 1px solid #dfe6f2;
    border-radius: 12px;
    background: #fff;
}

.color-preview {
    height: 92px;
    border: 1px solid #dfe6f2;
    border-radius: 14px;
    background: #005bac;
}

.csv-preview {
    overflow: auto;
    max-height: 360px;
    border: 1px solid #dfe6f2;
    border-radius: 14px;
    background: #fff;
}

.csv-preview table {
    width: 100%;
    border-collapse: collapse;
    min-width: 520px;
}

.csv-preview th,
.csv-preview td {
    border-bottom: 1px solid #edf1f7;
    border-right: 1px solid #edf1f7;
    padding: 10px 12px;
    color: #101828;
    font-size: 14px;
    text-align: left;
    vertical-align: top;
}

.csv-preview th {
    background: #f5f8fc;
    font-weight: 800;
}

.wy-tools.is-dark .csv-preview,
.wy-tools.is-dark .csv-preview th,
.wy-tools.is-dark .csv-preview td {
    background: #11182a;
    color: #edf3ff;
    border-color: rgba(255, 255, 255, 0.14);
}

@media screen and (max-width: 1280px) {
    .tools-list ul {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media screen and (max-width: 1024px) {
    .tools-visual {
        padding-top: 145px;
    }

    .tools-list ul,
    .tool-layout {
        grid-template-columns: 1fr;
    }

    .tools-list ul {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media screen and (max-width: 640px) {
    .tools-visual {
        padding: 120px 16px 70px;
    }

    .tools-visual .bgtxt {
        top: 92px;
        font-size: 56px;
    }

    .tools-visual .title h3 {
        font-size: 32px;
    }

    .tools-visual .title p {
        font-size: 17px;
    }

    .tools-list,
    .tool-body {
        padding: 55px 0 80px;
    }

    .tools-list ul,
    .result-grid,
    .result-grid.three {
        grid-template-columns: 1fr;
    }

    .tools-list li a,
    .tool-panel,
    .help-box {
        padding: 24px;
    }

    .tool-actions .tool-btn,
    .preset-row button {
        width: 100%;
    }
}

.wy-tools {
    --wy-blue: #005bac;
    --wy-navy: #000c3f;
    --wy-sky: #00b7ff;
    --wy-text: #101828;
    --wy-muted: #667085;
    --wy-line: #dfe6f2;
    --wy-bg: #f5f8fc;
    background: var(--wy-bg);
    color: var(--wy-text);
}

.wy-tools.is-dark {
    --wy-text: #edf3ff;
    --wy-muted: #b8c4d8;
    --wy-line: rgba(255, 255, 255, 0.14);
    --wy-bg: #0b1020;
}

.wy-hero {
    padding: 180px 0 90px;
    background: linear-gradient(135deg, var(--wy-navy) 0%, var(--wy-blue) 58%, var(--wy-sky) 100%);
    color: #fff;
}

.wy-hero.compact {
    padding: 145px 0 70px;
}

.wy-hero .tools-inner {
    max-width: 1180px;
}

.wy-hero .eyebrow {
    margin-bottom: 16px;
    color: #bbe6ff;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.wy-hero h1 {
    max-width: 820px;
    color: #fff;
    font-size: 56px;
    font-weight: 850;
    letter-spacing: -0.05em;
    line-height: 1.15;
}

.wy-hero p {
    max-width: 820px;
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 21px;
    line-height: 1.7;
}

.wy-search {
    position: relative;
    max-width: 760px;
    margin-top: 34px;
}

.wy-search input {
    width: 100%;
    height: 64px;
    border: 0;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 18px 40px rgba(0, 12, 63, 0.22);
    color: #111;
    font-size: 17px;
    font-weight: 600;
    outline: 0;
    padding: 0 22px;
}

.search-suggestions {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 10;
    display: none;
    overflow: hidden;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 18px 40px rgba(0, 12, 63, 0.2);
}

.search-suggestions.is-open {
    display: block;
}

.search-suggestions a {
    display: block;
    padding: 14px 18px;
    border-bottom: 1px solid #edf1f7;
    color: #101828;
    font-weight: 700;
}

.search-suggestions span {
    display: block;
    margin-top: 4px;
    color: #667085;
    font-size: 13px;
    font-weight: 500;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.hero-actions a,
.mode-toggle {
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    font-weight: 800;
    padding: 11px 17px;
}

.wy-section {
    padding: 74px 0;
}

.section-head {
    margin-bottom: 28px;
}

.section-head h2,
.content-block h2 {
    color: var(--wy-text);
    font-size: 32px;
    font-weight: 850;
    letter-spacing: -0.04em;
}

.section-head p,
.content-block p,
.content-block li {
    color: var(--wy-muted);
    line-height: 1.75;
}

.wy-tool-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.wy-tool-grid.small {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.wy-tool-card {
    position: relative;
    min-height: 230px;
    border: 1px solid var(--wy-line);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(0, 19, 100, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.wy-tools.is-dark .wy-tool-card,
.wy-tools.is-dark .help-box,
.wy-tools.is-dark .tool-panel,
.wy-tools.is-dark .content-block,
.wy-tools.is-dark .compact-list,
.wy-tools.is-dark .category-grid a {
    background: #11182a;
}

.wy-tool-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 91, 172, 0.42);
    box-shadow: 0 22px 46px rgba(0, 91, 172, 0.14);
}

.wy-tool-card a {
    display: flex;
    height: 100%;
    flex-direction: column;
    padding: 26px;
}

.tool-category {
    color: var(--wy-blue);
    font-size: 12px;
    font-weight: 850;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.wy-tool-card h3 {
    margin-top: 18px;
    color: var(--wy-text);
    font-size: 21px;
    font-weight: 850;
    letter-spacing: -0.03em;
}

.wy-tool-card p {
    margin: 14px 0 24px;
    color: var(--wy-muted);
    line-height: 1.65;
}

.wy-tool-card em {
    margin-top: auto;
    color: var(--wy-blue);
    font-style: normal;
    font-weight: 850;
}

.favorite-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 34px;
    height: 34px;
    border: 1px solid var(--wy-line);
    border-radius: 50%;
    background: #fff;
    color: var(--wy-blue);
    cursor: pointer;
    font-size: 18px;
}

.favorite-btn.is-active {
    background: var(--wy-blue);
    color: #fff;
}

.category-band {
    background: rgba(0, 91, 172, 0.05);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.category-grid a,
.compact-list,
.content-block {
    border: 1px solid var(--wy-line);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(0, 19, 100, 0.06);
}

.category-grid a {
    display: block;
    padding: 22px;
}

.category-grid strong {
    display: block;
    color: var(--wy-text);
    font-size: 20px;
    font-weight: 850;
}

.category-grid span {
    display: block;
    margin-top: 8px;
    color: var(--wy-muted);
}

.two-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
}

.compact-list {
    overflow: hidden;
}

.compact-list a {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--wy-line);
}

.compact-list a:last-child {
    border-bottom: 0;
}

.compact-list span {
    color: var(--wy-text);
    font-weight: 800;
}

.compact-list em {
    color: var(--wy-muted);
    font-style: normal;
    font-size: 13px;
}

.seo-copy .tools-inner,
.faq-section .tools-inner {
    max-width: 980px;
}

.faq-list {
    display: grid;
    gap: 12px;
}

.faq-list details {
    border: 1px solid var(--wy-line);
    border-radius: 14px;
    background: #fff;
    padding: 18px 20px;
}

.wy-tools.is-dark .faq-list details {
    background: #11182a;
}

.faq-list summary {
    color: var(--wy-text);
    cursor: pointer;
    font-weight: 850;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
}

.breadcrumb a,
.breadcrumb strong {
    color: #fff;
}

.tool-layout main {
    min-width: 0;
}

.tool-sidebar {
    display: grid;
    gap: 18px;
}

.content-block {
    margin-top: 22px;
    padding: 28px;
}

.content-block ol {
    display: grid;
    gap: 10px;
    padding-left: 20px;
}

.example-card {
    border-top: 1px solid var(--wy-line);
    padding-top: 16px;
}

.example-card:first-of-type {
    border-top: 0;
    padding-top: 0;
}

.example-card h3 {
    color: var(--wy-text);
    font-size: 18px;
    font-weight: 850;
}

.wy-ad-slot {
    display: block;
    max-width: 1180px;
    min-height: 92px;
    margin: 26px auto;
    border: 1px dashed rgba(0, 91, 172, 0.28);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.72);
    color: #8a94a8;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 12px;
}

.wy-ad-slot .adsbygoogle {
    display: block;
    min-height: 90px;
}

.wy-tools.is-dark .wy-ad-slot {
    background: rgba(255, 255, 255, 0.05);
}

@media screen and (max-width: 1280px) {
    .wy-tool-grid,
    .category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media screen and (max-width: 1024px) {
    .wy-hero {
        padding: 125px 0 70px;
    }

    .wy-hero h1 {
        font-size: 42px;
    }

    .wy-tool-grid,
    .wy-tool-grid.small,
    .category-grid,
    .two-columns {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tool-layout {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 640px) {
    .wy-hero h1 {
        font-size: 32px;
    }

    .wy-hero p {
        font-size: 17px;
    }

    .wy-search input {
        height: 56px;
        font-size: 15px;
    }

    .wy-tool-grid,
    .wy-tool-grid.small,
    .category-grid,
    .two-columns {
        grid-template-columns: 1fr;
    }

    .wy-section {
        padding: 52px 0;
    }
}
