/* ============================================================
   Guardian Gaze – Shared Stylesheet  v2
   Font: Poppins
   ============================================================ */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --navy: #1e2560;
    --blue: #3a3d7c;
    --accent: #4f52b8;
    --accent-hover: #3e41a0;
    --orange: #f5a623;
    --green: #27ae60;
    --red: #e74c3c;
    --blue-mid: #3498db;

    --bg-page: #f0f0f5;
    --bg-card: #ffffff;
    --bg-table-hd: #f4f5fc;
    --border: #e0e0ec;
    --border-light: #ebebf5;
    --login-limit-card: #fff --text-dark: #1e2560;
    --text-body: #333350;
    --text-mid: #555577;
    --text-light: #9999bb;

    --shadow-sm: 0 1px 5px rgba(30, 37, 96, 0.06);
    --shadow-md: 0 2px 18px rgba(30, 37, 96, 0.09);
    --shadow-btn: 0 4px 14px rgba(79, 82, 184, 0.3);

    --radius: 8px;
    --radius-sm: 5px;
}

.gg-page {
    flex: 1;
    padding: 32px 6px 36px;
    width: 100%;
    margin: 0 auto;
}

.gg-page-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 20px;
}

.gg-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 24px 26px;
}
.gg-card-inner {
    background: var(#fff);
    box-shadow: none;
    padding: 18px 20px;
    border-radius: var(--radius);
}

.login-limit-card {
    background: var(--login-limit-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 18px 20px;
}
.gg-cards-col {
    background: var(--login-limit-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 18px 20px;
}

.login-first-section {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: none;
    padding: 18px 20px;
    margin-bottom: 20px;
}
.gg-card-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 14px;
}

/* ── Tabs ── */
.gg-tabs {
    display: flex;
    border-bottom: 1.5px solid var(--border);
    margin-bottom: 20px;
    background: var(--bg-card);
    border-radius: var(--radius) var(--radius) 0 0;
    padding: 0 4px;
}
.gg-tab {
    padding: 12px 20px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-mid);
    cursor: pointer;
    border-bottom: 2.5px solid transparent;
    margin-bottom: -1.5px;
    text-decoration: none;
    transition:
        color 0.15s,
        border-color 0.15s;
    white-space: nowrap;
}
.gg-tab:hover {
    color: var(--navy);
}
.gg-tab.active {
    color: var(--navy);
    border-bottom-color: var(--navy);
    font-weight: 600;
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 16px;
    font-family: "Poppins", sans-serif;
    font-size: 0.76rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition:
        background 0.15s,
        transform 0.1s,
        box-shadow 0.15s;
    text-decoration: none;
    white-space: nowrap;
}
.btn:active {
    transform: translateY(1px);
}
.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: var(--shadow-btn);
}
.btn-primary:hover {
    background: var(--accent-hover);
}
.btn-navy {
    background: var(--navy);
    color: #fff;
    box-shadow: 0 3px 10px rgba(30, 37, 96, 0.22);
}
.btn-blue {
    background: var(--blue);
    color: #fff !important;
    box-shadow: 0 3px 10px rgba(30, 37, 96, 0.22);
}
.btn-navy:hover {
    background: #ffffff;
}
.btn-orange {
    background: var(--orange);
    color: #fff;
}
.btn-orange:hover {
    background: #e09516;
}
.btn-outline {
    background: transparent;
    color: var(--accent);
    border: 1.5px solid var(--accent);
    width: fit-content;
}
.btn-outline:hover {
    background: rgba(79, 82, 184, 0.05);
}
.btn-danger {
    background: #fdecea;
    color: var(--red);
    border: 1.5px solid #f5c6c2;
}
.btn-danger:hover {
    background: #fbd5d2;
}
.btn-ghost {
    background: transparent;
    color: var(--text-mid);
    border: 1.5px solid var(--border);
}
.btn-ghost:hover {
    border-color: var(--accent);
    color: var(--accent);
}
.btn-sm {
    padding: 6px 12px;
    font-size: 0.72rem;
}
.btn-xs {
    padding: 4px 9px;
    font-size: 0.68rem;
}

