/* Shared tool SEO + guide modal styles (non-critical; deferred on merge_pdf) */
.merge-seo-content {
    margin-top: 2.5rem;
    padding-top: 1.75rem;
    border-top: 1px solid var(--border-color, #dee2e6);
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
}
.merge-seo-content--modal {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
    max-width: none;
    text-align: start;
}
.merge-seo-steps {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: merge-howto-step;
}
.merge-seo-steps li {
    counter-increment: merge-howto-step;
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    padding: 0.55rem 0;
    color: #495057;
    font-size: 0.95rem;
    line-height: 1.55;
}
.merge-seo-steps li::before {
    content: counter(merge-howto-step);
    flex-shrink: 0;
    width: 1.65rem;
    height: 1.65rem;
    border-radius: 50%;
    background: #111;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.1rem;
}
.merge-seo-faq .accordion-button {
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.85rem 1rem;
    gap: 0.65rem;
    box-shadow: none;
}
.merge-seo-faq .accordion-button:not(.collapsed) {
    background: #f8f9fa;
    color: #111;
    box-shadow: none;
}
.merge-seo-faq .accordion-button::before {
    content: '';
    flex-shrink: 0;
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 50%;
    background: #111;
}
.merge-seo-faq .accordion-button::after {
    --bs-accordion-btn-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23111'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    --bs-accordion-btn-active-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23111'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}
.merge-seo-faq .accordion-item {
    border-color: var(--border-color, #dee2e6);
}
.tool-seo-visible-wrap {
    max-width: 960px;
}

/* unified guide modal — same style as org FAQ (API/SSO) */
.premium-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}
.premium-modal-overlay.active { display: flex; }
.premium-modal {
    background: #fff;
    border-radius: 14px;
    max-width: 520px;
    width: 100%;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: itqanGuidePmIn 0.25s ease-out;
}
@keyframes itqanGuidePmIn {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.premium-modal__header {
    position: relative;
    background: linear-gradient(135deg, #2b2b2b 0%, #1a1a1a 100%);
    color: #fff;
    padding: 30px 24px 26px;
    text-align: center;
}
.premium-modal__header h3 {
    margin: 0 0 8px;
    font-size: 22px;
    color: #ffffff;
    font-weight: 700;
}
.premium-modal__header p {
    margin: 0;
    font-size: 14px;
    color: #e8e8e8;
    line-height: 1.6;
}
.premium-modal__close {
    position: absolute;
    top: 12px;
    left: 12px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    opacity: 0.85;
    line-height: 1;
}
.premium-modal__close:hover { opacity: 1; }
.premium-modal__body {
    padding: 22px 24px 26px;
    text-align: center;
}
.itqan-guide-modal .premium-modal {
    max-width: 680px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}
.itqan-guide-modal .premium-modal__body,
.itqan-guide-modal__body {
    overflow-y: auto;
    max-height: calc(90vh - 130px);
    padding-top: 8px;
    text-align: start;
}
.itqan-guide-section {
    margin-bottom: 22px;
}
.itqan-guide-section:last-child {
    margin-bottom: 0;
}
.itqan-guide-section h4 {
    margin: 0 0 10px;
    font-size: .92rem;
    font-weight: 700;
    color: #111827;
    display: flex;
    align-items: center;
    gap: 8px;
}
.itqan-guide-section h4 i {
    color: #6b7280;
    font-size: .85rem;
}
.itqan-guide-item {
    border: 1px solid #eef0f4;
    border-radius: 10px;
    margin-bottom: 8px;
    background: #fff;
}
.itqan-guide-item summary {
    padding: 12px 14px;
    cursor: pointer;
    font-size: .86rem;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.55;
    list-style: none;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}
.itqan-guide-item summary::-webkit-details-marker { display: none; }
.itqan-guide-item summary::before {
    content: '+';
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    border-radius: 4px;
    background: #f3f4f6;
    color: #374151;
    font-size: .78rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}
.itqan-guide-item[open] summary::before {
    content: '−';
    background: #111;
    color: #fff;
}
.itqan-guide-item[open] summary {
    border-bottom: 1px solid #f0f2f6;
}
.itqan-guide-a {
    padding: 0 14px 14px 40px;
    font-size: .84rem;
    color: #4b5563;
    line-height: 1.75;
}
