:root {
    --primary-color: #4452F3;
    --color-white: #fff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}

body {
    background: #EDEFF6;
    height: 100vh;
    overflow: hidden;
}

/* CENTER WRAPPER */
.main-wrapper {
    height: 100vh;
    align-items: center;
    justify-content: center;
}

/* CARD */
.login-card {
    width: 100%;
    display: flex;
    background: #fff;
    overflow: hidden;
}

/* LEFT SIDE */
.login-left {
    flex: 1;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo img {
    width: 120px;
        margin-left: 60px;
    margin-top: 20px;
}

.login-left h2 {
    font-size: 28px;
    margin-bottom: 10px;
}

.login-left {
    padding: 20px 50px !important;
}

.logo img {}

.sub-text {
    margin-bottom: 10px !important;
}

.input-group {
    margin-bottom: 10px !important;
}

.login-card {
    background-color: #EDEFF6;
    align-self: center !important;
}

.login-right {
    margin: 20px 20px 20px 0 !important;
    padding: 25px 20px !important;

}

.sub-text {
    color: #777;
    font-size: 14px;
    margin-bottom: 30px;
}

.sub-text a {
    color: #4f46e5;
    text-decoration: none;
    font-weight: 500;
}

/* INPUT */
.input-group {
    margin-bottom: 20px;
}

.input-group label {
    font-size: 13px;
    color: #555;
}

.input-group input {
    width: 100%;
    border: none;
    border-bottom: 1px solid #ccc;
    padding: 10px 0;
    outline: none;
    font-size: 14px;
    background: transparent;
}

/* OPTIONS */
.options {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    margin-bottom: 30px;
    color: #666;
}

/* BUTTON */
.login-btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 25px;
    background: linear-gradient(90deg, #4f46e5, #6366f1);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.login-btn:hover {
    opacity: 0.9;
}

/* RIGHT SIDE */
.login-right {
    flex: 1;
    background: #0b1ea8;
    border-radius: 30px;
    margin: 40px 40px 40px 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    color: white;
    padding: 40px 30px;
    height: auto;
    max-width: 400px;
}

/* IMAGE FIX */
.right-img {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
}

.right-img img {
    width: 100%;
    max-width: 400px;
    object-fit: cover;
    position: relative;
    top: -50px;
}

/* TEXT BOTTOM */
.right-text {
    width: 100%;
}

.right-text p {
    font-size: 14px;
    opacity: 0.8;
}

.right-text h3 {
    font-size: 20px;
}

/* ✅ RESPONSIVE DESIGN */
@media (max-width: 991px) {
    body {
        overflow: auto;
        height: auto;
    }

    .main-wrapper {
        height: auto;
        min-height: 100vh;
        display: block;
        padding: 20px;
    }

    .logo {
        text-align: center;
        width: 100%;
        margin-bottom: 10px;
    }

    .logo img {
        margin-left: 0 !important;
        margin-top: 0 !important;
        width: 100px;
    }

    .login-card {
        flex-direction: column;
        height: auto;
        padding: 0 !important;
        width: 100%;
        max-width: 100%;
        border-radius: 20px;
        background-color: #fff;
    }

    .login-left {
        padding: 30px 20px !important;
        width: 100%;
    }

    .login-right {
        margin: 0 !important;
        border-radius: 0 0 20px 20px;
        max-width: 100%;
        padding: 40px 20px;
    }

    .right-img img {
        top: 0;
        margin-bottom: 20px;
    }

    /* Sidebar & Layout */
    .sidebar-wrapper {
        transform: translateX(-100%);
    }

    .sidebar-wrapper.open {
        transform: translateX(0);
    }

    .main-wrapper-layout {
        margin-left: 0 !important;
    }
}

/* Wrapper */
.sidebar-wrapper {
    width: 260px;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    padding: 10px;
    display: flex;
    flex-direction: column;
    z-index: 100;
    transition: transform 0.3s ease;
}

/* Main Card */
.sidebar-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Logo */
.logo-img {
    width: 100px;
    padding-bottom: 10px;
}

/* Search */
.search-box input {
    border-radius: 25px;
    padding: 8px 15px;
    border: 1px solid #eee;
    font-size: 14px;
}

/* Menu */
.menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    overflow-y: auto;
    flex: 1;
    max-height: 100%;
}

.menu-list li a {
    text-decoration: none;
    color: #000;
    /* black */
    display: block;
    width: 100%;
}

/* Webkit Scrollbar */
.menu-list::-webkit-scrollbar {
    width: 5px;
}

.menu-list::-webkit-scrollbar-track {
    background: transparent;
}

.menu-list::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 10px;
}