/* ── Badges ── */
.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 600;
}
.badge-green {
    background: #e8f8f0;
    color: var(--green);
}
.badge-red {
    background: #fdecea;
    color: var(--red);
}
.badge-orange {
    background: #fef5e4;
    color: var(--orange);
}
.badge-blue {
    background: #e8f4fd;
    color: var(--blue-mid);
}
.badge-gray {
    background: #f0f0f6;
    color: var(--text-light);
}
.badge-count {
    background: #e8eaf8;
    color: var(--accent);
    font-size: 0.68rem;
    padding: 2px 7px;
    border-radius: 12px;
}

/* ── Tables ── */
.gg-table-wrap {
    overflow-x: auto;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    margin: 10 0;
}
.gg-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.78rem;
}
.gg-table thead tr {
    background: var(--bg-table-hd);
}
.gg-table th {
    padding: 12px 18px;
    text-align: left;
    font-weight: 600;
    color: var(--text-mid);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
    font-size: 0.74rem;
}
.gg-table th .sa {
    margin-left: 3px;
    opacity: 0.5;
    font-size: 0.6rem;
}
.gg-table td {
    padding: 12px 18px;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-body);
    vertical-align: middle;
}
.gg-table tr:last-child td {
    border-bottom: none;
}
.gg-table tr:hover td {
    background: #fafafe;
}
.link-action {
    color: var(--accent);
    cursor: pointer;
    font-weight: 500;
    text-decoration: none;
}
.link-action:hover {
    text-decoration: underline;
}
.link-remove {
    color: var(--red);
    cursor: pointer;
    font-weight: 500;
    font-size: 0.76rem;
    margin: 20px 0;
}

/* ── Forms ── */
.form-group {
    margin-bottom: 16px;
}
.form-label {
    display: block;
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--text-body);
    margin-bottom: 6px;
}
.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 9px 12px;
    font-family: "Poppins", sans-serif;
    font-size: 0.78rem;
    color: var(--text-body);
    background: #fafafa;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    outline: none;
    transition:
        border-color 0.15s,
        box-shadow 0.15s;
}
.form-textarea {
    resize: vertical;
    min-height: 90px;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(79, 82, 184, 0.1);
}
.form-hint {
    font-size: 0.68rem;
    color: var(--text-light);
    margin-top: 4px;
}
.form-hint-red {
    font-size: 0.7rem;
    color: var(--red);
    margin-top: 4px;
}

/* ── Progress bar ── */
.gg-prog-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0 18px;
}
.gg-prog-dir {
    font-size: 0.72rem;
    color: var(--text-mid);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 55%;
}
.gg-prog-dir strong {
    color: var(--text-body);
}
.gg-prog-track {
    flex: 1;
    height: 7px;
    background: var(--border-light);
    border-radius: 99px;
    overflow: hidden;
}
.gg-prog-fill {
    height: 100%;
    border-radius: 99px;
    background: linear-gradient(90deg, #4f52b8 0%, #7b80e8 100%);
}
.gg-prog-pct {
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--green);
    min-width: 32px;
    text-align: right;
}

/* ── Footer ── */
.gg-footer {
    border-top: 1px solid var(--border);
    padding: 12px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-page);
    margin-top: auto;
}
.gg-footer-copy {
    font-size: 0.68rem;
    color: var(--text-light);
}
.gg-footer-brand {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.68rem;
    color: var(--text-light);
}
.brand-logo {
    font-weight: 800;
    font-size: 0.7rem;
    color: var(--red);
}

/* ── Layout ── */
.row {
    display: flex;
    gap: 16px;
}
.col-half {
    flex: 1 1 0;
    min-width: 0;
}
.flex-between {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}
.flex-end {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}
.flex-center {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mt-4 {
    margin-top: 4px;
}
.mt-8 {
    margin-top: 8px;
}
.mt-12 {
    margin-top: 12px;
}
.mt-16 {
    margin-top: 16px;
}
.mt-20 {
    margin-top: 20px;
}
.mt-24 {
    margin-top: 24px;
}
.mb-4 {
    margin-bottom: 4px;
}
.mb-8 {
    margin-bottom: 8px;
}
.mb-12 {
    margin-bottom: 12px;
}
.mb-16 {
    margin-bottom: 16px;
}
.mb-20 {
    margin-bottom: 20px;
}
.mb-24 {
    margin-bottom: 24px;
}

.text-green {
    color: var(--green);
}
.text-red {
    color: var(--red);
}
.text-orange {
    color: var(--orange);
}
.text-blue {
    color: var(--blue-mid);
}
.text-accent {
    color: var(--accent);
}
.text-light {
    color: var(--text-light);
}
.text-mid {
    color: var(--text-mid);
}
.fw-600 {
    font-weight: 600;
}
.fw-700 {
    font-weight: 700;
}
.fs-11 {
    font-size: 0.68rem;
}
.fs-12 {
    font-size: 0.74rem;
}

/* ══════════════════════════════════════════════════════════
   DASHBOARD
   ══════════════════════════════════════════════════════════ */
.dash-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    gap: 10px;
}

