@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --background: #f8f7fc;
    --surface: #ffffff;
    --foreground: #16112b;
    --muted: #6f6888;
    --border: #e5e1f1;
    --primary: #5f2dbf;
    --primary-strong: #4f22a5;
    --secondary: #f4c93d;
    --secondary-strong: #eab308;
    --danger: #e11d48;
    --success: #16a34a;
    --hero-gradient: linear-gradient(135deg, #5f2dbf, #7c3aed 56%, #8b5cf6);
    --card-shadow: 0 14px 30px -20px rgba(71, 29, 133, 0.45);
    --card-shadow-hover: 0 28px 52px -28px rgba(71, 29, 133, 0.62);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body.admin-page {
    overflow-x: hidden;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--background);
    color: var(--foreground);
    line-height: 1.5;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: min(1180px, 92%);
    margin-inline: auto;
}

.site-header {
    position: fixed;
    inset: 0 0 auto;
    height: 72px;
    z-index: 60;
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(14px);
    background: rgba(248, 247, 252, 0.86);
}

.site-header-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.brand img {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid rgba(95, 45, 191, 0.25);
}

.brand-name {
    color: var(--foreground);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.nav-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #ffffff;
    color: #2f2154;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    padding: 0;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.nav-toggle-line {
    width: 18px;
    height: 2px;
    background: currentColor;
    border-radius: 999px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-header.is-menu-open .nav-toggle-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.site-header.is-menu-open .nav-toggle-line:nth-child(2) {
    opacity: 0;
}

.site-header.is-menu-open .nav-toggle-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.nav-toggle:hover,
.nav-toggle[aria-expanded='true'] {
    border-color: rgba(95, 45, 191, 0.35);
    background: rgba(95, 45, 191, 0.08);
}

.nav-link {
    color: #5f557c;
    font-size: 14px;
    font-weight: 600;
    border-radius: 10px;
    padding: 9px 12px;
    transition: 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
    background: rgba(95, 45, 191, 0.1);
}

.nav-admin {
    background: var(--primary);
    color: #ffffff;
    font-weight: 700;
}

.nav-admin:hover,
.nav-admin.active {
    background: var(--primary-strong);
    color: #ffffff;
}

.main-offset {
    min-height: 100vh;
    padding-top: 72px;
}

.flash-wrap {
    margin-top: 14px;
}

.alert {
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 10px;
    font-size: 14px;
}

.alert-success {
    background: #dcfce7;
    border: 1px solid #86efac;
    color: #166534;
}

.alert-error {
    background: #ffe4e6;
    border: 1px solid #fda4af;
    color: #9f1239;
}

.ajax-loading-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(15, 9, 30, 0.35);
    backdrop-filter: blur(2px);
    display: none;
    align-items: center;
    justify-content: center;
}

.ajax-loading-overlay.show {
    display: flex;
}

.ajax-loading-spinner {
    width: 52px;
    height: 52px;
    border: 4px solid rgba(255, 255, 255, 0.28);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: ajax-spin 0.8s linear infinite;
}

@keyframes ajax-spin {
    to {
        transform: rotate(360deg);
    }
}

.btn {
    border: 1px solid transparent;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    padding: 11px 16px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: 0.22s ease;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary-strong);
}

.btn-secondary {
    background: var(--secondary);
    color: #4c1d00;
}

.btn-secondary:hover {
    background: var(--secondary-strong);
}

.btn-outline {
    border-color: var(--border);
    background: #fff;
    color: #2c2144;
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-danger {
    background: var(--danger);
    color: #fff;
}

.section {
    padding: 78px 0;
}

.section-sm {
    padding: 52px 0;
}

.section-alt {
    background: #f2eefb;
}

.section-title {
    margin: 0 0 14px;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.12;
}

.section-subtitle {
    margin: 0 auto;
    max-width: 780px;
    color: var(--muted);
    font-size: 17px;
}

.section-head {
    text-align: center;
    margin-bottom: 42px;
}

.text-gradient {
    background: linear-gradient(120deg, #f4c93d, #f59e0b);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.home-hero {
    position: relative;
    overflow: hidden;
    background: var(--hero-gradient);
    color: #fff;
    min-height: min(95vh, 860px);
    display: flex;
    align-items: center;
    isolation: isolate;
}

.home-hero::before,
.home-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.home-hero::before {
    z-index: 0;
    background-image: var(--hero-photo, none);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    opacity: 0.24;
    transform: scale(1.04);
    filter: saturate(1.04) contrast(1.06);
}

.home-hero::after {
    z-index: 0;
    background: linear-gradient(110deg, rgba(31, 19, 64, 0.9) 0%, rgba(95, 45, 191, 0.78) 48%, rgba(139, 92, 246, 0.62) 100%);
}

.hero-orb {
    position: absolute;
    border-radius: 999px;
    filter: blur(26px);
    pointer-events: none;
    z-index: 1;
}

.hero-orb.one {
    width: 260px;
    height: 260px;
    right: 9%;
    top: 18%;
    background: rgba(244, 201, 61, 0.24);
}

.hero-orb.two {
    width: 210px;
    height: 210px;
    left: -40px;
    bottom: 60px;
    background: rgba(255, 255, 255, 0.16);
}

.hero-content {
    max-width: 740px;
    position: relative;
    z-index: 2;
    padding: 72px 0;
}

.hero-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.08);
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 18px;
}

