@font-face {
    font-family: 'Fira Sans';
    font-style: normal;
    font-weight: 300;
    src: url('fonts/fira-sans-v9-latin-300.woff2') format('woff2'),
         url('fonts/fira-sans-v9-latin-300.woff') format('woff');
    font-display: swap;
}

@font-face {
    font-family: 'Fira Sans';
    font-style: normal;
    font-weight: 400;
    src: url('fonts/fira-sans-v9-latin-regular.woff2') format('woff2'),
         url('fonts/fira-sans-v9-latin-regular.woff') format('woff');
    font-display: swap;
}

@font-face {
    font-family: 'Fira Sans';
    font-style: normal;
    font-weight: 500;
    src: url('fonts/fira-sans-v9-latin-500.woff2') format('woff2'),
         url('fonts/fira-sans-v9-latin-500.woff') format('woff');
    font-display: swap;
}

@font-face {
    font-family: 'Fira Sans';
    font-style: normal;
    font-weight: 700;
    src: url('fonts/fira-sans-v9-latin-700.woff2') format('woff2'),
         url('fonts/fira-sans-v9-latin-700.woff') format('woff');
    font-display: swap;
}

.kp-wrapper {
    max-width: 100%;
    font-family: inherit;
}

.kp-search {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

.kp-search-input {
    flex: 0 1 500px;
    padding: 10px 15px;
    font-size: 14px;
    border: 2px solid #ddd;
    outline: none;
}

.kp-search-input:focus {
    border-color: #195f98;
}

.kp-search-btn {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background-color: #195f98;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.kp-search-btn:hover {
    background-color: #005a87;
}

.kp-search-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.kp-disclaimer {
    font-size: 13px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 24px;
    text-align: justify;
}

.kp-disclaimer a {
    color: #b8960c;
    text-decoration: none;
}

.kp-disclaimer a:hover {
    text-decoration: underline;
}

.kp-results {
    display: none;
}

.kp-tabs {
    display: flex;
    flex-wrap: wrap;
    border-bottom: 2px solid #ddd;
}

.kp-tab {
    display: inline-block;
    padding: 10px 20px;
    font-size: 14px;
    border: 1px solid #ddd;
    color: rgb(25, 95, 152);
    border-bottom: 2px solid #ddd;
    border-radius: 0;
    background: #fff;
    margin-bottom: -2px;
    margin-right: -1px;
    position: relative;
    z-index: 1;
    cursor: pointer;
}

.kp-tab:hover {
    background: #f5f5f5;
}

.kp-tab--active {
    font-weight: 600;
    border-bottom: 1px solid #ddd;
    background: rgb(249, 249, 249);
}

.kp-panel {
    display: none;
}

.kp-table-wrap {
    max-height: 500px;
    overflow: auto;
    border: 1px solid #ddd;
    border-top: none;
    padding-left: 20px;
    padding-right: 20px;
}

.kp-table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
    font-size: 14px;
}

.kp-table th {
    text-align: left;
    padding: 10px 12px;
    padding-top: 20px;
    font-weight: 700;
    border-bottom: 2px solid #ddd;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 1;
}

.kp-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #eee;
}

.kp-table tr:hover td {
    background: #fafafa;
}

.kp-more-hint {
    font-weight: 600;
    color: #333;
}

.kp-more-hint a {
    color: #b8960c;
    text-decoration: none;
}

.kp-more-hint a:hover {
    text-decoration: underline;
}

.kp-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
    border: 1px solid #ddd;
    border-top: none;
    background: #f9f9f9;
    text-align: center;
}

.kp-empty-state__icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.kp-empty-state__title {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
}

.kp-empty-state__text {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
    max-width: 400px;
    line-height: 1.5;
}

.kp-empty-state__btn {
    display: inline-block;
    padding: 12px 28px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background-color: #3b5998;
    border-radius: 4px;
    text-decoration: none;
}

.kp-empty-state__btn:hover {
    background-color: #2d4a86;
    color: #fff;
    text-decoration: none;
}