.grade-donut {
    position: relative;
    width: 100px;
    height: 100px;
    flex-shrink: 0;
}
.grade-donut svg {
    width: 100%;
    height: 100%;
}
.grade-letter {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--navy);
    line-height: 1;
}
.grade-letter small {
    font-size: 0.55rem;
    font-weight: 500;
    color: var(--text-light);
}

.perf-bars {
    flex: 1;
    min-width: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
}
.perf-bar-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 10px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-card);
}
.perf-bar-row:last-child {
    border-bottom: none;
}
.perf-bar-lbl {
    font-size: 0.65rem;
    color: var(--text-mid);
    width: 76px;
    flex-shrink: 0;
    font-weight: 500;
}
.perf-bar-out {
    flex: 1;
    height: 13px;
    background: var(--border-light);
    border-radius: 3px;
    overflow: hidden;
}
.perf-bar-in {
    height: 100%;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 7px;
}
.perf-bar-in span {
    font-size: 0.65rem;
    font-weight: 700;
    color: #fff;
}
.perf-axis {
    display: flex;
    justify-content: space-between;
    padding: 3px 10px 2px;
    font-size: 0.58rem;
    color: var(--text-light);
    border-top: 1px solid var(--border);
    background: var(--bg-card);
}
/* metric cards */
.metric-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 18px;
}
.metric-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 20px;
}
.mc-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}
.mc-name {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--navy);
}
.mc-tag {
    font-size: 0.6rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 3px;
}
.tag-green {
    background: #e8f8f0;
    color: var(--green);
}
.tag-orange {
    background: #fef5e4;
    color: var(--orange);
}
.tag-red {
    background: #fdecea;
    color: var(--red);
}
.mc-body {
    display: flex;
    align-items: center;
    gap: 10px;
}
.mc-ring {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    position: relative;
}
.mc-ring svg {
    width: 100%;
    height: 100%;
}
.mc-ring-lbl {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.52rem;
    font-weight: 700;
    color: var(--text-body);
}
.mc-num {
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1;
}
.mc-grade {
    font-size: 0.62rem;
    color: var(--text-light);
}
.mc-foot {
    font-size: 0.6rem;
    color: var(--text-light);
    margin-top: 8px;
    padding-top: 6px;
    border-top: 1px solid var(--border-light);
}

/* wp info */
.wp-info-list {
    list-style: none;
}
.wp-info-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 7px 0;
    font-size: 0.78rem;
    color: var(--text-mid);
    border-bottom: 1px solid var(--border-light);
}
.wp-info-list li:last-child {
    border-bottom: none;
}
.wi-ico {
    flex-shrink: 0;
    margin-top: 1px;
    font-size: 0.9rem;
    color: var(--accent);
}

/* country table */
.country-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 0;
    border-bottom: 1px solid var(--border-light);
}
.country-row:last-child {
    border-bottom: none;
}
.c-flag {
    font-size: 0.95rem;
    width: 22px;
}
.c-name {
    font-size: 0.76rem;
    color: var(--text-body);
    flex: 0 0 96px;
}
.c-num {
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--text-body);
    flex: 0 0 40px;
}
.c-bar-out {
    flex: 1;
    height: 5px;
    background: var(--border-light);
    border-radius: 99px;
    overflow: hidden;
}
.c-bar-in {
    height: 100%;
    border-radius: 99px;
    background: var(--blue-mid);
}

/* support cards – equal height, button always at bottom */
.support-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 18px;
}
.support-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    display: flex;
    flex-direction: column;
}
.sc-ico {
    font-size: 1.2rem;
    margin-bottom: 6px;
}
.sc-title {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 4px;
}
.sc-desc {
    font-size: 0.68rem;
    color: var(--text-light);
    margin-bottom: 12px;
    line-height: 1.55;
    flex: 1;
}

