.tool-label {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 13px;
        font-weight: 600;
        color: var(--text-light);
        text-transform: uppercase;
        letter-spacing: 0.5px;
        margin-bottom: 6px;
    }
    .tool-input {
        width: 100%;
        padding: 12px 16px;
        border: 1px solid var(--border-light);
        border-radius: 8px;
        font-size: 14px;
        background: var(--bg-light);
        color: var(--text-dark);
        transition: border-color 0.2s;
    }
    .tool-input:focus {
        outline: none;
        border-color: var(--primary-light);
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    }
    .tool-select {
        width: 100%;
        padding: 12px 16px;
        border: 1px solid var(--border-light);
        border-radius: 8px;
        font-size: 14px;
        background: var(--bg-white);
        color: var(--text-dark);
        cursor: pointer;
    }
    .tool-select:focus { outline: none; border-color: var(--primary-light); }
    .btn-tool {
        padding: 12px 20px;
        border: none;
        background: linear-gradient(135deg, #3b82f6, #8b5cf6);
        color: white;
        border-radius: 8px;
        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.2s;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        white-space: nowrap;
    }
    .btn-tool:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3); }
    .btn-tool-outline {
        background: transparent;
        color: var(--primary);
        border: 1px solid var(--border-light);
    }
    .btn-tool-outline:hover { background: var(--bg-light); border-color: var(--primary-light); box-shadow: none; transform: none; }
    .btn-copy-icon {
        background: var(--bg-light);
        border: none;
        width: 40px;
        height: 40px;
        border-radius: 8px;
        cursor: pointer;
        color: var(--primary);
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.2s;
        flex-shrink: 0;
        font-size: 16px;
    }
    .btn-copy-icon:hover { background: var(--primary); color: white; }
    .tool-status {
        padding: 12px 16px;
        border-radius: 8px;
        font-size: 14px;
        margin-bottom: 16px;
        font-weight: 500;
    }
    .tool-status.success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
    .tool-status.error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
    .tool-status.info { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }

    .form-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
    .form-group {
        display: flex;
        flex-direction: column;
    }
    .char-count {
        font-size: 11px;
        color: var(--text-light);
        text-align: right;
        margin-top: 4px;
    }
    .preview-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    /* Facebook Preview Card */
    .fb-preview-card {
        border: 1px solid #dadde1;
        border-radius: 8px;
        overflow: hidden;
        background: #fff;
        font-family: Helvetica, Arial, sans-serif;
    }
    .fb-preview-image {
        width: 100%;
        height: 160px;
        background: #f0f2f5;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }
    .fb-preview-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .fb-preview-content {
        padding: 10px 12px;
        border-top: 1px solid #dadde1;
    }
    .fb-preview-domain {
        font-size: 12px;
        color: #606770;
        text-transform: uppercase;
        margin-bottom: 3px;
    }
    .fb-preview-title {
        font-size: 16px;
        font-weight: 600;
        color: #1d2129;
        line-height: 1.3;
        margin-bottom: 3px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .fb-preview-desc {
        font-size: 14px;
        color: #606770;
        line-height: 1.4;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    /* Twitter Preview Card */
    .tw-preview-card {
        border: 1px solid #e1e8ed;
        border-radius: 14px;
        overflow: hidden;
        background: #fff;
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    }
    .tw-preview-image {
        width: 100%;
        height: 140px;
        background: #f7f9fa;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }
    .tw-preview-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .tw-preview-content {
        padding: 10px 12px;
    }
    .tw-preview-title {
        font-size: 15px;
        font-weight: 700;
        color: #0f1419;
        line-height: 1.3;
        margin-bottom: 2px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .tw-preview-desc {
        font-size: 14px;
        color: #536471;
        line-height: 1.4;
        margin-bottom: 4px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .tw-preview-domain {
        font-size: 13px;
        color: #536471;
        display: flex;
        align-items: center;
        gap: 4px;
    }

    /* Code Block */
    .code-block {
        background: #1e293b;
        color: #e2e8f0;
        padding: 20px;
        border-radius: 8px;
        font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
        font-size: 13px;
        line-height: 1.6;
        overflow-x: auto;
        white-space: pre-wrap;
        word-break: break-all;
        margin: 0;
    }

    @media (max-width: 768px) {
        .form-grid { grid-template-columns: 1fr; }
        .form-group[style*="grid-column"] { grid-column: auto !important; }
        .preview-grid { grid-template-columns: 1fr; }
        .fb-preview-image, .tw-preview-image { height: 120px; }
    }