.gdi-fo-hero {
    background: linear-gradient(135deg, #050A24 0%, #1a0a38 45%, #720AA4 100%);
    color: #fff;
    padding: 4rem 0 3.5rem;
    position: relative;
    overflow: hidden;
}

.gdi-fo-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 85% 20%, rgba(255, 107, 53, 0.18), transparent 45%),
        radial-gradient(circle at 10% 80%, rgba(114, 10, 164, 0.35), transparent 50%);
    pointer-events: none;
}

.gdi-fo-hero .container {
    position: relative;
    z-index: 1;
}

.gdi-fo-kicker {
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 0.75rem;
}

.gdi-fo-tabs {
    display: inline-flex;
    gap: 0.35rem;
    padding: 0.35rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    margin-top: 1.25rem;
}

.gdi-fo-tab {
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.55rem 1.1rem;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.gdi-fo-tab--link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.gdi-fo-tab--link:hover {
    color: #fff;
    text-decoration: none;
}

.gdi-fo-tab.is-active {
    background: #fff;
    color: #050A24;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.15);
}

.gdi-fo-tab:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.gdi-fo-layout {
    display: grid;
    grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
    gap: 1.5rem;
    margin-top: -2rem;
    position: relative;
    z-index: 2;
    padding-bottom: 3rem;
}

.gdi-fo-panel {
    background: #fff;
    border-radius: 1.25rem;
    border: 1px solid rgba(5, 10, 36, 0.08);
    box-shadow: 0 18px 50px rgba(5, 10, 36, 0.08);
}

.gdi-fo-sidebar {
    padding: 1.35rem;
    max-height: calc(100vh - 120px);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 90px;
}

.gdi-fo-sidebar__head {
    margin-bottom: 1rem;
}

.gdi-fo-sidebar__head h2 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #050A24;
    margin: 0 0 0.35rem;
}

.gdi-fo-sidebar__head p {
    margin: 0;
    font-size: 0.8125rem;
    color: #6c757d;
}

.gdi-fo-search {
    position: relative;
    margin-bottom: 0.85rem;
}

.gdi-fo-search i {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    color: #adb5bd;
    font-size: 0.875rem;
}

.gdi-fo-search input {
    width: 100%;
    border: 1px solid #dee2e6;
    border-radius: 0.75rem;
    padding: 0.65rem 0.85rem 0.65rem 2.25rem;
    font-size: 0.875rem;
}

.gdi-fo-query-mode {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 0.85rem;
}

.gdi-fo-chip {
    border: 1px solid #e9ecef;
    background: #f8f9fa;
    color: #495057;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.15s;
}

.gdi-fo-chip.is-active {
    background: linear-gradient(135deg, #720AA4, #5d0883);
    border-color: transparent;
    color: #fff;
}

.gdi-fo-categories {
    flex: 1;
    overflow: auto;
    padding-right: 0.25rem;
    margin-bottom: 1rem;
}

.gdi-fo-group {
    margin-bottom: 1rem;
}

.gdi-fo-group__title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #720AA4;
    margin-bottom: 0.5rem;
    padding-bottom: 0.35rem;
    border-bottom: 1px solid #f1f3f5;
}

.gdi-fo-type {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.55rem 0.5rem;
    border-radius: 0.65rem;
    cursor: pointer;
    transition: background 0.15s;
}

.gdi-fo-type:hover {
    background: #f8f4fc;
}

.gdi-fo-type input {
    margin-top: 0.2rem;
    accent-color: #720AA4;
}

.gdi-fo-type__label {
    flex: 1;
    min-width: 0;
}

.gdi-fo-type__name {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #050A24;
    line-height: 1.3;
}

.gdi-fo-type__phrase {
    display: block;
    font-size: 0.6875rem;
    color: #868e96;
    margin-top: 0.15rem;
}

.gdi-fo-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.gdi-fo-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: 0;
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
}

.gdi-fo-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none !important;
}

.gdi-fo-btn--primary {
    background: linear-gradient(135deg, #720AA4, #5d0883);
    color: #fff;
    box-shadow: 0 8px 24px rgba(114, 10, 164, 0.25);
}

.gdi-fo-btn--primary:not(:disabled):hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(114, 10, 164, 0.32);
}