.hero-title {
    font-size: clamp(38px, 8vw, 76px);
    line-height: 1.08;
    margin: 0;
}

.hero-desc {
    margin: 20px 0 28px;
    max-width: 640px;
    color: rgba(248, 250, 252, 0.84);
    font-size: clamp(16px, 2.2vw, 19px);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-outline {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.05);
}

.hero-outline:hover {
    background: rgba(255, 255, 255, 0.14);
}

.grid {
    display: grid;
    gap: 18px;
}

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

.grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 20px;
    box-shadow: var(--card-shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: var(--card-shadow-hover);
}

.card-flat {
    box-shadow: none;
}

.muted {
    color: var(--muted);
}

.story-shell {
    align-items: center;
}

.story-media {
    border-radius: 24px;
    min-height: 360px;
    background: linear-gradient(135deg, rgba(244, 201, 61, 0.2), rgba(95, 45, 191, 0.08));
    border: 1px solid var(--border);
    display: grid;
    place-items: center;
    font-size: 76px;
    overflow: hidden;
}

.story-media-gallery {
    padding: 0;
}

.story-gallery {
    position: relative;
    width: 100%;
    min-height: 360px;
    height: 100%;
}

.story-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.45s ease;
}

.story-image.active {
    opacity: 1;
}

.story-dots {
    position: absolute;
    z-index: 2;
    left: 16px;
    bottom: 16px;
    display: flex;
    gap: 8px;
}

.story-dot {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 999px;
    padding: 0;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.56);
}

.story-dot.active {
    background: #ffffff;
    transform: scale(1.2);
}

.story-body h3 {
    font-size: 34px;
    margin: 8px 0 14px;
}

.home-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: 86px;
    grid-auto-flow: dense;
    gap: 18px;
}

.home-gallery-card {
    position: relative;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    min-height: 100%;
    isolation: isolate;
}

.home-gallery-card:nth-child(6n + 1) {
    grid-row: span 5;
}

.home-gallery-card:nth-child(6n + 2),
.home-gallery-card:nth-child(6n + 3),
.home-gallery-card:nth-child(6n + 4) {
    grid-row: span 3;
}

.home-gallery-card:nth-child(6n + 5) {
    grid-row: span 5;
}

.home-gallery-card:nth-child(6n + 6) {
    grid-row: span 2;
}

.home-gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.home-gallery-meta {
    position: absolute;
    inset: auto 0 0;
    z-index: 2;
    padding: 14px;
    background: linear-gradient(180deg, rgba(10, 8, 18, 0) 0%, rgba(10, 8, 18, 0.74) 100%);
}

