:root {
    --bg: #f5f8f2;
    --panel: #ffffff;
    --primary: #1d6f3c;
    --primary-soft: #dcefdc;
    --text: #1f2a24;
    --muted: #65736a;
    --border: #dbe6d3;
    --shadow: 0 18px 45px rgba(22, 43, 28, 0.08);
}

/* ==================== Animations ==================== */

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes glow {

    0%,
    100% {
        box-shadow: 0 0 5px rgba(29, 111, 60, 0.3);
    }

    50% {
        box-shadow: 0 0 20px rgba(29, 111, 60, 0.6);
    }
}

@keyframes barFill {
    from {
        width: 0;
    }

    to {
        width: var(--bar-width);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }

    100% {
        background-position: 1000px 0;
    }
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: linear-gradient(180deg, #eff6ea 0%, #f8fbf6 100%);
    color: var(--text);
    animation: fadeIn 0.8s ease-in-out;
}

/* ==================== Hero Section ==================== */

.hero {
    padding: 48px 24px 18px;
    background:
  linear-gradient(
    90deg,
    rgba(10, 62, 32, 0.90) 0%,
    rgba(10, 62, 32, 0.78) 48%,
    rgba(10, 62, 32, 0.55) 100%
  ),
  url("./tukik.JPG") center center / cover no-repeat;
    color: #fff;
    animation: slideDown 0.8s ease-out;
}

.main-nav {
    max-width: 1100px;
    margin: 0 auto 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.main-nav a {
    color: #fff;
    text-decoration: none;
}

.main-nav__brand {
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.main-nav__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
}

.main-nav__links a {
    padding: 8px 10px;
    border-radius: 999px;
    font-size: 0.86rem;
    transition: background 0.2s ease;
}

.main-nav__links a:hover,
.main-nav__links a:focus-visible {
    background: rgba(255, 255, 255, 0.16);
}

.hero__content {
    max-width: 1100px;
    margin: 0 auto;
}

.eyebrow {
    margin: 0 0 10px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.72rem;
    font-weight: 700;
    color: #b8d2c0;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    font-size: clamp(2rem, 4vw, 3.3rem);
    margin-bottom: 12px;
}

.subtitle {
    max-width: 760px;
    color: #e8f3ea;
}

.hero__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.hero__badges span {
    background: rgba(255, 255, 255, 0.14);
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    animation: slideUp 0.6s ease-out both;
}

.hero__badges span:nth-child(1) {
    animation-delay: 0.1s;
}

.hero__badges span:nth-child(2) {
    animation-delay: 0.2s;
}

.hero__badges span:nth-child(3) {
    animation-delay: 0.3s;
}

.hero__stats {
    max-width: 1100px;
    margin: 26px auto 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 18px;
    padding: 16px;
    backdrop-filter: blur(8px);
    animation: scaleIn 0.6s ease-out both;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(255, 255, 255, 0.2);
}

.stat-card:nth-child(1) {
    animation-delay: 0.4s;
}

.stat-card:nth-child(2) {
    animation-delay: 0.5s;
}

.stat-card:nth-child(3) {
    animation-delay: 0.6s;
}

.stat-card:nth-child(4) {
    animation-delay: 0.7s;
}

/* ==================== Main Content ==================== */

main {
    max-width: 1180px;
    margin: 0 auto;
    padding: 20px 24px 48px;
}

.section {
    margin-top: 22px;
    animation: slideUp 0.8s ease-out;
}

.section:nth-of-type(1) {
    animation-delay: 0.2s;
}

.section:nth-of-type(2) {
    animation-delay: 0.3s;
}

.section:nth-of-type(3) {
    animation-delay: 0.4s;
}

.section:nth-of-type(4) {
    animation-delay: 0.5s;
}

.section:nth-of-type(5) {
    animation-delay: 0.6s;
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.section-heading h2 {
    margin-bottom: 0;
}

.chart-grid,
.profile-layout,
.map-layout {
    display: grid;
    gap: 18px;
}

.chart-grid {
    grid-template-columns: 1fr 1fr;
}

.chart-full-width {
    grid-column: 1 / -1;
}

.panel {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 18px;
    box-shadow: var(--shadow);
    animation: slideUp 0.6s ease-out;
    transition: all 0.3s ease;
}

.panel:hover {
    transform: translateY(-3px);
    box-shadow: 0 25px 60px rgba(22, 43, 28, 0.12);
}

/* ==================== Charts ==================== */

.bars {
    display: grid;
    gap: 12px;
}

.bar-row {
    display: grid;
    grid-template-columns: 100px 1fr 56px;
    align-items: center;
    gap: 10px;
    animation: slideInLeft 0.5s ease-out both;
}

.bar-row:nth-child(1) {
    animation-delay: 0.1s;
}

.bar-row:nth-child(2) {
    animation-delay: 0.2s;
}

.bar-row:nth-child(3) {
    animation-delay: 0.3s;
}

.bar-row:nth-child(4) {
    animation-delay: 0.4s;
}

.bar-row:nth-child(5) {
    animation-delay: 0.5s;
}

.bar-row:nth-child(6) {
    animation-delay: 0.6s;
}

.bar-row:nth-child(7) {
    animation-delay: 0.7s;
}

.bar-row:nth-child(8) {
    animation-delay: 0.8s;
}

.bar-label {
    font-size: 0.9rem;
    color: var(--muted);
}

.bar-track {
    height: 12px;
    width: 100%;
    background: #edf3ea;
    border-radius: 999px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #2e8c56, #5fb06b);
    animation: barFill 1s ease-out both;
}

.bar-row:nth-child(1) .bar-fill {
    animation-delay: 0.1s;
}

.bar-row:nth-child(2) .bar-fill {
    animation-delay: 0.2s;
}

.bar-row:nth-child(3) .bar-fill {
    animation-delay: 0.3s;
}

.bar-row:nth-child(4) .bar-fill {
    animation-delay: 0.4s;
}

.bar-row:nth-child(5) .bar-fill {
    animation-delay: 0.5s;
}

.bar-row:nth-child(6) .bar-fill {
    animation-delay: 0.6s;
}

.bar-row:nth-child(7) .bar-fill {
    animation-delay: 0.7s;
}

.bar-row:nth-child(8) .bar-fill {
    animation-delay: 0.8s;
}

.bar-value {
    text-align: right;
    font-weight: 700;
    color: var(--primary);
}

/* ==================== RT Cards ==================== */

.rt-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.rt-detail-panel {
    margin-top: 16px;
}

.rt-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow);
    padding: 16px;
    cursor: pointer;
    animation: slideUp 0.6s ease-out both;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.rt-card:nth-child(1) {
    animation-delay: 0.1s;
}

.rt-card:nth-child(2) {
    animation-delay: 0.2s;
}

.rt-card:nth-child(3) {
    animation-delay: 0.3s;
}

.rt-card:nth-child(4) {
    animation-delay: 0.4s;
}

.rt-card:nth-child(5) {
    animation-delay: 0.5s;
}

.rt-card:nth-child(6) {
    animation-delay: 0.6s;
}

.rt-card:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: #89bc93;
    box-shadow: 0 20px 50px rgba(29, 111, 60, 0.15);
}

.rt-card.is-active {
    border: 2px solid var(--primary);
    background: #f3fbf4;
    box-shadow: 0 0 0 3px rgba(29, 111, 60, 0.1);
    animation: glow 2s ease-in-out infinite;
}

.rt-card h3 {
    margin-bottom: 6px;
}

.rt-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.pill {
    background: var(--primary-soft);
    color: #174f2f;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 0.82rem;
    font-weight: 700;
}

/* ==================== Focus Summary ==================== */

.focus-summary {
    display: grid;
    gap: 12px;
    animation: slideUp 0.6s ease-out;
}

.focus-summary .focus-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 10px;
}