/* audit popup */
.audit-popup {
    position: fixed;
    top: 8px;
    right: 50px;
    z-index: 999;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    padding: 16px 18px;
    width: 260px;
}
.audit-popup-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 6px;
}
.audit-popup-body {
    font-size: 0.72rem;
    color: var(--text-mid);
    line-height: 1.6;
    margin-bottom: 12px;
}

/* ══════════════════════════════════════════════════════════
   SCAN
   ══════════════════════════════════════════════════════════ */
.scan-ctrl-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    gap: 10px;
}
.scan-sel {
    padding: 7px 10px;
    font-family: "Poppins", sans-serif;
    font-size: 0.76rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: #fafafa;
    color: var(--text-body);
    outline: none;
}
.scan-sel:focus {
    border-color: var(--accent);
}

.stat4-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
.stat4-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.s4-ring {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    position: relative;
}
.s4-ring svg {
    width: 100%;
    height: 100%;
}
.s4-rlbl {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.52rem;
    font-weight: 700;
    color: var(--text-body);
}
.s4-lbl {
    font-size: 0.68rem;
    color: var(--text-mid);
}
.s4-val {
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.1;
}

.empty-state {
    text-align: center;
    padding: 50px 20px;
    color: var(--text-light);
}
.empty-state svg {
    width: 54px;
    height: 54px;
    opacity: 0.3;
    margin-bottom: 10px;
}
.empty-state p {
    font-size: 0.8rem;
}

/* ══════════════════════════════════════════════════════════
   SCHEDULER
   ══════════════════════════════════════════════════════════ */
.sched-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 16px;
    align-items: start;
}
.sched-mode-grid {
    display: grid;
    /* grid-template-columns: 1fr 1fr; */
    gap: 12px;
    margin-bottom: 16px;
}
.sched-mode-card {
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 14px;
}
.sched-mode-card.sel {
    border-color: var(--accent);
    background: rgba(79, 82, 184, 0.03);
}
.smc-title {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 4px;
}
.smc-desc {
    font-size: 0.68rem;
    color: var(--text-light);
    line-height: 1.55;
    margin-bottom: 8px;
}
.smc-meta {
    font-size: 0.68rem;
    color: var(--text-mid);
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}

.not-sched {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-light);
}
.not-sched svg {
    width: 42px;
    height: 42px;
    opacity: 0.28;
    margin-bottom: 10px;
}
.not-sched p {
    font-size: 0.74rem;
    line-height: 1.7;
}

.sched-info-tbl {
    width: 100%;
    border-collapse: collapse;
}
.sched-info-tbl td {
    padding: 9px 12px;
    font-size: 0.77rem;
    border-bottom: 1px solid var(--border-light);
    vertical-align: top;
}
.sched-info-tbl tr:last-child td {
    border-bottom: none;
}
.sched-info-tbl td:first-child {
    color: var(--text-light);
    width: 50%;
}
.sched-info-tbl td:last-child {
    font-weight: 500;
    color: var(--text-body);
}

/* ══════════════════════════════════════════════════════════
   HISTORY
   ══════════════════════════════════════════════════════════ */
.inf-banner {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 18px;
    margin-bottom: 18px;
}
.inf-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 2px;
}
.inf-date {
    color: var(--accent);
    font-weight: 600;
}
.inf-sub {
    font-size: 0.74rem;
    color: var(--text-mid);
}

/* ══════════════════════════════════════════════════════════
   LOGIN SECURITY
   ══════════════════════════════════════════════════════════ */
.ls3-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}
.ls-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.ls-ico {
    font-size: 1.3rem;
    flex-shrink: 0;
}
.ls-lbl {
    font-size: 0.66rem;
    color: var(--text-light);
}
.ls-val {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
}
.ll-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 0.76rem;
    color: var(--text-mid);
}
.ll-key {
    min-width: 170px;
}

/* ══════════════════════════════════════════════════════════
   IP MANAGEMENT
   ══════════════════════════════════════════════════════════ */