.menu-list::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

.menu-list li {
    padding: 8px 12px;
    border-radius: 10px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    color: #555;
    margin-right: 8px;
}

.menu-list li span {
    font-size: 16px;
}

/* Active */
.menu-list li.active {
    background: #4f46e5;
    color: #fff;
}

.menu-list li.active a,
.menu-list li.active span,
.menu-list li.active i {
    color: #fff !important;
}

/* Bottom Buttons */
.bottom-buttons {
    margin-top: 10px;
    display: flex;
    gap: 10px;
}

.bottom-buttons .btn {
    border-radius: 20px;
    font-size: 13px;
    background: #f1f1f1;
    border: none;
}

/* User Card */
.user-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 15px;
    margin-top: 10px;
}

.user-icon {
    width: 40px;
    height: 40px;
    background: #e9ecef;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-card .btn {
    border-radius: 20px;
    background: #4f46e5;
    border: none;
}

/* Layout */
.layout {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

.main-wrapper-layout {
    margin-left: 260px;
    flex: 1;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

/* Header */
.header {
    padding: 15px 20px;
    border-radius: 12px;
    background: #f5f6fa;
    flex-shrink: 0;
}

/* Main scrollable body */
.main {
    flex: 1;
    overflow-y: auto;
    padding: 10px 20px 20px;
}

.main::-webkit-scrollbar {
    width: 6px;
}

.main::-webkit-scrollbar-track {
    background: transparent;
}

.main::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 10px;
}

/* Sidebar Overlay (mobile) */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 99;
}

.sidebar-overlay.active {
    display: block;
}

/* Hamburger */
.hamburger-btn {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 6px 8px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
}

.hamburger-btn span {
    display: block;
    width: 20px;
    height: 2px;
    background: #333;
    border-radius: 2px;
}