.home-gallery-meta h3 {
    margin: 0;
    font-size: 15px;
    line-height: 1.25;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.home-gallery-meta p {
    margin: 5px 0 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 12px;
    line-height: 1.35;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.kpi-banner {
    border-radius: 24px;
    background: linear-gradient(135deg, #1f1340, #5f2dbf);
    color: #fff;
    padding: 36px;
    text-align: center;
}

.product-card {
    overflow: hidden;
    padding: 0;
}

.product-image {
    height: 220px;
    background-size: cover;
    background-position: center;
}

.product-content {
    padding: 20px;
}

.badge {
    display: inline-block;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 700;
}

.badge-soft {
    background: #f3f0fc;
    color: #5f2dbf;
}

.brand-grid .card {
    text-align: center;
    padding: 24px 16px;
}

.brand-icon {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    margin: 0 auto 12px;
    background: rgba(95, 45, 191, 0.11);
    color: var(--primary);
    font-weight: 800;
    font-size: 16px;
}

.platform-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 18px;
}

.platform-card {
    text-align: center;
    padding: 24px 16px;
}

.platform-card h4 {
    margin: 0;
    font-size: 19px;
}

.platform-icon {
    width: 62px;
    height: 62px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    margin: 0 auto 12px;
    border: 1px solid rgba(2, 6, 23, 0.08);
}

.platform-icon svg {
    width: 30px;
    height: 30px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.platform-icon-meta {
    color: #1877f2;
    background: rgba(24, 119, 242, 0.12);
}

.platform-icon-shopee {
    color: #ee4d2d;
    background: rgba(238, 77, 45, 0.14);
}

.platform-icon-tiktok {
    color: #0f172a;
    background: rgba(15, 23, 42, 0.1);
}

.platform-icon-tokopedia {
    color: #2ca83f;
    background: rgba(44, 168, 63, 0.14);
}

.platform-icon-crm {
    color: #5f2dbf;
    background: rgba(95, 45, 191, 0.12);
}

.cta-box {
    border-radius: 30px;
    background: var(--hero-gradient);
    color: #fff;
    padding: clamp(30px, 5vw, 54px);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-box::before,
.cta-box::after {
    content: '';
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
}

.cta-box::before {
    width: 190px;
    height: 190px;
    right: -40px;
    top: -40px;
    background: rgba(244, 201, 61, 0.25);
    filter: blur(3px);
}

.cta-box::after {
    width: 150px;
    height: 150px;
    left: -28px;
    bottom: -34px;
    background: rgba(255, 255, 255, 0.16);
}

.cta-title {
    position: relative;
    z-index: 2;
    margin: 0;
    font-size: clamp(28px, 4vw, 46px);
}

.cta-subtitle {
    position: relative;
    z-index: 2;
    margin: 14px auto 24px;
    max-width: 720px;
    color: rgba(248, 250, 252, 0.84);
}

.about-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 15% 18%, rgba(244, 201, 61, 0.25), rgba(244, 201, 61, 0) 46%),
        radial-gradient(circle at 84% 22%, rgba(95, 45, 191, 0.2), rgba(95, 45, 191, 0) 50%),
        linear-gradient(145deg, #f7f3ff, #ffffff 58%);
}

.about-hero-inner {
    position: relative;
    z-index: 2;
}

.about-orb {
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
}

.about-orb.orb-one {
    width: 360px;
    height: 360px;
    right: -120px;
    top: -100px;
    background: rgba(95, 45, 191, 0.16);
    filter: blur(20px);
    animation: about-float 10s ease-in-out infinite;
}

.about-orb.orb-two {
    width: 300px;
    height: 300px;
    left: -130px;
    bottom: -140px;
    background: rgba(244, 201, 61, 0.22);
    filter: blur(16px);
    animation: about-float 8.8s ease-in-out infinite reverse;
}

@keyframes about-float {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-14px);
    }
}

.about-chip {
    color: #3c2a64;
    border-color: #ddd6f2;
    background: #f7f4ff;
}

.about-title {
    margin: 0;
    max-width: 980px;
    font-size: clamp(34px, 6vw, 76px);
    line-height: 1.03;
    letter-spacing: -0.03em;
    text-wrap: balance;
}

.about-lead {
    margin: 18px 0 0;
    max-width: 980px;
    font-size: clamp(17px, 2.2vw, 22px);
    color: #564e74;
}

.about-pillars {
    margin-top: 28px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.about-pillar {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(95, 45, 191, 0.14);
    border-radius: 18px;
    box-shadow: 0 20px 45px -32px rgba(59, 18, 122, 0.45);
}

.about-pillar:hover {
    border-color: rgba(95, 45, 191, 0.34);
}

.about-pillar h3 {
    margin: 0;
    font-size: 21px;
    line-height: 1.25;
}

.about-pillar p {
    margin: 6px 0 0;
}

.about-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    margin-bottom: 12px;
}

.about-icon svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.about-icon-pulse {
    background: rgba(95, 45, 191, 0.12);
    color: #5f2dbf;
}

.about-icon-store {
    background: rgba(15, 23, 42, 0.1);
    color: #1e293b;
}

.about-icon-target {
    background: rgba(44, 168, 63, 0.14);
    color: #15803d;
}

.about-icon-network {
    background: rgba(245, 158, 11, 0.16);
    color: #b45309;
}

.about-metric-grid {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.about-metric {
    background: #ffffff;
    border: 1px solid #e8e2f4;
    border-radius: 16px;
    padding: 14px 16px;
    box-shadow: 0 18px 30px -35px rgba(26, 18, 48, 0.9);
}

.about-metric strong {
    display: block;
    margin-bottom: 4px;
    color: #2b1f4a;
    font-size: 14px;
}

.about-metric span {
    color: #6b6288;
    font-size: 13px;
}

.about-core-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.about-core-card {
    padding: 24px;
}

.about-core-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.about-core-head h3 {
    margin: 0;
    font-size: 27px;
}

.about-core-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: rgba(95, 45, 191, 0.12);
    color: #5f2dbf;
}

.about-core-icon svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.about-core-card p {
    margin: 0;
}

.about-mission-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.about-mission-list li {
    position: relative;
    padding-left: 24px;
}

.about-mission-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 11px;
    height: 11px;
    border-radius: 999px;
    border: 2px solid #5f2dbf;
    background: #ffffff;
}