.ip-tabs {
    display: flex;
    border-bottom: 1.5px solid var(--border);
    margin-bottom: 20px;
    border-radius: var(--radius);
}
.ip-tab {
    padding: 10px 18px;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-mid);
    cursor: pointer;
    border-bottom: 2.5px solid transparent;
    margin-bottom: -1.5px;
    text-decoration: none;
    transition:
        color 0.15s,
        border-color 0.15s;
    display: flex;
    align-items: center;
    gap: 5px;
}
.ip-tab:hover {
    color: var(--navy);
}
.ip-tab.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
    font-weight: 600;
}
.dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}
.dot-green {
    background: var(--green);
}
.dot-black {
    background: #222;
}
.dot-red {
    background: var(--red);
}
.dot-teal {
    background: #17a589;
}
.dot-blue {
    background: var(--blue-mid);
}

.wl-status-row {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.wl-toggle-lbl {
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--text-body);
    flex: 0 0 130px;
}
.wl-warn {
    font-size: 0.7rem;
    color: var(--red);
    display: flex;
    align-items: center;
    gap: 5px;
}

.toggle-switch {
    position: relative;
    width: 38px;
    height: 20px;
    flex-shrink: 0;
}
.toggle-switch input {
    display: none;
}
.toggle-track {
    position: absolute;
    inset: 0;
    background: var(--border);
    border-radius: 99px;
    cursor: pointer;
    transition: background 0.2s;
}
.toggle-switch input:checked + .toggle-track {
    background: var(--accent);
}
.toggle-thumb {
    position: absolute;
    left: 3px;
    top: 3px;
    width: 14px;
    height: 14px;
    background: #fff;
    border-radius: 50%;
    transition: left 0.2s;
    pointer-events: none;
}
.toggle-switch input:checked ~ .toggle-thumb {
    left: 21px;
}

.add-ip-row {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.add-ip-lbl {
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--text-body);
    flex: 0 0 155px;
    padding-top: 8px;
}
.add-ip-inp {
    flex: 1;
    min-width: 200px;
}
.add-ip-hint {
    font-size: 0.66rem;
    color: var(--text-light);
    margin-top: 4px;
}

/* ══ Country list rows ══ */
.gg-country-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin-top: 16px;
}

.gg-country-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-bottom: 1px solid var(--border-light);
    background: var(--bg-card);
    transition: background 0.12s;
}

.gg-country-row:last-child {
    border-bottom: none;
}

.gg-country-row:hover {
    background: #f7f7fc;
}

.gg-country-name {
    flex: 1;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--navy);
    display: flex;
    align-items: center;
    gap: 8px;
}

.gg-country-status {
    font-size: 0.7rem;
    font-weight: 600;
    min-width: 56px;
    text-align: right;
}

.gg-country-status.allowed {
    color: var(--green);
}

.gg-country-status.blocked {
    color: var(--red);
}

/* Larger toggle for country rows */
.toggle-lg {
    width: 46px;
    height: 24px;
}

.toggle-lg .toggle-thumb {
    width: 18px;
    height: 18px;
}

.toggle-lg input:checked ~ .toggle-thumb {
    left: 25px;
}

/* ══ scrollbar ══ */
::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 99px;
}
.score-circle{
    position:relative;
    width:140px;
    height:140px;
}

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

.circle-bg{
    fill:none;
    stroke:#e5e7eb;
    stroke-width:10;
}

.circle-progress{
    fill:none;
    stroke-width:10;
    stroke-linecap:round;

    transition:stroke-dashoffset 1.5s ease;
}

.score-text{
    position:absolute;
    top:50%;
    left:50%;
    transform:translate(-50%,-50%);
    font-size:28px;
    font-weight:700;
}

.metric-card{
    position:relative;
}

.scan-overlay{
    position:absolute;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background:rgba(0,0,0,0.6);
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    font-weight:600;
    font-size:16px;
    cursor:pointer;
    border-radius:8px;
    z-index: 1;
    padding:7px;
}

.score-circle2{
    position: relative;
    width:80px;
    height:80px;
}

.score-circle2 svg{
    transform:rotate(-90deg);
}

.grade-letter2{
    position:absolute;
    top:50%;
    left:50%;
    transform:translate(-50%, -50%);
    text-align:center;
    font-weight:600;
    line-height:1.2;
}
.green{
    color:#16a34a;
}
.blue{
    color:#2563eb;
}
.yellow{
    color:#f59e0d;
}
.red{
    color:#ef4444;
}
.gray{
    color:#6b7280;
}