/* Cards */
.card-box {
    background: #fff;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* Content Box */
.content-box {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    height: 100%;
}

/* User Box */
.user-box {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 10px;
}

.sidebar-logo {
    border-bottom: 1px solid #eee;
}

.sidebar-logo img {
    width: 120px;
    margin-bottom: 10px;
}


/* dashboard */

.dashboard-bg {
    padding: 20px;
}

/* Card */
.dashboard-card {
    border: none;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    padding: 16px;
}

/* Icon */
.icon-box {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.icon-box img {
    width: 18px;
}

/* Info icon */
.info {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1px solid #ccc;
    text-align: center;
    font-size: 12px;
    line-height: 20px;
    cursor: pointer;
    font-style: italic;
}

/* Graph Placeholder */
.graph {
    height: 120px;
    background: linear-gradient(to top, var(--primary-color) 30%, #cfd6ff 30%);
    border-radius: 10px;
}

/* Keyword List */
.keyword-list li {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 14px;
}

.keyword-list span {
    background: var(--primary-color);
    color: #fff;
    padding: 2px 8px;
    border-radius: 8px;
    font-size: 12px;
}

.btn-color {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-color:hover {
    background-color: var(--primary-color);
    color: #fff;
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 3px;
    display: inline-block;
    flex-shrink: 0;
}

.legend-dot.improved {
    background: #10b981;
}

.legend-dot.lost {
    background: #ef4444;
}

/* Legend toggle buttons */
.legend-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    font-size: 13px;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s;
}

.legend-btn.active {
    background: #fff;
    border-color: #d1d5db;
    color: #111;
    font-weight: 600;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}


/* search */

/* FILTER TABS */


/* OUTER CONTAINER (single background) */
.filter-wrapper {
    display: inline-flex;
    background: #e9ecef;
    padding: 6px;
    border-radius: 30px;
    gap: 5px;
}

/* ALL TABS */
.filter-wrapper span {
    padding: 8px 18px;
    border-radius: 25px;
    font-size: 14px;
    cursor: pointer;
    color: #333;
    transition: 0.3s;
}

/* ACTIVE TAB ONLY */
.filter-wrapper .active {
    background: linear-gradient(135deg, #5b6cff, #3f4bff);
    color: #fff;
}

.filter-tabs span {
    padding: 8px 16px;
    border-radius: 20px;
    background: #e5e7eb;
    margin-right: 10px;
    font-size: 14px;
    cursor: pointer;
}

.filter-tabs .active {
    background: #4f5dff;
    color: #fff;
}

/* CARDS */
.stat-card {
    border: none;
    border-radius: 16px;
    padding: 15px;
    position: relative;
}

.stat-card p {
    font-size: 14px;
    margin: 5px 0;
}

.icon-img {
    width: 40px;
    height: 40px;
}

/* INFO ICON */
.info {
    position: absolute;
    right: 10px;
    top: 10px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1px solid #ccc;
    text-align: center;
    font-size: 12px;
    line-height: 20px;
    font-style: italic;
}

/* CHART */
.chart-card {
    border-radius: 20px;
    border: none;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    height: 280px;
}


.chart-card canvas {
    width: 100% !important;
    height: 90% !important;
    flex: 1;
}

canvas {
    height: 100%
}

.custom-legend {
    display: flex;
    gap: 20px;
    font-size: 12px;
    font-weight: 600;
    color: #9aa0a6;
    letter-spacing: 1px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* small line indicator */
.line {
    width: 14px;
    height: 2px;
    display: inline-block;
    border-radius: 2px;
}

.line.blue {
    background: #4f5dff;
}

.line.pink {
    background: #ff4fa3;
}

/* TABLE */
.table-card {
    border-radius: 20px;
    border: none;
}

.table-tabs span {
    margin-right: 15px;
    cursor: pointer;
}

.table-tabs .active {
    background: #4f5dff;
    color: #fff;
    padding: 4px 20px;
    border-radius: 20px;
}

.info-i {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid #000;
    text-align: center;
    font-size: 18px;
    line-height: 30px;
    cursor: pointer;
    color: #000;
    font-style: italic;
}

/* Keyword */

.color-primary {
    background-color: var(--primary-color);
}

/* CARD */
.ranking-card {
    background: #f7f8fb;
    border-radius: 20px;
}

/* SELECT PILL */
.custom-pill {
    border: none;
    background: #e9ecef;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    outline: none;
}

/* INFO ICON */
.info-icon {
    width: 28px;
    height: 28px;
    border: 1px solid #ccc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

/* TABLE */
.ranking-table {
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    border-radius: 12px;
}

/* GRADIENT HEADER */
.gradient-header,
.table {
    background: linear-gradient(90deg, #5b6cff, #3f4bff) !important;
    color: var(--color-white);
}

.gradient-header th {
    padding: 14px 16px;
    border: none;
    font-weight: 500;
}

/* ROUND CORNERS */
.gradient-header th:first-child {
    border-top-left-radius: 12px;
}

.gradient-header th:last-child {
    border-top-right-radius: 12px;
}

/* BODY */
.ranking-table td {
    background: #fff;
    padding: 14px 16px;
    border-bottom: 1px solid #eee;
}

/* HOVER */
.ranking-table tbody tr:hover td {
    background: #f5f7ff;
}

/* BUTTON */
.export-btn {
    background: linear-gradient(135deg, #5b6cff, #3f4bff);
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 6px 20px;
}


/* DEFAULT (desktop stays same) */
.right-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* MOBILE FIX */
@media (max-width: 768px) {

    .ranking-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .right-section {
        width: 100%;
        flex-wrap: wrap;
        gap: 8px;
    }

    .custom-pill {
        flex: 1;
        min-width: 120px;
    }

    .info-icon {
        margin-left: auto;
    }
}


/* analytics */

.dashboard-card {
    border-radius: 20px;
    border: none;
    background: #f7f8fb;
}

.custom-pill {
    border: none;
    background: #e9ecef;
    padding: 6px 14px;
    border-radius: 20px;
}

.info-icon {
    width: 28px;
    height: 28px;
    border: 1px solid #ccc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* TRAFFIC SOURCES */
.source-item {
    margin-bottom: 12px;
}

.bar {
    overflow: hidden;
    height: 24px;
}

.bar div {
    background: linear-gradient(90deg, #5b6cff, #9aa4ff);
    height: 100%;
    color: #fff;
    font-size: 12px;
    text-align: right;
    padding-right: 8px;
}


/* WRAPPER */
.source-bar {
    margin-bottom: 12px;
    overflow: hidden;
}

/* FILLED BAR */
.source-bar .fill {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: linear-gradient(90deg, #4f5dff, #bfc6ff);
    color: #fff;
    font-size: 14px;
}

/* TEXT */
.source-bar .label {
    font-weight: 500;
}

.source-bar .value {
    font-size: 13px;
    color: #000;
}

/* BACKLINK */

/* TIME PILL */
.time-pill {
    background: #eef1f6;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 13px;
}

/* BUTTON */
.view-btn {
    background: #eef1f6;
    border: none;
    padding: 6px 14px;
    border-radius: 10px;
    font-size: 13px;
}

/* ITEM ROW */
.backlink-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 18px;
}

/* LABEL */
.backlink-item span:first-child {
    width: 60px;
    font-weight: 500;
}

/* VALUE */
.backlink-item .value {
    width: 50px;
    text-align: right;
    color: #555;
}

/* LINE BACKGROUND (DOTTED) */
.line-b {
    flex: 1;
    height: 6px;
    position: relative;
    background: repeating-linear-gradient(to right,
            #e5e7eb,
            #e5e7eb 6px,
            transparent 6px,
            transparent 12px);
    border-radius: 10px;
}

/* FILLED BAR */
.fill {
    height: 100%;
    background: #4f5dff;
    border-radius: 10px;
}

/* GEO */
/* CONTAINER */
.geo-container {
    text-align: center;
}

/* MAP */
#world-map {
    width: 100%;
    height: 260px;
    margin: 0 auto;
}

/* LEGEND */
.country-list {
    display: flex;
    justify-content: space-around;
    gap: 6px;
    margin-top: 25px;
    flex-wrap: wrap;
}

/* ITEM */
.country-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: #2d2f33;
}

/* FLAG */
.country-row img {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    object-fit: cover;
}

.chart-wrapper {
    position: relative;
    width: 100%;
    height: 240px;
}



/* ================= MOBILE ================= */
@media (max-width: 768px) {

    /* HEADER */
    .container .d-flex.justify-content-between {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 10px;
    }

    /* CARDS */
    .dashboard-card {
        padding: 16px !important;
    }

    /* TRAFFIC SOURCES */
    .source-bar .fill {
        font-size: 12px;
        padding: 6px 10px;
    }

    /* BACKLINK FIX */
    .backlink-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .backlink-item span:first-child {
        width: auto;
    }

    .backlink-item .value {
        width: 100%;
        text-align: right;
    }

    .line-b {
        width: 100%;
    }

    /* GEO SECTION STACK */
    .geo-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    /* CIRCLES CENTER */
    .circles {
        width: 100%;
        height: 180px;
        margin: 0 auto;
    }

    /* SCALE CIRCLES DOWN */
    .main-c {
        width: 120px;
        height: 120px;
        left: 50%;
        transform: translateX(-50%);
    }

    .light {
        width: 100px;
        height: 100px;
        left: 10%;
    }

    .dark {
        width: 80px;
        height: 80px;
        right: 10%;
        left: auto;
    }

    .small {
        width: 60px;
        height: 60px;
        left: 5%;
    }

    /* COUNTRY LIST */
    .country-row {
        gap: 10px;
    }

    .country-data .name {
        font-size: 14px;
    }

    .progress-line {
        width: 100%;
    }

}

/* ================= SMALL MOBILE ================= */
@media (max-width: 480px) {

    /* TITLE SIZE */
    h4,
    h5 {
        font-size: 18px;
    }

    /* BUTTON */
    .view-btn {
        width: 100%;
        text-align: center;
    }

    /* HEADER RIGHT */
    .custom-pill {
        width: 100%;
    }

}

/* Page speed */


/* BUTTON */
.start-btn {
    background: linear-gradient(90deg, #5b6cff, #4f5dff);
    color: #fff;
    border: none;
    padding: 8px 22px;
    border-radius: 25px;
    font-size: 14px;
}


/* CARD */
.gauge-card {
    width: 280px;
    background: #fff;
    border-radius: 18px;
    padding: 20px;
    border: 1px solid #eef1f6;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

/* TITLE */
.gauge-title {
    font-size: 13px;
    margin-bottom: 10px;
    color: #555;
}

/* WRAPPER */
.gauge-wrapper {
    position: relative;
    width: 100%;
    height: 160px;
}

/* CANVAS */
#gaugeChart {
    width: 100% !important;
    height: 100% !important;
}

/* VALUE CENTERED */
.gauge-value {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-weight: 600;
}

/* LAPTOP */
.laptop-img {
    max-width: 90%;
    height: auto;
}


/* TABLET */
@media (max-width: 992px) {
    .gauge-card {
        margin: 0 auto;
    }
}

/* MOBILE */
@media (max-width: 576px) {

    .gauge-card {
        width: 100%;
    }

    .gauge-wrapper {
        height: 140px;
    }

    .gauge-value {
        font-size: 16px;
    }

    .laptop-img {
        max-width: 100%;
    }

}


/* SIDEBAR */
.profile-sidebar {
    background: #fff;
    border-radius: 15px;
    padding: 20px;
}

.profile-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.profile-sidebar li {
    padding: 10px 0;
    color: #555;
    cursor: pointer;
}

.profile-sidebar li.active {
    color: #4f5dff;
    font-weight: 600;
}

/* MAIN CARD */
.profile-card {
    background: #fff;
    border-radius: 20px;
    padding: 30px;
}

/* AVATAR */
.avatar img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: #eee;
}

/* BUTTONS */
.primary-btn {
    background: linear-gradient(90deg, #5b6cff, #4f5dff);
    color: #fff;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
}

.light-btn {
    background: #f1f2f6;
    border: none;
    padding: 6px 16px;
    border-radius: 20px;
}

/* INPUT */
.custom-input {
    border-radius: 8px;
    border: 1px solid #ccc;
    padding: 10px;
}

/* GENDER BUTTON */
.gender-btn {
    flex: 1;
    border-radius: 8px;
    border: 1px solid #ccc;
    background: #fff;
}

.gender-btn.active {
    border-color: #4f5dff;
    color: #4f5dff;
}


/* MOBILE */
@media (max-width: 768px) {

    .profile-card {
        padding: 20px;
    }

    .avatar img {
        width: 60px;
        height: 60px;
    }

    .primary-btn {
        width: 100%;
    }

}

/* ALIGN RIGHT IMAGE */
@media (min-width: 992px) {
    .col-lg-7 {
        display: flex;
        justify-content: center;
    }
}


/* LAYOUT */
.score-section {
    justify-content: space-between;
}

/* LEFT */
.score-left {
    display: flex;
}

/* ITEM */
.score-item {
    text-align: center;
    font-size: 12px;
}

/* SVG CIRCLE */
.circle-p {
    width: 70px;
    height: 60px;
    position: relative;
}

.circle-p svg {
    width: 60px;
    height: 60px;
    transform: rotate(-90deg);
}

.circle-p circle {
    fill: none;
    stroke-width: 6;
    stroke-linecap: round;
}

.circle-p .bg {
    stroke: #ddd;
}

.circle-p .progress {
    stroke: #f1c40f;
    stroke-dasharray: 157;
    stroke-dashoffset: 157;
}

/* VALUE */
.circle-p span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 13px;
    font-weight: 600;
    color: #000;
}

/* LABEL */
.score-item p {
    margin-top: 6px;
    color: #555;
}

/* RIGHT SIDE */
.score-right {
    border-left: 1px solid #eee;
}

.score-right canvas {
    width: 80px !important;
    height: 40px !important;
}

/* SMALL TEXT */
.score-small {
    color: #CCD0FF;
    font-size: 11px;
}

/* BOX */
.bottom-box {
    background: #fff;
    border-radius: 15px;
    padding: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
}

/* CARD */
.mini-card {
    padding: 10px;
}

/* TITLE */
.mini-title {
    font-size: 13px;
    color: #666;
    margin-bottom: 5px;
}

/* VALUE + TEXT */
.mini-head {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 8px;
}

.mini-head h6 {
    margin: 0;
    font-weight: 600;
}

.mini-sub {
    font-size: 11px;
    color: #999;
}

/* CANVAS */
.mini-card canvas {
    width: 100% !important;
    height: 70px !important;
}


/* TABLET */
@media (max-width: 992px) {

    .score-section {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 20px;
    }

    .score-left {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
        gap: 15px;
    }

    .score-item {
        width: 22%;
    }

    .score-right {
        width: 100%;
        justify-content: space-between;
        border-left: none;
        border-top: 1px solid #eee;
        padding-top: 15px;
    }

}


/* MOBILE */
@media (max-width: 576px) {

    .score-left {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        /* 2 per row */
        gap: 20px;
        /* equal spacing */
        width: 100%;
        text-align: center;
    }

    .score-item {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        /* 🔥 center perfectly */
    }

    .circle-p {
        margin: 0 auto;
        /* 🔥 center circle */
    }

    .score-item p {
        margin-top: 6px;
        text-align: center;
    }

    /* RIGHT SECTION STACK */
    .score-right {
        flex-direction: column;
        gap: 15px;
    }

    .score-right>div {
        width: 100%;
        padding: 0;
        border: none !important;
    }

    /* ALIGN TEXT + CHART */
    .score-right .d-flex {
        justify-content: space-between;
    }

    /* CHART SIZE */
    .score-right canvas {
        width: 90px !important;
        height: 40px !important;
    }

}


/* CARD */

.seo-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 20px 22px;
    height: 100%;
    margin-top: 30px;
    display: flex;
    flex-direction: column;
}

/* TITLE */
.seo-card h6 {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 16px;
}

/* LIST */
.seo-list {
    list-style: none;
    padding-left: 28px;
    position: relative;
    flex: 1;
}

/* ✅ CENTER LINE (MASTER REFERENCE) */
.seo-list::before {
    content: '';
    position: absolute;
    left: 16px;
    top: 6px;
    height: calc(100% - 50px);
    border-left: 1.5px dashed #d6dbff;
}

/* LIST ITEM */
.seo-list li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 10px;
    font-size: 13px;
    color: #6b7280;
}

/* ✅ DOT PERFECTLY CENTERED ON LINE */
.seo-list li::before {
    content: '';
    position: absolute;
    left: -16px;
    /* 🔥 aligns center of dot to line */
    top: 5px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid #4f5dff;
    background: #ffffff;
}

/* ACTIVE */
.seo-list li.active {
    color: #111827;
    font-weight: 500;
}

.seo-list li.active::before {
    background: #4f5dff;
    border: none;
}

/* REMARK */
.seo-card label {
    font-size: 12px;
    color: #6b7280;
}

.seo-card textarea {
    height: 50px;
    border-radius: 6px;
    border: 1px solid #e5e7eb !important;
    padding: 6px 8px;
    font-size: 12px;
    resize: none;
}

/* STATUS */
.status {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    margin-top: 10px;
    margin-bottom: 5px;
    color: #6b7280;
}

/* PROGRESS */
.progress-bar-custom {
    height: 6px;
    background: #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar-custom div {
    height: 100%;
    background: #4f5dff;
    border-radius: 10px;
}

@media (max-width: 768px) {
    .seo-card {
        padding: 15px;
    }
}


.main-card {
    background: #fff;
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* INFO ICON */
.info-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f1f3f7;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* TABS */
.device-tabs {
    display: flex;
    gap: 10px;
}

.device-tabs button {
    border: none;
    padding: 8px 18px;
    border-radius: 20px;
    background: #eee;
}

.device-tabs .active {
    background: #5b5cff;
    color: #fff;
}

/* GAUGE */
.gauge-card {
    background: #f8f9fc;
    border-radius: 16px;
    padding: 20px;
}

.gauge-wrapper {
    position: relative;
    width: 150px;
    margin: auto;
}

.gauge-value {
    position: absolute;

    left: 50%;
    transform: translate(-50%, -50%);
}

.start-btn {
    background: #5b5cff;
    color: #fff;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
}

/* IMAGE */
.laptop-img {
    max-width: 100%;
    height: auto;
}

/* SCORE SECTION */
.score-section {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
}

.score-left {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.score-item {
    text-align: center;
}

/* CIRCLE */
.circle-p {
    position: relative;
    width: 60px;
    height: 60px;
}

.circle-p svg {
    transform: rotate(-90deg);
}

.circle-p circle {
    fill: none;
    stroke-width: 5;
}

.circle-p .bg {
    stroke: #eee;
}

.circle-p .progress {
    stroke: #ffcc00;
    stroke-dasharray: 157;
    stroke-dashoffset: 157;
}

.circle-p span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* RIGHT STATS */
.score-right {
    display: flex;
    gap: 20px;
}

.stat-box {
    padding: 15px 20px;
    border-left: 1px solid #eee;
}

/* BOTTOM */
.bottom-box {
    background: #f8f9fc;
    border-radius: 16px;
    margin-top: 25px;
    padding: 20px;
}

.mini-card {
    padding: 10px;
}

/* RESPONSIVE 🔥 */
@media (max-width: 768px) {

    .score-section {
        flex-direction: column;
    }

    .score-right {
        flex-direction: column;
        width: 100%;
    }

    .stat-box {
        border-left: none;
        border-top: 1px solid #eee;
    }

    .score-left {
        justify-content: center;
    }
}

.device-img {
    max-width: 100%;
    height: auto;
    transition: 0.3s ease;
}