.focus-metric {
    background: #f6faf5;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px;
    animation: scaleIn 0.5s ease-out both;
    transition: all 0.3s ease;
}

.focus-metric:hover {
    background: #eef6e9;
    transform: translateY(-2px);
}

.focus-metric:nth-child(1) {
    animation-delay: 0.1s;
}

.focus-metric:nth-child(2) {
    animation-delay: 0.2s;
}

.focus-metric:nth-child(3) {
    animation-delay: 0.3s;
}

.focus-metric strong {
    display: block;
    margin-top: 6px;
    font-size: 1.3rem;
    animation: pulse 1.5s ease-in-out infinite;
}

.focus-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.focus-list {
    background: #f8fbf7;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 12px;
    animation: slideInLeft 0.5s ease-out both;
    transition: all 0.3s ease;
}

.focus-list:hover {
    border-color: var(--primary);
    box-shadow: 0 5px 15px rgba(29, 111, 60, 0.1);
}

.focus-list:nth-child(1) {
    animation-delay: 0.2s;
}

.focus-list:nth-child(2) {
    animation-delay: 0.3s;
}

.focus-list h4 {
    margin: 0 0 10px;
}

.focus-list ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.focus-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding-bottom: 6px;
    border-bottom: 1px dashed #d9e7d5;
}

.focus-list li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.focus-list strong {
    color: var(--primary);
}