.bg-green{
    background: #e8f8f0;
    color: var(--green);
}
.bg-blue{
    background-color: #e8f4fd;
    color: var(--blue-mid);
}
.bg-yellow{
    background-color: #fef9e7;
    color: var(--orange);
}
.bg-red{
    background-color: #fde2e2;
    color: var(--red);
}
.bg-gray{
    background-color: #f8f9fa;
    color: var(--text-light);
}

 @keyframes spin-ring {
      to { stroke-dashoffset: -88; }
    }
    .ring-spin { animation: spin-ring 1.2s linear infinite; }.gg-card-title-no-margin {
    margin-bottom: 0;
}

.scan-ctrl-flex {
    display: flex;
    gap: 8px;
    align-items: center;
}

.divider-bordered {
    border-top: 1px solid var(--border);
    margin: 10px 0;
    padding-top: 10px;
}

.current-dir-text {
    font-size: .76rem;
    color: var(--text-mid);
}

.current-dir-value {
    color: var(--accent);
}

.estimated-time-text {
    font-size: .76rem;
    color: var(--text-mid);
    display: none;
}

.estimated-time-value {
    color: var(--accent);
}

.progress-bar-container {
    margin: 12px 0 16px;
    display: none;
}

.progress-bar-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.progress-bar-track {
    flex: 1;
    height: 7px;
    background: var(--border-light);
    border-radius: 99px;
    overflow: hidden;
}

.progress-bar-fill {
    width: 0%;
    height: 100%;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--accent) 0%, #7b80e8 100%);
}

.progress-bar-text {
    font-size: .74rem;
    font-weight: 700;
    color: var(--green);
}

.stat4-grid-hidden {
    display: none;
}

.s4-rlbl-green {
    color: #27ae60;
}

.s4-rlbl-blue {
    color: var(--blue-mid);
}

.s4-rlbl-orange {
    color: var(--orange);
}

.s4-val-green {
    color: var(--green);
}

.s4-val-blue {
    color: var(--blue-mid);
}

.s4-val-orange {
    color: var(--orange);
}

.results-list-hidden {
    display: none;
}

.table-cell-min-width {
    min-width: 140px;
}

.page-title-no-margin {
    margin-bottom: 0;
}

.average-rating-text {
    font-size: .65rem;
    color: var(--text-light);
}

.flex-center-gap {
    gap: 20px;
    flex-wrap: wrap;
}

.perf-bar-width-90 {
    width: 90%;
    background: #27ae60;
}

.perf-bar-width-70 {
    width: 70%;
    background: #3498db;
}

.perf-bar-width-50 {
    width: 50%;
    background: #f5a623;
}

.perf-bar-width-20 {
    width: 20%;
    background: #e74c3c;
}

.schedule-status-container {
    display: flex;
    gap: 20px;
    align-items: center;
    font-size: .78rem;
}