.kp-rate-limit {
    padding: 16px;
    font-size: 14px;
    line-height: 1.6;
    border: 1px solid #ddd;
    color: #333;
}

.kp-rate-limit a {
    color: #b8960c;
    text-decoration: none;
}

.kp-rate-limit a:hover {
    text-decoration: underline;
}

.kp-error,
.kp-seo-check__error {
    color: #c00;
    font-size: 14px;
    margin-top: 12px;
    display: none;
}

.kp-seo-check__fresh-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 48px 24px;
    color: #555;
    font-size: 16px;
}

.kp-seo-check__fresh-loader .sc-spinner {
    width: 32px;
    height: 32px;
    border-width: 3px;
}

.kp-seo-check__fresh-loader__text {
    font-family: "Fira Sans", "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif;
}

/* SEO Check results */
.kp-seo-check__results {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.kp-seo-check__results.sc-visible {
    opacity: 1;
    transform: translateY(0);
}

.sc-header {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
}

.sc-header__main {
    flex: 1;
    min-width: 0;
}

.sc-header__title {
    font-size: 1.66rem;
    font-weight: 500;
    line-height: 3rem;
    color: #3e3e3e;
    font-family: "Fira Sans", "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif;
    margin: 0 0 4px 0;
}

.sc-header__date {
    font-size: 12px;
    color: #888;
    margin: 0 0 12px 0;
}

.sc-scores-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    margin-bottom: 0;
}

.sc-scores-table tr {
    border-top: 1px solid #ddd;
}

.sc-scores-table tr:nth-child(odd) {
    background-color: #fff;
}

.sc-scores-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.sc-scores-table tr:hover {
    background-color: #f3f3f3;
}

.sc-scores-table td {
    padding: .5rem .5rem .5rem 0rem;
}

.sc-scores-table td:first-child {
    color: #555;
    white-space: nowrap;
    width: 1%;
}

.sc-scores-table .sc-val--highlight {
    font-weight: 700;
}

.sc-share-buttons {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    justify-content: space-between;
}

.sc-share-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #868585;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.sc-share-button:hover {
    background: #005a87;
    transform: translateY(-2px);
    color: white;
}

.sc-share-button svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.sc-copy-button {
    border: none;
    padding: 0;
    cursor: pointer;
    font: inherit;
}

.sc-copy-toast {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translate(-50%, 16px);
    background: #1A5F98;
    color: #fff;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 14px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 99999;
}

.sc-copy-toast--visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

.sc-header__preview {
    flex: 0 0 40%;
}

.sc-preview-box {
    position: relative;
    border: 1px solid #ddd;
    aspect-ratio: 16 / 10;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    background: #fff;
    overflow: hidden;
}

.sc-preview-img {
    width: 100%;
    height: auto;
    filter: blur(3px);
}

.sc-preview-loading {
    position: absolute;
    inset: 0;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sc-spinner--preview {
    width: 32px !important;
    height: 32px !important;
    border-width: 3px !important;
}

.sc-cms-info {
    font-size: 13px;
    color: #3e3e3e;
    margin-top: 8px;
}

.sc-section-title {
    font-size: 1.66rem;
    font-weight: 500;
    color: #3e3e3e;
    font-family: "Fira Sans", "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif;
    margin: 24px 0 12px 0;
}

.sc-grid {
    display: grid;
    gap: 8px 16px;
}

.sc-grid--3 {
    grid-template-columns: repeat(3, 1fr);
}

.sc-item {
    font-size: 14px;
    color: #3e3e3e;
    font-family: "Fira Sans", "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif;
    font-style: normal;
    font-weight: 300;
    line-height: 1.5;
    padding: 4px 0;
}

.info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    padding-top: 2px;
    background-color: #868585;
    color: white;
    border-radius: 50%;
    font-size: 11px;
    font-weight: bold;
    cursor: pointer;
    margin-left: 4px;
    vertical-align: middle;
    position: relative;
    font-style: normal;
}