/* ==================== Profile Cards ==================== */

.profile-layout {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* ==================== Tourism & UMKM ==================== */

.tourism-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.tourism-card {
    background: linear-gradient(135deg, #ffffff, #f0f8eb);
}

.tourism-card--featured {
    padding: 0;
    overflow: hidden;
}

.tourism-card__image {
    display: block;
    width: 100%;
    height: 230px;
    object-fit: cover;
}

.tourism-card__content {
    position: relative;
    margin-top: -54px;
    padding: 72px 18px 18px;
    color: #fff;
    background: linear-gradient(180deg, rgba(14, 56, 34, 0) 0%, #174f2f 32%, #123d25 100%);
}

.tourism-card__content .eyebrow {
    color: #cfe9d1;
}

.tourism-card__content .text-link {
    color: #fff;
}

/* ==================== Tourism & UMKM Directory ==================== */

.directory-hero {
    padding-bottom: 48px;
}

.directory-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.destination-card {
    padding: 0;
    overflow: hidden;
}

.destination-card__image {
    display: block;
    width: 100%;
    height: 245px;
    object-fit: cover;
}

.destination-card__body {
    padding: 18px;
}

.category-label {
    display: inline-block;
    margin-bottom: 10px;
    padding: 5px 10px;
    color: #174f2f;
    background: var(--primary-soft);
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 700;
}

.card-location {
    margin: 14px 0 0;
    color: var(--muted);
    font-size: .9rem;
}

.empty-card {
    display: grid;
    place-items: center;
    min-height: 260px;
    border-style: dashed;
    text-align: center;
}

.empty-card > span {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin-bottom: 4px;
    color: var(--primary);
    background: var(--primary-soft);
    border-radius: 50%;
    font-size: 1.6rem;
}

.empty-card h3,
.empty-card p {
    max-width: 420px;
}

.info-card ul {
    padding-left: 20px;
    color: var(--muted);
}

.info-card li + li {
    margin-top: 10px;
}


.tourism-card__icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-bottom: 16px;
    border-radius: 14px;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 1.35rem;
}

.text-link {
    display: inline-block;
    margin-top: 8px;
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
}

.text-link:hover {
    text-decoration: underline;
}

.profile-card--muted {
    background: linear-gradient(180deg, #f9faf6, #f3f8f1);
    animation: slideUp 0.7s ease-out;
}

/* ==================== Map Section ==================== */

.map-layout {
    grid-template-columns: 1.8fr 0.9fr;
    align-items: start;
}

.map-card {
    overflow: hidden;
    background: linear-gradient(180deg, #fcfdf9 0%, #f6faef 100%);
    animation: slideInLeft 0.7s ease-out;
}

.map-card__title {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
}

.map-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    background: var(--primary-soft);
    color: #174f2f;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.map-card__title small {
    color: var(--muted);
}

.map-card__image {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    background: #edf6e7;
    border: 1px solid #dbe6d3;
}

.map-image {
    width: 100%;
    height: auto;
    display: block;
    animation: fadeIn 0.8s ease-out;
    transition: transform 0.3s ease;
}

.map-image:hover {
    transform: scale(1.02);
}

.legend-card {
    position: sticky;
    top: 16px;
    animation: slideInRight 0.7s ease-out;
}

.legend-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 12px;
}

.legend-card li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    border-bottom: 1px dashed #dfe9d7;
    animation: slideInLeft 0.4s ease-out both;
    transition: all 0.2s ease;
}

.legend-card li:hover {
    transform: translateX(5px);
}

.legend-card li:nth-child(1) {
    animation-delay: 0.1s;
}

.legend-card li:nth-child(2) {
    animation-delay: 0.15s;
}

.legend-card li:nth-child(3) {
    animation-delay: 0.2s;
}

.legend-card li:nth-child(4) {
    animation-delay: 0.25s;
}

.legend-card li:nth-child(5) {
    animation-delay: 0.3s;
}

.legend-card li:nth-child(6) {
    animation-delay: 0.35s;
}

.legend-card li:nth-child(7) {
    animation-delay: 0.4s;
}

.legend-card li:nth-child(8) {
    animation-delay: 0.45s;
}

.legend-card li:nth-child(9) {
    animation-delay: 0.5s;
}

.legend-card li:last-child {
    border-bottom: 0;
}

.map-image-note {
    margin-top: 10px;
    font-size: 0.88rem;
    color: var(--muted);
}

/* ==================== Map SVG Styles ==================== */

.map-name {
    fill: #13331c;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.map-name-sub {
    fill: #43614c;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.feature-area {
    opacity: 0.85;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.08));
}