.label-flex-style {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.label-text-mid {
    color: var(--text-mid);
}

.label-navy-bold {
    color: var(--navy);
    font-weight: 600;
}

.radio-accent {
    accent-color: var(--accent);
}

.schedule-mode-title {
    font-size: .78rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 10px;
}

.email-input-container {
    margin-top: 16px;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.schedule-info-card-noshadow {
    box-shadow: none;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.schedule-info-hidden {
    display: none;
}

.support-card .btn-outline.btn-xs {
    width: fit-content !important;
    align-self: flex-start;
}

.gg-card-title-no-margin {
    margin-bottom: 0;
}

.gg-card-title-small-margin {
    margin-bottom: 2px;
}

.login-description {
    font-size: 0.68rem;
    color: var(--text-light);
}

/* Premium features grid */
.gg-premium-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
@media (max-width: 1100px) {
    .gg-premium-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .gg-premium-grid { grid-template-columns: 1fr; }
}
.gg-premium-card {
    position: relative;
    background: #f7f8ff;
    border: 1px solid #e0e2f7;
    border-radius: var(--radius);
    padding: 16px;
    overflow: hidden;
    opacity: 0.85;
}
.gg-premium-lock {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #6366f1;
    color: #fff;
    border-radius: 20px;
    padding: 3px 8px;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}
.gg-premium-icon {
    margin-bottom: 10px;
}
.gg-premium-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 5px;
}
.gg-premium-desc {
    font-size: 0.68rem;
    color: var(--text-light);
    line-height: 1.5;
}

/* ============================================================
   Registration Gate – blur wall + CTA overlay
   ============================================================ */
.gg-reg-wall-wrap {
    position: relative;
}

.gg-reg-blurred {
    filter: blur(4px);
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
}

.gg-reg-gate {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.gg-reg-gate-inner {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 8px 40px rgba(30, 37, 96, 0.18);
    padding: 44px 48px 40px;
    max-width: 460px;
    width: 100%;
    text-align: center;
}

.gg-reg-gate-icon {
    margin-bottom: 18px;
}

.gg-reg-gate-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 10px;
}

.gg-reg-gate-desc {
    font-size: 0.84rem;
    color: var(--text-mid);
    margin-bottom: 24px;
    line-height: 1.6;
}

.gg-reg-gate-btn {
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px 32px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    font-family: inherit;
}

.gg-reg-gate-btn:hover {
    background: var(--accent-hover);
}

/* ============================================================
   Registration Modal
   ============================================================ */
.gg-reg-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 12, 40, 0.55);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.gg-reg-modal {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 12px 60px rgba(30, 37, 96, 0.22);
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    animation: ggModalIn 0.22s ease;
}

@keyframes ggModalIn {
    from { opacity: 0; transform: translateY(-18px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0)    scale(1);    }
}

.gg-reg-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px 14px;
    border-bottom: 1px solid var(--border-light);
}

.gg-reg-modal-logo {
    display: flex;
    align-items: center;
    gap: 9px;
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--navy);
}

.gg-reg-modal-close {
    background: none;
    border: none;
    font-size: 1.4rem;
    line-height: 1;
    color: var(--text-mid);
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
    transition: background 0.15s;
}

.gg-reg-modal-close:hover {
    background: var(--border-light);
    color: var(--navy);
}

/* Option cards */
.gg-reg-options {
    padding: 22px 22px 24px;
}

.gg-reg-options-subtitle {
    font-size: 0.84rem;
    color: var(--text-mid);
    margin-bottom: 16px;
    text-align: center;
}

.gg-reg-option-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.gg-reg-option-card {
    background: none;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    padding: 20px 16px;
    cursor: pointer;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
    font-family: inherit;
}

.gg-reg-option-card:hover {
    border-color: var(--accent);
    background: #f5f5ff;
    box-shadow: 0 2px 12px rgba(79, 82, 184, 0.12);
}

.gg-reg-option-icon {
    font-size: 1.6rem;
}

.gg-reg-option-card strong {
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--navy);
}

.gg-reg-option-card span {
    font-size: 0.75rem;
    color: var(--text-mid);
    line-height: 1.4;
}

/* Panels */
.gg-reg-panel {
    padding: 6px 22px 26px;
}

.gg-reg-panel h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy);
    margin: 10px 0 6px;
}

.gg-reg-panel-sub {
    font-size: 0.8rem;
    color: var(--text-mid);
    margin-bottom: 18px;
    line-height: 1.5;
}

.gg-reg-back {
    background: none;
    border: none;
    color: var(--accent);
    font-size: 0.8rem;
    cursor: pointer;
    padding: 4px 0;
    font-family: inherit;
    margin-bottom: 4px;
}

.gg-reg-back:hover {
    text-decoration: underline;
}

/* Fields */
.gg-reg-field {
    margin-bottom: 14px;
}

.gg-reg-field label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-dark, #1e2560);
    margin-bottom: 5px;
}

.gg-reg-field input[type="email"],
.gg-reg-field input[type="text"] {
    width: 100%;
    padding: 9px 12px;
    border: 1.5px solid var(--border);
    border-radius: 7px;
    font-size: 0.84rem;
    font-family: inherit;
    color: var(--text-body);
    transition: border-color 0.18s;
    background: #fff;
}

.gg-reg-field input[type="email"]:focus,
.gg-reg-field input[type="text"]:focus {
    outline: none;
    border-color: var(--accent);
}

.gg-reg-field-check label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-weight: 400;
    font-size: 0.78rem;
    color: var(--text-mid);
    cursor: pointer;
}