.info-tooltip-popup {
    position: absolute;
    background: #333;
    color: #fff;
    font-size: 12px;
    font-weight: 400;
    padding: 4px 8px;
    border-radius: 4px;
    white-space: normal;
    z-index: 99999;
    pointer-events: none;
    transform: translateY(-100%);
    margin-top: -4px;
    line-height: 1.4;
    box-sizing: border-box;
    text-align: center;
}

.sc-val--highlight {
    font-weight: 700;
}

.sc-color-red {
    color: #c00;
}

.sc-color-orange {
    color: #f90;
}

.sc-color-green {
    color: #28a745;
}

.sc-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid #ddd;
    border-top-color: #333;
    border-radius: 50%;
    animation: sc-spin 0.6s linear infinite;
    vertical-align: middle;
}

@keyframes sc-spin {
    to { transform: rotate(360deg); }
}

.sc-prio-checks {
    margin-bottom: 24px;
}

.sc-prio-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: .5rem;
    border-top: 1px solid #ddd;
}

.sc-prio-item:nth-child(odd) {
    background-color: #fff;
}

.sc-prio-item:nth-child(even) {
    background-color: #f9f9f9;
}

.sc-prio-item:hover {
    background-color: #f3f3f3;
}

.sc-prio-label {
    color: #2a6496;
    font-size: 15px;
}

.sc-prio-item--clickable .sc-prio-label {
    cursor: pointer;
    text-decoration: underline;
}

.sc-prio-item--clickable .sc-prio-label:hover {
    color: #1a4a70;
}

.sc-prio-desc {
    width: 100%;
    font-size: 13px;
    color: #555;
    line-height: 1.5;
    padding: 8px 0 2px;
}

.sc-prio-icons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sc-prio-status {
    display: inline-flex;
    align-items: center;
    font-size: 15px;
    min-width: 20px;
    justify-content: center;
}

.sc-check-pass {
    color: #28a745;
}

.sc-check-fail {
    color: #c00;
}

/* Pagespeed detail sections */
.sc-psd {
    margin-bottom: 24px;
}

.sc-psd__toggle {
    margin-bottom: 12px;
}

.sc-psd__toggle-btn {
    background: none;
    border: none;
    color: #b5a355;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    padding: 0;
}

.sc-psd__toggle-btn:hover:not(:disabled) {
    text-decoration: underline;
}

.sc-psd__toggle-btn:disabled {
    color: #ccc;
    cursor: default;
}

.sc-psd__subtitle {
    font-size: 20px;
    font-weight: 500;
    line-height: 28px;
    color: #3e3e3e;
    font-family: "Fira Sans", "Helvetica Neue", Helvetica, Roboto, Arial, sans-serif;
    margin: 0 0 16px 0;
}

.sc-psd__card {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 16px;
    background: #fff;
}

.sc-psd__card-head {
    font-size: 18px;
    font-weight: 300;
    color: #283645;
    margin-bottom: 16px;
}

.sc-psd__metrics {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px 24px;
    margin-bottom: 16px;
}

.sc-psd__metric {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #3e3e3e;
}

