.seo-setup-box {
    background: #fff;
    border-top: 3px solid #5bc0de;
    border-radius: 10px;
    padding: 25px;
}

.seo-setup-box #startBtn {
    font-weight: bold;
}

.setup-note {
    margin-top: 10px;
    border-radius: 8px;
}

.progress-wrap {
    margin-top: 20px;
}

.seo-progress {
    height: 25px;
    border-radius: 15px;
}

.seo-progress #pb {
    line-height: 25px;
    font-weight: bold;
}

.status-text {
    font-weight: bold;
    color: #31708f;
}

.result-header {
    margin-bottom: 16px;
    border-bottom: 1px solid #e9edf3;
    padding-bottom: 12px;
}

.result-heading {
    margin: 0;
    font-size: 22px;
    color: #1f2d3d;
    font-weight: 700;
}

.result-subtitle {
    margin: 8px 0 0;
    color: #6b7785;
    font-size: 14px;
}

.analysis-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.seo-card {
    border: 1px solid #e8edf3;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(15, 30, 45, 0.04);
}

.seo-card__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 12px 16px;
    border-bottom: 1px solid #edf1f6;
    background: linear-gradient(180deg, #fbfcfe 0%, #f8fafc 100%);
}

.seo-card__badge {
    font-size: 12px;
    background: #eef6ff;
    color: #2267a8;
    padding: 4px 8px;
    border-radius: 14px;
    border: 1px solid #dbe9f8;
}

.seo-card__title {
    margin: 0;
    font-size: 16px;
    color: #2e3a48;
    font-weight: 700;
}

.seo-card__body {
    padding: 16px 18px;
}

.res-content {
    direction: rtl;
    line-height: 1.95;
    font-size: 15px;
    color: #3d4752;
}

.res-title {
    color: #1f2d3d;
    border-right: 4px solid #5bc0de;
    padding-right: 12px;
    margin: 16px 0 10px;
    font-weight: 700;
    font-size: 16px;
}

.res-p {
    margin: 0 0 10px;
}


.tag-issue, .tag-impact, .tag-action, .tag-priority {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    margin-left: 6px;
}

.tag-issue { background: #ffe9e8; color: #b42318; border: 1px solid #ffd0cc; }
.tag-impact { background: #fff4e5; color: #9a5b00; border: 1px solid #ffe2bf; }
.tag-action { background: #e9f7ef; color: #126e45; border: 1px solid #ccefdc; }
.tag-priority { background: #ecebff; color: #4b3dbd; border: 1px solid #d8d6ff; }

.res-list {
    margin: 0;
    padding: 0;
}

.res-li {
    margin-bottom: 8px;
    list-style: none;
    padding-right: 20px;
    position: relative;
}

.res-li:before {
    content: "•";
    position: absolute;
    right: 0;
    color: #5bc0de;
    font-weight: bold;
    font-size: 20px;
    top: -4px;
}

.custom-table {
    width: 100%;
    margin: 12px 0;
    border-collapse: collapse;
}

.custom-table td,
.custom-table th {
    padding: 10px;
    border: 1px solid #ebf0f4 !important;
}

.custom-table tr:first-child {
    background: #f8fbff;
    font-weight: 700;
}


.seo-score-wrap {
    padding: 14px 16px;
    border-bottom: 1px solid #edf1f6;
    background: linear-gradient(90deg, #f8fbff 0%, #f2f7ff 100%);
}

.seo-score-label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #1f3b5b;
    margin-bottom: 8px;
}

.seo-score-bar {
    width: 100%;
    height: 10px;
    border-radius: 20px;
    background: #edf2f7;
    overflow: hidden;
}

.seo-score-bar span {
    display: block;
    height: 100%;
    border-radius: 20px;
}

.seo-score-value {
    display: inline-block;
    margin-top: 9px;
    font-size: 28px;
    font-weight: 900;
    line-height: 1.1;
}

.seo-score-grade {
    display: inline-block;
    margin-right: 10px;
    font-size: 14px;
    font-weight: 700;
}

.score-excellent .seo-score-bar span { background: linear-gradient(90deg, #00b47a, #27d69b); }
.score-excellent .seo-score-value { color: #008b5f; }
.score-good .seo-score-bar span { background: linear-gradient(90deg, #5cb85c, #8bc34a); }
.score-good .seo-score-value { color: #4d8f2c; }
.score-medium .seo-score-bar span { background: linear-gradient(90deg, #f0ad4e, #ffca68); }
.score-medium .seo-score-value { color: #c6841c; }
.score-poor .seo-score-bar span { background: linear-gradient(90deg, #d9534f, #f26f6b); }
.score-poor .seo-score-value { color: #b23b38; }

.keyword-tree {
    border-right: 2px solid #dfe8f3;
    padding-right: 10px;
}

.tree-node {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 6px 0;
    padding: 4px 8px;
    border-radius: 8px;
}

.tree-node .node-dot {
    width: 8px;
    height: 8px;
    margin-top: 10px;
    border-radius: 50%;
    background: #6ea7d8;
    flex-shrink: 0;
}

.tree-node.level-0 { background: #f1f8ff; font-weight: 700; }
.tree-node.level-1 { margin-right: 18px; background: #f9fcff; }
.tree-node.level-2 { margin-right: 36px; background: #fcfdff; }
.tree-node.level-3 { margin-right: 54px; background: #ffffff; }


.main-container { direction: rtl; }
#analysis-results { direction: rtl; }

.seo-card.is-tech { border-right: 5px solid #1f8dd6; }
.seo-card.is-content { border-right: 5px solid #8e44ad; }
.seo-card.is-ux { border-right: 5px solid #16a085; }
.seo-card.is-keywords { border-right: 5px solid #d35400; }
.seo-card.is-ideas { border-right: 5px solid #c0392b; }
.seo-card.is-checklist { border-right: 5px solid #27ae60; }

.seo-card.is-tech .seo-card__head { background: linear-gradient(180deg, #f1f8ff 0%, #e8f3ff 100%); }
.seo-card.is-content .seo-card__head { background: linear-gradient(180deg, #f9f3ff 0%, #f1e6ff 100%); }
.seo-card.is-ux .seo-card__head { background: linear-gradient(180deg, #effcf8 0%, #e2f7f0 100%); }
.seo-card.is-keywords .seo-card__head { background: linear-gradient(180deg, #fff8ef 0%, #ffefd9 100%); }
.seo-card.is-ideas .seo-card__head { background: linear-gradient(180deg, #fff3f2 0%, #ffe5e3 100%); }
.seo-card.is-checklist .seo-card__head { background: linear-gradient(180deg, #f2fbf4 0%, #e6f7eb 100%); }

.res-content code { background: #f4f7fb; color: #c7254e; padding: 2px 6px; border-radius: 6px; }
.custom-table tr:nth-child(even) { background: #fcfdff; }
.custom-table tr:hover { background: #f3f8ff; }

.action-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.action-buttons .btn { min-width: 150px; }

.action-buttons {
    margin-top: 25px;
    padding-bottom: 30px;
}

@media (max-width: 768px) {
    .seo-card__head {
        align-items: flex-start;
    }

    .result-heading {
        font-size: 19px;
    }

    .action-buttons .btn {
        width: 100%;
    }
}
