@font-face {
    font-family: 'ArvaSEO Sans';
    src: url('../fonts/Inter-VariableFont.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'ArvaSEO Sans';
    src: url('../fonts/Inter-Italic-VariableFont.ttf') format('truetype');
    font-weight: 100 900;
    font-style: italic;
    font-display: swap;
}

:root {
    --arva-seo-primary-color: #217837;
    --arva-seo-primary-color-hover: #2CA049;
    --arva-seo-primary-color-active: #165024;
    --arva-seo-text-dark: #081C0D;
    --arva-seo-text-light: #ffffff;
    --arva-seo-bg-light: #D7F4DE;
    --arva-seo-bg-lighter: #edf6f4;
    --arva-seo-bg-dark: #0B2812;
    --arva-seo-bg-darker: #000000;
    --arva-seo-bg-primary: #217837;
    --arva-seo-bg-primary-ligher: #2CA049;
    --arva-seo-bg-primary-darker: #165024;
}

.arva-seo-text-dark {
    color: var(--arva-seo-text-dark);
}

.arva-seo-text-light {
    color: var(--arva-seo-text-light);
}

.arva-seo-bg-light {
    background: var(--arva-seo-bg-light);
}

.arva-seo-bg-lighter {
    background: var(--arva-seo-bg-lighter);
}

.arva-seo-bg-dark {
    background: var(--arva-seo-bg-dark);
}

.arva-seo-bg-darker {
    background: var(--arva-seo-bg-darker);
}

.arva-seo-bg-primary {
    background: var(--arva-seo-bg-primary);
}

.arva-seo-bg-primary-ligher {
    background: var(--arva-seo-bg-primary-ligher);
}

.arva-seo-bg-primary-darker {
    background: var(--arva-seo-bg-primary-darker);
}

body.toplevel_page_arva-seo #wpcontent,
body.arva-seo_page_arva-seo-crawl #wpcontent,
body.arva-seo_page_arva-seo-bulk-edit #wpcontent,
body.arva-seo_page_arva-seo-settings #wpcontent {
    padding-left: 0 !important;
}

body.toplevel_page_arva-seo #wpbody,
body.arva-seo_page_arva-seo-crawl #wpbody,
body.arva-seo_page_arva-seo-bulk-edit #wpbody,
body.arva-seo_page_arva-seo-settings #wpbody {
    background: #ffffff!important;
}

body.toplevel_page_arva-seo h1,
body.toplevel_page_arva-seo h2,
body.toplevel_page_arva-seo h3,
body.arva-seo_page_arva-seo-crawl #wpbody h1,
body.arva-seo_page_arva-seo-crawl #wpbody h2,
body.arva-seo_page_arva-seo-crawl #wpbody h3,
body.arva-seo_page_arva-seo-bulk-edit #wpbody h1,
body.arva-seo_page_arva-seo-bulk-edit #wpbody h2,
body.arva-seo_page_arva-seo-bulk-edit #wpbody h3,
body.arva-seo_page_arva-seo-settings #wpbody h1,
body.arva-seo_page_arva-seo-settings #wpbody h2,
body.arva-seo_page_arva-seo-settings #wpbody h3 {
    margin: 0!important;
}