.gg-reg-field-check input[type="checkbox"] {
    margin-top: 2px;
    flex-shrink: 0;
}

.gg-reg-field-check a {
    color: var(--accent);
    text-decoration: none;
}

.gg-reg-field-check a:hover {
    text-decoration: underline;
}

/* Message */
.gg-reg-msg {
    padding: 9px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    margin-bottom: 12px;
}

.gg-reg-msg.gg-msg-error {
    background: #fff0f0;
    border: 1px solid #f5c6c6;
    color: #c0392b;
}

.gg-reg-msg.gg-msg-success {
    background: #f0fff4;
    border: 1px solid #b2dfce;
    color: #1a7a4a;
}

/* Actions */
.gg-reg-actions {
    margin-top: 18px;
}

.gg-reg-submit {
    width: 100%;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    font-family: inherit;
}

.gg-reg-submit:hover:not(:disabled) {
    background: var(--accent-hover);
}

.gg-reg-submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.gg-reg-hint {
    font-size: 0.73rem;
    color: var(--text-light);
    margin-top: 12px;
    line-height: 1.4;
    text-align: center;
}

/* Success panel */
.gg-reg-panel-success {
    text-align: center;
    padding-top: 30px;
    padding-bottom: 32px;
}

.gg-reg-success-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #e8f8ef;
    color: #27ae60;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-weight: 700;
}

@media (max-width: 480px) {
    .gg-reg-gate-inner    { padding: 28px 18px 24px; }
    .gg-reg-option-cards  { grid-template-columns: 1fr; }
    .gg-reg-modal         { border-radius: 10px; }
}


.gg-ip-link-button {
    background: none;
    border: none;
    padding: 0;
    margin: 0;

    color: #0073aa;
    text-decoration: underline;
    cursor: pointer;

    font: inherit;
}

.gg-flags {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    vertical-align: middle;
    margin-right: 8px;
}

/* pagination */
/* Wrapper */
.gg-pagination-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

/* Info text */
.gg-pagination-info {
    font-size: 13px;
    color: #6b7280;
}

/* Pagination container */
.gg-pagination {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

/* Buttons */
.gg-page-btn {
    display: inline-block;
    padding: 6px 10px;
    font-size: 13px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    text-decoration: none;
    color: #374151;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* Hover */
.gg-page-btn:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
}

/* Active page */
.gg-page-btn.active {
    background: #2271b1; /* WordPress blue */
    color: #fff;
    border-color: #2271b1;
    cursor: default;
}

/* disabled state */
.gg-page-btn.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.gg-api-key-display {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8f9fa;
    padding: 10px;
    border-radius: 4px;
    margin: 10px 0;
}
.gg-api-key-display code {
    flex: 1;
    padding: 8px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
}
.gg-copy-api-key {
    white-space: nowrap;
}


.gg_icon-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #6b7280;
    font-size: 10px;
    font-weight: 600;
}

.gg_icon-btn:hover {
    color: #3b82f6;
}

.gg_icon-btn svg {
    color: #9ca3af;
}

.gg_icon-btn:hover svg {
    color: #3b82f6;
}

/* ── Site Overview grid ─────────────────────────────────────── */
.gg-site-overview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

@media (max-width: 1200px) {
    .gg-site-overview-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 700px) {
    .gg-site-overview-grid {
        grid-template-columns: 1fr;
    }
}

.gg-sov-tile {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 9px 10px;
    border-radius: 8px;
    background: #f9fafb;
    border: 1px solid #f0f0f0;
    min-width: 0;
}

.gg-sov-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gg-sov-body {
    min-width: 0;
    flex: 1;
}

.gg-sov-label {
    font-size: 10px;
    color: #9ca3af;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    line-height: 1.2;
}

.gg-sov-value {
    font-size: 12px;
    color: #1f2937;
    font-weight: 600;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gg-sov-badge {
    margin-top: 3px;
}

.gg-badge-ok {
    display: inline-block;
    padding: 1px 7px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    background: #dcfce7;
    color: #16a34a;
}

.gg-badge-warn {
    display: inline-block;
    padding: 1px 7px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    background: #fef3c7;
    color: #b45309;
}

.gg-badge-err {
    display: inline-block;
    padding: 1px 7px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    background: #fee2e2;
    color: #dc2626;
}