.cid-backlink-checker {
    --cid-orange: #ee591f;
    --cid-orange-dark: #d94712;
    --cid-black: #111111;
    --cid-white: #ffffff;
    --cid-border: #e5e5e5;
    --cid-muted: #666666;
    --cid-bg: #fafafa;

    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 24px;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--cid-black);
    background: var(--cid-white);
}

.cid-backlink-checker *,
.cid-backlink-checker *::before,
.cid-backlink-checker *::after {
    box-sizing: border-box;
}

.cid-backlink-checker h3 {
    margin: 0 0 22px;
    color: var(--cid-black);
    font-size: clamp(22px, 3vw, 30px);
    line-height: 1.2;
    font-weight: 700;
}

.cid-bc-form {
    width: 100%;
}

.cid-bc-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--cid-black);
}

.cid-bc-search {
    display: flex;
    width: 100%;
    min-height: 52px;
}

.cid-bc-search input {
    flex: 1 1 auto;
    min-width: 0;
    height: 52px;
    padding: 0 16px;
    border: 1px solid #cccccc;
    border-right: 0;
    border-radius: 7px 0 0 7px;
    outline: none;
    background: var(--cid-white);
    color: var(--cid-black);
    font-size: 15px;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.cid-bc-search input:focus {
    border-color: var(--cid-orange);
    box-shadow: 0 0 0 2px rgba(238, 89, 31, .12);
}

.cid-bc-search button {
    position: relative;
    flex: 0 0 auto;
    min-width: 155px;
    height: 52px;
    padding: 0 20px;
    border: 1px solid var(--cid-orange);
    border-radius: 0 7px 7px 0;
    background: var(--cid-orange);
    color: var(--cid-white);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease;
}

.cid-bc-search button:hover {
    background: var(--cid-orange-dark);
    border-color: var(--cid-orange-dark);
}

.cid-bc-search button:disabled {
    opacity: .75;
    cursor: wait;
}

.cid-bc-spinner {
    display: none;
    width: 16px;
    height: 16px;
    margin-left: 7px;
    vertical-align: -3px;
    border: 2px solid rgba(255,255,255,.45);
    border-top-color: #fff;
    border-radius: 50%;
    animation: cidBcSpin .7s linear infinite;
}

.cid-bc-search button.is-loading .cid-bc-spinner {
    display: inline-block;
}

.cid-bc-options {
    display: flex;
    align-items: center;
    min-height: 40px;
    margin-top: 8px;
}

.cid-bc-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--cid-muted);
    cursor: pointer;
}

.cid-bc-checkbox input {
    width: 16px;
    height: 16px;
    accent-color: var(--cid-orange);
}

.cid-bc-message {
    min-height: 24px;
    margin-top: 12px;
    font-size: 14px;
    line-height: 1.5;
}

.cid-bc-message.error {
    color: #b42318;
}

.cid-bc-message.success {
    color: #18794e;
}

.cid-bc-results {
    margin-top: 18px;
}

.cid-bc-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.cid-bc-card {
    min-height: 95px;
    padding: 16px;
    border: 1px solid var(--cid-border);
    border-radius: 8px;
    background: var(--cid-bg);
}

.cid-bc-card-label {
    display: block;
    margin-bottom: 9px;
    color: var(--cid-muted);
    font-size: 13px;
}

.cid-bc-card strong {
    display: block;
    color: var(--cid-black);
    font-size: 25px;
    line-height: 1;
}

.cid-bc-table-wrap {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--cid-border);
    border-radius: 8px;
    background: var(--cid-white);
    -webkit-overflow-scrolling: touch;
}

.cid-bc-table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
    table-layout: fixed;
}

.cid-bc-table th,
.cid-bc-table td {
    padding: 13px 14px;
    border-bottom: 1px solid var(--cid-border);
    text-align: left;
    vertical-align: middle;
    font-size: 13px;
}

.cid-bc-table th {
    background: var(--cid-bg);
    color: var(--cid-black);
    font-weight: 700;
    white-space: nowrap;
}

.cid-bc-table td {
    color: #333333;
}

.cid-bc-table tbody tr:last-child td {
    border-bottom: 0;
}

.cid-bc-table th:nth-child(1),
.cid-bc-table td:nth-child(1) {
    width: 31%;
}

.cid-bc-table th:nth-child(2),
.cid-bc-table td:nth-child(2) {
    width: 19%;
}

.cid-bc-table th:nth-child(3),
.cid-bc-table td:nth-child(3) {
    width: 15%;
}

.cid-bc-table th:nth-child(4),
.cid-bc-table td:nth-child(4) {
    width: 35%;
}

.cid-bc-table a {
    color: var(--cid-orange);
    text-decoration: none;
    word-break: break-word;
}

.cid-bc-table a:hover {
    text-decoration: underline;
}

.cid-bc-type {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 20px;
    background: #f1f1f1;
    color: #333333;
    font-size: 12px;
    font-weight: 600;
}

.cid-bc-type.dofollow {
    background: #fff0e9;
    color: var(--cid-orange-dark);
}

.cid-bc-more {
    display: block;
    margin: 16px auto 0;
    min-height: 42px;
    padding: 0 20px;
    border: 1px solid var(--cid-orange);
    border-radius: 6px;
    background: var(--cid-white);
    color: var(--cid-orange);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.cid-bc-more:hover {
    background: var(--cid-orange);
    color: var(--cid-white);
}

@keyframes cidBcSpin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 700px) {
    .cid-backlink-checker {
        padding: 18px 12px;
    }

    .cid-bc-search {
        display: block;
    }

    .cid-bc-search input {
        width: 100%;
        height: 50px;
        border-right: 1px solid #cccccc;
        border-radius: 7px;
    }

    .cid-bc-search button {
        width: 100%;
        height: 50px;
        margin-top: 8px;
        border-radius: 7px;
    }

    .cid-bc-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 390px) {
    .cid-bc-summary {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cid-bc-search input,
    .cid-bc-search button,
    .cid-bc-more {
        transition: none;
    }

    .cid-bc-spinner {
        animation: none;
    }
}