.tool-header .tool-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.tool-header .tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #fff;
}

.tool-header .tag-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.tool-header .tag-success {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.tool-header .tag-info {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.batch-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    margin-bottom: 32px;
}

.batch-card {
    background: linear-gradient(135deg, #f5f7fa 0%, #e6ecf8 100%);
    border-radius: 18px;
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    padding: 28px;
    position: relative;
    overflow: hidden;
}

.batch-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(120% 120% at 10% 10%, rgba(102, 126, 234, 0.15), transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.batch-card:hover::after {
    opacity: 1;
}

.batch-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
}

.batch-card-header h2 {
    font-size: 1.6rem;
    margin-bottom: 8px;
    color: #1f2937;
}

.batch-card-subtitle {
    margin: 0;
    color: #475569;
    line-height: 1.6;
    font-size: 0.95rem;
}

.input-metrics {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: right;
    font-size: 0.9rem;
    color: #475569;
}

.metric-valid {
    color: #047857;
    font-weight: 600;
}

.metric-invalid {
    color: #dc2626;
    font-weight: 600;
}

.metric-duplicate {
    color: #ea580c;
    font-weight: 600;
}

.textarea-wrapper {
    position: relative;
    margin-bottom: 20px;
}

.batch-textarea {
    width: 100%;
    min-height: 260px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.7);
    padding: 18px 20px;
    font-size: 0.95rem;
    line-height: 1.6;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
    resize: vertical;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.batch-textarea:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.18);
}

.textarea-hint {
    margin-top: 8px;
    font-size: 0.85rem;
    color: #64748b;
}

.batch-options {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 14px;
    border: 1px dashed rgba(99, 102, 241, 0.25);
    margin-bottom: 22px;
}

.option-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #334155;
}

.option-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    border-radius: 6px;
    border: 1px solid rgba(71, 85, 105, 0.4);
    cursor: pointer;
}

.option-item.delay-control {
    padding: 6px 12px;
    background: rgba(226, 232, 240, 0.7);
    border-radius: 10px;
}

.option-item.delay-control input[type="number"] {
    width: 90px;
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid rgba(148, 163, 184, 0.6);
    font-size: 0.9rem;
}

.unit-label {
    font-size: 0.85rem;
    color: #64748b;
}

.batch-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.batch-actions .btn {
    min-width: 128px;
}

.primary-actions,
.secondary-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(148, 163, 184, 0.4);
    color: #334155;
}

.btn-ghost:hover {
    background: rgba(99, 102, 241, 0.12);
    border-color: rgba(99, 102, 241, 0.45);
    color: #312e81;
}

.status-message {
    margin: 0;
    padding: 14px 16px;
    border-radius: 12px;
    background: rgba(244, 244, 249, 0.9);
    color: #475569;
    font-size: 0.92rem;
    line-height: 1.5;
    border: 1px solid rgba(148, 163, 184, 0.35);
}

.info-card {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    color: rgba(255, 255, 255, 0.95);
    border: none;
    box-shadow: 0 18px 40px rgba(76, 29, 149, 0.35);
}

.info-card h2 {
    font-size: 1.4rem;
    margin-bottom: 16px;
    color: #fff;
}

.info-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info-list li {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 12px 14px;
    line-height: 1.5;
}

.info-list strong {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
}

.info-card-footer {
    margin-top: 20px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.18);
    font-size: 0.92rem;
}

.preview-section {
    background: linear-gradient(135deg, #eef2ff 0%, #e0f2fe 100%);
    border-radius: 18px;
    padding: 26px;
    margin-bottom: 28px;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.7);
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 18px;
}

.preview-header h2 {
    margin-bottom: 6px;
    font-size: 1.5rem;
    color: #1f2937;
}

.preview-subtitle {
    margin: 0;
    font-size: 0.92rem;
    color: #475569;
}

.preview-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 380px;
    overflow-y: auto;
}

.preview-placeholder {
    padding: 20px;
    text-align: center;
    color: #64748b;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 14px;
}

.preview-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(148, 163, 184, 0.4);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.preview-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.preview-checkbox {
    width: 18px;
    height: 18px;
    margin-top: 4px;
    flex-shrink: 0;
}

.preview-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 20px rgba(99, 102, 241, 0.18);
    border-color: rgba(99, 102, 241, 0.35);
}

.preview-item.valid {
    border-left: 4px solid #22c55e;
}

.preview-item.invalid {
    border-left: 4px solid #ef4444;
    background: rgba(254, 202, 202, 0.25);
}

.preview-item.duplicate {
    border-left: 4px solid #f97316;
    background: rgba(255, 237, 213, 0.35);
}

.preview-item.selected {
    border-color: rgba(59, 130, 246, 0.5);
    background: rgba(59, 130, 246, 0.15);
}

.preview-checkbox {
    margin-top: 3px;
}

.url-text {
    font-size: 0.95rem;
    color: #1e293b;
    word-break: break-all;
}

.url-meta {
    font-size: 0.8rem;
    color: #64748b;
    display: flex;
    gap: 12px;
    margin-top: 6px;
    flex-wrap: wrap;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.badge-valid {
    background: rgba(34, 197, 94, 0.15);
    color: #166534;
}

.badge-invalid {
    background: rgba(239, 68, 68, 0.15);
    color: #991b1b;
}

.badge-duplicate {
    background: rgba(249, 115, 22, 0.18);
    color: #9a3412;
}

.badge-selected {
    background: rgba(59, 130, 246, 0.18);
    color: #1d4ed8;
}

.faq-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 28px;
}

.workflow-card,
.security-card {
    background: rgba(255, 255, 255, 0.94);
    border-radius: 18px;
    padding: 24px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    box-shadow: 0 12px 22px rgba(15, 23, 42, 0.12);
}

.workflow-card h2,
.security-card h2 {
    font-size: 1.45rem;
    margin-bottom: 16px;
    color: #1f2937;
}

.workflow-steps {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.workflow-steps li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(99, 102, 241, 0.08);
    color: #312e81;
    font-weight: 500;
}

.step-index {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.security-card ul {
    margin: 0;
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    color: #475569;
    line-height: 1.6;
}

@media (max-width: 1200px) {
    .batch-grid {
        grid-template-columns: 1fr;
    }

    .info-card {
        order: 2;
    }
}

@media (max-width: 992px) {
    .faq-section {
        grid-template-columns: 1fr;
    }

    .preview-section {
        padding: 22px;
    }
}

@media (max-width: 768px) {
    .batch-card,
    .preview-section,
    .workflow-card,
    .security-card {
        padding: 20px;
    }

    .batch-textarea {
        min-height: 220px;
    }

    .batch-card-header {
        flex-direction: column;
        align-items: stretch;
    }

    .input-metrics {
        text-align: left;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
    }

    .batch-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .primary-actions,
    .secondary-actions {
        justify-content: stretch;
    }

    .preview-header {
        flex-direction: column;
        align-items: stretch;
    }

    .workflow-steps li {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}
