.tool-page {
    padding-top: 100px;
    padding-bottom: 60px;
    min-height: 100vh;
}

.tool-header {
    margin-bottom: 32px;
}

.tool-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 24px;
    transition: var(--transition);
}

.tool-back:hover {
    color: var(--text);
}

.tool-title-row {
    display: flex;
    align-items: flex-start;
    gap: 24px;
}

.tool-title-row h1 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.tool-badge-inline {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(34, 197, 94, 0.1);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.2);
    margin-bottom: 12px;
}

.tool-badge-inline.tool-badge-exp {
    background: rgba(249, 115, 22, 0.1);
    color: #fb923c;
    border-color: rgba(249, 115, 22, 0.2);
}

.tool-description {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 700px;
}

.tool-embed {
    width: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg-card);
}

.tool-embed iframe {
    width: 100%;
    height: calc(100vh - 200px);
    min-height: 750px;
    border: none;
    display: block;
}

.tool-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 40px;
    min-height: 400px;
}

.placeholder-icon {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.08);
    border-radius: 24px;
    color: var(--primary-light);
    margin-bottom: 24px;
}

.tool-placeholder h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.tool-placeholder p {
    font-size: 1rem;
    color: var(--text-muted);
    max-width: 400px;
    margin-bottom: 24px;
    line-height: 1.6;
}

.nav-links a.active {
    color: var(--primary-light);
}

@media (max-width: 768px) {
    .tool-page {
        padding-top: 80px;
    }

    .tool-embed iframe {
        height: calc(100vh - 220px);
        min-height: 500px;
    }

    .tool-placeholder {
        padding: 60px 24px;
        min-height: 300px;
    }
}
