.popular-tools {
    width: 900px;
    max-width: 95%;
    margin: 0 auto 10px auto;
}

.popular-tools h2 {
    font-size: 17px;
    font-weight: 700;
    color: #111;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #000;
}

.pt-grid {
    display: flex;
    gap: 12px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.pt-item {
    flex: 1;
    min-width: 0;
}

.pt-item a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #333;
    padding: 16px 10px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    background: #fafafa;
    transition: border-color 0.2s, background 0.2s, transform 0.15s;
    text-align: center;
    height: 100%;
}

.pt-item a:hover {
    border-color: #bbb;
    background: #f3f3f3;
    transform: translateY(-2px);
}

.pt-item.is-active a {
    background: #111;
    border-color: #111;
    color: #fff;
}

.pt-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #ebebeb;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pt-item.is-active .pt-icon {
    background: rgba(255, 255, 255, 0.15);
}

.pt-icon svg {
    width: 20px;
    height: 20px;
    stroke: #333;
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pt-item.is-active .pt-icon svg {
    stroke: #fff;
}

.pt-name {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    color: inherit;
}

.pt-desc {
    font-size: 11px;
    color: #888;
    line-height: 1.3;
}

.pt-item.is-active .pt-desc {
    color: rgba(255, 255, 255, 0.55);
}

@media (max-width: 768px) {
    .pt-grid {
        flex-wrap: wrap;
    }

    .pt-item {
        flex: 0 0 calc(50% - 6px);
    }

    .pt-item a {
        padding: 12px 8px;
    }

    .pt-name {
        font-size: 12px;
    }
}

@media (max-width: 400px) {
    .pt-item {
        flex: 0 0 100%;
    }
}
