/* Guides statistics dashboard */

.gs-wrap {
    width: 100%;
    background: #f8fafc;
    padding: 140px 24px 72px;
    box-sizing: border-box;
}

.gs-container {
    max-width: 1100px;
    margin: 0 auto;
}

.gs-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 32px;
}

.gs-header-copy {
    min-width: 0;
}

.gs-title {
    margin: 0 0 10px;
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.03em;
}

.gs-updated {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 14px;
    color: #64748b;
}

.gs-updated svg {
    flex-shrink: 0;
    color: #94a3b8;
}

.gs-header-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    border-radius: 12px;
    background: #2563eb;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.gs-header-btn:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

/* KPI cards */
.gs-kpis {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.gs-kpi {
    padding: 18px 16px;
    border-radius: 14px;
    box-sizing: border-box;
}

.gs-kpi--blue { background: #eff6ff; }
.gs-kpi--indigo { background: #eef2ff; }
.gs-kpi--violet { background: #f5f3ff; }
.gs-kpi--green { background: #ecfdf5; }
.gs-kpi--amber { background: #fffbeb; }

.gs-kpi-icon {
    width: 28px;
    height: 28px;
    margin-bottom: 12px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.gs-kpi--blue .gs-kpi-icon,
.gs-kpi--indigo .gs-kpi-icon { background: #dbeafe; color: #2563eb; }
.gs-kpi--violet .gs-kpi-icon { background: #ede9fe; color: #7c3aed; }
.gs-kpi--green .gs-kpi-icon { background: #d1fae5; color: #059669; }
.gs-kpi--amber .gs-kpi-icon { background: #fef3c7; color: #d97706; }

.gs-kpi-value {
    margin: 0 0 4px;
    font-size: 26px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.gs-kpi-label {
    margin: 0 0 2px;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
}

.gs-kpi-sub {
    margin: 0;
    font-size: 12px;
    color: #5c6b7e;
}

.gs-wrap .htb-breadcrumb a {
    color: #5c6b7e;
}

.gs-wrap .htb-breadcrumb a:hover {
    color: #334155;
}

/* Panels */
.gs-panel {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    box-sizing: border-box;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
}

.gs-panel-title {
    margin: 0 0 4px;
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
}

.gs-panel-sub {
    margin: 0 0 20px;
    font-size: 13px;
    color: #94a3b8;
}

.gs-row {
    display: grid;
    gap: 16px;
    margin-bottom: 16px;
}

.gs-row--2-1 {
    grid-template-columns: 1.7fr 1fr;
}

.gs-row--1-1 {
    grid-template-columns: 1fr 1fr;
}

/* Bar chart */
.gs-bars {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    height: 220px;
    padding-top: 8px;
    border-bottom: 1px solid #e2e8f0;
}

.gs-bar-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
    gap: 8px;
}

.gs-bar {
    width: 100%;
    max-width: 48px;
    border-radius: 8px 8px 4px 4px;
    background: #6366f1;
}

.gs-bar-label {
    font-size: 12px;
    color: #94a3b8;
}

/* Donut */
.gs-donut-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.gs-donut {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: conic-gradient(
        #3b82f6 0% 68%,
        #6366f1 68% 83%,
        #8b5cf6 83% 92%,
        #a78bfa 92% 97%,
        #c4b5fd 97% 100%
    );
    mask: radial-gradient(circle at center, transparent 52%, #000 53%);
    -webkit-mask: radial-gradient(circle at center, transparent 52%, #000 53%);
}

.gs-legend {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gs-legend-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
    color: #475569;
}

.gs-legend-left {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

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

.gs-legend-pct {
    font-weight: 700;
    color: #0f172a;
}

/* Line chart */
.gs-line-chart {
    width: 100%;
    height: 220px;
}

.gs-line-chart svg {
    width: 100%;
    height: 100%;
    display: block;
}

.gs-chart-legend {
    display: flex;
    gap: 16px;
    margin-top: 12px;
    font-size: 13px;
    color: #64748b;
}

.gs-chart-legend span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.gs-chart-legend i {
    display: inline-block;
    width: 16px;
    height: 3px;
    border-radius: 2px;
}

/* Brand bars */
.gs-brands {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.gs-brand-row {
    display: grid;
    grid-template-columns: 20px 90px 1fr 40px;
    align-items: center;
    gap: 10px;
    font-size: 13px;
}

.gs-brand-rank {
    color: #94a3b8;
    font-weight: 600;
}

.gs-brand-name {
    color: #0f172a;
    font-weight: 600;
}

.gs-brand-track {
    height: 8px;
    border-radius: 9999px;
    background: #f1f5f9;
    overflow: hidden;
}

.gs-brand-fill {
    height: 100%;
    border-radius: 9999px;
    background: #3b82f6;
}

.gs-brand-pct {
    text-align: right;
    font-weight: 700;
    color: #0f172a;
}

/* Table */
.gs-table-wrap {
    overflow-x: auto;
}

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

.gs-table th {
    padding: 12px 10px;
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #64748b;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.gs-table td {
    padding: 14px 10px;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
    vertical-align: middle;
}

.gs-table tr:last-child td {
    border-bottom: none;
}

.gs-loc {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #0f172a;
}

.gs-loc svg {
    color: #94a3b8;
    flex-shrink: 0;
}

.gs-badge-green {
    display: inline-flex;
    padding: 4px 10px;
    border-radius: 9999px;
    background: #d1fae5;
    color: #047857;
    font-size: 13px;
    font-weight: 700;
}

.gs-table-link {
    color: #2563eb;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.gs-table-link:hover {
    color: #1d4ed8;
}

/* Split cards */
.gs-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.gs-split-card {
    padding: 24px;
    border-radius: 16px;
    color: #fff;
    box-sizing: border-box;
}

.gs-split-card--blue {
    background: #2563eb;
}

.gs-split-card--green {
    background: #059669;
}

.gs-split-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.gs-split-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.gs-split-card--blue .gs-split-icon {
    background: rgba(255, 255, 255, 0.18);
}

.gs-split-card--green .gs-split-icon {
    background: rgba(255, 255, 255, 0.18);
}

.gs-split-head h3 {
    margin: 0 0 2px;
    font-size: 18px;
    font-weight: 800;
    color: #fff;
}

.gs-split-head p {
    margin: 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
}

.gs-split-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.gs-split-stats strong {
    display: block;
    margin-bottom: 4px;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #fff;
}

.gs-split-stats span {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.85);
}

/* Bottom CTA */
.gs-cta {
    text-align: center;
    padding: 40px 28px;
    border-radius: 16px;
    background: #0f172a;
    color: #fff;
    box-sizing: border-box;
}

.gs-cta h2 {
    margin: 0 0 10px;
    font-size: clamp(22px, 3vw, 28px);
    font-weight: 800;
    color: #fff;
}

.gs-cta p {
    margin: 0 auto 24px;
    max-width: 560px;
    font-size: 15px;
    line-height: 1.55;
    color: #94a3b8;
}

.gs-cta-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.gs-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.gs-cta-btn--primary {
    background: #2563eb;
    color: #fff;
}

.gs-cta-btn--primary:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

.gs-cta-btn--secondary {
    background: #1e293b;
    color: #fff;
    border: 1px solid #334155;
}

.gs-cta-btn--secondary:hover {
    border-color: #64748b;
    transform: translateY(-1px);
}

@media (max-width: 1100px) {
    .gs-kpis {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .gs-row--2-1,
    .gs-row--1-1,
    .gs-split {
        grid-template-columns: 1fr;
    }

    .gs-header {
        flex-direction: column;
        align-items: stretch;
    }

    .gs-header-btn {
        align-self: flex-start;
    }
}

@media (max-width: 640px) {
    .gs-wrap {
        padding: 120px 16px 56px;
    }

    .gs-kpis {
        grid-template-columns: 1fr 1fr;
    }

    .gs-brand-row {
        grid-template-columns: 18px 70px 1fr 36px;
        gap: 6px;
    }

    .gs-split-stats strong {
        font-size: 22px;
    }

    .gs-cta-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .gs-cta-btn {
        justify-content: center;
    }
}