.feature-sawah {
    fill: #cce8bb;
    stroke: #7db66c;
    stroke-width: 1.2;
}

.feature-peternakan {
    fill: #d5edc6;
    stroke: #5f9d4a;
    stroke-width: 1.5;
}

.feature-wisata {
    fill: #ffe6b0;
    stroke: #dda855;
    stroke-width: 1.5;
}

.text-tag {
    fill: #4b604c;
    font-size: 12px;
    font-weight: 700;
}

.road-main {
    fill: none;
    stroke: #7f8b83;
    stroke-width: 10;
    opacity: 0.8;
    stroke-linecap: round;
}

.road-side {
    fill: none;
    stroke: #9ca59e;
    stroke-width: 6;
    opacity: 0.68;
    stroke-linecap: round;
}

.road-branch {
    fill: none;
    stroke: #8d968f;
    stroke-width: 5;
    opacity: 0.6;
    stroke-linecap: round;
}

.road-label {
    fill: #6b766d;
    font-size: 12px;
    font-weight: 700;
}

.zone-note {
    fill: #5a6e5f;
    font-size: 11px;
    font-weight: 700;
}

.house-block {
    fill: #f2d9a4;
    stroke: #a5732a;
    stroke-width: 1.2;
}

.house-block--main {
    fill: #efd19d;
}

.map-hill {
    opacity: 0.75;
    filter: drop-shadow(0 2px 3px rgba(22, 59, 34, 0.12));
}

.hill-a {
    fill: #cfe0b9;
}

.hill-b {
    fill: #b8d3a8;
}

.map-river {
    fill: none;
    stroke: #8fc3c7;
    stroke-width: 3;
    stroke-linecap: round;
    opacity: 0.8;
}

.label {
    fill: #163b22;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.small-label {
    fill: #274e36;
    font-size: 14px;
    font-weight: 700;
}

.rt-shape {
    stroke: #24482f;
    stroke-width: 2.2;
    opacity: 0.95;
    stroke-linejoin: round;
    transition: opacity 0.2s ease, transform 0.2s ease, stroke-width 0.2s ease;
    cursor: pointer;
}

.rt-shape:hover {
    transform: translateY(-1px);
}

.rt-shape.is-dim {
    opacity: 0.24;
}

.rt-shape.is-active {
    stroke: #0f4f2a;
    stroke-width: 4.2;
    filter: drop-shadow(0 4px 8px rgba(18, 62, 32, 0.25));
}

.rt-1 {
    fill: #ddeecf;
}

.rt-2 {
    fill: #cbe7c7;
}

.rt-3 {
    fill: #bfdcb9;
}

.rt-4 {
    fill: #e5f2d8;
}

.rt-5 {
    fill: #d5ebcf;
}

.rt-6 {
    fill: #c6e1c1;
}

/* ==================== Legend ==================== */

.legend-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: inline-block;
    border: 1px solid rgba(0, 0, 0, 0.15);
    animation: scaleIn 0.4s ease-out both;
}

.legend-dot.rt-1 {
    background: #dff1da;
}

.legend-dot.rt-2 {
    background: #c9e8ce;
}

.legend-dot.rt-3 {
    background: #b6dfbe;
}

.legend-dot.rt-4 {
    background: #e5f3da;
}

.legend-dot.rt-5 {
    background: #d0e9cd;
}

.legend-dot.rt-6 {
    background: #c0dfc2;
}

.legend-dot.sawah {
    background: #8fd38a;
}

.legend-dot.ternak {
    background: #d9c66a;
}

.legend-dot.wisata {
    background: #ffe3a3;
}

/* ==================== Footer ==================== */

.footer {
    text-align: center;
    padding: 16px 20px 40px;
    color: var(--muted);
    animation: fadeIn 0.8s ease-in-out 0.9s both;
    border-top: 1px solid var(--border);
    margin-top: 40px;
}

/* ==================== Responsive Design ==================== */

@media (max-width: 820px) {
    .map-layout {
        grid-template-columns: 1fr;
    }

    .legend-card {
        position: static;
    }
}

@media (max-width: 640px) {
    .main-nav {
        align-items: flex-start;
        flex-direction: column;
        margin-bottom: 30px;
    }

    .main-nav__links {
        justify-content: flex-start;
    }

    .hero {
        padding: 32px 16px 12px;
    }

    h1 {
        font-size: 1.8rem;
    }

    main {
        padding: 16px 16px 32px;
    }

    .chart-grid {
        grid-template-columns: 1fr;
    }

    .chart-full-width {
        grid-column: 1 / -1;
    }

    .rt-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    }

    .profile-layout {
        grid-template-columns: 1fr;
    }

    .tourism-grid {
        grid-template-columns: 1fr;
    }

    .directory-grid {
        grid-template-columns: 1fr;
    }

    .focus-detail-grid {
        grid-template-columns: 1fr;
    }

    .bar-row {
        grid-template-columns: 80px 1fr 40px;
        gap: 8px;
    }

    .gender-container {
        grid-template-columns: 1fr;
    }
}

