/* ==========================================================
   HCG — STATISTICS SECTION
   World-class editorial metric cards
========================================================== */

.hcg-statistics-section {
    position: relative;
    overflow: hidden;
    padding: clamp(56px, 7vw, 92px) 0;
    background:
        radial-gradient(circle at 8% 15%, rgba(241, 165, 26, .055), transparent 26%),
        linear-gradient(180deg, #f7f9fb 0%, #f2f5f8 100%);
}

.hcg-statistics-section::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: radial-gradient(rgba(10, 46, 99, .10) .8px, transparent .8px);
    background-size: 24px 24px;
    mask-image: linear-gradient(90deg, rgba(0,0,0,.35), transparent 34%, transparent 66%, rgba(0,0,0,.22));
    opacity: .28;
}

.hcg-statistics-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(18px, 2vw, 28px);
}

.hcg-statistics-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 286px;
    padding: clamp(25px, 2.5vw, 34px);
    overflow: hidden;
    isolation: isolate;
    background: linear-gradient(145deg, rgba(255,255,255,.98), rgba(248,250,252,.96));
    border: 1px solid rgba(10, 46, 99, .105);
    border-radius: 18px;
    box-shadow: 0 12px 32px rgba(10, 35, 65, .055), 0 2px 7px rgba(10, 35, 65, .035);
    transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}

.hcg-statistics-card::before {
    content: "";
    position: absolute;
    z-index: -1;
    width: 190px;
    height: 190px;
    right: -78px;
    top: -82px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(10,46,99,.065), transparent 67%);
}

.hcg-statistics-card:hover {
    transform: translateY(-5px);
    border-color: rgba(10, 46, 99, .18);
    box-shadow: 0 20px 44px rgba(10, 35, 65, .10), 0 3px 9px rgba(10, 35, 65, .045);
}

.hcg-statistics-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 18px;
    margin-bottom: 25px;
}

.hcg-statistics-index {
    color: #718096;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: .16em;
}

.hcg-statistics-mark {
    width: 38px;
    height: 3px;
    border-radius: 999px;
    background: #f2a900;
    box-shadow: 0 0 0 5px rgba(242,169,0,.07);
}

.hcg-statistics-number {
    margin-bottom: 8px;
    color: #0a2e63;
    font-size: clamp(34px, 3.2vw, 48px);
    font-weight: 750;
    line-height: .98;
    letter-spacing: -.045em;
}

.hcg-statistics-title {
    max-width: 19ch;
    margin: 0 0 13px;
    color: #102b4e;
    font-size: clamp(19px, 1.7vw, 25px);
    font-weight: 700;
    line-height: 1.18;
    letter-spacing: -.025em;
}

.hcg-statistics-description {
    max-width: 34ch;
    margin: 0;
    color: #49627d;
    font-size: 16px;
    line-height: 1.65;
}

.hcg-statistics-card-line {
    width: 48px;
    height: 1px;
    margin-top: auto;
    padding-top: 1px;
    background: rgba(10, 46, 99, .20);
}

@media (max-width: 991px) {
    .hcg-statistics-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .hcg-statistics-section {
        padding: 48px 0;
    }

    .hcg-statistics-grid {
        grid-template-columns: 1fr;
    }

    .hcg-statistics-card {
        min-height: 0;
        padding: 25px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hcg-statistics-card {
        transition: none;
    }
}

/* ==========================================================
   ADMIN — STATISTICS EDITOR
========================================================== */

.hcg-statistics-admin-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

.hcg-statistics-admin-eyebrow {
    display: block;
    margin-bottom: 7px;
    color: #f2a900;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .14em;
}

.hcg-statistics-admin-header h2 {
    margin: 0 0 7px;
}

.hcg-statistics-admin-count {
    flex: 0 0 auto;
    padding: 8px 12px;
    color: #0a2e63;
    background: #f2f6fa;
    border: 1px solid #dce6ef;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.hcg-statistics-admin-divider {
    height: 1px;
    margin: 24px 0;
    background: #e5ebf1;
}

.hcg-statistics-admin-intro {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 18px;
    color: #5b6b7e;
    font-size: 13px;
}

.hcg-statistics-admin-intro strong {
    color: #1c3553;
}

.hcg-statistics-admin-items {
    display: grid;
    gap: 14px;
}

.hcg-statistics-item {
    overflow: hidden;
    background: #fff;
    border: 1px solid #dfe7ef;
    border-radius: 12px;
    box-shadow: 0 2px 7px rgba(10,35,65,.035);
}

.hcg-statistics-item-head {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 14px;
    background: #f8fafc;
    border-bottom: 1px solid #e8edf2;
}

.hcg-statistics-drag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #718096;
    cursor: grab;
    font-size: 20px;
    line-height: 1;
}

.hcg-statistics-drag:active {
    cursor: grabbing;
}

.hcg-statistics-item-label {
    color: #748296;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .14em;
}

.hcg-remove-statistics-item {
    margin-left: auto;
    padding: 4px 8px;
    border: 0;
    background: transparent;
    color: #b42318;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
}

.hcg-remove-statistics-item:hover {
    text-decoration: underline;
}

.hcg-statistics-fields {
    display: grid;
    grid-template-columns: minmax(150px, .55fr) minmax(200px, 1fr) minmax(260px, 1.7fr);
    gap: 16px;
    padding: 18px;
}

.hcg-statistics-field label {
    display: block;
    margin-bottom: 7px;
    color: #33475f;
    font-size: 12px;
    font-weight: 600;
}

.hcg-statistics-field input,
.hcg-statistics-field textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #d7e0e8;
    border-radius: 7px;
    box-shadow: none;
}

.hcg-statistics-field input:focus,
.hcg-statistics-field textarea:focus {
    border-color: #0a2e63;
    box-shadow: 0 0 0 1px #0a2e63;
}

.hcg-statistics-field textarea {
    resize: vertical;
    min-height: 74px;
}

.hcg-statistics-admin-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid #e5ebf1;
}

.hcg-statistics-add-button {
    display: inline-flex !important;
    align-items: center;
    gap: 7px;
}

.hcg-statistics-add-button span {
    font-size: 18px;
    line-height: 1;
}

.hcg-statistics-save-button {
    min-width: 140px;
}

@media (max-width: 900px) {
    .hcg-statistics-fields {
        grid-template-columns: 1fr 1fr;
    }

    .hcg-statistics-field-wide {
        grid-column: 1 / -1;
    }
}

@media (max-width: 600px) {
    .hcg-statistics-admin-header,
    .hcg-statistics-admin-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .hcg-statistics-count {
        align-self: flex-start;
    }

    .hcg-statistics-fields {
        grid-template-columns: 1fr;
    }

    .hcg-statistics-field-wide {
        grid-column: auto;
    }

    .hcg-statistics-save-button {
        width: 100%;
    }
}