.about-values-wrap {
    background:
        radial-gradient(circle at 88% 9%, rgba(95, 45, 191, 0.08), rgba(95, 45, 191, 0) 45%),
        linear-gradient(180deg, #f4efff, #f2eefb);
}

.about-section-head {
    margin-bottom: 28px;
}

.about-kicker {
    margin: 0 0 10px;
    color: #5f2dbf;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 12px;
}

.about-values-grid {
    gap: 16px;
}

.about-value-card {
    position: relative;
    overflow: hidden;
    text-align: center;
    padding: 24px 18px;
}

.about-value-card::after {
    content: '';
    position: absolute;
    width: 130px;
    height: 130px;
    border-radius: 999px;
    right: -54px;
    top: -58px;
    background: rgba(95, 45, 191, 0.08);
}

.about-value-card h3 {
    margin: 0 0 8px;
    position: relative;
    z-index: 2;
}

.about-value-card p {
    margin: 0;
    position: relative;
    z-index: 2;
}

.about-value-letter {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    margin: 0 auto 12px;
    display: grid;
    place-items: center;
    background: rgba(95, 45, 191, 0.14);
    color: #4f22a5;
    font-weight: 800;
    font-size: 19px;
    position: relative;
    z-index: 2;
}

.about-network {
    padding-top: 26px;
}

.about-network-card {
    border-radius: 26px;
    background: linear-gradient(135deg, #1f1340, #45238f 58%, #5f2dbf);
    color: #ffffff;
    padding: clamp(24px, 5vw, 42px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 28px 60px -34px rgba(31, 19, 64, 0.85);
}

.about-network-card h2 {
    margin: 0 0 16px;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.05;
    max-width: 640px;
}

.about-network-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 16px;
}

.about-network-item {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    padding: 14px;
    display: flex;
    gap: 10px;
}

.about-network-item p {
    margin: 0;
    color: rgba(248, 250, 252, 0.92);
    font-size: 14px;
}

.about-network-dot {
    width: 11px;
    height: 11px;
    border-radius: 999px;
    margin-top: 6px;
    background: #f4c93d;
    box-shadow: 0 0 0 4px rgba(244, 201, 61, 0.28);
    flex-shrink: 0;
}

.about-network-note {
    margin: 0;
    color: rgba(248, 250, 252, 0.86);
}

.site-footer {
    background: #1a1230;
    color: #ebe7fb;
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer .container {
    padding: 62px 0 28px;
}

.site-footer .brand-name {
    color: #ffffff;
}

.site-footer .brand img {
    border-color: rgba(255, 255, 255, 0.22);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 22px;
}

.footer-title {
    font-size: 14px;
    color: #fff;
    margin: 0 0 12px;
}

.footer-link {
    display: block;
    color: #bdb5d9;
    font-size: 14px;
    margin: 8px 0;
}

.footer-link:hover {
    color: #f4c93d;
}

.footer-muted {
    color: #bdb5d9;
    font-size: 14px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 26px;
    padding-top: 20px;
    text-align: center;
    color: #9d93c4;
    font-size: 13px;
}

.filters {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid var(--border);
    padding: 14px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 18px;
}

.admin-filter-head {
    display: none;
}

.admin-filter-summary {
    margin: 4px 0 0;
    font-size: 12px;
    color: var(--muted);
}

.admin-filters-form {
    margin-bottom: 0;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

label {
    font-size: 13px;
    color: #45396d;
    font-weight: 600;
}

input,
select,
textarea {
    width: 100%;
    border-radius: 10px;
    border: 1px solid #d8d1eb;
    background: #fff;
    color: #21173c;
    padding: 10px 12px;
    font: inherit;
}

input:focus,
select:focus,
textarea:focus {
    outline: 2px solid rgba(95, 45, 191, 0.16);
    border-color: var(--primary);
}

textarea {
    min-height: 118px;
    resize: vertical;
}

.upload-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
}

.upload-preview-image {
    width: 100%;
    height: 110px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: #f1eefb;
}

.admin-thumb {
    width: 120px;
    height: 72px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: #f1eefb;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    font-size: 14px;
    text-align: left;
    padding: 11px 10px;
    border-bottom: 1px solid #ece7f7;
    vertical-align: top;
}

th {
    font-weight: 700;
    color: #3a2d5f;
}

.admin-table th,
.admin-table td,
.application-detail-value,
.application-detail-links a,
.admin-filter-summary {
    overflow-wrap: anywhere;
}

.admin-table-wrap {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.admin-table {
    width: 100%;
}

.admin-table-empty-row td {
    text-align: center;
}

.badge-pending {
    background: #fef3c7;
    color: #92400e;
}

.badge-accepted {
    background: #dcfce7;
    color: #166534;
}

.badge-rejected {
    background: #ffe4e6;
    color: #9f1239;
}

.admin-shell {
    display: grid;
    grid-template-columns: 250px 1fr;
    min-height: 100vh;
    background: #f8f7fc;
}

.admin-mobile-header {
    display: none;
}

.admin-sidebar-backdrop {
    display: none;
}

.admin-sidebar {
    background: #120b26;
    color: #ebe7fb;
    padding: 20px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.25s ease, opacity 0.2s ease;
}

.admin-sidebar-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
}

.admin-sidebar-user {
    color: #94a3b8;
    margin-top: 0;
}

.admin-mobile-menu-btn,
.admin-sidebar-menu-btn,
.admin-sidebar-reveal-btn {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.26);
    background: transparent;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    padding: 0;
    cursor: pointer;
}

.admin-mobile-menu-btn span,
.admin-sidebar-menu-btn span,
.admin-sidebar-reveal-btn span {
    width: 18px;
    height: 2px;
    background: currentColor;
    border-radius: 999px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

body.admin-menu-open .admin-mobile-menu-btn span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

body.admin-menu-open .admin-mobile-menu-btn span:nth-child(2) {
    opacity: 0;
}

body.admin-menu-open .admin-mobile-menu-btn span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.admin-sidebar-reveal-btn {
    position: fixed;
    top: 14px;
    left: 14px;
    z-index: 134;
    border-color: rgba(95, 45, 191, 0.3);
    background: #2a1852;
}

.admin-sidebar-reveal-btn[hidden] {
    display: none !important;
}

.admin-sidebar a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #c3badd;
    font-size: 14px;
    font-weight: 600;
    border-radius: 10px;
    padding: 10px 12px;
    margin: 6px 0;
}

.admin-sidebar a svg {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
}

.admin-sidebar a.active,
.admin-sidebar a:hover {
    background: rgba(244, 201, 61, 0.16);
    color: #fff;
}

.admin-content {
    padding: 28px;
    min-width: 0;
    overflow-x: clip;
}

.admin-content .section {
    padding: 32px 0;
}

.admin-content > * {
    max-width: 100%;
    min-width: 0;
}

.admin-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.table-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.admin-pagination-wrap {
    margin-top: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table-actions .btn,
.modal-footer .btn,
.admin-toolbar .btn {
    width: auto;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 110;
    padding: 20px;
    background: rgba(15, 9, 30, 0.55);
    display: none;
    align-items: center;
    justify-content: center;
}

.modal-backdrop.show {
    display: flex;
}

.modal-card {
    width: min(980px, 100%);
    max-height: calc(100vh - 40px);
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 30px 70px -35px rgba(26, 18, 48, 0.7);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.modal-form {
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 6px;
}

.modal-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.form-group-full {
    grid-column: 1 / -1;
}

.modal-footer {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.dashboard-stat-card {
    position: relative;
    overflow: hidden;
    min-height: 112px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 8px;
}

.dashboard-stat-card::after {
    content: '';
    position: absolute;
    inset: auto 0 0;
    height: 3px;
    background: linear-gradient(90deg, #5f2dbf, #7c3aed);
    opacity: 0.18;
}

.dashboard-stat-label {
    margin: 0;
    font-size: 12px;
    line-height: 1.35;
}

.dashboard-stat-value {
    margin: 0;
    font-size: clamp(28px, 2.1vw, 34px);
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: #21173c;
    font-variant-numeric: tabular-nums;
}

.dashboard-chart-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.dashboard-chart-grid-single {
    grid-template-columns: minmax(0, 1fr);
}

.chart-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chart-card-head h3 {
    font-size: 17px;
}

.visitor-chart-card {
    gap: 18px;
}

.visitor-chart-toolbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.visitor-chart-filters {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px;
    border-radius: 999px;
    background: rgba(95, 45, 191, 0.08);
}

.visitor-chart-filter {
    border: 0;
    border-radius: 999px;
    padding: 9px 14px;
    background: transparent;
    color: #5b5274;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.visitor-chart-filter:hover {
    color: #21173c;
}

.visitor-chart-filter.active {
    background: #5f2dbf;
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(95, 45, 191, 0.18);
}

.visitor-chart-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.visitor-chart-summary-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px 16px;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(95, 45, 191, 0.08), rgba(95, 45, 191, 0.03));
    border: 1px solid rgba(95, 45, 191, 0.12);
}

.visitor-chart-summary-item strong {
    font-size: 18px;
    line-height: 1.2;
    color: #21173c;
}

.chart-canvas-wrap {
    position: relative;
    min-height: 260px;
}

.chart-canvas-wrap-donut {
    min-height: 300px;
}

.chart-canvas-wrap canvas {
    max-width: 100%;
}

.chart-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.chart-list-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 14px;
}

.chart-list-row span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.application-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.application-detail-item {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px 12px;
    background: #fff;
}

.application-detail-docs {
    grid-column: 1 / -1;
}

.application-detail-label {
    display: block;
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 4px;
}

.application-detail-value {
    font-size: 14px;
    color: #21173c;
    word-break: break-word;
}

.application-detail-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.application-detail-links a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 6px 10px;
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
}

nav[role='navigation'] {
    margin-top: 12px;
}

@media (min-width: 961px) {
    .admin-shell {
        transition: grid-template-columns 0.25s ease;
    }

    body.admin-sidebar-collapsed .admin-shell {
        grid-template-columns: 0 1fr;
    }

    body.admin-sidebar-collapsed .admin-sidebar {
        transform: translateX(-104%);
        opacity: 0;
        pointer-events: none;
    }

    body.admin-sidebar-collapsed .admin-content {
        padding-left: 20px;
    }
}

@media (max-width: 960px) {
    .admin-shell {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .admin-mobile-header {
        position: sticky;
        top: 0;
        z-index: 135;
        display: flex;
        align-items: center;
        gap: 12px;
        background: #120b26;
        color: #ffffff;
        padding: 12px 16px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .admin-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: min(86vw, 340px);
        transform: translateX(-102%);
        transition: transform 0.25s ease;
        z-index: 140;
        overflow-y: auto;
        padding-top: 18px;
    }

    body.admin-menu-open {
        overflow: hidden;
    }

    body.admin-menu-open .admin-sidebar {
        transform: translateX(0);
    }

    .admin-sidebar-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(12, 8, 26, 0.5);
        z-index: 130;
    }

    body.admin-menu-open .admin-sidebar-backdrop {
        display: block;
    }

    .admin-sidebar-reveal-btn {
        display: none !important;
    }
}

@media (max-width: 1080px) {
    .grid-4,
    .grid-3,
    .stats,
    .dashboard-chart-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

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

    .home-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: 96px;
    }

    .home-gallery-card:nth-child(6n + 1),
    .home-gallery-card:nth-child(6n + 5) {
        grid-row: span 4;
    }

    .home-gallery-card:nth-child(6n + 2),
    .home-gallery-card:nth-child(6n + 3),
    .home-gallery-card:nth-child(6n + 4),
    .home-gallery-card:nth-child(6n + 6) {
        grid-row: span 3;
    }

    .about-network-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 820px) {
    .site-header {
        height: auto;
        position: sticky;
    }

    .site-header-inner {
        height: auto;
        padding: 12px 0;
        align-items: center;
        flex-wrap: wrap;
    }

    .nav-toggle {
        display: inline-flex;
        margin-left: auto;
    }

    .nav-links {
        display: none;
        width: 100%;
        margin-top: 10px;
        border: 1px solid var(--border);
        border-radius: 14px;
        padding: 10px;
        background: rgba(248, 247, 252, 0.96);
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
    }

    .site-header.is-menu-open .nav-links {
        display: flex;
    }

    .nav-link {
        padding: 10px 12px;
    }

    .nav-admin {
        text-align: center;
    }

    .main-offset {
        padding-top: 0;
    }

    .hero-content {
        padding: 52px 0;
    }

    .admin-shell {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .admin-mobile-header {
        position: sticky;
        top: 0;
        z-index: 135;
        display: flex;
        align-items: center;
        gap: 12px;
        background: #120b26;
        color: #ffffff;
        padding: 12px 16px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .admin-mobile-title {
        font-size: 15px;
        font-weight: 700;
    }

    .admin-mobile-menu-btn {
        width: 44px;
        height: 44px;
        border-radius: 10px;
        border: 1px solid rgba(255, 255, 255, 0.26);
        background: transparent;
        color: #ffffff;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 5px;
        padding: 0;
    }

    .admin-mobile-menu-btn span {
        width: 18px;
        height: 2px;
        background: currentColor;
        border-radius: 999px;
        transition: transform 0.2s ease, opacity 0.2s ease;
    }

    body.admin-menu-open .admin-mobile-menu-btn span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    body.admin-menu-open .admin-mobile-menu-btn span:nth-child(2) {
        opacity: 0;
    }

    body.admin-menu-open .admin-mobile-menu-btn span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .admin-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: min(82vw, 320px);
        transform: translateX(-102%);
        transition: transform 0.25s ease;
        z-index: 140;
        overflow-y: auto;
        padding-top: 18px;
    }

    body.admin-menu-open {
        overflow: hidden;
    }

    body.admin-menu-open .admin-sidebar {
        transform: translateX(0);
    }

    .admin-sidebar-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(12, 8, 26, 0.5);
        z-index: 130;
    }

    body.admin-menu-open .admin-sidebar-backdrop {
        display: block;
    }

    .admin-content {
        padding: 16px;
    }

    .modal-grid {
        grid-template-columns: 1fr;
    }

    .modal-card {
        padding: 14px;
    }

    .about-pillars,
    .about-core-grid,
    .about-metric-grid {
        grid-template-columns: 1fr;
    }

    .about-hero {
        padding-top: 64px;
        padding-bottom: 64px;
    }

    .about-core-head h3 {
        font-size: 24px;
    }
}

@media (max-width: 640px) {
    .grid-2,
    .grid-3,
    .grid-4,
    .filters,
    .stats,
    .dashboard-chart-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .home-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: 82px;
        gap: 10px;
    }

    .home-gallery-card {
        height: auto;
    }

    .site-header-inner {
        gap: 10px;
    }

    .nav-link {
        font-size: 13px;
        padding: 9px 10px;
    }

    .nav-toggle {
        width: 40px;
        height: 40px;
    }

    .btn {
        width: 100%;
    }

    .hero-actions .btn {
        width: auto;
    }

    .admin-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .application-detail-grid {
        grid-template-columns: 1fr;
    }

    .about-title {
        font-size: clamp(32px, 12vw, 46px);
    }

    .about-pillar h3 {
        font-size: 19px;
    }

    .about-network-card h2 {
        font-size: clamp(24px, 10vw, 34px);
    }
}