/* ==================== Unique Charts ==================== */

/* 1. Gender Chart (Side-by-side Radial Progress Cards) */
.gender-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.gender-card-unique {
    background: linear-gradient(135deg, #ffffff, #fafdfa);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow);
}

.gender-card-unique:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 45px rgba(22, 43, 28, 0.12);
}

.gender-card-unique.pria-card {
    border-left: 5px solid #2e8c56;
}

.gender-card-unique.wanita-card {
    border-left: 5px solid #d9744b;
}

.gender-card-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 1;
}

.gender-card-info h4 {
    margin: 0;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
}

.gender-card-info strong {
    font-size: 1.8rem;
    color: var(--text);
    line-height: 1.1;
}

.gender-card-info strong small {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--muted);
}

.gender-card-info span {
    font-size: 1.05rem;
    font-weight: 800;
}

.pria-card span {
    color: #1e7843;
}

.wanita-card span {
    color: #c95c2f;
}

.gender-card-visual {
    position: relative;
    width: 76px;
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.radial-progress-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.radial-progress-bg {
    fill: none;
    stroke: #edf3ea;
    stroke-width: 4.5;
}

.radial-progress-bar {
    fill: none;
    stroke-width: 4.5;
    stroke-linecap: round;
    transition: stroke-dashoffset 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.pria-card .radial-progress-bar {
    stroke: #2e8c56;
}

.wanita-card .radial-progress-bar {
    stroke: #d9744b;
}

.gender-icon-overlay {
    position: absolute;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pria-card .gender-icon-overlay {
    color: #2e8c56;
}

.wanita-card .gender-icon-overlay {
    color: #d9744b;
}

/* 2. Age Chart (Vertical Column Chart) */
.age-container {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: auto;
    min-height: 180px;
    padding: 30px 8px 10px;
    gap: 8px;
    overflow: visible;
}

.age-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    justify-content: flex-end;
    cursor: pointer;
}

.age-bar-value-static {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 5px;
    transition: transform 0.2s ease, color 0.2s ease;
}

.age-column:hover .age-bar-value-static {
    transform: translateY(-2px) scale(1.1);
    color: #5fb06b;
}

.age-bar-track {
    width: 100%;
    height: 120px;
    flex-shrink: 0;
    display: flex;
    align-items: flex-end;
    background: #edf3ea;
    border-radius: 8px 8px 0 0;
    position: relative;
    transition: background 0.3s ease;
}

.age-column:hover .age-bar-track {
    background: #e1ebdc;
}

.age-bar-fill {
    width: 100%;
    background: linear-gradient(180deg, #5fb06b 0%, #2e8c56 100%);
    border-radius: 8px 8px 0 0;
    height: 0;
    transition: height 1.2s cubic-bezier(0.175, 0.885, 0.32, 1.15);
    position: relative;
}

.age-bar-tooltip {
    position: absolute;
    top: -36px;
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    background: rgba(22, 59, 34, 0.92);
    color: white;
    padding: 5px 9px;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

.age-bar-tooltip::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 4px 4px 0;
    border-style: solid;
    border-color: rgba(22, 59, 34, 0.92) transparent;
    display: block;
    width: 0;
}

.age-column:hover .age-bar-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.age-label-text {
    margin-top: 10px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--muted);
    text-align: center;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.age-column:hover .age-label-text {
    color: var(--primary);
}

/* 3. Occupation Chart (Horizontal Icon-based List) */
.occupation-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.occupation-row {
    display: flex;
    align-items: center;
    gap: 14px;
    animation: slideInLeft 0.5s ease-out both;
}

.occ-icon-wrapper {
    width: 36px;
    height: 36px;
    background: var(--primary-soft);
    color: var(--primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.occupation-row:hover .occ-icon-wrapper {
    transform: scale(1.1) rotate(5deg);
    background: #c3eec3;
}

.occ-info-bar {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.occ-text-container {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.occ-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text);
}

.occ-value-text {
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--primary);
}

.occ-bar-track {
    height: 10px;
    background: #edf3ea;
    border-radius: 999px;
    overflow: hidden;
    width: 100%;
}

.occ-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #2e8c56 0%, #7db66c 100%);
    border-radius: 999px;
    width: 0;
    transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

