.tool-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.cdn-highlight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
}

.cdn-highlight-card {
    position: relative;
    padding: 1.75rem;
    border-radius: 1.25rem;
    color: #ffffff;
    box-shadow: 0 18px 35px rgba(17, 24, 39, 0.2);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(6px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cdn-highlight-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 48px rgba(17, 24, 39, 0.28);
}

.cdn-highlight-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.cdn-highlight-card p {
    margin-bottom: 1.25rem;
    line-height: 1.6;
}

.cdn-highlight-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    font-size: 0.85rem;
    background-color: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(4px);
}

.gradient-1 {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
}

.gradient-2 {
    background: linear-gradient(135deg, #ec4899, #f59e0b);
}

.gradient-3 {
    background: linear-gradient(135deg, #0ea5e9, #14b8a6);
}

.cdn-search-bar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: linear-gradient(135deg, rgba(66, 133, 244, 0.08), rgba(14, 165, 233, 0.08));
    border-radius: 1rem;
    padding: 1.5rem;
    border: 1px solid rgba(66, 133, 244, 0.12);
}

.cdn-search-input {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.cdn-search-input input[type="search"] {
    flex: 1;
    min-width: 220px;
    padding: 0.85rem 1rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(107, 114, 128, 0.3);
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.cdn-search-input input[type="search"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.15);
}

.cdn-filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.cdn-tag {
    border: 1px solid rgba(66, 133, 244, 0.2);
    background: rgba(255, 255, 255, 0.85);
    padding: 0.45rem 0.95rem;
    border-radius: 999px;
    font-size: 0.95rem;
    color: var(--primary-color);
    cursor: pointer;
    transition: all 0.2s ease;
}

.cdn-tag:hover,
.cdn-tag.active {
    background: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(66, 133, 244, 0.25);
}

.cdn-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.cdn-stat-card {
    background: var(--surface-color);
    border-radius: 1rem;
    padding: 1.25rem;
    border: 1px solid rgba(17, 24, 39, 0.08);
    box-shadow: 0 12px 24px rgba(17, 24, 39, 0.08);
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.cdn-stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.cdn-stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.cdn-stat-meta {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.cdn-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.cdn-card {
    background: var(--surface-color);
    border-radius: 1.25rem;
    padding: 1.5rem;
    border: 1px solid rgba(17, 24, 39, 0.08);
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.12);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.cdn-card:hover {
    transform: translateY(-8px);
    border-color: rgba(66, 133, 244, 0.35);
    box-shadow: 0 24px 42px rgba(15, 23, 42, 0.16);
}

.cdn-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cdn-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: rgba(66, 133, 244, 0.12);
    color: var(--primary-color);
}

.cdn-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.cdn-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.4rem;
}

.cdn-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    font-size: 0.8rem;
    color: var(--secondary-color);
    background: rgba(107, 114, 128, 0.12);
}

.cdn-card-description {
    color: var(--text-secondary);
    line-height: 1.6;
    min-height: 72px;
}

.cdn-card-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.cdn-card-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.cdn-card-features li span {
    font-size: 1.1rem;
}

.cdn-card-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.cdn-link-button {
    padding: 0.65rem 1.2rem;
    border-radius: 0.75rem;
    background: var(--primary-color);
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.cdn-link-button:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 22px rgba(66, 133, 244, 0.25);
}

.cdn-card-meta {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.cdn-empty {
    margin-top: 2rem;
    text-align: center;
    padding: 2.5rem;
    border-radius: 1.25rem;
    background: rgba(66, 133, 244, 0.06);
    border: 1px dashed rgba(66, 133, 244, 0.25);
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .cdn-highlight-card {
        padding: 1.5rem;
    }

    .cdn-search-bar {
        padding: 1.25rem;
    }

    .cdn-grid {
        grid-template-columns: 1fr;
    }

    .cdn-card {
        padding: 1.25rem;
    }

    .cdn-card-description {
        min-height: auto;
    }
}