.arva-seo-wrapper {
    font-family: 'ArvaSEO Sans', sans-serif !important;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.arva-seo-column {
    flex-direction: column;
}

.arva-seo-container-item {
    flex: 1 1 calc(100% / 6);
}

.arva-seo-btn-primary {
    background: var(--arva-seo-primary-color);
    padding: 10px 20px;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
}

.arva-seo-btn-primary:hover {
    background: var(--arva-seo-primary-color-hover);
    color: var(--arva-seo-bg-lighter) !important;
}

.arva-seo-btn-primary:active {
    background: var(--arva-seo-primary-color-active);
}

.arva-seo-container {
    display: flex;
    padding: 20px;
    gap: 20px;
    flex-wrap: wrap;
}

.arva-seo-rounded {
    border-radius: 10px;
}

.arva-seo-border-primary {
    border: 1px solid var(--arva-seo-primary-color);
}

.arva-seo-crawl-results-container {
    display: flex;
    flex-direction: column;
    padding: 20px 0;
    gap: 20px;
}

.arva-seo-crawl-headers {
    display: flex;
    gap: 12px;
}

.arva-seo-crawl-page-info-header {
    flex: 2;
    background: var(--arva-seo-bg-light);
    padding: 20px;
    border-radius: 10px;
}

.arva-seo-crawl-page-score-header {
    flex: 1;
    background: var(--arva-seo-bg-light);
    padding: 20px;
    border-radius: 10px;
}

.arva-seo-crawl-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.arva-seo-craw-list-page-info {
    flex: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
}

.arva-seo-craw-list-page-score {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
}

.arva-seo-crawl-body-item {
    display: flex;
    border-radius: 10px;
    overflow: hidden;
}

.arva-seo-craw-list-page-info p, .arva-seo-craw-list-page-score p {
    margin: 0;
}

.arva-seo-page-title-row {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.arva-seo-score-box {
    width: 35px;
    height: 35px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 5px;
    color: #ffffff;
    font-weight: 700;
}

.arva-seo-crawl-toolbar {
    justify-content: space-between;
    align-items: stretch;
    gap: 24px;
}

.arva-seo-crawl-toolbar-copy {
    flex: 0 1 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 260px;
    max-width: 300px;
    text-align: center;
}

.arva-seo-crawl-toolbar-copy-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.arva-seo-crawl-progress-wrap {
    flex: 1 1 280px;
    min-width: 260px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.arva-seo-crawl-progress-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.arva-seo-crawl-progress-percent {
    color: var(--arva-seo-text-dark);
    font-size: 18px;
}

.arva-seo-crawl-progress {
    --progress: 0;
}

.arva-seo-crawl-progress-bar {
    display: none;
}

.arva-seo-summary-label {
    display: block;
    color: var(--arva-seo-text-dark);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.arva-seo-summary-value {
    display: block;
    font-size: 36px;
    line-height: 1;
    color: var(--arva-seo-text-dark);
}

.arva-seo-summary-meta {
    margin: 10px 0 0;
    color: #49614f;
    font-size: 13px;
}

.arva-seo-seo-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.arva-seo-seo-copy p {
    margin: 0;
    line-height: 1.35;
}

.arva-seo-meta-inline {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 0 !important;
    font-size: 12px;
    color: #49614f;
}

.arva-seo-meta-inline span {
    background: rgba(33, 120, 55, 0.08);
    padding: 4px 8px;
    border-radius: 999px;
}

.arva-seo-empty-state {
    padding: 32px;
}

.arva-seo-crawl-controls {
    display: flex;
    align-items: stretch;
    gap: 20px;
}

.arva-seo-crawl-controls-left {
    flex: 1 1 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 20px;
    min-width: 260px;
}

.arva-seo-crawl-search {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
    flex-wrap: wrap;
    background: var(--arva-seo-bg-lighter);
    border: 1px solid #d9e7dc;
}

.arva-seo-crawl-search-controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
    margin-left: auto;
}

.arva-seo-search-input {
    flex: 0 1 320px;
    width: 320px;
    min-height: 42px !important;
    padding: 0 14px !important;
    border-radius: 8px !important;
    background: #ffffff;
    color: var(--arva-seo-text-dark) !important;
}

.arva-seo-search-reset {
    color: var(--arva-seo-primary-color);
    text-decoration: none;
    font-weight: 600;
}

.arva-seo-search-results-count {
    margin: 0;
    color: #49614f;
    font-size: 13px;
}

.arva-seo-crawl-summary {
    flex: 0 1 210px;
    min-width: 190px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.arva-seo-export-btn {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.arva-seo-crawl-donut-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
}

.arva-seo-crawl-donut-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
}

.arva-seo-crawl-donut {
    --progress: 0;
    width: 108px;
    height: 108px;
    border-radius: 50%;
    background: conic-gradient(
        var(--arva-seo-primary-color) calc(var(--progress) * 1%),
        #d7e8dc 0
    );
    display: grid;
    place-items: center;
    position: relative;
}

.arva-seo-crawl-donut::after {
    content: '';
    width: 74px;
    height: 74px;
    border-radius: 50%;
    background: #ffffff;
    position: absolute;
}

.arva-seo-crawl-donut-inner {
    position: relative;
    z-index: 1;
    font-size: 20px;
    font-weight: 700;
    color: var(--arva-seo-text-dark);
}

.arva-seo-pagination {
    display: flex;
    justify-content: flex-end;
}

.arva-seo-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    margin-left: 8px;
    border-radius: 8px;
    border: 1px solid #c6ddd0;
    text-decoration: none;
    color: var(--arva-seo-text-dark);
    background: #ffffff;
    box-sizing: border-box;
}

.arva-seo-pagination .page-numbers.current {
    background: var(--arva-seo-primary-color);
    color: #ffffff;
    border-color: var(--arva-seo-primary-color);
}

.arva-seo-bulk-toolbar {
    justify-content: space-between;
    align-items: stretch;
}

.arva-seo-bulk-toolbar-copy {
    flex: 1 1 60%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.arva-seo-bulk-upload-form {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.arva-seo-bulk-notice {
    margin: 0;
    color: var(--arva-seo-primary-color-active);
    font-weight: 600;
}

.arva-seo-bulk-progress {
    flex: 0 1 240px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.arva-seo-bulk-warning {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
}

.arva-seo-bulk-edit-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.arva-seo-bulk-preview-table {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.arva-seo-bulk-preview-row {
    display: grid;
    grid-template-columns: 1.1fr 1fr 1.1fr 1fr 0.7fr 0.7fr;
    gap: 12px;
    padding: 16px;
    border-radius: 10px;
    background: #ffffff;
    border: 1px solid #d9e7dc;
}

.arva-seo-bulk-preview-head {
    font-weight: 700;
    background: var(--arva-seo-bg-light);
}

.arva-seo-bulk-preview-row p {
    margin: 0 0 8px;
}

.arva-seo-bulk-old-value {
    color: #49614f;
    font-size: 12px;
}

.arva-seo-bulk-input,
.arva-seo-bulk-textarea,
.arva-seo-bulk-select {
    width: 100%;
    border: 1px solid #c6ddd0;
    border-radius: 8px;
    padding: 10px 12px;
    box-sizing: border-box;
}

.arva-seo-bulk-textarea {
    min-height: 96px;
}

.arva-seo-bulk-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    padding: 16px 0 0;
}

.arva-seo-settings-form {
    display: flex;
    flex-direction: column;
    gap: 0;
    overflow: hidden;
}

.arva-seo-settings-row {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 24px;
    padding: 24px;
    border-bottom: 1px solid #d9e7dc;
}

.arva-seo-settings-row:last-child {
    border-bottom: 0;
}

.arva-seo-settings-label h3 {
    margin: 0;
}

.arva-seo-settings-control p {
    margin-top: 0;
}

.arva-seo-settings-control input[type='number'] {
    width: 140px;
}

.arva-seo-settings-actions {
    padding: 24px;
}

.arva-seo-premium-lock,
.arva-seo-inline-upsell {
    border: 1px solid #cfe5d5;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.arva-seo-premium-lock {
    max-width: 820px;
}

.arva-seo-premium-lock-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(33, 120, 55, 0.1);
    color: var(--arva-seo-primary-color-active);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.arva-seo-premium-lock p,
.arva-seo-inline-upsell p {
    margin: 0;
    color: #49614f;
}

.arva-seo-premium-lock-actions,
.arva-seo-inline-upsell {
    align-items: flex-start;
}

.arva-seo-opportunities-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.arva-seo-opportunities-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 20px;
}

.arva-seo-op-card {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.arva-seo-op-score-ring {
    --progress: 0;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: conic-gradient(
        var(--arva-seo-primary-color) calc(var(--progress) * 1%),
        #d7e8dc 0
    );
    display: grid;
    place-items: center;
    position: relative;
}

.arva-seo-op-score-ring::after {
    content: '';
    width: 112px;
    height: 112px;
    border-radius: 50%;
    background: #ffffff;
    position: absolute;
}

.arva-seo-op-score-ring span {
    position: relative;
    z-index: 1;
    font-size: 40px;
    font-weight: 700;
}

.arva-seo-op-bars {
    display: flex;
    align-items: end;
    gap: 20px;
    min-height: 180px;
}

.arva-seo-op-bar-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.arva-seo-op-bar {
    width: 56px;
    border-radius: 16px 16px 6px 6px;
}

.arva-seo-op-bar-critical {
    background: #cc4b37;
}

.arva-seo-op-bar-warning {
    background: #e6a93d;
}

.arva-seo-op-bar-good {
    background: #6aaf56;
}

.arva-seo-op-bar-healthy {
    background: #2ca049;
}

.arva-seo-op-bar-group small {
    color: #49614f;
    font-size: 11px;
    line-height: 1;
}

.arva-seo-opportunities-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.arva-seo-opportunities-list-header {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 16px;
}

.arva-seo-opportunity-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.arva-seo-opportunity-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px;
    text-decoration: none;
    background: #ffffff;
    border: 1px solid #d9e7dc;
    color: var(--arva-seo-text-dark);
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.arva-seo-opportunity-card:hover,
.arva-seo-opportunity-card.is-active {
    border-color: var(--arva-seo-primary-color);
    transform: translateY(-1px);
}

.arva-seo-opportunity-card strong {
    font-size: 32px;
    line-height: 1;
    color: var(--arva-seo-text-dark);
}

.arva-seo-opportunity-card p {
    margin: 0;
    color: #49614f;
}

.arva-seo-opportunity-detail {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 24px;
}

.arva-seo-opportunity-detail-table {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.arva-seo-opportunity-detail-head,
.arva-seo-opportunity-detail-row {
    display: grid;
    grid-template-columns: 1.4fr 1.4fr 80px;
    gap: 16px;
    align-items: center;
}

.arva-seo-opportunity-detail-head {
    padding: 0 12px;
    font-weight: 700;
}

.arva-seo-opportunity-detail-row {
    padding: 16px 12px;
    border-radius: 10px;
    background: #ffffff;
    border: 1px solid #d9e7dc;
}

.arva-seo-opportunity-detail-row p {
    margin: 6px 0 0;
}

@media (max-width: 960px) {
    .arva-seo-crawl-toolbar,
    .arva-seo-crawl-headers,
    .arva-seo-crawl-body-item {
        flex-direction: column;
    }

    .arva-seo-opportunities-hero,
    .arva-seo-opportunities-list-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .arva-seo-opportunities-grid,
    .arva-seo-opportunity-cards,
    .arva-seo-opportunity-detail-head,
    .arva-seo-opportunity-detail-row {
        grid-template-columns: 1fr;
    }

    .arva-seo-crawl-controls-left,
    .arva-seo-crawl-progress-wrap,
    .arva-seo-crawl-summary,
    .arva-seo-crawl-toolbar-copy,
    .arva-seo-search-input,
    .arva-seo-crawl-search {
        max-width: none;
        width: 100%;
    }

    .arva-seo-crawl-controls-left,
    .arva-seo-crawl-search {
        justify-content: flex-start;
    }

    .arva-seo-crawl-search-controls {
        width: 100%;
        justify-content: flex-start;
        margin-left: 0;
    }

    .arva-seo-search-input {
        flex: 1 1 auto;
    }

    .arva-seo-craw-list-page-score {
        gap: 12px;
    }

    .arva-seo-bulk-preview-row {
        grid-template-columns: 1fr;
    }

    .arva-seo-settings-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}
