.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:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }
    .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; }

    .edit-grid {
        display: grid;
        grid-template-columns: 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;
    }

    .platform-header {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-bottom: 16px;
    }
    .platform-name {
        font-size: 15px;
        font-weight: 600;
        color: var(--text-dark);
    }

    .preview-cards-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* ===== Facebook Card ===== */
    .fb-card {
        border: 1px solid #dadde1;
        border-radius: 8px;
        overflow: hidden;
        background: #fff;
        font-family: Helvetica, Arial, sans-serif;
    }
    .fb-card-image {
        width: 100%;
        height: 250px;
        background: #f0f2f5;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }
    .fb-card-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .fb-placeholder-icon {
        font-size: 48px;
        color: #bec3c9;
    }
    .fb-card-body {
        padding: 12px 14px;
        border-top: 1px solid #dadde1;
        background: #f2f3f5;
    }
    .fb-card-domain {
        font-size: 12px;
        color: #606770;
        text-transform: uppercase;
        margin-bottom: 5px;
        letter-spacing: 0.3px;
    }
    .fb-card-title {
        font-size: 16px;
        font-weight: 600;
        color: #1d2129;
        line-height: 1.35;
        margin-bottom: 5px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .fb-card-desc {
        font-size: 14px;
        color: #606770;
        line-height: 1.4;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

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

    /* ===== LinkedIn Card ===== */
    .li-card {
        border: 1px solid #e0e0e0;
        border-radius: 8px;
        overflow: hidden;
        background: #fff;
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    }
    .li-card-image {
        width: 100%;
        height: 230px;
        background: #f3f6f8;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }
    .li-card-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .li-placeholder-icon {
        font-size: 48px;
        color: #c0c6cc;
    }
    .li-card-body {
        padding: 12px 16px;
        background: #f9fafb;
        border-top: 1px solid #e0e0e0;
    }
    .li-card-title {
        font-size: 14px;
        font-weight: 600;
        color: rgba(0, 0, 0, 0.9);
        line-height: 1.35;
        margin-bottom: 4px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .li-card-domain {
        font-size: 12px;
        color: rgba(0, 0, 0, 0.6);
    }

    @media (max-width: 768px) {
        .url-row { flex-direction: column; }
        .url-row .tool-input { width: 100%; }
        .fb-card-image { height: 180px; }
        .tw-card-image { height: 160px; }
        .li-card-image { height: 170px; }
    }
    @media (max-width: 480px) {
        .fb-card-image { height: 140px; }
        .tw-card-image { height: 130px; }
        .li-card-image { height: 140px; }
    }