.sc-psd__metric-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.sc-psd__metric-dot--green { background: #28a745; }
.sc-psd__metric-dot--orange { background: #f90; }
.sc-psd__metric-dot--red { background: #c00; }

.sc-psd__metric-val {
    margin-left: auto;
    font-weight: 500;
}

.sc-psd__filmstrip {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.sc-psd__filmstrip img {
    height: 80px;
    width: auto;
    border: 1px solid #eee;
    border-radius: 2px;
    flex-shrink: 0;
}

.sc-psd__opp-item {
    border-bottom: 1px solid #eee;
}

.sc-psd__opp-item:last-child {
    border-bottom: none;
}

.sc-psd__opp-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    cursor: pointer;
}

.sc-psd__opp-head:hover {
    background: #fafafa;
}

.sc-psd__opp-label {
    flex: 1 1 0;
    min-width: 0;
    font-size: 14px;
    color: #3e3e3e;
}

.sc-psd__opp-bar-wrap {
    flex: 0 0 60px;
    height: 8px;
    background: #eee;
    border-radius: 4px;
    overflow: hidden;
}

.sc-psd__opp-bar {
    height: 100%;
    border-radius: 4px;
    background: #7b8794;
    min-width: 2px;
}

.sc-psd__opp-savings {
    flex: 0 0 auto;
    font-size: 14px;
    color: #666;
    white-space: nowrap;
    min-width: 50px;
    text-align: right;
}

.sc-psd__opp-chevron {
    flex: 0 0 auto;
    font-size: 16px;
    color: #999;
    transition: transform 0.2s;
}

.sc-psd__opp-item--open .sc-psd__opp-chevron {
    transform: rotate(180deg);
}

.sc-psd__opp-body {
    display: none;
    padding: 0 0 16px 0;
}

.sc-psd__opp-item--open .sc-psd__opp-body {
    display: block;
}

.sc-psd__opp-desc {
    font-size: 13px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 12px;
}

.sc-psd__opp-desc a {
    color: #2a6496;
}

.sc-psd__opp-table-wrap {
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

.sc-psd__opp-table {
    width: 100%;
    min-width: 480px;
    border-collapse: collapse;
    font-size: 14px;
    margin-bottom: 0;
}

.sc-psd__opp-table thead {
    font-weight: bold;
    background-color: #f9f9f9;
}

.sc-psd__opp-table th {
    text-align: left;
    padding: .5rem;
    font-weight: 600;
    white-space: nowrap;
}

.sc-psd__opp-table tr {
    border-top: 1px solid #ddd;
}

.sc-psd__opp-table tbody tr:nth-child(odd) {
    background-color: #fff;
}

.sc-psd__opp-table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

.sc-psd__opp-table tbody tr:hover {
    background-color: #f3f3f3;
}

.sc-psd__opp-table td {
    padding: .5rem;
    word-break: break-all;
}

.sc-psd__opp-table td:nth-child(2),
.sc-psd__opp-table td:nth-child(3) {
    white-space: nowrap;
    text-align: right;
    word-break: normal;
}

.sc-backlinks-section {
    margin-bottom: 24px;
}

.sc-backlinks-toggle-btn {
    background: none;
    border: none;
    color: #b5a355;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    padding: 0;
}

.sc-backlinks-toggle-btn:hover:not(:disabled) {
    text-decoration: underline;
}

.sc-backlinks-toggle-btn:disabled {
    color: #ccc;
    cursor: default;
}

.sc-backlinks-failed {
    font-size: 14px;
    font-weight: 600;
    color: #c00;
    margin-bottom: 8px;
}

.sc-backlinks-table-wrap {
    margin-top: 12px;
}

.sc-backlinks-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    border: 1px solid #ddd;
    table-layout: fixed;
}

.sc-backlinks-table thead {
    background: #f5f5f5;
}

.sc-backlinks-table th {
    text-align: left;
    padding: 8px 12px;
    font-weight: 600;
    border-bottom: 2px solid #ddd;
    white-space: nowrap;
}

.sc-backlinks-table td {
    padding: 8px 12px;
    border-bottom: 1px solid #eee;
    word-break: break-all;
}

.sc-backlinks-table td a {
    white-space: nowrap;
}

.sc-backlinks-table td:nth-child(2) a {
    white-space: normal;
    word-break: break-all;
}

.sc-backlinks-table tbody tr:nth-child(even) {
    background: #f9f9f9;
}

.sc-backlinks-table tr:hover {
    background: #fafafa;
}

.sc-backlinks-table col:nth-child(1) { width: 40px; }
.sc-backlinks-table col:nth-child(2) { width: auto; }
.sc-backlinks-table col:nth-child(3) { width: auto; }
.sc-backlinks-table col:nth-child(4) { width: 90px; }

.sc-backlinks-table td:first-child {
    color: #999;
}

.sc-backlinks-table td:last-child {
    text-align: left;
    white-space: nowrap;
}

.sc-backlinks-more {
    padding: 12px;
    font-size: 14px;
    font-weight: 700;
    color: #666;
    text-align: center;
}

.sc-backlinks-more a {
    color: #b8860b;
    text-decoration: none;
}

.sc-backlinks-more a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .sc-header {
        flex-direction: column;
    }

    .sc-header__preview {
        flex: none;
    }

    .sc-grid--3 {
        grid-template-columns: repeat(2, 1fr);
    }

}

@media (max-width: 600px) {
    .kp-search {
        flex-direction: column;
        align-items: stretch;
    }

    .kp-search-input {
        flex: none;
        width: 100%;
        box-sizing: border-box;
    }

    .kp-search-btn {
        width: 100%;
    }

    .kp-table {
        min-width: 500px;
    }

    .kp-table th,
    .kp-table td {
        padding: 8px 6px;
        font-size: 13px;
        white-space: nowrap;
    }

    .kp-table th:first-child,
    .kp-table td:first-child {
        white-space: normal;
    }
}

/* Technik-Check block */
.sc-tc {
    margin-bottom: 24px;
}

.sc-tc__section {
    margin-bottom: 12px;
}

.sc-tc__toggle-btn {
    background: none;
    border: none;
    color: #b5a355;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    padding: 0;
    margin-bottom: 8px;
}

.sc-tc__toggle-btn:hover:not(:disabled) {
    text-decoration: underline;
}

.sc-tc__toggle-btn:disabled {
    color: #ccc;
    cursor: default;
}

.sc-tc__failed,
.sc-psd__failed {
    font-size: 14px;
    font-weight: 600;
    color: #c00;
    margin-bottom: 8px;
}

/* Status codes bar */
.sc-tc__status-bar {
    margin-bottom: 8px;
}

.sc-tc__bar-head,
.sc-tc__bar-vals {
    display: flex;
}

.sc-tc__bar-label,
.sc-tc__bar-cell {
    flex: 1;
    text-align: center;
    font-size: 13px;
    padding: 4px 2px;
}

.sc-tc__bar-label {
    font-weight: 600;
    color: #555;
}

.sc-tc__bar-cell {
    background: #555;
    color: #fff;
    font-weight: 600;
}

.sc-tc__bar-cell--green  { background: #656565; }
.sc-tc__bar-cell--yellow { background: #b5a355; }
.sc-tc__bar-cell--red    { background: #c0392b; }

/* Error / metric items */
.sc-tc__errors,
.sc-tc__overview {
    padding-left: 10px;
}

.sc-tc__error-item {
    border-bottom: 1px solid #eee;
}

.sc-tc__error-head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 0;
    cursor: pointer;
    font-size: 14px;
}

.sc-tc__error-head:hover {
    color: #b8860b;
}

.sc-tc__error-item .sc-tc__error-head {
    color: #f04124;
    font-weight: 700;
}

.sc-tc__error-icon {
    color: #b8860b;
    font-weight: 700;
    min-width: 14px;
    display: inline-block;
    text-align: center;
    font-size: 14px;
    line-height: 1;
}

.sc-tc__error-item .sc-tc__error-head .sc-tc__error-icon {
    color: #f04124 !important;
}

.sc-tc__cat-item .sc-tc__error-head .sc-tc__error-icon {
    color: #b5a355 !important;
}

.sc-tc__item--empty.sc-tc__cat-item .sc-tc__error-head .sc-tc__error-icon {
    color: #c4b577 !important;
}

.sc-tc__error-body {
    display: none;
    padding: 4px 0 10px 22px;
}

.sc-tc__error-item--open .sc-tc__error-body {
    display: block;
}

/* Overview categories */
.sc-tc__cat {
    margin-bottom: 16px;
}

.sc-tc__cat-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 6px 0;
    color: #3e3e3e;
}

.sc-tc__cat-item .sc-tc__error-head {
    color: #b5a355;
    font-weight: 700;
}

.sc-tc__item--empty.sc-tc__cat-item .sc-tc__error-head {
    color: #c4b577;
}

.sc-tc__item--empty.sc-tc__error-item .sc-tc__error-head {
    color: #f4908a;
}

.sc-tc__cat-item {
    border-bottom: 1px solid #f0f0f0;
}

.sc-tc__cat-item .sc-tc__error-head:hover {
    color: #9a8a42;
}

.sc-tc__cat-icon {
    color: #b5a355;
    font-weight: 700;
    min-width: 14px;
}

.sc-tc__cat-body {
    padding: 4px 0 10px 22px;
}

/* Shared URL detail table */
.sc-tc__table-wrap {
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

.sc-tc__table {
    min-width: 480px;
    width: max-content;
    border-collapse: collapse;
    font-size: 13px;
    border: 1px solid #ddd;
    margin-top: 6px;
}

.sc-tc__table thead {
    background: #f5f5f5;
}

.sc-tc__table th {
    text-align: left;
    padding: 6px 10px;
    font-weight: 600;
    border-bottom: 2px solid #ddd;
    white-space: nowrap;
}

.sc-tc__table td {
    padding: 6px 10px;
    border-bottom: 1px solid #eee;
    word-break: break-all;
}

.sc-tc__table tbody tr:nth-child(even) {
    background: #f9f9f9;
}

.sc-tc__table td:first-child {
    color: #999;
    width: 32px;
}

.sc-tc__desc {
    font-size: 14px;
    color: #3e3e3e;
    margin-bottom: 8px;
}

.sc-tc__empty {
    padding: 10px 0;
    font-size: 14px;
    color: #666;
}

.kp-rate-limit-container {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px dashed #dee2e6;
    margin: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.kp-rate-limit__icon {
    font-size: 48px;
    color: #195f98;
    margin-bottom: 20px;
    display: block;
}

.kp-rate-limit__title {
    color: #333;
    font-size: 24px;
    margin-bottom: 15px;
    font-weight: 600;
}

.kp-rate-limit__text {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 25px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.kp-rate-limit__btn {
    display: inline-block;
    background: #195f98;
    color: white;
    padding: 12px 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(25, 95, 152, 0.3);
}

.kp-rate-limit__btn:hover {
    background: #005a87;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(25, 95, 152, 0.4);
    color: white;
    text-decoration: none;
}

.sc-stored-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 10px;
}

.sc-stored-header h1 {
    margin: 0;
}

.sc-stored-check-btn {
    white-space: nowrap;
    text-decoration: none;
}

@media (max-width: 500px) {
    .sc-preview-box {
        aspect-ratio: 4 / 3;
    }
}

/* Backlink Check — History Charts (matches keyword-db look & feel) */
.kp-backlink-check .chart-container {
    margin-top: 40px;
}

.kp-backlink-check .chart-container-am4 {
    height: 400px;
}

.kp-backlink-check .chart-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #000;
}

.kp-backlink-check .chart-buttons {
    display: flex;
    gap: 0;
    margin-bottom: 0;
    background: white;
    overflow-x: scroll;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex: 1;
}

.kp-backlink-check .chart-buttons::-webkit-scrollbar {
    display: none;
}

.kp-backlink-check .chart-button {
    background: white;
    color: #195f98;
    border: 1px solid #ddd;
    padding: 12px 20px;
    cursor: pointer;
    font-size: 14px;
    position: relative;
    z-index: 1;
}

.kp-backlink-check .chart-button h3,
.kp-backlink-check .chart-button h3.h3 {
    font-size: 14px;
    font-weight: 400;
    color: #195f98;
    text-align: left;
    margin-bottom: 0;
    display: inline-block;
}

.kp-backlink-check .chart-button.active {
    background-color: #f9f9f9;
    border-bottom: 1px solid white;
    border-top: 1px solid #ddd;
    font-weight: 500;
    z-index: 2;
}

.kp-backlink-check .chart-button.active h3 {
    font-weight: 500 !important;
}

.kp-backlink-check .chart-container-inner {
    min-height: 400px;
    background: white;
    border: 1px solid #ddd;
    padding: 20px 20px 0 20px;
}

.kp-backlink-check .chart-container-inner > div {
    width: 100% !important;
    height: 100% !important;
}

.kp-backlink-check .no-data-cta {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px dashed #dee2e6;
    margin: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.kp-backlink-check .no-data-cta .cta-icon {
    font-size: 48px;
    color: #195f98;
    margin-bottom: 20px;
    display: block;
}

.kp-backlink-check .no-data-cta h3 {
    color: #333;
    font-size: 24px;
    margin-bottom: 15px;
    font-weight: 600;
}

.kp-backlink-check .no-data-cta p {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 25px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.kp-backlink-check .no-data-cta .cta-button {
    display: inline-block;
    background: #195f98;
    color: white;
    padding: 12px 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(25, 95, 152, 0.3);
}

.kp-backlink-check .no-data-cta .cta-button:hover {
    background: #005a87;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(25, 95, 152, 0.4);
    color: white;
    text-decoration: none;
}

@media (max-width: 768px) {
    .kp-backlink-check .chart-buttons {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: stretch;
        width: 100%;
        margin-bottom: 0;
        gap: 0;
        overflow-x: auto;
    }

    .kp-backlink-check .chart-button {
        flex: 0 0 auto;
        min-width: 120px;
        margin: 0;
        box-sizing: border-box;
        text-align: center;
        border-left: 1px solid #ddd;
        border-right: none;
        border-bottom: none;
        padding: 10px 8px;
        font-size: 12px;
    }

    .kp-backlink-check .chart-button:last-of-type {
        border-left: 1px solid #ddd;
        border-right: 1px solid #ddd;
    }

    .kp-backlink-check .chart-button.active {
        border-bottom: none;
        background-color: #f9f9f9;
    }

    .kp-backlink-check .no-data-cta {
        padding: 20px 10px;
        margin: 0;
        font-size: 14px;
        box-sizing: border-box;
        height: auto;
        display: block;
    }

    .kp-backlink-check .no-data-cta .cta-icon {
        font-size: 36px;
        margin-bottom: 15px;
        display: block;
    }

    .kp-backlink-check .no-data-cta h3 {
        font-size: 18px;
        margin-top: 0;
        margin-bottom: 15px;
        line-height: 1.3;
        padding: 0 5px;
    }

    .kp-backlink-check .no-data-cta p {
        margin-bottom: 20px;
        font-size: 14px;
        line-height: 1.5;
        word-wrap: break-word;
        padding: 0 5px;
        text-align: left;
    }

    .kp-backlink-check .no-data-cta .cta-button {
        font-size: 14px;
        padding: 12px 20px;
        margin: 0 auto;
        display: block;
        width: auto;
        max-width: 280px;
        text-align: center;
        white-space: normal;
        word-wrap: break-word;
        min-height: 44px;
        box-sizing: border-box;
    }
}

/* Backlink Check — amCharts export menu (matches keyword-db) */
.kp-backlink-check .amcharts-amexport-menu.amcharts-amexport-menu-level-0 {
    background-color: #195f98 !important;
    top: -10px !important;
    right: -10px !important;
    border-radius: 4px;
}

.kp-backlink-check .amcharts-amexport-menu.amcharts-amexport-menu-level-0 > .amcharts-amexport-item {
    background-color: #195f98 !important;
    border: none !important;
    border-radius: 4px;
}

.kp-backlink-check .amcharts-amexport-menu.amcharts-amexport-menu-level-0 > .amcharts-amexport-item > a {
    color: white !important;
}

.kp-backlink-check .amcharts-amexport-menu-level-1 {
    width: 12vw;
}

.kp-backlink-check .amcharts-amexport-menu-level-2 {
    width: 5vw;
}

.kp-backlink-check .amcharts-amexport-item:hover,
.kp-backlink-check .amcharts-amexport-item.active {
    background: none;
}

.kp-backlink-check .amcharts-amexport-item {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 0;
}

.kp-backlink-check .amcharts-amexport-item a {
    color: #000;
    font-size: 14px;
}

.kp-backlink-check .amcharts-amexport-item.amcharts-amexport-item-level-0 {
    opacity: 1 !important;
}

@media (max-width: 768px) {
    .kp-backlink-check .amcharts-amexport-menu-level-1 {
        width: 40vw;
    }

    .kp-backlink-check .amcharts-amexport-menu-level-2 {
        width: 15vw;
    }
}