.gdi-fo-btn--ghost {
    background: #f8f9fa;
    color: #495057;
    border: 1px solid #e9ecef;
}

.gdi-fo-map-wrap {
    padding: 1.25rem;
}

.gdi-fo-map-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.gdi-fo-map-head h2 {
    font-size: 1.25rem;
    font-weight: 800;
    color: #050A24;
    margin: 0 0 0.25rem;
}

.gdi-fo-map-head p {
    margin: 0;
    font-size: 0.8125rem;
    color: #6c757d;
    max-width: 520px;
}

.gdi-fo-legend {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: #495057;
}

.gdi-fo-legend__bar {
    width: 120px;
    height: 8px;
    border-radius: 999px;
    background: linear-gradient(90deg, #2b6cb0 0%, #48bb78 35%, #ecc94b 65%, #e53e3e 100%);
}

.gdi-fo-map {
    width: 100%;
    height: min(62vh, 620px);
    min-height: 420px;
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid #e9ecef;
    background: #eef2f7;
}

.gdi-fo-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.85rem;
    margin-top: 1rem;
}

.gdi-fo-stat {
    padding: 1rem;
    border-radius: 0.85rem;
    background: linear-gradient(180deg, #faf8fc 0%, #fff 100%);
    border: 1px solid #f1f3f5;
}

.gdi-fo-stat__val {
    font-size: 1.5rem;
    font-weight: 800;
    color: #050A24;
    line-height: 1.1;
}

.gdi-fo-stat__lbl {
    font-size: 0.75rem;
    color: #868e96;
    margin-top: 0.25rem;
}

.gdi-fo-progress {
    display: none;
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 0.85rem;
    background: #f8f4fc;
    border: 1px solid #eadcf5;
}

.gdi-fo-progress.is-visible {
    display: block;
}

.gdi-fo-progress__bar {
    height: 8px;
    border-radius: 999px;
    background: #e9ecef;
    overflow: hidden;
    margin-top: 0.65rem;
}

.gdi-fo-progress__fill {
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, #720AA4, #FF6B35);
    transition: width 0.35s ease;
}

.gdi-fo-alert {
    display: none;
    margin-top: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 0.75rem;
    font-size: 0.875rem;
}

.gdi-fo-alert.is-visible {
    display: block;
}

.gdi-fo-alert--error {
    background: #fff5f5;
    color: #c53030;
    border: 1px solid #fed7d7;
}

.gdi-fo-alert--success {
    background: #f0fff4;
    color: #276749;
    border: 1px solid #c6f6d5;
}

.gdi-fo-admin {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 0.85rem;
    background: #fffbeb;
    border: 1px solid #fde68a;
    font-size: 0.8125rem;
}

.gdi-fo-admin summary {
    cursor: pointer;
    font-weight: 700;
    color: #92400e;
}

.gdi-fo-admin__row {
    margin-top: 0.75rem;
}

.gdi-fo-admin input {
    width: 100%;
    border: 1px solid #fcd34d;
    border-radius: 0.5rem;
    padding: 0.5rem 0.65rem;
    font-size: 0.8125rem;
    margin-top: 0.35rem;
}

.gdi-fo-top-regions {
    margin-top: 1rem;
}

.gdi-fo-top-regions h3 {
    font-size: 0.9375rem;
    font-weight: 700;
    margin-bottom: 0.65rem;
    color: #050A24;
}

.gdi-fo-top-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.45rem;
}

.gdi-fo-top-list li {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.8125rem;
    padding: 0.5rem 0.65rem;
    border-radius: 0.55rem;
    background: #f8f9fa;
}

.gdi-fo-top-list strong {
    color: #720AA4;
}

@media (max-width: 991px) {
    .gdi-fo-layout {
        grid-template-columns: 1fr;
        margin-top: -1rem;
    }

    .gdi-fo-sidebar {
        position: static;
        max-height: none;
    }

    .gdi-fo-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gdi-fo-map {
        min-height: 360px;
    }
}

@media (max-width: 575px) {
    .gdi-fo-stats {
        grid-template-columns: 1fr;
    }
}