@media (max-width: 760px) {
    .admin-shell .btn,
    .admin-sidebar a,
    .application-detail-links a {
        min-height: 44px;
    }

    .admin-shell .btn {
        padding-top: 11px;
        padding-bottom: 11px;
    }

    .admin-sidebar a {
        padding-top: 11px;
        padding-bottom: 11px;
    }

    .admin-shell input:not([type='checkbox']):not([type='radio']),
    .admin-shell select {
        min-height: 44px;
    }

    .admin-shell input[type='checkbox'],
    .admin-shell input[type='radio'] {
        width: 18px;
        height: 18px;
    }

    .application-detail-links a {
        padding-top: 9px;
        padding-bottom: 9px;
    }

    .stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .admin-content .dashboard-stat-card {
        min-height: 96px;
        padding: 12px;
        border-radius: 14px;
        gap: 6px;
    }

    .dashboard-stat-label {
        font-size: 11px;
    }

    .dashboard-stat-value {
        font-size: clamp(22px, 8vw, 28px);
    }

    .chart-card {
        gap: 10px;
    }

    .chart-card-head h3 {
        font-size: 15px;
    }

    .chart-card-head p {
        font-size: 12px;
    }

    .visitor-chart-card {
        gap: 14px;
    }

    .visitor-chart-toolbar {
        gap: 12px;
    }

    .visitor-chart-filters {
        width: 100%;
        justify-content: space-between;
    }

    .visitor-chart-filter {
        flex: 1 1 0;
        padding: 8px 10px;
        font-size: 12px;
    }

    .visitor-chart-summary {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .visitor-chart-summary-item {
        padding: 12px 14px;
    }

    .visitor-chart-summary-item strong {
        font-size: 16px;
    }

    .chart-canvas-wrap {
        min-height: 220px;
    }

    .chart-canvas-wrap-donut {
        min-height: 240px;
    }

    .chart-list-row {
        font-size: 13px;
        padding: 8px 10px;
    }

    .admin-filter-card {
        position: sticky;
        top: calc(62px + env(safe-area-inset-top, 0px));
        z-index: 120;
        padding: 12px;
        box-shadow: 0 12px 26px -24px rgba(15, 9, 30, 0.7);
    }

    .admin-filter-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
    }

    .admin-filter-head strong {
        display: block;
        font-size: 14px;
        color: #2f2154;
    }

    .admin-filter-toggle-btn {
        width: auto;
        flex: 0 0 auto;
    }

    .admin-filter-body {
        display: none;
    }

    .admin-filter-card.is-open .admin-filter-body {
        display: block;
        margin-top: 10px;
    }

    .admin-filters-form {
        padding: 10px;
        border-radius: 12px;
    }

    .modal-backdrop {
        padding: 0;
        align-items: stretch;
        justify-content: stretch;
    }

    .modal-card {
        width: 100%;
        height: 100dvh;
        max-height: 100dvh;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        padding: 0;
        gap: 0;
    }

    .modal-head {
        position: sticky;
        top: 0;
        z-index: 2;
        padding: 14px;
        background: #ffffff;
        border-bottom: 1px solid var(--border);
    }

    .modal-head .btn {
        width: auto;
        flex: 0 0 auto;
    }

    .modal-form {
        flex: 1;
        padding: 14px;
        padding-right: 14px;
        overflow-y: auto;
    }

    .modal-footer {
        position: sticky;
        bottom: 0;
        z-index: 2;
        margin-top: 0;
        padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
        background: #ffffff;
    }

    .modal-footer .btn {
        flex: 1 1 0;
        width: auto;
    }

    .admin-content {
        padding: 14px;
    }

    .admin-content .card {
        border-radius: 16px;
        padding: 14px;
    }

    .admin-toolbar h1 {
        font-size: clamp(32px, 9vw, 42px);
        line-height: 1.1;
    }

    .admin-sidebar .btn {
        width: 100%;
    }

    .admin-table-wrap {
        overflow: visible;
    }

    .admin-table,
    .admin-table thead,
    .admin-table tbody,
    .admin-table tr,
    .admin-table th,
    .admin-table td {
        display: block;
        width: 100%;
    }

    .admin-table {
        border-collapse: separate;
        border-spacing: 0;
    }

    .admin-table thead {
        display: none;
    }

    .admin-table tbody {
        display: grid;
        gap: 10px;
    }

    .admin-table tbody tr {
        border: 1px solid var(--border);
        border-radius: 14px;
        background: #ffffff;
        padding: 12px;
    }

    .admin-table tbody td {
        border-bottom: 0;
        padding: 6px 0;
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 12px;
    }

    .admin-table tbody td::before {
        content: attr(data-label);
        color: #5f557c;
        font-size: 12px;
        font-weight: 700;
        line-height: 1.4;
        flex: 0 0 42%;
        max-width: 42%;
    }

    .admin-table tbody td.admin-table-media {
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-table tbody td.admin-table-media::before {
        flex: 0 0 auto;
        max-width: 100%;
    }

    .admin-table .admin-thumb {
        width: min(170px, 100%);
        height: auto;
        aspect-ratio: 5 / 3;
    }

    .admin-table tbody td.table-actions {
        align-items: stretch;
        flex-wrap: wrap;
        gap: 8px;
    }

    .admin-table tbody td.table-actions::before {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .admin-table tbody td.table-actions .btn {
        width: auto;
        flex: 1 1 calc(50% - 8px);
        min-width: 104px;
    }

    .admin-table tbody tr.admin-table-empty-row {
        padding: 16px;
    }

    .admin-table tbody tr.admin-table-empty-row td {
        display: block;
        padding: 0;
    }

    .admin-table tbody tr.admin-table-empty-row td::before {
        content: none;
    }

    .admin-pagination-wrap nav[role='navigation'] {
        min-width: max-content;
        white-space: nowrap;
    }
}

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