/* Portal Member — mobile-first shell */
:root {
    --portal-width: 100%;
    --portal-frame-width: 500px;
    --portal-pad-x: 16px;
    --portal-splash-width: 390px;
    --portal-header-h: calc(58px + env(safe-area-inset-top));
    --portal-nav-h: calc(56px + env(safe-area-inset-bottom));
    --portal-content-gap: 10px;
    --portal-glow-mobile:
        inset 0 0 0 1px rgba(255, 255, 255, 0.55),
        0 0 0 1px rgba(46, 49, 146, 0.16),
        0 0 14px rgba(107, 111, 232, 0.22),
        0 0 28px rgba(46, 49, 146, 0.1);
    --portal-glow-desktop:
        inset 0 0 0 1px rgba(255, 255, 255, 0.75),
        0 0 0 1px rgba(46, 49, 146, 0.28),
        0 0 22px rgba(107, 111, 232, 0.38),
        0 0 44px rgba(46, 49, 146, 0.2),
        0 0 68px rgba(212, 172, 13, 0.12),
        0 14px 42px rgba(0, 0, 0, 0.1);
    --portal-scrollbar-size: 4px;
    --portal-scrollbar-thumb: rgba(46, 49, 146, 0.2);
    --portal-scrollbar-thumb-hover: rgba(46, 49, 146, 0.36);
}

/* Scrollbar tipis — portal */
.portal-content,
.portal-auth__scroll,
.portal-sidebar__nav {
    scrollbar-width: thin;
    scrollbar-color: var(--portal-scrollbar-thumb) transparent;
}
.portal-content::-webkit-scrollbar,
.portal-auth__scroll::-webkit-scrollbar,
.portal-sidebar__nav::-webkit-scrollbar {
    width: var(--portal-scrollbar-size);
    height: var(--portal-scrollbar-size);
}
.portal-content::-webkit-scrollbar-track,
.portal-auth__scroll::-webkit-scrollbar-track,
.portal-sidebar__nav::-webkit-scrollbar-track {
    background: transparent;
    margin: 6px 0;
}
.portal-content::-webkit-scrollbar-thumb,
.portal-auth__scroll::-webkit-scrollbar-thumb,
.portal-sidebar__nav::-webkit-scrollbar-thumb {
    background: var(--portal-scrollbar-thumb);
    border-radius: 999px;
    border: 1px solid transparent;
    background-clip: padding-box;
}
.portal-content::-webkit-scrollbar-thumb:hover,
.portal-auth__scroll::-webkit-scrollbar-thumb:hover,
.portal-sidebar__nav::-webkit-scrollbar-thumb:hover {
    background: var(--portal-scrollbar-thumb-hover);
    background-clip: padding-box;
}
.portal-sidebar__nav {
    scrollbar-color: rgba(255, 255, 255, 0.22) transparent;
}
.portal-sidebar__nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.18);
}
.portal-sidebar__nav::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.32);
}
.portal-desktop-bg {
    min-height: 100dvh;
    background: #eceef8;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}
.portal-shell {
    width: 100%;
    max-width: var(--portal-width);
    min-height: 100dvh;
    position: relative;
    overflow: hidden;
    border-radius: 0;
}
.portal-shell--frame::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    z-index: 30;
    box-shadow: var(--portal-glow-mobile);
}
.portal-shell--app {
    background-color: #f8f9fc;
    background-image:
        linear-gradient(180deg, #ffffff 0%, #f8f9fc 100%);
    display: flex;
    flex-direction: column;
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
}
.portal-body:has(.portal-shell--app),
.portal-desktop-bg:has(.portal-shell--app) {
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
}
.portal-shell--app::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle 100px at 88% 8%, rgba(123, 127, 232, 0.05) 0%, transparent 100%),
        radial-gradient(circle 80px at 10% 90%, rgba(212, 172, 13, 0.04) 0%, transparent 100%);
    pointer-events: none;
    z-index: 0;
}
.portal-shell--auth,
.portal-shell--splash {
    background: transparent;
}
.portal-shell--auth .portal-auth,
.portal-shell--splash .portal-splash {
    min-height: 100dvh;
}
.portal-auth-body,
.portal-body {
    background: #eceef8;
    margin: 0;
    min-height: 100dvh;
}
.portal-auth-body--splash {
    background: #eceef8;
}

/* ---- Splash / Welcome ---- */
.portal-splash {
    min-height: 100dvh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 0;
}
.portal-splash__frame {
    position: relative;
    width: 100%;
    max-width: 100%;
    flex: 1;
    background: linear-gradient(180deg, #f6f7fc 0%, #ffffff 32%, #ffffff 100%);
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
    height: 100%;
}
.portal-splash__frame::before,
.portal-splash__frame::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}
.portal-splash__frame::before {
    top: -100px;
    right: -70px;
    width: 240px;
    height: 240px;
    background: radial-gradient(circle, rgba(46, 49, 146, 0.07) 0%, transparent 68%);
}
.portal-splash__frame::after {
    top: 140px;
    left: -50px;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(201, 162, 39, 0.09) 0%, transparent 70%);
}
.portal-splash__deco {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}
.portal-splash__spark {
    position: absolute;
    border-radius: 2px;
    opacity: 0.55;
    animation: splash-spark 4.5s ease-in-out infinite;
}
.portal-splash__spark--1 {
    top: 18%;
    left: 12%;
    width: 7px;
    height: 7px;
    background: var(--secondary, #C9A227);
    transform: rotate(18deg);
    animation-delay: 0s;
}
.portal-splash__spark--2 {
    top: 26%;
    right: 14%;
    width: 6px;
    height: 6px;
    background: #06D6A0;
    border-radius: 50%;
    animation-delay: 1.2s;
}
.portal-splash__spark--3 {
    top: 42%;
    left: 8%;
    width: 5px;
    height: 5px;
    background: #EF476F;
    border-radius: 50%;
    animation-delay: 2.4s;
}
@keyframes splash-spark {
    0%, 100% { transform: translateY(0) rotate(18deg); opacity: 0.45; }
    50% { transform: translateY(-8px) rotate(28deg); opacity: 0.9; }
}
.portal-splash__top {
    position: relative;
    z-index: 1;
    padding: calc(48px + env(safe-area-inset-top)) var(--portal-pad-x) 0;
    text-align: center;
    flex-shrink: 0;
}
.portal-splash__brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    margin-top: 8px;
    margin-bottom: 0;
}
.portal-splash__org-lines {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
    max-width: none;
    padding: 8px 4px 0;
}
.portal-splash__org-line {
    font-family: Poppins, system-ui, sans-serif;
    font-size: clamp(12px, 3.7vw, 17px);
    font-weight: 800;
    line-height: 1.35;
    color: var(--primary, #2E3192);
    letter-spacing: 0.02em;
    text-align: center;
    white-space: nowrap;
    margin: 0;
}
.portal-splash__org-line--welcome {
    font-weight: 400;
    color: #4a4d7a;
    letter-spacing: 0.01em;
}
.portal-splash__version {
    display: inline-block;
    font-size: 0.78em;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--secondary, #C9A227);
    background: linear-gradient(135deg, rgba(201, 162, 39, 0.14) 0%, rgba(201, 162, 39, 0.06) 100%);
    padding: 3px 10px;
    border-radius: 999px;
    border: 1px solid rgba(201, 162, 39, 0.22);
    vertical-align: middle;
}
.portal-splash__logo-img {
    width: auto;
    height: 90px;
    max-width: min(210px, 55vw);
    object-fit: contain;
    margin-top: 20px;
    filter: drop-shadow(0 10px 24px rgba(46, 49, 146, 0.1));
}
.portal-splash__tagline {
    margin-top: 44px;
}
.portal-splash__tagline-rule {
    width: min(200px, 52vw);
    height: 1px;
    margin: 0 auto 22px;
    background: linear-gradient(90deg, transparent, rgba(46, 49, 146, 0.18) 20%, rgba(201, 162, 39, 0.45) 50%, rgba(46, 49, 146, 0.18) 80%, transparent);
    position: relative;
}
.portal-splash__tagline-rule::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    width: 6px;
    height: 6px;
    background: var(--secondary, #C9A227);
    border-radius: 1px;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.9);
}
.portal-splash__headline {
    font-family: "Monotype Corsiva", "Apple Chancery", "URW Chancery L", "Cormorant Garamond", Georgia, serif;
    font-size: clamp(19px, 5.2vw, 24px);
    font-weight: 400;
    font-style: italic;
    line-height: 1.5;
    color: #353870;
    margin: 0 0 10px;
    letter-spacing: 0.02em;
}
.portal-splash__accent { font-weight: 700; font-style: italic; }
.portal-splash__accent--riang,
.portal-splash__accent--gembira {
    font-weight: 700;
}
.portal-splash__accent--riang { color: var(--secondary, #C9A227); }
.portal-splash__accent--gembira { color: #6B6FE8; }
.portal-splash__sub {
    font-family: Poppins, sans-serif;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.5;
    color: #9a9eb8;
    margin: 0 0 4px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}
.portal-splash__illus {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    align-items: flex-end;
    justify-content: stretch;
    width: 100%;
    margin-top: 4px;
    padding: 0;
    line-height: 0;
    min-height: 0;
    overflow: hidden;
}
.portal-splash__svg {
    width: 100%;
    height: auto;
    aspect-ratio: 360 / 200;
    min-height: 0;
    max-height: none;
    display: block;
    vertical-align: bottom;
}
.portal-splash__svg-confetti {
    animation: splash-confetti 3.2s ease-in-out infinite;
}
.portal-splash__svg-confetti:nth-child(3) { animation-delay: 0.4s; }
.portal-splash__svg-confetti:nth-child(4) { animation-delay: 0.9s; }
.portal-splash__svg-confetti:nth-child(5) { animation-delay: 1.3s; }
.portal-splash__svg-confetti:nth-child(6) { animation-delay: 0.2s; }
.portal-splash__svg-confetti:nth-child(7) { animation-delay: 1.7s; }
.portal-splash__svg-confetti:nth-child(8) { animation-delay: 2.1s; }
@keyframes splash-confetti {
    0%, 100% { transform: translateY(0); opacity: 0.75; }
    50% { transform: translateY(-5px); opacity: 1; }
}
.portal-splash__actions {
    position: relative;
    z-index: 2;
    flex-shrink: 0;
    background: linear-gradient(165deg, #6368d2 0%, var(--primary) 42%, #1a1d62 100%);
    padding: 14px var(--portal-pad-x) calc(6px + env(safe-area-inset-bottom));
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 -8px 32px rgba(46, 49, 146, 0.18);
}
.portal-splash__actions .portal-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}
.portal-btn__ico {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}
.portal-btn--splash-fill {
    background: rgba(255, 255, 255, 0.97);
    color: var(--primary);
    border: 1.5px solid rgba(255, 255, 255, 0.6);
    border-radius: 16px;
    padding: 15px;
    font-family: Poppins, sans-serif;
    font-weight: 700;
    font-size: 16px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.14);
}
.portal-btn--splash-register {
    background: linear-gradient(135deg, #e4c04a 0%, var(--secondary, #C9A227) 55%, #b8921f 100%);
    color: #1a1d5c;
    border: none;
    border-radius: 16px;
    padding: 15px;
    font-family: Poppins, sans-serif;
    font-weight: 700;
    font-size: 16px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}
.portal-btn--splash-fill:hover,
.portal-btn--splash-register:hover {
    opacity: 1;
    transform: translateY(-2px);
}
.portal-btn--splash-fill:hover {
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}
.portal-btn--splash-register:hover {
    box-shadow: 0 10px 24px rgba(201, 162, 39, 0.35);
}
@media (prefers-reduced-motion: reduce) {
    .portal-splash__spark,
    .portal-splash__svg-confetti {
        animation: none;
    }
    .portal-splash__actions .portal-btn {
        transition: none;
    }
}

/* ---- Auth login/register ---- */
.portal-auth {
    min-height: 100dvh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    width: 100%;
}
.portal-auth__frame {
    position: relative;
    flex: 1;
    width: 100%;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    background: #f8f9fc;
    overflow: hidden;
}
.portal-auth__scroll {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    overscroll-behavior-y: contain;
    padding: calc(20px + env(safe-area-inset-top)) var(--portal-pad-x) 28px;
    scroll-padding-bottom: 20px;
}
.portal-auth--login .portal-auth__scroll {
    display: flex;
    flex-direction: column;
    padding-top: calc(20px + env(safe-area-inset-top));
    padding-bottom: 16px;
}
.portal-auth--register .portal-auth__scroll {
    padding-bottom: 36px;
    scroll-padding-bottom: 28px;
}
.portal-auth--login .portal-auth__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-bottom: 28px;
    min-height: 0;
}
.portal-auth__brand-row {
    display: flex;
    justify-content: center;
    margin-bottom: 28px;
}
.portal-auth__brand-row .portal-auth__logo {
    justify-self: auto;
    grid-column: auto;
}
.portal-auth__topbar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    margin-bottom: 28px;
}
.portal-auth__back {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: Poppins, sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #8b8fa8;
    text-decoration: none;
    justify-self: start;
    transition: color .15s;
}
.portal-auth__back:hover { color: var(--primary); }
.portal-auth__logo {
    height: 56px;
    width: auto;
    max-width: min(180px, 50vw);
    object-fit: contain;
    justify-self: center;
    grid-column: 2;
}
.portal-auth__topbar-end {
    grid-column: 3;
    width: 72px;
}
.portal-auth__intro {
    text-align: center;
    margin-bottom: 28px;
}
.portal-auth__intro h1 {
    font-family: Poppins, sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--primary, #2E3192);
    margin: 0 0 6px;
    line-height: 1.3;
}
.portal-auth__intro p {
    font-family: Poppins, sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #8b8fa8;
    margin: 0;
}
.portal-auth__demo-hint {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: -12px 0 20px;
    padding: 12px 14px;
    border-radius: 10px;
    background: rgba(46, 49, 146, 0.06);
    border: 1px solid rgba(46, 49, 146, 0.14);
    color: #3d4080;
    font-family: Poppins, sans-serif;
    font-size: 12.5px;
    line-height: 1.45;
    text-align: center;
}
.portal-auth__demo-hint strong {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary, #2E3192);
}
.portal-auth__demo-hint code {
    font-size: 12px;
    background: rgba(46, 49, 146, 0.08);
    padding: 1px 6px;
    border-radius: 4px;
    color: #2E3192;
}
.portal-auth__form { margin-bottom: 0; }
.portal-field { margin-bottom: 16px; }
.portal-field label {
    display: block;
    font-family: Poppins, sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #4a4d7a;
    margin-bottom: 8px;
}
.portal-field__wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.portal-field__wrap--plain input {
    padding-left: 14px;
    padding-right: 14px;
}
.portal-field__icon {
    position: absolute;
    left: 14px;
    color: #9ca3af;
    display: flex;
    pointer-events: none;
}
.portal-field__icon svg {
    width: 18px;
    height: 18px;
    stroke-width: 1.75;
}
.portal-field__wrap input {
    width: 100%;
    padding: 14px 44px 14px 44px;
    border: 1.5px solid #e2e5ef;
    border-radius: 14px;
    font-family: Poppins, sans-serif;
    font-size: 15px;
    background: #fff;
    color: var(--text, #1a1d3a);
    box-sizing: border-box;
    transition: border-color .15s, box-shadow .15s;
}
.portal-field__wrap input::placeholder { color: #b0b4c8; }
.portal-field__wrap input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(46, 49, 146, 0.1);
}
.portal-field__toggle {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    color: #9ca3af;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    padding: 0;
    transition: color .15s;
}
.portal-field__toggle svg {
    width: 18px;
    height: 18px;
    stroke-width: 1.75;
    flex-shrink: 0;
}
.portal-field__toggle .ico-hide {
    display: none;
}
.portal-field__toggle.is-visible .ico-show {
    display: none;
}
.portal-field__toggle.is-visible .ico-hide {
    display: block;
}
.portal-field__toggle:hover {
    color: #6b7280;
}
.portal-auth__switch {
    text-align: center;
    font-family: Poppins, sans-serif;
    font-size: 13px;
    color: #8b8fa8;
    margin: 20px 0 0;
}
.portal-auth__switch a {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
}
.portal-auth__switch a:hover { text-decoration: underline; }
.portal-field__label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
}
.portal-field__label-row label {
    margin: 0;
}
.portal-auth__forgot {
    font-size: 11px;
    font-weight: 600;
    color: var(--primary, #2E3192);
    text-decoration: none;
    white-space: nowrap;
}
.portal-auth__forgot:hover { text-decoration: underline; }
.portal-auth__intro-desc {
    margin: 8px auto 0;
    font-size: 13px;
    line-height: 1.55;
    color: #6b7280;
    text-align: center;
    max-width: 320px;
}
.portal-auth__intro-desc--error {
    color: #b45309;
}
.portal-auth--forgot.portal-auth--member-login .portal-auth__frame {
    position: relative;
}
.portal-auth--forgot.portal-auth--member-login .portal-auth__scroll {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.portal-auth--forgot.portal-auth--member-login .portal-auth__body {
    flex: 1;
    justify-content: center;
    min-height: 0;
}
.portal-auth--forgot.portal-auth--member-login .portal-auth__intro-desc {
    max-width: 100%;
    padding: 0 4px;
}
.portal-auth__actions {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    background: linear-gradient(165deg, #6368d2 0%, var(--primary) 42%, #1a1d62 100%);
    padding: 16px var(--portal-pad-x) calc(12px + env(safe-area-inset-bottom));
}
.portal-auth__back--inline {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: Poppins, sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    margin: 0;
    padding: 0;
    transition: color .15s;
}
.portal-auth__back--inline svg {
    flex-shrink: 0;
}
.portal-auth__back--inline:hover {
    color: #fff;
    text-decoration: underline;
}
.portal-auth__actions .portal-btn {
    width: 100%;
    margin: 0;
}
.portal-auth__actions .portal-btn--splash-fill:disabled,
.portal-auth__actions .portal-btn--splash-register:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.portal-auth-card { background: #fff; border-radius: 24px 24px 0 0; padding: 32px 24px; margin-top: auto; min-height: 50vh; }
.portal-welcome { min-height: 100vh; display: flex; flex-direction: column; padding: 40px 24px 0; color: #fff; text-align: center; }
.portal-welcome__logo { width: 80px; height: 80px; margin: 0 auto 16px; border-radius: 20px; background: rgba(255,255,255,.15); display: flex; align-items: center; justify-content: center; font-size: 32px; font-weight: 800; }
.portal-welcome__tagline { font-size: 14px; opacity: .9; margin-bottom: 32px; line-height: 1.5; }

.portal-header {
    display: flex; align-items: center; justify-content: space-between;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: var(--portal-width);
    margin: 0 auto;
    padding: calc(10px + env(safe-area-inset-top)) var(--portal-pad-x) 10px;
    background: #fff;
    border-bottom: 1px solid rgba(46, 49, 146, 0.06);
    z-index: 110;
}
.portal-header--home,
.portal-header--page {
    background: #fff;
    border-bottom: 1px solid rgba(46, 49, 146, 0.06);
}
.portal-header__back,
.portal-header__spacer {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.portal-header__back {
    color: var(--primary);
    text-decoration: none;
    border-radius: 10px;
    transition: background 0.15s;
}
.portal-header__back:hover {
    background: rgba(46, 49, 146, 0.06);
}
.portal-header--page .portal-header__title {
    font-size: 20px;
    color: var(--primary);
    text-transform: uppercase;
}
.portal-header--public {
    background: #fff;
    border-bottom: 1px solid rgba(46, 49, 146, 0.06);
}
.portal-header--public-brand {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    padding: calc(6px + env(safe-area-inset-top, 0px)) 12px 8px;
    border-bottom: none;
    background-color: #0047ab;
    background-image:
        radial-gradient(ellipse 52% 48% at 10% 14%, rgba(178, 230, 70, 0.42) 0%, rgba(162, 214, 69, 0.14) 38%, transparent 68%),
        radial-gradient(ellipse 48% 42% at 50% 92%, rgba(162, 214, 69, 0.32) 0%, rgba(162, 214, 69, 0.08) 40%, transparent 65%),
        linear-gradient(155deg, #003580 0%, #0047ab 38%, #0056b3 68%, #003878 100%);
    box-shadow: 0 4px 16px rgba(0, 40, 100, 0.16);
}
.portal-public-profile__header-bar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 36px;
}
.portal-public-profile__header-title {
    grid-column: 2;
    font-family: Poppins, sans-serif;
    font-size: clamp(9px, 2.6vw, 11px);
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    line-height: 1.2;
}
.portal-public-profile__logo {
    height: clamp(28px, 5.5vw, 34px);
    width: auto;
    object-fit: contain;
}
.portal-public-profile__logo--tda {
    grid-column: 1;
    justify-self: start;
    max-width: 72px;
    filter: brightness(0) invert(1);
}
.portal-public-profile__logo--together {
    grid-column: 3;
    justify-self: end;
    max-width: 88px;
    border-radius: 3px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}
.portal-header__login-link {
    flex-shrink: 0;
    padding: 8px 14px;
    font-family: Poppins, sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    border-radius: 999px;
    border: 1px solid rgba(46, 49, 146, 0.18);
}
.portal-body--public .portal-content {
    padding-bottom: 24px;
}
.portal-body--public-nav .portal-content {
    padding-bottom: calc(var(--portal-nav-h) + 12px);
}
.portal-guest-gate {
    min-height: calc(100dvh - var(--portal-header-h) - var(--portal-nav-h) - 24px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px var(--portal-pad-x) 32px;
}
.portal-guest-gate__card {
    width: 100%;
    max-width: 360px;
    text-align: center;
    background: #fff;
    border-radius: 20px;
    padding: 28px 22px;
    box-shadow: 0 12px 32px rgba(46, 49, 146, 0.1);
    border: 1px solid rgba(46, 49, 146, 0.06);
}
.portal-guest-gate__ico {
    display: inline-flex;
    width: 56px;
    height: 56px;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: #eef0ff;
    font-size: 26px;
    margin-bottom: 14px;
}
.portal-guest-gate__title {
    margin: 0 0 8px;
    font-family: Poppins, sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #111827;
}
.portal-guest-gate__text {
    margin: 0 0 18px;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.5;
}
.portal-guest-gate__btn {
    display: inline-flex;
    width: 100%;
    justify-content: center;
    margin-bottom: 12px;
}
.portal-guest-gate__switch {
    margin: 0;
    font-size: 13px;
    color: #6b7280;
}
.portal-guest-gate__switch a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}
.portal-body--public-profile {
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(123, 127, 232, 0.12) 0%, transparent 55%),
        linear-gradient(180deg, #e8ecf4 0%, #f0f2f8 45%, #eef1f7 100%);
}
.portal-body--public-profile .portal-desktop-bg {
    background: transparent;
}
.portal-body--public-profile .portal-public-profile__hero {
    padding-top: 12px;
}
.portal-header__title {
    flex: 1;
    text-align: center;
    font-family: Poppins, sans-serif;
    font-weight: 700;
    font-size: 19px;
    color: var(--text, #1f2937);
    margin: 0 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.portal-header__menu {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    color: #4b5563;
    cursor: pointer;
    padding: 0;
    border-radius: 10px;
    flex-shrink: 0;
}
.portal-header__lead {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-shrink: 1;
    min-width: 0;
    max-width: calc(100% - 96px);
}
.portal-header__brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    font-family: Poppins, sans-serif;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.04em;
    color: var(--primary);
    white-space: nowrap;
}
.portal-header__brand-logo {
    height: 30px;
    width: auto;
    max-width: 56px;
    object-fit: contain;
    flex-shrink: 0;
}
.portal-header__brand-name {
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 1;
    min-width: 0;
    font-size: 15px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.portal-header--home .portal-header__brand-name {
    font-size: 16px;
}
.portal-header__brand-together {
    height: 20px;
    width: auto;
    max-width: 68px;
    object-fit: contain;
    flex-shrink: 0;
}
@media (max-width: 360px) {
    .portal-header__brand-name {
        font-size: 13px;
        letter-spacing: 0.02em;
    }
    .portal-header--home .portal-header__brand-name {
        font-size: 14px;
    }
    .portal-header__brand-logo {
        height: 24px;
        max-width: 44px;
    }
    .portal-header__brand-together {
        height: 18px;
        max-width: 58px;
    }
}
.portal-header__brand-ver {
    flex-shrink: 0;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--secondary, #C9A227);
    background: linear-gradient(135deg, rgba(201, 162, 39, 0.14) 0%, rgba(201, 162, 39, 0.06) 100%);
    padding: 2px 7px;
    border-radius: 999px;
    border: 1px solid rgba(201, 162, 39, 0.22);
}
.portal-header__notif { position: relative; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: #fff; text-decoration: none; box-shadow: 0 2px 8px rgba(46, 49, 146, 0.08); flex-shrink: 0; }
.portal-header__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    flex-shrink: 0;
}
.portal-refresh-btn {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid rgba(46, 49, 146, 0.1);
    border-radius: 50%;
    background: #fff;
    color: var(--primary, #2E3192);
    box-shadow: 0 2px 8px rgba(46, 49, 146, 0.08);
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}
.portal-refresh-btn:hover {
    background: #f8f9ff;
    box-shadow: 0 4px 12px rgba(46, 49, 146, 0.12);
}
.portal-refresh-btn:active {
    transform: scale(0.96);
}
.portal-refresh-btn.is-spinning svg {
    animation: portalRefreshSpin 0.7s linear infinite;
}
@keyframes portalRefreshSpin {
    to { transform: rotate(360deg); }
}
.portal-header--public-brand .portal-header__actions {
    position: absolute;
    top: calc(10px + env(safe-area-inset-top));
    right: var(--portal-pad-x);
    z-index: 2;
}
.portal-header--public-brand .portal-refresh-btn {
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.28);
    color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}
.portal-header--public-brand .portal-refresh-btn:hover {
    background: rgba(255, 255, 255, 0.24);
}
.portal-header__notif-ico { width: 20px; height: 20px; background: var(--primary); mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3E%3Cpath d='M18 8A6 6 0 0 0 6 8c0 7-3 9-3 9h18s-3-2-3-9'/%3E%3Cpath d='M13.73 21a2 2 0 0 1-3.46 0'/%3E%3C/svg%3E") center/contain no-repeat; -webkit-mask: same; }
.portal-header__badge { position: absolute; top: 4px; right: 4px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--danger, #e74c3c); color: #fff; font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center; }

.portal-content {
    position: relative;
    z-index: 1;
    padding: var(--portal-header-h) 0 calc(88px + env(safe-area-inset-bottom));
    min-height: 100dvh;
    box-sizing: border-box;
}
.portal-shell--app .portal-header {
    position: sticky;
    top: 0;
    flex-shrink: 0;
    width: 100%;
    max-width: 100%;
    transform: none;
    left: auto;
    right: auto;
}
.portal-shell--app .portal-content {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: 0 0 8px;
}
.portal-shell--app .portal-bottom-nav {
    position: relative;
    flex-shrink: 0;
    width: 100%;
    max-width: 100%;
    transform: none;
    left: auto;
    right: auto;
    z-index: 110;
}
#portal-content-area {
    min-height: 0;
}
#portal-content-area > :first-child:not(.portal-page--bleed) {
    padding-top: var(--portal-content-gap);
    padding-left: var(--portal-pad-x);
    padding-right: var(--portal-pad-x);
}
.portal-page--bleed {
    margin: 0;
    padding-top: 0 !important;
}
.portal-page__body {
    padding-top: var(--portal-content-gap);
}
.portal-page-tabs .portal-event__tabs-wrap {
    background: #fff;
    border-bottom: 1px solid #eceef4;
}

/* ---- Profil ---- */
.portal-profile {
    margin: 0;
}
.portal-profile__hero {
    position: relative;
    padding-top: var(--portal-content-gap);
    padding-bottom: 28px;
    background-color: #eceef8;
    background-image:
        radial-gradient(ellipse 90% 70% at 50% -10%, rgba(123, 127, 232, 0.22) 0%, transparent 62%),
        linear-gradient(180deg, #eceef8 0%, rgba(236, 238, 248, 0.92) 55%, #f8f9fc 100%);
}
.portal-profile__hero-inner {
    padding: 0 var(--portal-pad-x);
    text-align: center;
}
.portal-profile__avatar {
    width: 96px;
    height: 96px;
    margin: 0 auto 14px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, #eef0ff, #dfe3ff);
    border: 3px solid #fff;
    box-shadow: 0 8px 24px rgba(46, 49, 146, 0.14);
    display: flex;
    align-items: center;
    justify-content: center;
}
.portal-profile__avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.portal-profile__avatar-initial {
    font-family: Poppins, sans-serif;
    font-size: 34px;
    font-weight: 700;
    color: var(--primary);
}
.portal-profile__name {
    font-family: Poppins, sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 6px;
    line-height: 1.25;
}
.portal-profile__email,
.portal-profile__member {
    font-family: Poppins, sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #9ca3af;
    margin: 0 0 4px;
    line-height: 1.4;
}
.portal-profile__member {
    margin-bottom: 16px;
}
.portal-profile__edit-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: none;
    border-radius: 999px;
    background: #ebe9ff;
    color: #5b5fd6;
    font-family: Poppins, sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s, transform 0.15s;
}
.portal-profile__edit-btn:hover {
    background: #e0ddff;
    transform: translateY(-1px);
}
.portal-profile__edit-btn svg {
    flex-shrink: 0;
}
.portal-profile__section--card {
    padding-top: 4px;
}
.portal-profile__section--card .portal-member-card-wrap {
    margin: 0;
}
.portal-profile__section {
    padding: 8px var(--portal-pad-x) 16px;
}
.portal-profile__section-title {
    font-family: Poppins, sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 14px;
}
.portal-profile__menu {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.portal-profile__menu-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 18px rgba(46, 49, 146, 0.07);
    transition: transform 0.15s, box-shadow 0.15s;
}
.portal-profile__menu-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 22px rgba(46, 49, 146, 0.1);
}
.portal-profile__menu-ico {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.portal-profile__menu-ico svg {
    width: 22px;
    height: 22px;
}
.portal-profile__menu-ico--id { background: #e8f4fd; color: #3b82f6; }
.portal-profile__menu-ico--card { background: #ebe9ff; color: #5b5fd6; }
.portal-profile__menu-ico--biz { background: #fff4e5; color: #f59e0b; }
.portal-profile__menu-ico--event { background: #fce8f3; color: #ec4899; }
.portal-profile__menu-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.portal-profile__menu-text strong {
    font-family: Poppins, sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.3;
}
.portal-profile__menu-text small {
    font-family: Poppins, sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: #9ca3af;
    line-height: 1.35;
}
.portal-profile__menu-chev {
    font-size: 22px;
    line-height: 1;
    color: #c4c8d8;
    flex-shrink: 0;
}
.portal-profile__edit {
    padding: 8px var(--portal-pad-x) 24px;
}
.portal-profile__form {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 4px 18px rgba(46, 49, 146, 0.07);
}
.portal-profile__form .portal-form-group input {
    background: #f8f9fc;
    border-color: #e8eaf2;
}

/* ---- Event ---- */
.portal-event {
    margin: 0;
}
.portal-event__tabs-wrap {
    background: #fff;
    border-bottom: 1px solid #eceef4;
}
.portal-event__tabs {
    display: flex;
    gap: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0 var(--portal-pad-x);
}
.portal-event__tabs::-webkit-scrollbar { display: none; }
.portal-event__tab {
    flex: 0 0 auto;
    border: none;
    background: transparent;
    padding: 14px 16px 12px;
    font-family: Poppins, sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #9ca3af;
    cursor: pointer;
    position: relative;
    white-space: nowrap;
    transition: color 0.15s;
}
.portal-event__tab.active {
    color: var(--primary);
}
.portal-event__tab.active::after {
    content: '';
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 0;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: var(--primary);
}
.portal-event__tabs-wrap--scope {
    padding-bottom: 0;
}
.portal-event__scope-wrap {
    padding: 8px var(--portal-pad-x) 10px;
    border-top: 1px solid #f0f1f5;
}
.portal-event__tabs-wrap--scope .portal-event__scope-wrap {
    margin-top: 0;
    border-top: none;
}
.portal-event__scope-wrap .portal-direktori__subtabs {
    padding: 0;
}
.portal-event__tab--with-icon {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 14px 10px;
}
.portal-event__tab--with-icon.active::after {
    left: 14px;
    right: 14px;
}
.portal-passport__tab-ico {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    background: currentColor;
    opacity: 0.72;
    -webkit-mask: var(--tab-ico) center / contain no-repeat;
    mask: var(--tab-ico) center / contain no-repeat;
}
.portal-event__tab.active .portal-passport__tab-ico {
    opacity: 1;
}
.portal-passport__tab-label {
    line-height: 1;
}
.portal-passport__tab-ico--profile {
    --tab-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E");
}
.portal-passport__tab-ico--history {
    --tab-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3Cpath d='m9 16 2 2 4-4'/%3E%3C/svg%3E");
}
.portal-passport__tab-ico--journey {
    --tab-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 19.5A2.5 2.5 0 0 1 6.5 17H20'/%3E%3Cpath d='M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2z'/%3E%3C/svg%3E");
}
.portal-passport__tab-ico--badge {
    --tab-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='5'/%3E%3Cpath d='M7 21h10l-1-7H8l-1 7z'/%3E%3C/svg%3E");
}
.portal-passport__tab-ico--bisnis {
    --tab-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 21h18'/%3E%3Cpath d='M5 21V7l8-4v18'/%3E%3Cpath d='M19 21V11l-6-4'/%3E%3Cpath d='M9 9v0'/%3E%3Cpath d='M9 12v0'/%3E%3Cpath d='M9 15v0'/%3E%3Cpath d='M9 18v0'/%3E%3C/svg%3E");
}
.portal-passport__tab-ico--produk {
    --tab-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 2 3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4Z'/%3E%3Cpath d='M3 6h18'/%3E%3Cpath d='M16 10a4 4 0 0 1-8 0'/%3E%3C/svg%3E");
}
.portal-passport__tab-ico--aktivitas {
    --tab-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E");
}
.portal-passport__tab-ico--amanah {
    --tab-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3C/svg%3E");
}

/* ---- Direktori ---- */
.portal-direktori__toolbar-wrap {
    background: #fff;
    border-bottom: 1px solid #eceef4;
}
.portal-direktori__toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 var(--portal-pad-x);
    min-height: 48px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.portal-direktori__toolbar::-webkit-scrollbar { display: none; }
.portal-direktori__main-tabs {
    flex: 0 0 auto;
    padding: 0 !important;
}
.portal-direktori__main-tabs .portal-event__tab {
    padding: 12px 14px 10px;
}
.portal-direktori__toolbar .portal-direktori__subtabs {
    flex: 0 0 auto;
    display: flex;
    justify-content: flex-start;
    gap: 6px;
    min-width: 0;
    padding: 6px 0 6px 12px;
    margin-left: 2px;
    border-left: 1px solid #eceef4;
}
.portal-direktori__subtabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.portal-direktori__subtabs::-webkit-scrollbar { display: none; }
.portal-direktori__subtab {
    flex: 0 0 auto;
    border: 1px solid #e5e7ef;
    background: #f8f9fc;
    color: #6b7280;
    padding: 5px 12px;
    border-radius: 999px;
    font-family: Poppins, sans-serif;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.portal-direktori__subtab.active {
    background: rgba(46, 49, 146, 0.1);
    border-color: rgba(46, 49, 146, 0.18);
    color: var(--primary);
}
.portal-direktori__body {
    padding: var(--portal-content-gap) var(--portal-pad-x) 8px;
}
.portal-direktori__scope {
    margin: 0 0 10px;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
}
.portal-direktori__pager {
    margin-bottom: 12px;
}
.portal-direktori__filters {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 0 0 12px;
}
.portal-direktori__filters--single {
    grid-template-columns: 1fr;
}
.portal-direktori__filter-col {
    min-width: 0;
}
.portal-direktori__filter-label {
    display: block;
    margin: 0 0 6px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #6b7280;
}
.portal-direktori__filter-select {
    width: 100%;
}
.portal-search-group {
    display: flex;
    align-items: stretch;
    width: 100%;
    margin-bottom: 14px;
    border: 1px solid #e8eaf2;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 2px 10px rgba(46, 49, 146, 0.05);
    overflow: hidden;
}
.portal-search-group:focus-within {
    border-color: rgba(46, 49, 146, 0.35);
    box-shadow: 0 0 0 3px rgba(46, 49, 146, 0.08);
}
.portal-search-group__input {
    flex: 1;
    min-width: 0;
    border: none;
    padding: 12px 14px;
    font-size: 14px;
    font-family: Inter, sans-serif;
    background: transparent;
    color: var(--text);
    box-sizing: border-box;
}
.portal-search-group__input:focus {
    outline: none;
}
.portal-search-group__input::-webkit-search-cancel-button {
    -webkit-appearance: none;
}
.portal-search-group__btn {
    flex-shrink: 0;
    width: 48px;
    border: none;
    border-left: 1px solid #e8eaf2;
    background: var(--primary, #2e3192);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease;
}
.portal-search-group__btn:hover {
    background: #252878;
}
.portal-search-group__btn:active {
    background: #1a1d62;
}
.portal-search-group__btn-ico {
    width: 18px;
    height: 18px;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E") center / contain no-repeat;
}
.portal-event__toolbar .portal-search-group,
.portal-market__toolbar .portal-search-group {
    margin-bottom: 0;
}
.portal-item-card--static {
    cursor: default;
    text-decoration: none;
    color: inherit;
}
.portal-item-card__meta--jabatan {
    color: var(--primary);
    font-weight: 600;
}
.portal-item-card__meta--org {
    margin-top: 4px;
    font-size: 11px;
    color: #9ca3af;
}

/* ---- Market ---- */
.portal-market__toolbar {
    padding: 12px var(--portal-pad-x);
    background: #fff;
    border-bottom: 1px solid #eceef4;
}
.portal-market__toolbar-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}
.portal-market__search { margin-bottom: 0; }
.portal-market__select {
    flex: 1;
    min-width: 0;
    padding: 9px 12px;
    border: 1px solid #e5e7ef;
    border-radius: 10px;
    font-size: 13px;
    font-family: Inter, sans-serif;
    background: #f8f9fc;
    color: var(--text);
}
.portal-market__select--sort { flex: 1; }
.portal-market__input {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #e5e7ef;
    border-radius: 10px;
    font-size: 13px;
    box-sizing: border-box;
}
.portal-market__icon-btn,
.portal-market__view-btn {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border: 1px solid #e5e7ef;
    border-radius: 10px;
    background: #fff;
    color: #6b7280;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.portal-market__icon-btn.active,
.portal-market__view-btn.active {
    background: rgba(46, 49, 146, 0.1);
    border-color: rgba(46, 49, 146, 0.2);
    color: var(--primary);
}
.portal-market__view-toggle {
    display: flex;
    gap: 4px;
}
.portal-market__filters {
    padding: 12px var(--portal-pad-x) 14px;
    background: #f8f9fc;
    border-bottom: 1px solid #eceef4;
}
.portal-market__filter-row {
    margin-bottom: 10px;
}
.portal-market__filter-row label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.portal-market__filter-row--2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.portal-market__filter-apply {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 10px;
    background: var(--primary);
    color: #fff;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
}
.portal-market__body {
    padding: var(--portal-content-gap) var(--portal-pad-x) 16px;
}
.portal-market__grid {
    display: grid;
    gap: 12px;
}
.portal-market__grid--grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.portal-market__grid--list {
    grid-template-columns: 1fr;
}
.portal-market__grid--mini {
    margin-top: 8px;
}
.portal-market-card {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 18px rgba(46, 49, 146, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.95);
    transition: transform 0.15s;
}
.portal-market-card:active { transform: scale(0.98); }
.portal-market-card--list {
    flex-direction: row;
    align-items: stretch;
}
.portal-market-card--list .portal-market-card__media {
    width: 96px;
    min-height: 96px;
    flex-shrink: 0;
    aspect-ratio: auto;
}
.portal-market-card--list .portal-market-card__body {
    flex: 1;
    min-width: 0;
    justify-content: center;
}
.portal-market-card__media {
    position: relative;
    aspect-ratio: 1;
    background: linear-gradient(135deg, #eef0ff, #e8ebfa);
    overflow: hidden;
}
.portal-market-card__tag {
    display: inline-block;
    align-self: flex-start;
    font-size: 10px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(46, 49, 146, 0.08);
    color: var(--primary);
}
.portal-market-card__tag--photo {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
    max-width: calc(100% - 16px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background: rgba(15, 23, 42, 0.62);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
.portal-market-card--list .portal-market-card__tag--photo {
    top: 6px;
    left: 6px;
    font-size: 9px;
    padding: 2px 7px;
}
.portal-market-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.portal-market-card__ph {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: Poppins, sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
    opacity: 0.45;
}
.portal-market-card__body {
    padding: 10px 12px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-height: 0;
}
.portal-market-card__title {
    margin: 0;
    font-family: Poppins, sans-serif;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.portal-market-card__price {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
}
.portal-market-card__price small {
    font-weight: 500;
    font-size: 11px;
    color: #6b7280;
}
.portal-market-card__meta,
.portal-market-card__count {
    margin: 0;
    font-size: 11px;
    color: #9ca3af;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.portal-market-card__meta--seller {
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
}
.portal-market-card__meta--seller .portal-market-card__meta-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
    flex: 1;
}
.portal-market-card__meta-ico {
    flex-shrink: 0;
    width: 11px;
    height: 11px;
    background: #b0b5c0;
    -webkit-mask: var(--row-ico) center / contain no-repeat;
    mask: var(--row-ico) center / contain no-repeat;
}
.portal-market-card__meta-ico--member {
    --row-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E");
}
.portal-market__pager {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid #eceef4;
}
.portal-market__pager-btn {
    padding: 8px 12px;
    border: 1px solid #e5e7ef;
    border-radius: 10px;
    background: #fff;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    cursor: pointer;
}
.portal-market__pager-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
.portal-market__pager-info {
    font-size: 12px;
    color: #6b7280;
    text-align: center;
}
.portal-market-detail {
    padding-bottom: calc(72px + env(safe-area-inset-bottom));
}
.portal-market-detail__hero {
    background: #fff;
    border-bottom: 1px solid #eceef4;
}
.portal-market-detail__cover {
    position: relative;
    padding-top: var(--portal-content-gap);
    background: #f3f4f8;
}
.portal-market-detail__cover--logo {
    aspect-ratio: 16 / 10;
    max-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, #eef0ff, #e8ebfa);
}
.portal-market-detail__cover-img,
.portal-market-detail__cover-ph {
    width: 100%;
    height: auto;
    max-height: none;
    aspect-ratio: auto;
    border-radius: 0;
    object-fit: contain;
    object-position: top center;
    display: block;
    background: #f3f4f8;
}
.portal-market-detail__cover-ph {
    min-height: 180px;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: Poppins, sans-serif;
    font-size: 36px;
    font-weight: 700;
    color: var(--primary);
}
.portal-market-detail__cover--logo .portal-market-detail__cover-img {
    object-fit: contain;
    height: 100%;
    max-height: 200px;
}
.portal-market-detail__cover .portal-market-card__tag--photo {
    top: 12px;
    left: 12px;
    font-size: 11px;
    padding: 4px 10px;
}
.portal-market-detail__summary {
    padding: 16px var(--portal-pad-x) 18px;
}
.portal-market-detail__body {
    padding: 14px var(--portal-pad-x) 24px;
}
.portal-market-detail__title {
    font-family: Poppins, sans-serif;
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 12px;
    line-height: 1.35;
    color: var(--text, #1f2937);
}
.portal-market-detail__meta {
    list-style: none;
    margin: 0 0 14px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.portal-market-detail__meta li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: #6b7280;
    line-height: 1.45;
}
.portal-market-detail__meta-ico {
    font-size: 15px;
    line-height: 1.2;
    flex-shrink: 0;
}
.portal-market-detail__meta li:first-child {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary);
}
.portal-market-detail__divider {
    border: none;
    border-top: 1px solid #eceef4;
    margin: 0 0 16px;
}
.portal-market-detail__desc h2 {
    font-family: Poppins, sans-serif;
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 10px;
    color: var(--primary);
}
.portal-market-detail__desc-text {
    font-size: 14px;
    line-height: 1.65;
    color: #4b5563;
}
.portal-market-detail__desc-text p {
    margin: 0 0 10px;
}
.portal-market-detail__desc-text p:last-child {
    margin-bottom: 0;
}
.portal-market-detail__desc-text ul,
.portal-market-detail__desc-text ol {
    margin: 0 0 10px;
    padding-left: 1.25rem;
}
.portal-market-detail__desc-text li {
    margin-bottom: 4px;
}
.portal-market-detail__desc-text strong,
.portal-market-detail__desc-text b {
    font-weight: 600;
    color: #374151;
}
.portal-market-detail__desc-text a {
    color: var(--primary);
    text-decoration: underline;
}
.portal-market-detail__price-row {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px 8px;
    margin-bottom: 10px;
}
.portal-market-detail__price {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
}
.portal-market-detail__unit {
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
}
.portal-market-detail__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.portal-market-detail__chip {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    background: rgba(46, 49, 146, 0.08);
    color: var(--primary);
}
.portal-market-detail__chip--muted {
    background: #f3f4f6;
    color: #6b7280;
    font-weight: 500;
}
.portal-market-detail__content {
    padding: 12px var(--portal-pad-x) 8px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.portal-market-detail__card {
    background: #fff;
    border-radius: 16px;
    padding: 14px 16px;
    border: 1px solid #eceef4;
    box-shadow: 0 2px 12px rgba(46, 49, 146, 0.04);
}
.portal-market-detail__card-title {
    font-family: Poppins, sans-serif;
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 10px;
    color: var(--primary);
}
.portal-market-detail__text {
    font-size: 14px;
    line-height: 1.65;
    color: #4b5563;
}
.portal-market-detail__empty {
    color: #9ca3af;
    font-size: 13px;
    font-style: italic;
}
.portal-market-detail__seller-row {
    display: flex;
    align-items: center;
    gap: 12px;
}
.portal-market-detail__seller-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.portal-market-detail__seller-info strong {
    font-family: Poppins, sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: var(--text, #1f2937);
}
.portal-market-detail__seller-info span {
    font-size: 12px;
    color: #9ca3af;
}
.portal-market-detail__link-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f0f1f5;
}
.portal-market-detail__link-btn {
    flex: 1;
    min-width: 0;
    text-align: center;
    padding: 9px 12px;
    border-radius: 10px;
    border: 1px solid #e5e7ef;
    background: #f8f9fc;
    color: var(--primary);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
}
.portal-market-detail__sticky {
    position: fixed;
    left: 0;
    right: 0;
    bottom: calc(var(--portal-nav-h, 56px) + env(safe-area-inset-bottom));
    z-index: 90;
    padding: 10px var(--portal-pad-x);
    background: linear-gradient(180deg, rgba(248, 249, 252, 0) 0%, rgba(248, 249, 252, 0.92) 30%, #f8f9fc 100%);
    pointer-events: none;
}
.portal-market-detail__sticky .portal-market-detail__wa-btn {
    pointer-events: auto;
    width: 100%;
    max-width: var(--portal-width);
    margin: 0 auto;
    display: flex;
    justify-content: center;
    padding: 14px 16px !important;
    border-radius: 14px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 16px rgba(46, 49, 146, 0.2);
}
.portal-shell--app .portal-market-detail__sticky {
    position: sticky;
    bottom: 0;
    margin-top: auto;
}

/* ---- Share bar (profil, event, market) ---- */
.portal-public-profile__share {
    padding: 8px var(--portal-pad-x) calc(28px + env(safe-area-inset-bottom));
}
.portal-public-profile__share-label {
    margin: 0 0 12px;
    font-family: Poppins, sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #9ca3af;
    text-align: center;
}
.portal-public-profile__share-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    max-width: 420px;
    margin: 0 auto;
}
.portal-public-profile__share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid #e8eaf2;
    border-radius: 50%;
    background: #fff;
    color: #374151;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(46, 49, 146, 0.06);
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}
.portal-public-profile__share-btn:hover {
    border-color: rgba(46, 49, 146, 0.18);
    box-shadow: 0 4px 14px rgba(46, 49, 146, 0.1);
}
.portal-public-profile__share-btn:active {
    transform: scale(0.94);
}
.portal-public-profile__share-btn[class*="share-btn--"] {
    background: #fff;
    border-color: #e8eaf2;
}
.portal-public-profile__share-btn[class*="share-btn--"]:hover {
    background: #fff;
    border-color: rgba(46, 49, 146, 0.18);
}
.portal-public-profile__share-ico {
    width: 20px;
    height: 20px;
    background: var(--primary, #2e3192);
    -webkit-mask: var(--share-ico) center / contain no-repeat;
    mask: var(--share-ico) center / contain no-repeat;
}
.portal-public-profile__share-ico--copy {
    --share-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='9' y='9' width='13' height='13' rx='2'/%3E%3Cpath d='M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1'/%3E%3C/svg%3E");
}
.portal-public-profile__share-ico--whatsapp {
    --share-ico: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20fill%3D%22black%22%20d%3D%22M12.04%202C6.58%202%202.13%206.45%202.13%2011.91c0%201.75.46%203.45%201.32%204.95L2.05%2022l5.25-1.38c1.45.79%203.08%201.21%204.74%201.21%205.46%200%209.91-4.45%209.91-9.91%200-2.65-1.03-5.14-2.9-7.01A9.816%209.816%200%200012.04%202m.01%201.67c2.2%200%204.26.86%205.82%202.42a8.225%208.225%200%20012.42%205.83c0%204.54-3.7%208.23-8.24%208.23-1.48%200-2.93-.39-4.19-1.14l-.3-.17-3.12.82.83-3.04-.2-.32a8.238%208.238%200%2001-1.26-4.38c.01-4.54%203.7-8.24%208.24-8.24M8.53%207.33c-.16%200-.43.06-.66.31-.22.25-.87.86-.87%202.07%200%201.21.89%202.38%201%202.55.14.17%201.75%202.67%204.31%203.63.59.23%201.05.37%201.41.48.59.19%201.13.16%201.56.1.48-.07%201.46-.6%201.67-1.18.21-.58.21-1.07.15-1.18-.07-.1-.23-.16-.48-.28-.25-.12-1.47-.73-1.69-.81-.23-.08-.39-.12-.56.12-.17.25-.64.81-.78.97-.14.17-.29.19-.54.06-.25-.12-1.05-.39-2-1.23-.74-.66-1.23-1.47-1.38-1.72-.14-.25-.02-.39.11-.51.11-.11.25-.29.37-.43.13-.14.17-.25.25-.41.08-.17.04-.32-.02-.43-.06-.11-.56-1.35-.77-1.84-.2-.48-.41-.42-.56-.43-.14-.01-.31-.01-.48-.01z%22%2F%3E%3C%2Fsvg%3E");
    background: #25d366;
}
.portal-public-profile__share-ico--facebook {
    --share-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M24 12.073C24 5.405 18.627 0 12 0S0 5.405 0 12.073C0 18.1 4.388 23.094 10.125 24v-8.437H7.078v-3.49h3.047V9.413c0-3.025 1.792-4.697 4.533-4.697 1.312 0 2.686.235 2.686.235v2.953H15.83c-1.491 0-1.956.925-1.956 1.874v2.25h3.328l-.532 3.49h-2.796V24C19.612 23.094 24 18.1 24 12.073'/%3E%3C/svg%3E");
    background: #1877f2;
}
.portal-public-profile__share-ico--x {
    --share-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231 5.451-6.231zm-1.161 17.52h1.833L7.084 4.126H5.117L17.083 19.77z'/%3E%3C/svg%3E");
    background: #111827;
}
.portal-public-profile__share-ico--telegram {
    --share-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M11.944 0A12 12 0 0 0 0 12a12 12 0 0 0 12 12 12 12 0 0 0 12-12A12 12 0 0 0 12 0 12 12 0 0 0 11.944 0zm4.962 7.224c.1-.002.321.023.465.14a.506.506 0 0 1 .171.325c.016.093.036.306.02.472-.18 1.898-.962 6.502-1.36 8.627-.168.9-.499 1.201-.82 1.23-.696.065-1.225-.46-1.9-.902-1.056-.693-1.653-1.124-2.678-1.8-1.185-.78-.417-1.21.258-1.91.177-.184 3.247-2.977 3.307-3.23.007-.032.014-.15-.056-.212s-.174-.041-.249-.024c-.106.024-1.793 1.14-5.061 3.345-.48.33-.913.49-1.302.48-.428-.008-1.252-.241-1.865-.44-.752-.245-1.349-.374-1.297-.789.027-.216.325-.437.893-.663 3.498-1.524 5.83-2.529 6.998-3.014 3.332-1.386 4.025-1.627 4.476-1.635z'/%3E%3C/svg%3E");
    background: #229ed9;
}
.portal-public-profile__share-ico--linkedin {
    --share-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433a2.062 2.062 0 0 1-2.063-2.065 2.064 2.064 0 1 1 4.126 0 2.063 2.063 0 0 1-2.063 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z'/%3E%3C/svg%3E");
    background: #0a66c2;
}
.portal-public-profile__share-ico--line {
    --share-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M19.365 9.863c.349 0 .63.285.63.631 0 .345-.281.63-.63.63H17.61v1.083h1.755c.349 0 .63.283.63.63 0 .344-.281.629-.63.629h-2.386a.63.63 0 0 1-.627-.629V8.108a.63.63 0 0 1 .627-.63h2.386c.349 0 .63.285.63.63 0 .349-.281.63-.63.63H17.61v1.078h1.755zm-3.855 3.016a.63.63 0 0 1-.627.629.625.625 0 0 1-.391-.135l-2.078-1.574v1.278a.63.63 0 0 1-1.254 0v-3.751a.63.63 0 0 1 1.06-.454l2.078 1.577V9.108a.63.63 0 1 1 1.254 0v3.771zm-5.741 0a.63.63 0 0 1-1.258 0V9.108a.63.63 0 1 1 1.254 0v3.771zm-2.083 0a.63.63 0 0 1-1.254 0V9.108a.63.63 0 0 1 1.254 0v3.771zM24 10.314C24 4.943 18.615.572 12 .572S0 4.943 0 10.314c0 4.811 4.27 8.842 10.035 9.608.391.082.923.258 1.058.59.12.301.079.766.038 1.08l-.164 1.02c-.045.301-.24 1.186 1.049.645 1.291-.539 6.916-4.078 9.436-6.975C23.176 14.393 24 12.458 24 10.314'/%3E%3C/svg%3E");
    background: #06c755;
}
.portal-public-profile__share-ico--email {
    --share-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='4' width='20' height='16' rx='2'/%3E%3Cpath d='m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7'/%3E%3C/svg%3E");
    background: #64748b;
}
.portal-public-profile__share-ico--pinterest {
    --share-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M12 0C5.373 0 0 5.373 0 12c0 5.084 3.163 9.426 7.627 11.174-.105-.949-.2-2.403.041-3.439.219-.937 1.406-5.957 1.406-5.957s-.359-.72-.359-1.781c0-1.663.967-2.911 2.168-2.911 1.024 0 1.518.769 1.518 1.688 0 1.029-.653 2.567-.992 3.992-.285 1.193.6 2.165 1.775 2.165 2.128 0 3.768-2.245 3.768-5.487 0-2.861-2.063-4.869-5.008-4.869-3.41 0-5.409 2.562-5.409 5.199 0 1.033.394 2.143.889 2.741.097.118.112.221.085.345-.09.375-.293 1.199-.334 1.363-.053.225-.172.271-.401.165-1.495-.69-2.433-2.878-2.433-4.646 0-3.776 2.748-7.252 7.92-7.252 4.158 0 7.392 2.967 7.392 6.923 0 4.135-2.607 7.462-6.233 7.462-1.214 0-2.357-.629-2.746-1.378l-.748 2.853c-.271 1.043-1.002 2.35-1.492 3.146C9.57 23.812 10.763 24 12 24c6.627 0 12-5.373 12-12S18.627 0 12 0'/%3E%3C/svg%3E");
    background: #e60023;
}
.portal-public-profile__share-ico--reddit {
    --share-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M12 0A12 12 0 0 0 0 12a12 12 0 0 0 12 12 12 12 0 0 0 12-12A12 12 0 0 0 12 0zm5.01 4.744c.688 0 1.25.561 1.25 1.249a1.25 1.25 0 0 1-2.498.056l-2.597-.547-.8 3.747c1.824.07 3.48.632 4.674 1.488.308-.309.73-.491 1.207-.491.968 0 1.754.786 1.754 1.754 0 .716-.435 1.333-1.01 1.614a3.111 3.111 0 0 1 .042.52c0 2.694-3.13 4.87-7.004 4.87-3.874 0-7.004-2.176-7.004-4.87 0-.183.015-.366.043-.534A1.748 1.748 0 0 1 4.028 12c0-.968.786-1.754 1.754-1.754.463 0 .898.196 1.207.49 1.207-.883 2.878-1.43 4.744-1.487l.885-4.182a.342.342 0 0 1 .14-.197.35.35 0 0 1 .238-.042l2.906.617a1.214 1.214 0 0 1 1.108-.701zM9.25 12C8.561 12 8 12.562 8 13.25c0 .687.561 1.248 1.25 1.248.687 0 1.248-.561 1.248-1.249 0-.688-.561-1.249-1.249-1.249zm5.5 0c-.687 0-1.248.561-1.248 1.25 0 .687.561 1.248 1.249 1.248.688 0 1.249-.561 1.249-1.249 0-.687-.562-1.249-1.25-1.249zm-5.466 3.99a.327.327 0 0 0-.231.094.33.33 0 0 0 0 .463c.842.842 2.484.913 2.961.913.477 0 2.105-.056 2.961-.913a.361.361 0 0 0 .029-.463.33.33 0 0 0-.464 0c-.547.533-1.684.73-2.512.73-.828 0-1.979-.196-2.512-.73a.326.326 0 0 0-.232-.095z'/%3E%3C/svg%3E");
    background: #ff4500;
}
.portal-public-profile__share-ico--native {
    --share-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8'/%3E%3Cpolyline points='16 6 12 2 8 6'/%3E%3Cline x1='12' y1='2' x2='12' y2='15'/%3E%3C/svg%3E");
    background: var(--primary, #2e3192);
}
.portal-event-detail .portal-public-profile__share,
.portal-market-detail .portal-public-profile__share {
    padding: 20px 0 24px;
}
.portal-event-detail__body .portal-public-profile__share {
    padding-left: 0;
    padding-right: 0;
    margin-top: 4px;
}
.portal-market-detail:has(.portal-market-detail__sticky) .portal-public-profile__share {
    padding-bottom: calc(88px + env(safe-area-inset-bottom));
}
.portal-event-detail:has(.portal-event-detail__register-wrap) .portal-public-profile__share {
    padding-bottom: 12px;
}
.portal-market-detail__card--seller {
    margin-top: 16px;
}
.portal-market-detail__loc {
    margin: 0 0 4px;
    font-size: 13px;
    color: #6b7280;
}
.portal-market-detail__section h2,
.portal-market-detail__seller h2 {
    font-family: Poppins, sans-serif;
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 10px;
    color: var(--primary);
}
.portal-market-detail__meta-list {
    list-style: none;
    margin: 0 0 8px;
    padding: 0;
    display: grid;
    gap: 8px;
}
.portal-market-detail__meta-list li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
    padding: 8px 12px;
    background: #f8f9fc;
    border-radius: 10px;
}
.portal-market-detail__meta-list span { color: #6b7280; }
.portal-market-detail__meta {
    margin: 2px 0 0;
    font-size: 12px;
    color: #9ca3af;
}
.portal-market-detail__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.portal-market-detail__btn {
    flex: 1 1 auto;
    min-width: 120px;
    padding: 12px 14px !important;
    font-size: 13px !important;
    border-radius: 12px !important;
}

.portal-event__section {
    padding: var(--portal-content-gap) var(--portal-pad-x) 8px;
    overflow: visible;
}
.portal-event__toolbar {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
    overflow: visible;
}
.portal-event__search {
    width: 100%;
}
.portal-event__toolbar-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    align-items: end;
}
.portal-event__toolbar-row--single {
    grid-template-columns: 1fr;
}
.portal-event__toolbar-row--area {
    position: relative;
    z-index: 40;
    overflow: visible;
}
.portal-event__select-wrap .select2-container--open {
    z-index: 41;
}
.portal-event__filter-col--area {
    min-width: 0;
}
.portal-event__toolbar-row--pair {
    grid-template-columns: 1fr 1fr;
}
@media (max-width: 520px) {
    .portal-event__toolbar-row--pair {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    .portal-event__toolbar-row--pair .portal-event__field-select {
        font-size: 13px;
        padding: 10px 28px 10px 10px;
    }
}
.portal-event__filter-col {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}
.portal-event__filter-label {
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    line-height: 1.2;
}
.portal-event__field-select {
    width: 100%;
    min-height: 44px;
    padding: 10px 36px 10px 12px;
    border: 1px solid #e8eaf2;
    border-radius: 10px;
    background: #fff;
    font-family: Poppins, sans-serif;
    font-size: 14px;
    color: #1f2937;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    box-sizing: border-box;
}
.portal-event__field-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(46, 49, 146, 0.12);
}
.portal-event__select-wrap {
    position: relative;
    min-width: 0;
    overflow: visible;
}
.portal-event__select-wrap .select2-hidden-accessible {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}
.portal-event__select-wrap .select2-container {
    width: 100% !important;
    display: block;
}
.portal-event__select-wrap .select2-container--default .select2-selection--single {
    height: auto;
    min-height: 44px;
    border: 1px solid #e8eaf2;
    border-radius: 10px;
    background: #fff;
    box-shadow: none;
    display: flex;
    align-items: center;
    padding: 0 36px 0 12px;
    transition: border-color 0.15s, box-shadow 0.15s;
    background-image: none;
}
.portal-event__select-wrap select.portal-event__field-select {
    background-image: none;
}
.portal-event__select-wrap .select2-container--default .select2-selection--single .select2-selection__rendered {
    display: block;
    width: 100%;
    padding: 10px 0;
    line-height: 1.35;
    color: #1f2937;
    font-family: Poppins, sans-serif;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.portal-event__select-wrap .select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #9ca3af;
}
.portal-event__select-wrap .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100%;
    width: 28px;
    top: 0;
    right: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.portal-event__select-wrap .select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: #6b7280 transparent transparent transparent;
    margin-top: 0;
}
.portal-event__select-wrap .select2-container--default.select2-container--open .select2-selection--single,
.portal-event__select-wrap .select2-container--default.select2-container--focus .select2-selection--single {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(46, 49, 146, 0.12);
}
.portal-event-select2-dd {
    border: 1px solid var(--primary) !important;
    border-top: none !important;
    border-radius: 0 0 10px 10px !important;
    box-shadow: 0 12px 32px rgba(46, 49, 146, 0.18) !important;
    font-family: Poppins, sans-serif !important;
    font-size: 14px !important;
    overflow: hidden;
    z-index: 10050 !important;
    background: #fff !important;
    position: fixed !important;
    padding: 0 !important;
    margin: 0 !important;
}
body.portal-event-select2-open .portal-event__select-wrap .select2-container--open .select2-selection--single {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-color: var(--primary);
    border-bottom-color: #e8eaf2;
}
body.portal-event-select2-open .portal-event__list,
body.portal-event-select2-open .portal-event__search,
body.portal-event-select2-open .portal-event__toolbar-row--pair {
    position: relative;
    z-index: 0;
}
body.portal-event-select2-open .portal-event__toolbar-row--area {
    z-index: 10040;
}
.portal-event-select2-dd .select2-search--dropdown {
    display: block;
    padding: 8px 10px;
    border-bottom: 1px solid #eceef4;
    background: #fff;
}
.portal-event-select2-dd .select2-search--dropdown .select2-search__field {
    width: 100% !important;
    box-sizing: border-box;
    border: 1px solid #e8eaf2 !important;
    border-radius: 8px !important;
    padding: 9px 12px !important;
    font-family: Poppins, sans-serif !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    color: #1f2937 !important;
    background: #f9fafb !important;
    outline: none !important;
    margin: 0 !important;
}
.portal-event-select2-dd .select2-search--dropdown .select2-search__field:focus {
    border-color: var(--primary) !important;
    background: #fff !important;
    box-shadow: 0 0 0 3px rgba(46, 49, 146, 0.1) !important;
}
.portal-event-select2-dd .select2-search--dropdown .select2-search__field::placeholder {
    color: #9ca3af;
}
.portal-event-select2-dd .select2-results {
    background: #fff !important;
    padding: 0 !important;
    margin: 0 !important;
}
.portal-event-select2-dd .select2-results__options {
    list-style: none !important;
    margin: 0 !important;
    padding: 4px 0 !important;
    max-height: min(240px, 45vh);
    overflow-y: auto;
}
.portal-event-select2-dd .select2-results__option {
    list-style: none !important;
    margin: 0 !important;
    padding: 10px 14px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #374151 !important;
    line-height: 1.35 !important;
    cursor: pointer;
    background: #fff !important;
}
.portal-event-select2-dd .select2-results__option--highlighted.select2-results__option--selectable {
    background: var(--primary) !important;
    color: #fff !important;
}
.portal-event-select2-dd .select2-results__option--selected {
    background: #eef0ff !important;
    color: var(--primary) !important;
    font-weight: 600 !important;
}
.portal-event-select2-dd .select2-results__message {
    padding: 10px 14px;
    font-size: 13px;
    color: #9ca3af;
}
.portal-event__pager {
    margin-top: 20px;
}
.portal-event__area-wilayah {
    color: #9ca3af;
    font-weight: 400;
}
.portal-event__section-title {
    font-family: Poppins, sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 14px;
}
.portal-event__list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.portal-event__card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 14px;
    box-shadow: 0 4px 18px rgba(46, 49, 146, 0.07);
}
.portal-event__card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}
.portal-event__card-link:hover .portal-event__title {
    color: var(--primary);
}
.portal-event__card-main {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}
.portal-event__thumb {
    width: 88px;
    height: 88px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    background: #eef0ff;
    display: block;
    text-decoration: none;
    color: inherit;
}
.portal-event__thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.portal-event__thumb-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #eef0ff, #e8eaf2);
}
.portal-event__info {
    flex: 1;
    min-width: 0;
}
.portal-event__title {
    font-family: Poppins, sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 6px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.portal-event__meta {
    margin: 0 0 4px;
    font-family: Poppins, sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: #9ca3af;
    line-height: 1.4;
}
.portal-event__meta--row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 6px;
    min-width: 0;
}
.portal-event__meta--head {
    gap: 4px 12px;
}
.portal-event__meta-part {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
    max-width: 100%;
}
.portal-event__meta-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.portal-event__meta-ico {
    flex-shrink: 0;
    width: 12px;
    height: 12px;
    background: #b0b5c0;
    -webkit-mask: var(--event-meta-ico) center / contain no-repeat;
    mask: var(--event-meta-ico) center / contain no-repeat;
}
.portal-event__meta-ico--daerah {
    --event-meta-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z'/%3E%3Cpolyline points='9 22 9 12 15 12 15 22'/%3E%3C/svg%3E");
}
.portal-event__meta-ico--tanggal {
    --event-meta-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E");
}
.portal-event__meta-ico--tempat {
    --event-meta-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
}
.portal-event__meta-ico--harga {
    background: #4b5563;
    --event-meta-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='6' width='20' height='12' rx='2'/%3E%3Ccircle cx='12' cy='12' r='2'/%3E%3Cpath d='M6 12h.01M18 12h.01'/%3E%3C/svg%3E");
}
.portal-event__meta--tempat {
    flex-wrap: nowrap;
    font-weight: 300;
    color: #b0b5c0;
}
.portal-event__meta-part--tempat {
    flex: 1;
    min-width: 0;
    align-items: center;
}
.portal-event__meta--tempat .portal-event__meta-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.portal-event__meta--tempat .portal-event__meta-ico {
    background: #c4c9d4;
}
.portal-event__meta--harga {
    margin-bottom: 0;
}
.portal-event__card-foot {
    margin-top: 4px;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}
.portal-event__card-foot .portal-event__meta-part {
    flex: 1;
    min-width: 0;
}
.portal-event__daftar {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: Poppins, sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    white-space: nowrap;
}
.portal-event__daftar:hover {
    text-decoration: underline;
}
.portal-event__daftar-ico {
    font-size: 15px;
    line-height: 1;
}
.portal-event__meta-text--harga {
    color: #374151;
    font-weight: 600;
}
.portal-event__meta--row .portal-event__badge {
    flex-shrink: 0;
    margin-left: 2px;
}
.portal-event__badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-family: Poppins, sans-serif;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
}
.portal-event__badge--ongoing {
    background: #e8f8ef;
    color: #1e8449;
}
.portal-event__badge--upcoming {
    background: #fff4e5;
    color: #d97706;
}
.portal-event__badge--done {
    background: #f3f4f6;
    color: #6b7280;
}
.portal-event__badge--cancel {
    background: #fdecea;
    color: #c0392b;
}
.portal-event__badge--joined {
    background: #ebe9ff;
    color: var(--primary);
}
.portal-event__register {
    width: 100%;
    margin-top: 12px;
    padding: 10px 14px;
    border: none;
    border-radius: 12px;
    background: var(--primary);
    color: #fff;
    font-family: Poppins, sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}
.portal-event__empty {
    padding: 32px 16px;
}

/* ---- Gamifikasi ---- */
.portal-gamifikasi__hero-wrap {
    padding-top: var(--portal-content-gap);
}
.portal-gamifikasi__hero {
    position: relative;
    overflow: hidden;
    border-radius: 0;
    padding: 20px 18px 18px;
    background: linear-gradient(135deg, #5b5fd6 0%, #2e3192 55%, #1a1d5c 100%);
    color: #fff;
    box-shadow: 0 10px 28px rgba(46, 49, 146, 0.22);
}
.portal-gamifikasi__hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 85% 20%, rgba(255, 255, 255, 0.12) 0%, transparent 45%),
        radial-gradient(circle at 10% 80%, rgba(255, 255, 255, 0.08) 0%, transparent 40%);
    pointer-events: none;
}
.portal-gamifikasi__hero-main {
    position: relative;
    z-index: 1;
    max-width: 68%;
}
.portal-gamifikasi__trophy {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 64px;
    line-height: 1;
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.2));
}
.portal-gamifikasi__label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    opacity: 0.88;
    margin-bottom: 4px;
}
.portal-gamifikasi__poin {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}
.portal-gamifikasi__coin { font-size: 22px; line-height: 1; }
.portal-gamifikasi__poin-val {
    font-family: Poppins, sans-serif;
    font-size: 34px;
    font-weight: 800;
    line-height: 1;
}
.portal-gamifikasi__level-name {
    display: block;
    font-family: Poppins, sans-serif;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 14px;
}
.portal-gamifikasi__progress-meta {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    font-weight: 500;
    margin-bottom: 6px;
    opacity: 0.92;
}
.portal-gamifikasi__progress-bar {
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.25);
    overflow: hidden;
}
.portal-gamifikasi__progress-fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #f4d03f, #f9e79f);
}
/* ---- Gamifikasi (selaras beranda) ---- */
.portal-gamifikasi.portal-home {
    padding-bottom: 8px;
    margin: 0;
}
.portal-gamifikasi .portal-home__body {
    padding: var(--portal-content-gap) var(--portal-pad-x) 0;
}
.portal-gamifikasi__hero {
    margin-bottom: 24px;
}
.portal-gamifikasi .portal-home-hero__content,
.portal-gamifikasi .portal-gamifikasi__hero-ico {
    position: relative;
    z-index: 1;
}
.portal-gamifikasi__section-sub {
    font-family: Poppins, sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: #9ca3af;
    margin: 0 0 6px;
    line-height: 1.35;
}
.portal-gamifikasi__count {
    font-family: Poppins, sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    background: rgba(46, 49, 146, 0.08);
    padding: 4px 10px;
    border-radius: 999px;
    white-space: nowrap;
}
.portal-gamifikasi__section .portal-home-section__head {
    margin-bottom: 2px;
}
.portal-gamifikasi__section > .portal-home-section__title {
    margin-bottom: 4px;
}
.portal-gamifikasi__timeline-item:first-child .portal-gamifikasi__timeline-rail {
    padding-top: 4px;
}
.portal-gamifikasi__card {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 14px;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 18px rgba(46, 49, 146, 0.07);
}
.portal-gamifikasi__card.is-done {
    border-color: rgba(46, 49, 146, 0.14);
}
.portal-gamifikasi__ico {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background-color: #eef0ff;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 22px;
}
.portal-gamifikasi__hero-ico {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    align-self: center;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.16) center/28px no-repeat;
    z-index: 1;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2'%3E%3Ccircle cx='12' cy='8' r='5'/%3E%3Cpath d='M7 21h10l-1-7H8l-1 7z'/%3E%3C/svg%3E");
}
.portal-gamifikasi__ico--tda-camp {
    background-color: #ebe9ff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232e3192' stroke-width='2'%3E%3Cpath d='M3 21h18'/%3E%3Cpath d='M5 21V9l7-5 7 5v12'/%3E%3Cpath d='M9 21v-6h6v6'/%3E%3C/svg%3E");
}
.portal-gamifikasi__ico--kmb {
    background-color: #e3f9ef;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2310b981' stroke-width='2'%3E%3Cpath d='M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M23 21v-2a4 4 0 0 0-3-3.87'/%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E");
}
.portal-gamifikasi__ico--nlc {
    background-color: #e8f4fd;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233b82f6' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Ccircle cx='12' cy='12' r='6'/%3E%3Ccircle cx='12' cy='12' r='2'/%3E%3C/svg%3E");
}
.portal-gamifikasi__ico--kepanitiaan {
    background-color: #ebe9ff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232e3192' stroke-width='2'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cpath d='M16 2v4M8 2v4M3 10h18M9 16l2 2 4-4'/%3E%3C/svg%3E");
}
.portal-gamifikasi__ico--siap-memimpin {
    background-color: #e8f4fd;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233b82f6' stroke-width='2'%3E%3Cpolygon points='12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2'/%3E%3C/svg%3E");
}
.portal-gamifikasi__ico--ngl {
    background-color: #fff4e5;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f59e0b' stroke-width='2'%3E%3Cpath d='M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09z'/%3E%3Cpath d='M12 15l-3-3a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.35 22.35 0 0 1-4 2z'/%3E%3C/svg%3E");
}
.portal-gamifikasi__ico--leader-mentor {
    background-color: #e3f9ef;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2310b981' stroke-width='2'%3E%3Cpath d='M22 10v6M2 10l10-5 10 5-10 5z'/%3E%3Cpath d='M6 12v5c3 3 9 3 12 0v-5'/%3E%3C/svg%3E");
}
.portal-gamifikasi__ico--event {
    background-color: #ebe9ff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232e3192' stroke-width='2'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cpath d='M16 2v4M8 2v4M3 10h18'/%3E%3C/svg%3E");
}
.portal-gamifikasi__ico--materi {
    background-color: #fff4e5;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f59e0b' stroke-width='2'%3E%3Cpath d='M4 19.5A2.5 2.5 0 0 1 6.5 17H20'/%3E%3Cpath d='M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2z'/%3E%3C/svg%3E");
}
.portal-gamifikasi__ico--referral {
    background-color: #e8f4fd;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233b82f6' stroke-width='2'%3E%3Cpath d='M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z'/%3E%3C/svg%3E");
}
.portal-gamifikasi__ico--pelayan-pusat {
    background-color: #fff4e5;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d97706' stroke-width='2'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3C/svg%3E");
}
.portal-gamifikasi__ico--pelayan-wilayah {
    background-color: #f5f3ff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237c3aed' stroke-width='2'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3Ccircle cx='12' cy='11' r='2'/%3E%3C/svg%3E");
}
.portal-gamifikasi__ico--pelayan-daerah {
    background-color: #ecfeff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230891b2' stroke-width='2'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3Cpath d='M9 11h6'/%3E%3C/svg%3E");
}
.portal-gamifikasi__ico--profil {
    background-color: #eef2ff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234338ca' stroke-width='2'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E");
}
.portal-gamifikasi__ico--onboarding {
    background-color: #e3f9ef;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2310b981' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 8v4l3 3'/%3E%3C/svg%3E");
}
.portal-gamifikasi__ico--poin {
    background-color: #fff8e6;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d4ac0d' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='8'/%3E%3Cpath d='M12 8v8M8 12h8'/%3E%3C/svg%3E");
}
.portal-gamifikasi__card-body {
    flex: 1;
    min-width: 0;
    display: grid;
    grid-template-columns: 1fr auto;
    column-gap: 8px;
    align-items: start;
}
.portal-gamifikasi__card-text {
    min-width: 0;
    grid-column: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.portal-gamifikasi__card-text .portal-home-news__title,
.portal-gamifikasi__card-text .portal-home-news__desc,
.portal-gamifikasi__card-text .portal-gamifikasi__status {
    margin: 0;
}
.portal-gamifikasi__card-text .portal-home-news__title {
    line-height: 1.25;
}
.portal-gamifikasi__card-text .portal-home-news__desc {
    line-height: 1.35;
}
.portal-gamifikasi__card-body > .portal-gamifikasi__poin {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
}
.portal-gamifikasi__card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: -2px;
}
.portal-gamifikasi__card-head .portal-home-news__title {
    margin-bottom: 0;
    line-height: 1.2;
}
.portal-gamifikasi__status {
    display: inline-block;
    margin-top: 2px;
    font-family: Poppins, sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
    line-height: 1.3;
}
.portal-gamifikasi__status.is-done {
    color: var(--primary);
}
.portal-gamifikasi__poin {
    flex-shrink: 0;
    font-family: Poppins, sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: var(--primary);
    background: #eef0ff;
    padding: 4px 8px;
    border-radius: 999px;
    white-space: nowrap;
}
.portal-gamifikasi__card.is-done .portal-gamifikasi__poin {
    color: var(--primary);
    background: #eef0ff;
}
.portal-gamifikasi__timeline {
    display: flex;
    flex-direction: column;
}
.portal-gamifikasi__timeline-item {
    display: flex;
    gap: 12px;
}
.portal-gamifikasi__timeline-rail {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 32px;
    flex-shrink: 0;
    padding-top: 16px;
}
.portal-gamifikasi__timeline-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: Poppins, sans-serif;
    font-size: 12px;
    font-weight: 700;
    background: #fff;
    border: 2px solid #d1d5db;
    color: #9ca3af;
    z-index: 1;
}
.portal-gamifikasi__timeline-item.is-done .portal-gamifikasi__timeline-dot {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.35);
}
.portal-gamifikasi__timeline-item.is-next .portal-gamifikasi__timeline-dot {
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 0 0 4px rgba(46, 49, 146, 0.12);
    animation: portalGamifPulse 2s ease infinite;
}
.portal-gamifikasi__timeline-line {
    flex: 1;
    width: 2px;
    min-height: 12px;
    margin: 4px 0;
    background: #e5e7eb;
    border-radius: 999px;
}
.portal-gamifikasi__timeline-item.is-done .portal-gamifikasi__timeline-line {
    background: linear-gradient(180deg, #22c55e 0%, #e5e7eb 100%);
}
.portal-gamifikasi__timeline-item .portal-gamifikasi__card {
    flex: 1;
    margin-bottom: 6px;
}
.portal-gamifikasi__timeline-item.is-next .portal-gamifikasi__card {
    border-color: rgba(46, 49, 146, 0.18);
    box-shadow: 0 4px 20px rgba(46, 49, 146, 0.1);
}
.portal-gamifikasi__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}
@media (min-width: 400px) {
    .portal-gamifikasi__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
.portal-gamifikasi__card--compact {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
}
.portal-gamifikasi__card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.portal-gamifikasi__card--compact .portal-gamifikasi__card-text {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}
.portal-gamifikasi__card--compact .portal-gamifikasi__card-text .portal-home-news__title,
.portal-gamifikasi__card--compact .portal-gamifikasi__card-text .portal-home-news__desc,
.portal-gamifikasi__card--compact .portal-gamifikasi__card-text .portal-gamifikasi__status {
    margin: 0;
}
.portal-gamifikasi__card--compact .portal-gamifikasi__card-top > .portal-gamifikasi__poin {
    flex-shrink: 0;
    margin: 0;
}
.portal-gamifikasi__card--log {
    align-items: center;
}
.portal-gamifikasi__poin--log {
    align-self: center;
}
.portal-gamifikasi__log {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.portal-gamifikasi__empty {
    padding: 24px 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 18px rgba(46, 49, 146, 0.07);
    font-family: Poppins, sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
    line-height: 1.5;
}
@keyframes portalGamifPulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(46, 49, 146, 0.12); }
    50% { box-shadow: 0 0 0 8px rgba(46, 49, 146, 0.06); }
}

/* ---- Dashboard duo cards (Onboarding + Journey) ---- */
.portal-home-duo {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    align-items: stretch;
}
.portal-home-section--duo {
    margin-bottom: 18px;
}
.portal-home-duo__card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    min-height: 74px;
    height: 100%;
    padding: 10px;
    border-radius: 14px;
    text-decoration: none;
    color: inherit;
    border: 1px solid rgba(46, 49, 146, 0.1);
    background: #fff;
    box-shadow: 0 4px 14px rgba(46, 49, 146, 0.07);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
    overflow: hidden;
}
.portal-home-duo__card:active {
    transform: scale(0.98);
}
.portal-home-duo__card--onboarding {
    background: linear-gradient(145deg, rgba(16, 185, 129, 0.1) 0%, #fff 100%);
    border-color: rgba(16, 185, 129, 0.2);
}
.portal-home-duo__card--journey {
    background: linear-gradient(145deg, rgba(46, 49, 146, 0.08) 0%, #fff 100%);
    border-color: rgba(46, 49, 146, 0.14);
}
.portal-home-duo__card--done {
    flex-direction: row;
    align-items: center;
    gap: 8px;
    min-height: 74px;
    height: 100%;
    padding: 10px;
}
.portal-home-duo__head {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}
.portal-home-duo__ico {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background-color: rgba(46, 49, 146, 0.1);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 14px;
}
.portal-home-duo__card--onboarding .portal-home-duo__ico {
    background-color: rgba(16, 185, 129, 0.14);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2310b981' stroke-width='2'%3E%3Cpath d='M4 19.5A2.5 2.5 0 0 1 6.5 17H20'/%3E%3Cpath d='M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2z'/%3E%3C/svg%3E");
}
.portal-home-duo__card--journey .portal-home-duo__ico {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232e3192' stroke-width='2'%3E%3Ccircle cx='12' cy='8' r='5'/%3E%3Cpath d='M7 21h10l-1-7H8l-1 7z'/%3E%3C/svg%3E");
}
.portal-home-duo__card--done .portal-home-duo__ico {
    width: 28px;
    height: 28px;
    background-size: 16px;
}
.portal-home-duo__card--onboarding.portal-home-duo__card--done .portal-home-duo__ico {
    background-color: #e3f9ef;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2310b981' stroke-width='2.2'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
}
.portal-home-duo__card--journey.portal-home-duo__card--done .portal-home-duo__ico {
    background-color: #eef0ff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232e3192' stroke-width='2.2'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
}
.portal-home-duo__body {
    flex: 1;
    min-width: 0;
}
.portal-home-duo__card--done .portal-home-duo__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1px;
}
.portal-home-duo__status {
    font-family: Poppins, sans-serif;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    color: #6b7280;
}
.portal-home-duo__card--onboarding.portal-home-duo__card--done .portal-home-duo__status {
    color: #059669;
}
.portal-home-duo__card--journey.portal-home-duo__card--done .portal-home-duo__status {
    color: var(--primary);
}
.portal-home-duo__title {
    flex: 1;
    min-width: 0;
    font-family: Poppins, sans-serif;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.25;
    color: #1f2937;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.portal-home-duo__card--onboarding.portal-home-duo__card--done .portal-home-duo__title {
    color: #047857;
}
.portal-home-duo__card--journey.portal-home-duo__card--done .portal-home-duo__title {
    color: var(--primary);
}
.portal-home-duo__pct {
    flex-shrink: 0;
    font-family: Poppins, sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: var(--primary);
}
.portal-home-duo__card--onboarding .portal-home-duo__pct {
    color: #059669;
}
.portal-home-duo__bar {
    height: 5px;
    border-radius: 999px;
    background: rgba(46, 49, 146, 0.1);
    overflow: hidden;
    flex-shrink: 0;
}
.portal-home-duo__card--onboarding .portal-home-duo__bar {
    background: rgba(16, 185, 129, 0.15);
}
.portal-home-duo__bar-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--primary), #7b7fe8);
    transition: width 0.4s ease;
}
.portal-home-duo__card--onboarding .portal-home-duo__bar-fill {
    background: linear-gradient(90deg, #10b981, #34d399);
}
.portal-home-duo__meta {
    font-family: Poppins, sans-serif;
    font-size: 10px;
    font-weight: 500;
    color: #9ca3af;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 0;
}
.portal-home-duo__arrow {
    flex-shrink: 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    color: inherit;
}
.portal-home-duo__card--onboarding.portal-home-duo__card--done .portal-home-duo__arrow {
    color: #059669;
}
.portal-home-duo__card--journey.portal-home-duo__card--done .portal-home-duo__arrow {
    color: var(--primary);
}

/* ---- Onboarding ---- */
.portal-home-onboarding {
    display: flex;
    gap: 14px;
    align-items: stretch;
    padding: 16px;
    border-radius: 18px;
    text-decoration: none;
    color: inherit;
    background: linear-gradient(135deg, rgba(46, 49, 146, 0.95) 0%, rgba(30, 33, 120, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 10px 28px rgba(46, 49, 146, 0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.portal-home-onboarding:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 32px rgba(46, 49, 146, 0.28);
}
.portal-home-onboarding--done {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.14) 0%, rgba(255, 255, 255, 0.92) 100%);
    border-color: rgba(16, 185, 129, 0.25);
    box-shadow: 0 8px 22px rgba(16, 185, 129, 0.12);
}
.portal-home-onboarding--minimal {
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    min-height: 0;
}
.portal-home-onboarding--minimal .portal-home-onboarding__ico {
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background-size: 18px;
}
.portal-home-onboarding--minimal .portal-home-onboarding__title {
    margin: 0;
    flex: 1;
    font-size: 14px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.portal-home-onboarding--minimal .portal-home-onboarding__arrow {
    flex-shrink: 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 1;
    color: #059669;
}
.portal-home-onboarding--minimal:hover {
    transform: none;
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.14);
}
.portal-home-onboarding__ico {
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.16);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2'%3E%3Cpath d='M4 19.5A2.5 2.5 0 0 1 6.5 17H20'/%3E%3Cpath d='M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2z'/%3E%3Cpath d='M8 7h8M8 11h6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 26px;
}
.portal-home-onboarding--done .portal-home-onboarding__ico {
    background-color: #e3f9ef;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2310b981' stroke-width='2.2'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
}
.portal-home-onboarding__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.portal-home-onboarding__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.portal-home-onboarding__title {
    margin: 0;
    font-family: Poppins, sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
}
.portal-home-onboarding--done .portal-home-onboarding__title {
    color: #065f46;
}
.portal-home-onboarding__pct {
    font-family: Poppins, sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.88);
    background: rgba(255, 255, 255, 0.14);
    padding: 4px 8px;
    border-radius: 999px;
}
.portal-home-onboarding--done .portal-home-onboarding__pct {
    color: #047857;
    background: rgba(16, 185, 129, 0.14);
}
.portal-home-onboarding__desc {
    margin: 0;
    font-size: 12px;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.82);
}
.portal-home-onboarding--done .portal-home-onboarding__desc {
    color: #4b5563;
}
.portal-home-onboarding__bar {
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    overflow: hidden;
}
.portal-home-onboarding--done .portal-home-onboarding__bar {
    background: rgba(16, 185, 129, 0.16);
}
.portal-home-onboarding__bar-fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #fbbf24, #fde68a);
    transition: width 0.35s ease;
}
.portal-home-onboarding--done .portal-home-onboarding__bar-fill {
    background: linear-gradient(90deg, #10b981, #6ee7b7);
}
.portal-home-onboarding__cta {
    font-family: Poppins, sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #fde68a;
}
.portal-home-onboarding--done .portal-home-onboarding__cta {
    color: #059669;
}

.portal-onboarding.portal-home {
    padding-bottom: 24px;
}
.portal-onboarding .portal-home__body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.portal-onboarding__hero {
    position: relative;
    align-items: center;
}
.portal-onboarding__hero .portal-home-hero__content {
    padding-right: 8px;
}
.portal-onboarding__hero-ico {
    position: relative;
    top: auto;
    right: auto;
    transform: none;
    flex-shrink: 0;
    align-self: center;
    z-index: 1;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.14);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2'%3E%3Cpath d='M4 19.5A2.5 2.5 0 0 1 6.5 17H20'/%3E%3Cpath d='M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 26px;
}
.portal-onboarding__hero .portal-home-hero__meta span:last-child {
    flex-shrink: 0;
    min-width: 2.5em;
    text-align: right;
}
.portal-onboarding__reward {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(16, 185, 129, 0.22);
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.1);
}
.portal-onboarding__reward strong {
    display: block;
    font-family: Poppins, sans-serif;
    font-size: 14px;
    color: #065f46;
}
.portal-onboarding__reward p {
    margin: 4px 0 0;
    font-size: 12px;
    line-height: 1.45;
    color: #4b5563;
}
.portal-onboarding__reward-ico {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #e3f9ef;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2310b981' stroke-width='2.2'%3E%3Cpath d='M12 2l2.4 4.9 5.4.8-3.9 3.8.9 5.4L12 14.8 7.2 17l.9-5.4L4.2 7.7l5.4-.8L12 2z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 22px;
}
.portal-onboarding__reward-link {
    margin-left: auto;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e3f9ef;
    color: #059669;
    text-decoration: none;
    transition: background 0.15s ease, transform 0.15s ease;
}
.portal-onboarding__reward-link span {
    width: 18px;
    height: 18px;
    background: currentColor;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center/contain no-repeat;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center/contain no-repeat;
}
.portal-onboarding__reward-link:hover {
    background: #d1fae5;
    transform: translateX(1px);
}
.portal-onboarding__count {
    font-family: Poppins, sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: #6b7280;
    background: rgba(255, 255, 255, 0.78);
    padding: 4px 10px;
    border-radius: 999px;
}

/* Step wizard */
.portal-onboarding__wizard {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.portal-onboarding__steps-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    margin: 0 -2px;
}
.portal-onboarding__steps {
    display: flex;
    align-items: flex-start;
    min-width: min-content;
    padding: 4px 2px;
}
.portal-onboarding__step {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 72px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.portal-onboarding__step:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}
.portal-onboarding__step-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: Poppins, sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: #6b7280;
    background: #fff;
    border: 2px solid #e5e7eb;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.8);
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.portal-onboarding__step-label {
    font-family: Poppins, sans-serif;
    font-size: 9px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    color: #9ca3af;
    max-width: 72px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.portal-onboarding__step-connector {
    flex: 0 0 20px;
    width: 20px;
    height: 2px;
    margin-top: 16px;
    background: #e5e7eb;
    border-radius: 2px;
}
.portal-onboarding__step-connector.is-done {
    background: rgba(16, 185, 129, 0.55);
}
.portal-onboarding__step.is-done .portal-onboarding__step-dot {
    color: #fff;
    background: #10b981;
    border-color: #10b981;
}
.portal-onboarding__step.is-done .portal-onboarding__step-label {
    color: #059669;
}
.portal-onboarding__step.is-active .portal-onboarding__step-dot {
    color: #fff;
    background: var(--primary, #2E3192);
    border-color: var(--primary, #2E3192);
    animation: portalGamifPulse 2s ease infinite;
}
.portal-onboarding__step.is-active .portal-onboarding__step-label {
    color: var(--primary, #2E3192);
    font-weight: 700;
}
.portal-onboarding__step.is-current:not(.is-active) .portal-onboarding__step-dot {
    border-color: rgba(46, 49, 146, 0.35);
    color: var(--primary, #2E3192);
}
.portal-onboarding__step.is-current:not(.is-active) .portal-onboarding__step-label {
    color: #374151;
}

.portal-onboarding__panel {
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.95);
    box-shadow: 0 8px 24px rgba(46, 49, 146, 0.1);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.portal-onboarding__panel.is-active {
    border-color: rgba(46, 49, 146, 0.16);
}
.portal-onboarding__panel.is-done {
    border-color: rgba(16, 185, 129, 0.2);
}
.portal-onboarding__panel-head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.portal-onboarding__panel-head-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.portal-onboarding__panel--finish {
    align-items: center;
    text-align: center;
    padding: 28px 20px;
}
.portal-onboarding__finish-ico {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #10b981, #059669);
    box-shadow: 0 8px 22px rgba(16, 185, 129, 0.28);
}
.portal-onboarding__finish-title {
    margin: 14px 0 6px;
    font-family: Poppins, sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #111827;
}
.portal-onboarding__finish-desc {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: #6b7280;
    max-width: 320px;
}
.portal-onboarding__next-link {
    align-self: flex-start;
    padding: 0;
    border: 0;
    background: transparent;
    font-family: Poppins, sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary, #2E3192);
    cursor: pointer;
}
.portal-onboarding__nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 4px;
    border-top: 1px solid #eef2f7;
}
.portal-onboarding__nav-count {
    font-family: Poppins, sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    white-space: nowrap;
}
.portal-onboarding__nav-btn {
    flex: 1;
    min-width: 0;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    background: #fff;
    font-family: Poppins, sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary, #2E3192);
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}
.portal-onboarding__nav-btn--next {
    color: #fff;
    background: linear-gradient(135deg, var(--primary, #2E3192), #1e2166);
    border-color: transparent;
}
.portal-onboarding__nav-btn:hover:not(:disabled) {
    border-color: rgba(46, 49, 146, 0.25);
    background: #f8f9ff;
}
.portal-onboarding__nav-btn--next:hover:not(:disabled) {
    background: linear-gradient(135deg, #3538a0, #252878);
}
.portal-onboarding__nav-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}
.portal-onboarding__phase-label {
    font-size: 11px;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.portal-onboarding__phase-title {
    margin: 0;
    font-family: Poppins, sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    line-height: 1.25;
}
.portal-onboarding__phase-sub {
    margin: 0;
    font-size: 12px;
    color: #6b7280;
    line-height: 1.35;
}
.portal-onboarding__badge {
    font-family: Poppins, sans-serif;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 999px;
    white-space: nowrap;
}
.portal-onboarding__badge--done {
    color: #047857;
    background: #e3f9ef;
}
.portal-onboarding__badge--active {
    color: #1e3a8a;
    background: #e0e7ff;
}
.portal-onboarding__badge--locked {
    color: #6b7280;
    background: #f3f4f6;
}
.portal-onboarding__content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 4px;
}
.portal-onboarding__section {
    padding: 12px;
    border-radius: 12px;
    background: #f9fafb;
    border: 1px solid #eef2f7;
}
.portal-onboarding__section-title {
    margin: 0 0 6px;
    font-family: Poppins, sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #1f2937;
}
.portal-onboarding__section-body {
    margin: 0;
    font-size: 12px;
    line-height: 1.55;
    color: #4b5563;
}
.portal-onboarding__section--quote .portal-onboarding__section-title::after {
    content: '';
    display: block;
    width: 36px;
    height: 3px;
    margin-top: 6px;
    border-radius: 999px;
    background: #facc15;
}
.portal-onboarding__quote {
    margin: 10px 0 0;
    padding: 12px 14px;
    border-left: 3px solid var(--primary, #2E3192);
    border-radius: 0 10px 10px 0;
    background: #fff;
    font-size: 13px;
    line-height: 1.6;
    font-style: italic;
    color: #1f2937;
}
.portal-onboarding__section--list .portal-onboarding__list {
    margin: 8px 0 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.portal-onboarding__section--list .portal-onboarding__list li {
    display: flex;
    gap: 8px;
    font-size: 12px;
    line-height: 1.55;
    color: #374151;
}
.portal-onboarding__list-num {
    flex-shrink: 0;
    font-weight: 700;
    color: var(--primary, #2E3192);
}
.portal-onboarding__values-intro {
    margin: 0 0 12px;
    font-size: 12px;
    line-height: 1.55;
    color: #4b5563;
}
.portal-onboarding__values-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}
.portal-onboarding__value-group {
    padding: 10px 12px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #e5e7eb;
}
.portal-onboarding__value-title {
    margin: 0 0 8px;
    font-family: Poppins, sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: var(--primary, #2E3192);
}
.portal-onboarding__value-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.portal-onboarding__value-list li {
    display: flex;
    gap: 6px;
    font-size: 11px;
    line-height: 1.45;
    color: #2563eb;
}
.portal-onboarding__value-list li span:first-child {
    flex-shrink: 0;
    font-weight: 600;
    color: #3b82f6;
}
@media (min-width: 480px) {
    .portal-onboarding__values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
.portal-onboarding__section--kontak .portal-onboarding__section-body,
.portal-onboarding__section--pengurus .portal-onboarding__section-body {
    margin-bottom: 10px;
}
.portal-onboarding__contacts {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 4px;
    padding-top: 10px;
    border-top: 1px dashed #e5e7eb;
}
.portal-onboarding__contacts-label {
    margin: 0;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--primary, #2E3192);
}
.portal-onboarding__contact-row {
    display: flex;
    align-items: center;
    gap: 10px;
}
.portal-onboarding__contact-person {
    padding: 10px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #e5e7eb;
}
.portal-onboarding__contact-person-head {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 8px;
}
.portal-onboarding__contact-name {
    font-size: 12px;
    font-weight: 700;
    color: #111827;
}
.portal-onboarding__contact-role {
    font-size: 11px;
    color: #6b7280;
}
.portal-onboarding__contact-actions {
    display: flex;
    flex-shrink: 0;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
}
.portal-onboarding__contact-btn {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
}
.portal-onboarding__contact-btn--wa {
    color: #166534;
    background: #ecfdf5;
    border-color: #bbf7d0;
}
.portal-onboarding__contact-btn--tel {
    color: #1d4ed8;
    background: #eff6ff;
    border-color: #bfdbfe;
}
.portal-onboarding__contact-btn--email {
    color: #7c2d12;
    background: #fff7ed;
    border-color: #fed7aa;
}
.portal-onboarding__contact-office {
    display: flex;
    flex: 1;
    min-width: 0;
    flex-direction: column;
    gap: 4px;
    padding: 8px 10px;
    border-radius: 10px;
    background: #f3f4f6;
}
.portal-onboarding__contact-office-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #6b7280;
}
.portal-onboarding__contact-office-item {
    font-size: 11px;
    color: var(--primary, #2E3192);
    text-decoration: none;
    word-break: break-word;
}
.portal-onboarding__contact-office-item:hover {
    text-decoration: underline;
}
.portal-onboarding__contacts--empty .portal-onboarding__contacts-empty {
    margin: 0;
    font-size: 11px;
    color: #9ca3af;
    font-style: italic;
}
.portal-onboarding__complete {
    width: 100%;
    margin-top: 12px;
    padding: 12px 14px;
    border: 0;
    border-radius: 12px;
    font-family: Poppins, sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--primary, #2E3192), #1e2166);
    cursor: pointer;
    transition: opacity 0.2s ease;
}
.portal-onboarding__complete:disabled {
    opacity: 0.65;
    cursor: wait;
}
.portal-onboarding__ico {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 22px;
}
.portal-onboarding__ico--compass {
    background-color: #e0e7ff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232E3192' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M16 8l-2.5 6.5L8 16l2.5-6.5L16 8z'/%3E%3C/svg%3E");
}
.portal-onboarding__ico--shield {
    background-color: #fef3c7;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d97706' stroke-width='2'%3E%3Cpath d='M12 3l8 4v5c0 5-3.5 9.5-8 10-4.5-.5-8-5-8-10V7l8-4z'/%3E%3C/svg%3E");
}
.portal-onboarding__ico--book {
    background-color: #ede9fe;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237c3aed' stroke-width='2'%3E%3Cpath d='M4 19.5A2.5 2.5 0 0 1 6.5 17H20'/%3E%3Cpath d='M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2z'/%3E%3C/svg%3E");
}
.portal-onboarding__ico--star {
    background-color: #fff7ed;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ea580c' stroke-width='2'%3E%3Cpath d='M12 2l2.4 4.9 5.4.8-3.9 3.8.9 5.4L12 14.8 7.2 17l.9-5.4L4.2 7.7l5.4-.8L12 2z'/%3E%3C/svg%3E");
}
.portal-onboarding__ico--flag {
    background-color: #fee2e2;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23dc2626' stroke-width='2'%3E%3Cpath d='M4 15s1-1 4-1 5 2 8 2 4-1 4-1V3s-1 1-4 1-5-2-8-2-4 1-4 1z'/%3E%3Cline x1='4' y1='22' x2='4' y2='15'/%3E%3C/svg%3E");
}

/* ---- KMB ---- */
.portal-kmb__hero-wrap {
    padding-top: var(--portal-content-gap);
}
.portal-kmb__hero {
    position: relative;
    overflow: hidden;
    border-radius: 0;
    padding: 20px 18px;
    box-shadow: 0 10px 28px rgba(46, 49, 146, 0.14);
}
.portal-kmb__hero--promo {
    background: linear-gradient(135deg, #ebe9ff 0%, #f8f9ff 55%, #fff 100%);
    border: 1px solid rgba(91, 95, 214, 0.12);
}
.portal-kmb__hero--batch {
    background: linear-gradient(135deg, #5b5fd6 0%, #2e3192 60%, #1a1d5c 100%);
    color: #fff;
}
.portal-kmb__hero-content {
    position: relative;
    z-index: 1;
    max-width: 72%;
}
.portal-kmb__hero-art {
    position: absolute;
    right: 12px;
    bottom: 12px;
    font-size: 56px;
    line-height: 1;
    opacity: 0.9;
}
.portal-kmb__hero-art--rocket { top: 18px; bottom: auto; font-size: 48px; }
.portal-kmb__promo-title {
    font-family: Poppins, sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 8px;
    line-height: 1.35;
}
.portal-kmb__promo-desc {
    font-size: 12px;
    color: #6b7280;
    line-height: 1.5;
    margin: 0 0 14px;
}
.portal-kmb__hero-tag {
    display: block;
    font-size: 12px;
    opacity: 0.9;
    margin-bottom: 4px;
}
.portal-kmb__hero-title {
    font-family: Poppins, sans-serif;
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 12px;
    line-height: 1.3;
}
.portal-kmb__hero-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    font-size: 12px;
    margin-bottom: 14px;
}
.portal-kmb__hero-meta span { opacity: 0.85; }
.portal-kmb__hero-meta strong { font-weight: 700; }
.portal-kmb__hero-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.portal-kmb__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 14px;
    border-radius: 12px;
    font-family: Poppins, sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform 0.15s, opacity 0.15s;
}
.portal-kmb__btn:hover { transform: translateY(-1px); }
.portal-kmb__btn--primary {
    background: var(--primary);
    color: #fff;
}
.portal-kmb__btn--light {
    background: #fff;
    color: var(--primary);
}
.portal-kmb__btn--ghost {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.55);
}
.portal-kmb__body {
    padding: 14px var(--portal-pad-x) 16px;
}
.portal-kmb__section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.portal-kmb__section-title {
    font-family: Poppins, sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}
.portal-kmb__section-link {
    font-family: Poppins, sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
}
.portal-kmb__list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.portal-kmb__list-item {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 12px;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 16px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 18px rgba(46, 49, 146, 0.07);
    transition: transform 0.15s;
}
.portal-kmb__list-item:hover { transform: translateY(-1px); }
.portal-kmb__list-img {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
    background: #eef0ff;
}
.portal-kmb__list-img--ph {
    background: linear-gradient(135deg, #eef0ff, #e8eaf2);
}
.portal-kmb__list-text {
    flex: 1;
    min-width: 0;
}
.portal-kmb__list-text strong {
    display: block;
    font-family: Poppins, sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 4px;
}
.portal-kmb__list-text small {
    display: block;
    font-size: 11px;
    color: #9ca3af;
    line-height: 1.4;
}
.portal-kmb__features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.portal-kmb__feature {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 14px 12px;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 16px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 18px rgba(46, 49, 146, 0.07);
    min-height: 96px;
    transition: transform 0.15s;
}
.portal-kmb__feature:hover { transform: translateY(-1px); }
.portal-kmb__feature-ico { font-size: 22px; line-height: 1; flex-shrink: 0; }
.portal-kmb__feature-text { flex: 1; min-width: 0; }
.portal-kmb__feature-text strong {
    display: block;
    font-family: Poppins, sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
    line-height: 1.3;
}
.portal-kmb__feature-text small {
    display: block;
    font-size: 10px;
    color: #9ca3af;
    line-height: 1.35;
}
.portal-kmb__feature-chev {
    color: #c4c8d8;
    font-size: 20px;
    line-height: 1;
    flex-shrink: 0;
}

/* ---- Event Detail ---- */
.portal-event-detail__body {
    padding: 0 var(--portal-pad-x) 20px;
}
.portal-event-detail__hero {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding-top: var(--portal-content-gap);
}
.portal-event-detail__cover {
    flex-shrink: 0;
    width: 120px;
}
.portal-event-detail__cover-btn {
    display: block;
    width: 100%;
    padding: 0;
    border: none;
    background: none;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    cursor: zoom-in;
}
.portal-event-detail__cover-btn:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}
.portal-event-detail__cover-img,
.portal-event-detail__cover-ph {
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 12px;
    display: block;
    background: #eef0ff;
}
.portal-event-detail__cover-img {
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.portal-event-detail__cover-ph {
    min-height: 0;
    background: linear-gradient(135deg, #eef0ff, #e8eaf2);
}
.portal-event-detail__cover-zoom {
    position: absolute;
    right: 6px;
    bottom: 6px;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.58);
    pointer-events: none;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3Cline x1='11' y1='8' x2='11' y2='14'/%3E%3Cline x1='8' y1='11' x2='14' y2='11'/%3E%3C/svg%3E") center / 14px 14px no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3Cline x1='11' y1='8' x2='11' y2='14'/%3E%3Cline x1='8' y1='11' x2='14' y2='11'/%3E%3C/svg%3E") center / 14px 14px no-repeat;
}
.portal-event-detail__head {
    flex: 1;
    min-width: 0;
    padding-top: 2px;
}
.portal-event-detail__title {
    font-family: Poppins, sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 10px;
    line-height: 1.35;
}
.portal-event-detail__meta {
    list-style: none;
    margin: 0 0 14px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.portal-event-detail__meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    font-family: Poppins, sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: #9ca3af;
    line-height: 1.4;
}
.portal-event-detail__meta-text {
    min-width: 0;
    flex: 1;
}
.portal-event-detail__meta-item--tempat {
    font-weight: 300;
    color: #b0b5c0;
}
.portal-event-detail__meta-item--tempat .portal-event__meta-ico--tempat {
    background: #c4c9d4;
}
.portal-event-detail__meta-item--tempat .portal-event-detail__meta-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.portal-event-detail__meta-item--harga {
    font-weight: 600;
    color: #374151;
}
.portal-event-detail__meta-item--harga .portal-event__meta-ico--harga {
    background: #4b5563;
}
.portal-event__meta-ico--kuota {
    --event-meta-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 9a3 3 0 0 1 3-3h14a3 3 0 0 1 3 3v6a3 3 0 0 1-3 3H5a3 3 0 0 1-3-3z'/%3E%3Cpath d='M13 6v3'/%3E%3Cpath d='M8 6v3'/%3E%3Cpath d='M8 15h8'/%3E%3C/svg%3E");
}
.portal-event-detail__divider {
    border: none;
    border-top: 1px solid #eceef4;
    margin: 0 0 14px;
}
.portal-event-detail__tabs-wrap {
    margin: 0 calc(-1 * var(--portal-pad-x)) 12px;
}
.portal-event-detail__tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    margin-left: 6px;
    padding: 0 5px;
    border-radius: 999px;
    background: #eef0ff;
    color: var(--primary);
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
}
.portal-event__tab.active .portal-event-detail__tab-count {
    background: rgba(46, 49, 146, 0.12);
}
.portal-event-detail__panels {
    position: relative;
}
.portal-event-detail__panel {
    display: none;
}
.portal-event-detail__panel.is-active {
    display: block;
}
.portal-event-detail__panel-loading {
    padding: 24px 0;
    text-align: center;
    font-size: 13px;
    color: #9ca3af;
}
.portal-event-detail__peserta-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.portal-event-detail__peserta-item {
    margin: 0;
}
.portal-event-detail__peserta-link,
.portal-event-detail__peserta-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(46, 49, 146, 0.06);
    box-shadow: 0 2px 10px rgba(46, 49, 146, 0.04);
}
.portal-event-detail__peserta-link {
    text-decoration: none;
    color: inherit;
}
.portal-event-detail__peserta-link:hover strong {
    color: var(--primary);
}
.portal-event-detail__peserta-info {
    flex: 1;
    min-width: 0;
}
.portal-event-detail__peserta-info strong {
    display: block;
    font-family: Poppins, sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 2px;
}
.portal-event-detail__peserta-info span {
    display: block;
    font-size: 12px;
    color: #9ca3af;
}
.portal-event-detail__peserta-item .portal-item-card__avatar {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}
.portal-event-detail__dok-drive {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 14px;
    padding: 10px 14px;
    border-radius: 12px;
    background: #eef0ff;
    color: var(--primary);
    font-family: Poppins, sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}
.portal-event-detail__dok-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}
.portal-event-detail__dok-item {
    display: block;
    width: 100%;
    padding: 0;
    border: none;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 1;
    cursor: zoom-in;
    background: #eef0ff;
}
.portal-event-detail__dok-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.portal-event-detail__dok-empty {
    padding: 24px 0;
}
.portal-event-detail__checkin {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 14px;
    background: linear-gradient(135deg, #27ae60, #1e8449);
    color: #fff;
    margin-bottom: 16px;
}
.portal-event-detail__checkin strong {
    display: block;
    font-family: Poppins, sans-serif;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 4px;
}
.portal-event-detail__checkin p {
    margin: 0;
    font-size: 12px;
    opacity: 0.92;
}
.portal-event-detail__checkin-ico { font-size: 32px; line-height: 1; }
.portal-event-detail__registered {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 14px;
    background: #ebe9ff;
    color: var(--primary);
    margin-bottom: 16px;
}
.portal-event-detail__registered-main {
    flex: 1;
    min-width: 0;
}
.portal-event-detail__joined-badge {
    display: inline-flex;
    align-items: center;
    margin-left: 8px;
    padding: 3px 10px;
    border-radius: 999px;
    background: #ebe9ff;
    color: var(--primary);
    font-family: Poppins, sans-serif;
    font-size: 11px;
    font-weight: 700;
    vertical-align: middle;
    white-space: nowrap;
}
.portal-event-detail__cancel {
    flex-shrink: 0;
    border: 1px solid rgba(46, 49, 146, 0.22);
    border-radius: 10px;
    background: #fff;
    color: var(--primary);
    font-family: Poppins, sans-serif;
    font-size: 12px;
    font-weight: 600;
    padding: 8px 12px;
    cursor: pointer;
    white-space: nowrap;
}
.portal-event-detail__cancel:hover:not(:disabled) {
    background: #f8f7ff;
}
.portal-event-detail__cancel:disabled {
    opacity: 0.6;
    cursor: wait;
}
.portal-event-detail__registered strong {
    display: block;
    font-family: Poppins, sans-serif;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 4px;
}
.portal-event-detail__registered p {
    margin: 0;
    font-size: 12px;
    opacity: 0.9;
}
.portal-event-detail__desc h2 {
    font-family: Poppins, sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 8px;
}
.portal-event-detail__desc-text {
    font-family: Poppins, sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: #6b7280;
    line-height: 1.65;
}
.portal-event-detail__desc-text p {
    margin: 0 0 10px;
}
.portal-event-detail__desc-text p:last-child {
    margin-bottom: 0;
}
.portal-event-detail__desc-text ul,
.portal-event-detail__desc-text ol {
    margin: 0 0 10px;
    padding-left: 1.2rem;
}
.portal-event-detail__desc-text li {
    margin-bottom: 4px;
}
.portal-event-detail__desc-text strong,
.portal-event-detail__desc-text b {
    color: #374151;
    font-weight: 700;
}
.portal-event-detail__desc-text a {
    color: var(--primary);
    word-break: break-word;
}
.portal-event-detail__desc-empty { color: #9ca3af; font-style: italic; }
.portal-event-detail__register {
    width: 100%;
    margin-top: 16px;
    padding: 12px 16px;
    border: none;
    border-radius: 12px;
    background: var(--primary);
    color: #fff;
    font-family: Poppins, sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    display: block;
    box-sizing: border-box;
}
.portal-event-detail__register--link { line-height: 1.4; }
.portal-event-detail__register-wrap {
    position: sticky;
    bottom: calc(64px + env(safe-area-inset-bottom));
    padding-top: 8px;
    background: linear-gradient(to top, #fff 70%, transparent);
}
.portal-event-detail__register-note {
    margin-top: 16px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #fef3c7;
    color: #92400e;
    font-size: 13px;
    line-height: 1.45;
}
.portal-event-detail__paid {
    margin: 6px 0 0;
    font-size: 13px;
    color: #166534;
    font-weight: 600;
}
.portal-event-detail__emp-title {
    margin: 10px 0 4px;
    font-size: 12px;
    font-weight: 600;
    color: #374151;
}
.portal-event-detail__emp-list {
    margin: 0;
    padding-left: 18px;
    font-size: 12px;
    color: #4b5563;
    line-height: 1.5;
}

/* Modal daftar event */
.portal-event-reg {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    pointer-events: none;
}
.portal-event-reg.is-open { pointer-events: auto; }
.portal-event-reg__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    opacity: 0;
    transition: opacity 0.25s ease;
}
.portal-event-reg.is-open .portal-event-reg__backdrop { opacity: 1; }
.portal-event-reg__sheet {
    position: relative;
    width: 100%;
    max-width: var(--portal-width);
    max-height: 85vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 20px 20px 0 0;
    padding: 12px 20px calc(20px + env(safe-area-inset-bottom));
    transform: translateY(100%);
    transition: transform 0.28s ease;
    box-shadow: 0 -8px 32px rgba(15, 23, 42, 0.12);
}
.portal-event-reg.is-open .portal-event-reg__sheet { transform: translateY(0); }
.portal-event-reg__handle {
    width: 40px;
    height: 4px;
    border-radius: 999px;
    background: #e5e7eb;
    margin: 0 auto 14px;
}
.portal-event-reg__title {
    margin: 0 0 4px;
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
}
.portal-event-reg__event {
    margin: 0 0 14px;
    font-size: 13px;
    color: #6b7280;
    line-height: 1.4;
}
.portal-event-reg__price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    margin-bottom: 14px;
    border-radius: 12px;
    background: #f0fdf4;
    font-size: 14px;
}
.portal-event-reg__price-row strong {
    color: #166534;
    font-size: 16px;
}
.portal-event-reg__label {
    display: block;
    margin-bottom: 14px;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}
.portal-event-reg__input {
    display: block;
    width: 100%;
    margin-top: 6px;
    padding: 10px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-family: Poppins, sans-serif;
    font-size: 14px;
    box-sizing: border-box;
}
.portal-event-reg__check {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    font-size: 13px;
    color: #374151;
    cursor: pointer;
}
.portal-event-reg__check input { width: 18px; height: 18px; accent-color: var(--primary); }
.portal-event-reg__employees { margin-bottom: 14px; }
.portal-event-reg__emp-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.portal-event-reg__emp-add {
    border: none;
    background: none;
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: Poppins, sans-serif;
}
.portal-event-reg__emp-row {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 8px;
}
.portal-event-reg__emp-row .portal-event-reg__emp-input { flex: 1; margin-top: 0; }
.portal-event-reg__emp-remove {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border: 1px solid #fecaca;
    border-radius: 10px;
    background: #fef2f2;
    color: #dc2626;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}
.portal-event-reg__hint {
    margin: 0;
    font-size: 11px;
    color: #9ca3af;
    line-height: 1.45;
}
.portal-event-reg__actions {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 10px;
    margin-top: 8px;
}
.portal-event-reg__cancel,
.portal-event-reg__submit {
    padding: 12px 14px;
    border-radius: 12px;
    font-family: Poppins, sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
}
.portal-event-reg__cancel {
    background: #f3f4f6;
    color: #374151;
}
.portal-event-reg__submit {
    background: var(--primary);
    color: #fff;
}
.portal-event-reg__submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.portal-bottom-nav {
    position: fixed; bottom: 0; left: 0; right: 0;
    width: 100%; max-width: var(--portal-width);
    margin: 0 auto;
    display: flex;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(46, 49, 146, 0.07);
    padding-bottom: env(safe-area-inset-bottom);
    z-index: 100;
}
.portal-bottom-nav__item {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px;
    padding: 10px 2px 8px; text-decoration: none; color: #9ca3af; font-size: 10px; font-weight: 500;
    font-family: Poppins, sans-serif;
    min-width: 0;
}
.portal-bottom-nav__item span:last-child {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}
.portal-bottom-nav__item.active { color: var(--primary); font-weight: 600; }
.portal-bottom-nav__ico {
    width: 22px; height: 22px; background: currentColor; opacity: .85;
    -webkit-mask: var(--nav-ico) center/contain no-repeat;
    mask: var(--nav-ico) center/contain no-repeat;
}
.portal-bottom-nav__item.active .portal-bottom-nav__ico { opacity: 1; }
.portal-bottom-nav__ico--home { --nav-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M3 9.5L12 3l9 6.5V20a1 1 0 0 1-1 1h-5v-6H9v6H4a1 1 0 0 1-1-1V9.5z'/%3E%3C/svg%3E"); }
.portal-bottom-nav__ico--gamifikasi { --nav-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='8' r='5'/%3E%3Cpath d='M7 21h10l-1-7H8l-1 7z'/%3E%3C/svg%3E"); }
.portal-bottom-nav__ico--event { --nav-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E"); }
.portal-bottom-nav__ico--market { --nav-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M6 2L3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4z'/%3E%3Cline x1='3' y1='6' x2='21' y2='6'/%3E%3Cpath d='M16 10a4 4 0 0 1-8 0'/%3E%3C/svg%3E"); }
.portal-bottom-nav__ico--direktori { --nav-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Ccircle cx='5' cy='7' r='2'/%3E%3Ccircle cx='19' cy='7' r='2'/%3E%3Ccircle cx='5' cy='17' r='2'/%3E%3Ccircle cx='19' cy='17' r='2'/%3E%3C/svg%3E"); }
.portal-bottom-nav__ico--profil { --nav-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E"); }
.portal-bottom-nav__ico--more { --nav-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='3' y='3' width='7' height='7' rx='1'/%3E%3Crect x='14' y='3' width='7' height='7' rx='1'/%3E%3Crect x='3' y='14' width='7' height='7' rx='1'/%3E%3Crect x='14' y='14' width='7' height='7' rx='1'/%3E%3C/svg%3E"); }
.portal-bottom-nav__item--more {
    border: none;
    background: transparent;
    cursor: pointer;
    font-family: Poppins, sans-serif;
}
.portal-bottom-more-backdrop {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(15, 23, 42, 0.45);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}
.portal-bottom-more {
    position: fixed;
    inset: 0;
    z-index: 210;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    pointer-events: none;
    visibility: hidden;
}
.portal-bottom-more__sheet {
    width: 100%;
    max-width: var(--portal-width);
    background: #fff;
    border-radius: 20px 20px 0 0;
    padding: 0 16px calc(16px + env(safe-area-inset-bottom));
    box-shadow: 0 -8px 32px rgba(46, 49, 146, 0.12);
    transform: translateY(100%);
    transition: transform 0.28s cubic-bezier(0.32, 0.72, 0, 1);
    pointer-events: auto;
}
.portal-bottom-more__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 4px 12px;
    border-bottom: 1px solid #f0f1f5;
    margin-bottom: 12px;
}
.portal-bottom-more__title {
    margin: 0;
    font-family: Poppins, sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
}
.portal-bottom-more__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    background: #f3f4f8;
    border-radius: 10px;
    color: #6b7280;
    cursor: pointer;
}
.portal-bottom-more__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    padding-bottom: 8px;
}
.portal-bottom-more__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 14px 8px;
    text-decoration: none;
    color: #4b5563;
    border-radius: 14px;
    background: #f8f9fc;
    transition: background 0.15s, color 0.15s;
}
.portal-bottom-more__item:active,
.portal-bottom-more__item.active {
    background: #eef0ff;
    color: var(--primary);
}
.portal-bottom-more__ico {
    width: 28px;
    height: 28px;
    background: currentColor;
    opacity: 0.9;
    -webkit-mask: var(--more-ico) center/contain no-repeat;
    mask: var(--more-ico) center/contain no-repeat;
}
.portal-bottom-more__label {
    font-family: Poppins, sans-serif;
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    line-height: 1.25;
}
.portal-bottom-more__ico--kmb { --more-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M23 21v-2a4 4 0 0 0-3-3.87'/%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E"); }
.portal-bottom-more__ico--gamifikasi { --more-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='8' r='5'/%3E%3Cpath d='M7 21h10l-1-7H8l-1 7z'/%3E%3C/svg%3E"); }
.portal-bottom-more__ico--market { --more-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M6 2L3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4z'/%3E%3Cline x1='3' y1='6' x2='21' y2='6'/%3E%3Cpath d='M16 10a4 4 0 0 1-8 0'/%3E%3C/svg%3E"); }
.portal-bottom-more__ico--materi { --more-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M4 19.5A2.5 2.5 0 0 1 6.5 17H20'/%3E%3Cpath d='M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2z'/%3E%3C/svg%3E"); }
.portal-bottom-more__ico--direktori { --more-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Ccircle cx='5' cy='7' r='2'/%3E%3Ccircle cx='19' cy='7' r='2'/%3E%3Ccircle cx='5' cy='17' r='2'/%3E%3Ccircle cx='19' cy='17' r='2'/%3E%3C/svg%3E"); }
.portal-bottom-more__ico--benefit { --more-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpolyline points='20 12 20 22 4 22 4 12'/%3E%3Crect x='2' y='7' width='20' height='5'/%3E%3Cline x1='12' y1='22' x2='12' y2='7'/%3E%3Cpath d='M12 7H7.5a2.5 2.5 0 0 1 0-5C11 2 12 7 12 7z'/%3E%3Cpath d='M12 7h4.5a2.5 2.5 0 0 0 0-5C13 2 12 7 12 7z'/%3E%3C/svg%3E"); }
.portal-bottom-more__ico--sertifikat { --more-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='8' r='6'/%3E%3Cpath d='M15.477 12.89L17 22l-5-3-5 3 1.523-9.11'/%3E%3C/svg%3E"); }
.portal-bottom-more__ico--notifikasi { --more-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M18 8A6 6 0 0 0 6 8c0 7-3 9-3 9h18s-3-2-3-9'/%3E%3Cpath d='M13.73 21a2 2 0 0 1-3.46 0'/%3E%3C/svg%3E"); }
body.portal-bottom-more-open {
    overflow: hidden;
}
body.portal-bottom-more-open .portal-bottom-more-backdrop {
    opacity: 1;
    visibility: visible;
}
body.portal-bottom-more-open .portal-bottom-more {
    visibility: visible;
    pointer-events: auto;
}
body.portal-bottom-more-open .portal-bottom-more__sheet {
    transform: translateY(0);
}

/* ---- Beranda / Home ---- */
.portal-home {
    padding-bottom: 8px;
    margin: 0;
}
.portal-home__top {
    padding: 0 var(--portal-pad-x) 8px;
    background:
        radial-gradient(ellipse 90% 70% at 50% -10%, rgba(123, 127, 232, 0.22) 0%, transparent 62%),
        linear-gradient(180deg, #eceef8 0%, rgba(236, 238, 248, 0.35) 55%, transparent 100%);
}
.portal-home__body {
    padding: 0 var(--portal-pad-x);
}
.portal-home-greet {
    padding-top: var(--portal-content-gap);
    margin-bottom: 6px;
}
.portal-home-greet__name {
    font-family: Poppins, sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 4px;
    line-height: 1.25;
}
.portal-home-greet__sub {
    font-family: Poppins, sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #9ca3af;
    margin: 0;
    line-height: 1.45;
    word-break: break-word;
}
.portal-home-carousel {
    margin-bottom: 16px;
    --portal-home-carousel-h: 118px;
}
.portal-home-carousel__viewport {
    overflow: hidden;
    border-radius: 20px;
    touch-action: pan-y;
    height: var(--portal-home-carousel-h);
}
.portal-home-carousel__track {
    display: flex;
    will-change: transform;
    height: 100%;
}
.portal-home-carousel__slide {
    flex: 0 0 100%;
    min-width: 100%;
    height: var(--portal-home-carousel-h);
}
.portal-home-carousel__slide .portal-home-hero {
    margin-bottom: 0;
}
.portal-home-carousel .portal-home-hero {
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    height: 100%;
    min-height: var(--portal-home-carousel-h);
    max-height: var(--portal-home-carousel-h);
    box-sizing: border-box;
}
.portal-home-carousel .portal-home-hero__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    min-width: 0;
    height: 100%;
    overflow: hidden;
}
.portal-home-carousel .portal-home-hero--level .portal-home-hero__content {
    justify-content: space-between;
    padding: 1px 0;
}
.portal-home-carousel .portal-home-hero--banner .portal-home-hero__content {
    justify-content: flex-start;
    gap: 2px;
}
.portal-home-carousel .portal-home-hero__label {
    font-size: 11px;
    margin-bottom: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 0;
}
.portal-home-carousel .portal-home-hero__level {
    font-size: 20px;
    margin: 0;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 0;
}
.portal-home-carousel .portal-home-hero__meta {
    margin-bottom: 4px;
    gap: 6px;
    min-width: 0;
    flex-shrink: 0;
}
.portal-home-carousel .portal-home-hero__meta span {
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.portal-home-carousel .portal-home-hero__meta span:first-child {
    flex: 1;
}
.portal-home-carousel .portal-home-hero__meta span:last-child {
    flex-shrink: 0;
}
.portal-home-carousel .portal-home-hero__bar {
    height: 5px;
    flex-shrink: 0;
}
.portal-home-carousel .portal-home-hero__trophy {
    font-size: 32px;
    flex-shrink: 0;
    align-self: center;
    line-height: 1;
}
.portal-home-carousel .portal-home-hero--banner {
    padding: 12px 14px;
    align-items: center;
}
.portal-home-carousel .portal-home-hero--banner .portal-home-hero__level {
    font-size: 16px;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.portal-home-carousel .portal-home-hero__subtitle {
    margin: 0;
    font-size: 10px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
    min-height: 0;
}
.portal-home-carousel .portal-home-hero__cta {
    font-size: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    flex-shrink: 0;
    margin-top: auto;
}
.portal-home-carousel .portal-home-hero--banner .portal-home-hero__trophy {
    font-size: 28px;
    margin-top: 0;
}
.portal-home-carousel__dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 10px;
}
.portal-home-carousel--single .portal-home-carousel__dots {
    display: none;
}
.portal-home-carousel__dot {
    width: 7px;
    height: 7px;
    padding: 0;
    border: none;
    border-radius: 999px;
    background: rgba(46, 49, 146, 0.22);
    cursor: pointer;
    transition: width 0.25s ease, background 0.25s ease;
}
.portal-home-carousel__dot.active {
    width: 18px;
    background: var(--primary);
}
.portal-home-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    margin-bottom: 24px;
    border-radius: 20px;
    background: linear-gradient(135deg, #2e3192 0%, #5b5fd6 55%, #7b7fe8 100%);
    color: #fff;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(46, 49, 146, 0.22);
}
.portal-home-hero__content { flex: 1; min-width: 0; z-index: 1; overflow: hidden; }
.portal-home-hero__label {
    display: block;
    font-family: Poppins, sans-serif;
    font-size: 12px;
    font-weight: 500;
    opacity: 0.88;
    margin-bottom: 4px;
}
.portal-home-hero__level {
    font-family: Poppins, sans-serif;
    font-size: 24px;
    font-weight: 800;
    margin: 0 0 6px;
    line-height: 1.15;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.portal-home-hero__label,
.portal-home-hero__meta {
    color: #fff;
}
.portal-home-hero__meta {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    font-family: Poppins, sans-serif;
    font-size: 11px;
    font-weight: 500;
    margin-bottom: 6px;
    opacity: 0.95;
    min-width: 0;
}
.portal-home-hero__meta span {
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.portal-home-hero__meta span:first-child {
    flex: 1;
}
.portal-home-hero__meta span:last-child {
    flex-shrink: 0;
}
.portal-home-hero__bar {
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.28);
    overflow: hidden;
}
.portal-home-hero__bar-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #f4d03f, var(--secondary, #d4ac0d));
    transition: width 0.4s ease;
}
.portal-home-hero__trophy {
    font-size: 40px;
    line-height: 1;
    align-self: center;
    flex-shrink: 0;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
    z-index: 1;
}
.portal-home-hero--banner {
    text-decoration: none;
    color: #fff;
    min-height: 0;
}
.portal-home-hero__bg--banner {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.portal-home-hero__banner-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.22;
    z-index: 0;
}
.portal-home-hero__banner-img--flyer {
    opacity: 1;
    z-index: 1;
}
.portal-home-hero--flyer {
    padding: 0;
    background: transparent !important;
    box-shadow: none;
}
.portal-home-hero--flyer .portal-home-hero__bg--banner {
    display: none;
}
.portal-home-hero--banner .portal-home-hero__content {
    position: relative;
    z-index: 1;
}
.portal-home-hero__subtitle {
    margin: 0 0 10px;
    font-family: Poppins, sans-serif;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.45;
    opacity: 0.92;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.portal-home-hero__cta {
    display: inline-block;
    font-family: Poppins, sans-serif;
    font-size: 12px;
    font-weight: 700;
    opacity: 0.95;
}
.portal-home-hero--theme-green {
    background: linear-gradient(135deg, #047857 0%, #10b981 55%, #34d399 100%);
    box-shadow: 0 10px 28px rgba(16, 185, 129, 0.25);
}
.portal-home-hero--theme-gold {
    background: linear-gradient(135deg, #b45309 0%, #d97706 50%, #fbbf24 100%);
    box-shadow: 0 10px 28px rgba(217, 119, 6, 0.25);
}
.portal-home-hero--theme-orange {
    background: linear-gradient(135deg, #c2410c 0%, #ea580c 55%, #fb923c 100%);
    box-shadow: 0 10px 28px rgba(234, 88, 12, 0.25);
}
.portal-home-hero--theme-purple {
    background: linear-gradient(135deg, #2e3192 0%, #5b5fd6 55%, #7b7fe8 100%);
}
.portal-home-hero--banner .portal-home-hero__level {
    font-size: 22px;
    margin-bottom: 8px;
}
.portal-home-section { margin-bottom: 24px; }
.portal-home-section__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.portal-home-section__title {
    font-family: Poppins, sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 12px;
}
.portal-home-section__head .portal-home-section__title { margin-bottom: 0; }
.portal-home-section__more {
    font-family: Poppins, sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
}
.portal-home-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.portal-home-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 14px 8px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 18px rgba(46, 49, 146, 0.07);
}
.portal-home-stat__ico {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #eef0ff center/18px no-repeat;
}
.portal-home-stat__ico--kmb { background-color: #eef0ff; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232e3192' stroke-width='2'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cpath d='M16 2v4M8 2v4M3 10h18M9 16l2 2 4-4'/%3E%3C/svg%3E"); }
.portal-home-stat__ico--event { background-color: #eef0ff; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232e3192' stroke-width='2'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cpath d='M16 2v4M8 2v4M3 10h18M9 16l2 2 4-4'/%3E%3C/svg%3E"); }
.portal-home-stat__ico--poin { background-color: #fff8e6; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d4ac0d' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='8'/%3E%3Cpath d='M12 8v8M8 12h8'/%3E%3C/svg%3E"); }
.portal-home-stat__val {
    font-family: Poppins, sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}
.portal-home-stat__lbl {
    font-family: Poppins, sans-serif;
    font-size: 11px;
    font-weight: 500;
    color: #6b7280;
    text-align: center;
    line-height: 1.3;
}
.portal-home-explore {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}
.portal-home-explore__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #374151;
}
.portal-home-explore__ico {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.portal-home-explore__ico svg { width: 24px; height: 24px; }
.portal-home-explore__ico--event { background: #ebe9ff; color: var(--primary); }
.portal-home-explore__ico--kmb { background: #e3f9ef; color: #10b981; }
.portal-home-explore__ico--materi { background: #fff4e5; color: #f59e0b; }
.portal-home-explore__ico--benefit { background: #e8f4fd; color: #3b82f6; }
.portal-home-explore__lbl {
    font-family: Poppins, sans-serif;
    font-size: 10px;
    font-weight: 600;
    text-align: center;
    line-height: 1.3;
}
.portal-home-news__card {
    display: flex;
    gap: 14px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.95);
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 20px rgba(46, 49, 146, 0.08);
}
.portal-home-news__img {
    width: 88px;
    height: 88px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
}
.portal-home-news__img--placeholder {
    background: linear-gradient(135deg, #eef0ff, #e8eaf2);
}
.portal-home-news__body { flex: 1; min-width: 0; }
.portal-home-news__title {
    font-family: Poppins, sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 6px;
    line-height: 1.35;
}
.portal-home-news__desc {
    font-family: Poppins, sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: #9ca3af;
    margin: 0 0 8px;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.portal-home-news__link {
    font-family: Poppins, sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
}
.portal-home-news__empty { padding: 24px 16px; }

/* ---- Beranda: tone login di level & sidebar ---- */
.portal-body--beranda .portal-home-hero--login-tone,
.portal-gamifikasi .portal-home-hero--login-tone {
    position: relative;
    overflow: hidden;
    background: transparent;
    box-shadow: 0 10px 28px rgba(0, 40, 100, 0.22);
}
.portal-home-hero__bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background-color: #0047ab;
    background-image:
        radial-gradient(ellipse 52% 48% at 10% 14%, rgba(178, 230, 70, 0.42) 0%, rgba(162, 214, 69, 0.14) 38%, transparent 68%),
        radial-gradient(ellipse 48% 42% at 50% 92%, rgba(162, 214, 69, 0.32) 0%, rgba(162, 214, 69, 0.08) 40%, transparent 65%),
        linear-gradient(155deg, #003580 0%, #0047ab 38%, #0056b3 68%, #003878 100%);
}
.portal-home-hero__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, transparent 42%, rgba(0, 20, 60, 0.08) 100%);
    pointer-events: none;
}
.portal-home-hero__nodes {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.82;
    pointer-events: none;
}
.portal-body--beranda .portal-home-hero__content,
.portal-body--beranda .portal-home-hero__trophy {
    position: relative;
    z-index: 1;
}
.portal-body--beranda .portal-sidebar {
    background-color: #0047ab;
    background-image:
        radial-gradient(ellipse 90% 55% at 10% 8%, rgba(178, 230, 70, 0.38) 0%, transparent 60%),
        radial-gradient(ellipse 80% 50% at 90% 95%, rgba(162, 214, 69, 0.3) 0%, transparent 55%),
        linear-gradient(180deg, #003580 0%, #0047ab 42%, #003878 100%);
    box-shadow: 8px 0 32px rgba(0, 40, 100, 0.35);
}
.portal-body--beranda .portal-sidebar__link.active {
    background: rgba(255, 255, 255, 0.14);
    color: #f4d03f;
}
.portal-body--beranda .portal-sidebar__link.active .portal-sidebar__ico {
    opacity: 1;
}

/* ---- Portal sidebar ---- */
.portal-sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(2px);
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}
.portal-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: min(280px, 86vw);
    height: 100dvh;
    background: linear-gradient(180deg, #12143a 0%, #1a1d5e 100%);
    color: #fff;
    z-index: 210;
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform 0.28s ease;
    box-shadow: 8px 0 32px rgba(0, 0, 0, 0.2);
}
.portal-sidebar__head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: calc(16px + env(safe-area-inset-top)) 16px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.portal-sidebar__logo {
    width: 44px;
    height: 44px;
    object-fit: contain;
    flex-shrink: 0;
}
.portal-sidebar__avatar {
    border-radius: 50%;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.12);
}
.portal-sidebar__avatar.is-default {
    border-radius: 10px;
    object-fit: contain;
    background: transparent;
}
.portal-sidebar__brand {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.portal-sidebar__org {
    font-family: Poppins, sans-serif;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.portal-sidebar__tag {
    font-family: Poppins, sans-serif;
    font-size: 11px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.55);
}
.portal-sidebar__close {
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}
.portal-sidebar__nav {
    flex: 1;
    overflow-y: auto;
    padding: 12px 10px;
    -webkit-overflow-scrolling: touch;
}
.portal-sidebar__link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    margin-bottom: 4px;
    border-radius: 12px;
    font-family: Poppins, sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}
.portal-sidebar__label {
    flex: 1;
    min-width: 0;
    line-height: 1.35;
}
.portal-sidebar__ico {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    background: currentColor;
    opacity: 0.88;
    -webkit-mask: var(--sidebar-ico) center/contain no-repeat;
    mask: var(--sidebar-ico) center/contain no-repeat;
}
.portal-sidebar__link.active .portal-sidebar__ico,
.portal-sidebar__link:hover .portal-sidebar__ico {
    opacity: 1;
}
.portal-sidebar__ico--home { --sidebar-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M3 9.5L12 3l9 6.5V20a1 1 0 0 1-1 1h-5v-6H9v6H4a1 1 0 0 1-1-1V9.5z'/%3E%3C/svg%3E"); }
.portal-sidebar__ico--gamifikasi { --sidebar-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='8' r='5'/%3E%3Cpath d='M7 21h10l-1-7H8l-1 7z'/%3E%3C/svg%3E"); }
.portal-sidebar__ico--passport { --sidebar-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E"); }
.portal-sidebar__ico--kmb { --sidebar-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M23 21v-2a4 4 0 0 0-3-3.87'/%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E"); }
.portal-sidebar__ico--event { --sidebar-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E"); }
.portal-sidebar__ico--materi { --sidebar-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M4 19.5A2.5 2.5 0 0 1 6.5 17H20'/%3E%3Cpath d='M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2z'/%3E%3C/svg%3E"); }
.portal-sidebar__ico--direktori { --sidebar-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Ccircle cx='5' cy='7' r='2'/%3E%3Ccircle cx='19' cy='7' r='2'/%3E%3Ccircle cx='5' cy='17' r='2'/%3E%3Ccircle cx='19' cy='17' r='2'/%3E%3C/svg%3E"); }
.portal-sidebar__ico--market { --sidebar-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M6 2L3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4z'/%3E%3Cline x1='3' y1='6' x2='21' y2='6'/%3E%3Cpath d='M16 10a4 4 0 0 1-8 0'/%3E%3C/svg%3E"); }
.portal-sidebar__ico--benefit { --sidebar-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpolyline points='20 12 20 22 4 22 4 12'/%3E%3Crect x='2' y='7' width='20' height='5'/%3E%3Cline x1='12' y1='22' x2='12' y2='7'/%3E%3Cpath d='M12 7H7.5a2.5 2.5 0 0 1 0-5C11 2 12 7 12 7z'/%3E%3Cpath d='M12 7h4.5a2.5 2.5 0 0 0 0-5C13 2 12 7 12 7z'/%3E%3C/svg%3E"); }
.portal-sidebar__ico--sertifikat { --sidebar-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='12' cy='8' r='6'/%3E%3Cpath d='M15.477 12.89L17 22l-5-3-5 3 1.523-9.11'/%3E%3C/svg%3E"); }
.portal-sidebar__ico--notifikasi { --sidebar-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M18 8A6 6 0 0 0 6 8c0 7-3 9-3 9h18s-3-2-3-9'/%3E%3Cpath d='M13.73 21a2 2 0 0 1-3.46 0'/%3E%3C/svg%3E"); }
.portal-sidebar__ico--logout { --sidebar-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4'/%3E%3Cpolyline points='16 17 21 12 16 7'/%3E%3Cline x1='21' y1='12' x2='9' y2='12'/%3E%3C/svg%3E"); }
.portal-sidebar__link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}
.portal-sidebar__link.active {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-weight: 600;
    box-shadow: inset 3px 0 0 var(--secondary, #d4ac0d);
}
.portal-sidebar__foot {
    padding: 12px 16px calc(16px + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.portal-sidebar__logout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    border-radius: 12px;
    font-family: Poppins, sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #fca5a5;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.06);
}
.portal-sidebar__logout .portal-sidebar__ico {
    opacity: 1;
}
.portal-sidebar__logout:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fecaca;
}
body.portal-sidebar-open {
    overflow: hidden;
}
body.portal-sidebar-open .portal-sidebar-backdrop {
    opacity: 1;
    visibility: visible;
}
body.portal-sidebar-open .portal-sidebar {
    transform: translateX(0);
}

.portal-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 14px 16px;
    margin-bottom: 10px;
    box-shadow: 0 4px 18px rgba(46, 49, 146, 0.07);
}
.portal-card--hero {
    background: linear-gradient(135deg, #5b5fd6 0%, #2e3192 60%, #1a1d5c 100%);
    color: #fff;
    border-radius: 20px;
    padding: 20px;
    border: none;
    box-shadow: 0 10px 28px rgba(46, 49, 146, 0.22);
}
.portal-card__label { font-size: 12px; opacity: .88; margin-bottom: 4px; }
.portal-card__title { font-family: Poppins, sans-serif; font-size: 20px; font-weight: 700; margin: 0 0 8px; }

/* ---- Shared list / sub-pages ---- */
.portal-page-list__body,
.portal-tabs-page__body {
    padding: var(--portal-content-gap) var(--portal-pad-x) 16px;
}
.portal-page-list__title,
.portal-section-title {
    font-family: Poppins, sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 12px;
}
.portal-page-list__items {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.portal-item-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    box-shadow: 0 4px 18px rgba(46, 49, 146, 0.07);
    text-decoration: none;
    color: inherit;
    transition: transform 0.15s;
}
.portal-item-card--clickable { cursor: pointer; }
.portal-item-card--clickable:hover,
a.portal-item-card:hover { transform: translateY(-1px); }
.portal-item-card--unread { border-left: 3px solid var(--primary); }
.portal-item-card__avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #eef0ff, #dfe3ff);
    color: var(--primary);
    font-family: Poppins, sans-serif;
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}
.portal-item-card__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.portal-item-card__body { flex: 1; min-width: 0; }
.portal-item-card--member {
    align-items: flex-start;
}
.portal-item-card--member .portal-item-card__avatar {
    margin-top: 2px;
}
.portal-item-card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 4px;
}
.portal-item-card__title {
    font-family: Poppins, sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
    line-height: 1.3;
    flex: 1;
    min-width: 0;
}
.portal-item-card__passport {
    font-family: Poppins, sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #9ca3af;
    white-space: nowrap;
    flex-shrink: 0;
    line-height: 1.3;
    padding-top: 1px;
}
.portal-item-card__row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0 0 4px;
    font-size: 12px;
    color: #6b7280;
    line-height: 1.45;
}
.portal-item-card--member .portal-item-card__meta-stack {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.portal-item-card--member .portal-item-card__row--meta {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    font-size: 10px;
    line-height: 1.35;
    color: #9ca3af;
}
.portal-item-card--member .portal-item-card__meta-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
    max-width: 100%;
}
.portal-item-card--member .portal-item-card__meta-item .portal-item-card__row-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.portal-item-card__row:last-child {
    margin-bottom: 0;
}
.portal-item-card__row-ico {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    margin-top: 1px;
    background: #9ca3af;
    -webkit-mask: var(--row-ico) center / contain no-repeat;
    mask: var(--row-ico) center / contain no-repeat;
}
.portal-item-card--member .portal-item-card__row-ico {
    width: 11px;
    height: 11px;
    margin-top: 0;
    background: #b0b5c0;
}
.portal-item-card__row-ico--bisnis {
    --row-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='2' width='16' height='20' rx='2'/%3E%3Cpath d='M9 22v-4h6v4M9 6h.01M15 6h.01M9 10h.01M15 10h.01M9 14h.01M15 14h.01'/%3E%3C/svg%3E");
}
.portal-item-card__row-ico--daerah {
    --row-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
}
.portal-item-card__row-text {
    flex: 1;
    min-width: 0;
}
.portal-item-card__head .portal-item-card__title {
    margin: 0;
}
.portal-item-card__body > .portal-item-card__title {
    margin: 0 0 4px;
}
.portal-item-card__meta {
    font-size: 12px;
    color: #9ca3af;
    line-height: 1.4;
    margin: 0;
}
.portal-item-card__side {
    font-family: Poppins, sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
    white-space: nowrap;
    flex-shrink: 0;
}
.portal-item-card__rank {
    width: 28px;
    font-family: Poppins, sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
    flex-shrink: 0;
}
.portal-item-card__badge {
    display: inline-block;
    margin-top: 6px;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 600;
    background: #e8f8ef;
    color: #1e8449;
}
.portal-item-card__badge--pending {
    background: #f3f4f6;
    color: #6b7280;
}
.portal-search {
    width: 100%;
    padding: 12px 14px 12px 40px;
    border: 1px solid #e8eaf2;
    border-radius: 14px;
    font-size: 14px;
    font-family: Inter, sans-serif;
    background: rgba(255, 255, 255, 0.92) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E") 14px center/16px no-repeat;
    box-sizing: border-box;
    margin-bottom: 14px;
    box-shadow: 0 2px 10px rgba(46, 49, 146, 0.05);
}
.portal-search:focus {
    outline: none;
    border-color: rgba(46, 49, 146, 0.35);
    box-shadow: 0 0 0 3px rgba(46, 49, 146, 0.08);
}

/* Passport */
.portal-passport__hero {
    text-align: center;
    padding: 16px;
    margin-bottom: 12px;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 16px;
    box-shadow: 0 4px 18px rgba(46, 49, 146, 0.07);
}
.portal-passport__avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    margin: 0 auto 10px;
    background: linear-gradient(135deg, #5b5fd6, #2e3192);
    color: #fff;
    font-family: Poppins, sans-serif;
    font-size: 26px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}
.portal-passport__name {
    font-family: Poppins, sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 4px;
}
.portal-passport__id {
    font-size: 12px;
    color: #9ca3af;
    margin: 0 0 10px;
}
.portal-passport__level {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 999px;
    background: #ebe9ff;
    color: var(--primary);
    font-family: Poppins, sans-serif;
    font-size: 12px;
    font-weight: 600;
}
.portal-passport__menu-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid #eceef4;
    text-decoration: none;
    color: #1f2937;
    font-family: Poppins, sans-serif;
    font-size: 14px;
    font-weight: 600;
}
.portal-passport__menu-link:last-child { border-bottom: none; }
.portal-passport__menu-link span:last-child { color: #c4c8d8; }
.portal-passport__identitas {
    padding: 16px;
}
.portal-passport__profile-panel {
    padding: 0;
    overflow: hidden;
    margin-top: 4px;
}
.portal-passport__subtabs-wrap--profile {
    margin: 0;
    padding: 14px 14px 0;
    border-bottom: none;
}
.portal-passport__subtabs-wrap--profile .portal-direktori__subtabs {
    display: flex;
    width: 100%;
    padding: 4px;
    gap: 4px;
    overflow: visible;
    background: #eef1f8;
    border-radius: 14px;
    border: 1px solid #e4e8f2;
    box-sizing: border-box;
}
.portal-passport__subtabs-wrap--profile .portal-direktori__subtab {
    flex: 1 1 0;
    min-width: 0;
    text-align: center;
    padding: 9px 8px;
    border-radius: 10px;
    border: none;
    background: transparent;
    color: #6b7280;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    box-shadow: none;
}
.portal-passport__subtabs-wrap--profile .portal-direktori__subtab.active {
    background: #fff;
    color: var(--primary, #2e3192);
    box-shadow: 0 1px 3px rgba(46, 49, 146, 0.1), 0 0 0 1px rgba(46, 49, 146, 0.06);
}
.portal-passport__subtabs-wrap--profile .portal-direktori__subtab:not(.active):hover {
    color: #374151;
    background: rgba(255, 255, 255, 0.45);
}
.portal-passport__profile-panel-body {
    padding: 14px 16px 16px;
}
.portal-passport__profile-panel-body .portal-bisnis-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.portal-passport__edit-btn {
    margin-top: 14px;
    width: 100%;
}
.portal-passport__edit-section {
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.portal-passport__catalog-form {
    padding: 14px;
    border: 1px solid #eceef4;
    border-radius: 14px;
    background: #fafbfc;
}
.portal-passport__catalog-form-title {
    margin: 0 0 12px;
    font-size: 14px;
    font-weight: 600;
    color: #2e3192;
}
.portal-passport__catalog-form textarea,
.portal-passport__catalog-form select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #dce0ea;
    border-radius: 10px;
    font: inherit;
    color: #1a1d2e;
    background: #fff;
    box-sizing: border-box;
}
.portal-passport__catalog-form textarea {
    resize: vertical;
    min-height: 64px;
}
.portal-passport-modal {
    z-index: 1200;
    padding: 16px;
    align-items: flex-end;
}
.portal-passport-modal .modal {
    width: 100%;
    max-width: 440px;
    max-height: min(90dvh, 720px);
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    border-radius: 20px 20px 0 0;
}
.portal-passport-modal .modal__body {
    overflow-y: auto;
    flex: 1 1 auto;
    padding: 18px 20px 20px;
}
.portal-passport-modal .portal-profile__form,
.portal-passport-modal .portal-passport__catalog-form {
    padding: 0;
    border: none;
    background: transparent;
}
.portal-passport-modal__actions {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}
.portal-passport-modal__actions .portal-btn {
    flex: 1;
    margin-top: 0;
}
.portal-passport-modal__actions .portal-btn--outline {
    margin-top: 0;
}
.portal-passport__item-edit {
    flex-shrink: 0;
    padding: 8px 12px;
    border: 1px solid #dce0ea;
    border-radius: 10px;
    background: #fff;
    color: var(--primary);
    font-family: Poppins, sans-serif;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}
.portal-passport__item-edit:hover {
    background: #eef0ff;
}
.portal-bisnis-card__actions {
    display: flex;
    gap: 8px;
    align-items: center;
}
.portal-bisnis-card__actions .portal-bisnis-card__btn {
    flex: 1;
    width: auto;
}
.portal-bisnis-card__btn--secondary {
    background: #eef0ff;
    color: var(--primary);
}
.portal-bisnis-card__btn--secondary:hover {
    opacity: 1;
    background: #e0e4ff;
    color: var(--primary);
}
.portal-passport__produk-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.portal-passport__produk-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border: 1px solid #eceef4;
    border-radius: 14px;
    background: #fff;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.portal-passport__produk-link {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
    text-decoration: none;
    color: inherit;
}
.portal-passport__produk-link:hover + .portal-passport__item-edit,
.portal-passport__produk-card:hover {
    border-color: #d8dce8;
    box-shadow: 0 4px 14px rgba(46, 49, 146, 0.08);
}
.portal-passport__produk-media {
    flex: 0 0 56px;
    width: 56px;
    height: 56px;
    border-radius: 12px;
    overflow: hidden;
    background: #f3f4f8;
}
.portal-passport__produk-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.portal-passport__produk-ph {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-weight: 600;
    color: #8b90a8;
    font-size: 18px;
}
@media (min-width: 640px) {
    .portal-passport-modal {
        align-items: center;
    }
    .portal-passport-modal .modal {
        border-radius: 20px;
    }
}
.portal-passport__produk-body {
    flex: 1;
    min-width: 0;
}
.portal-passport__produk-title {
    margin: 0 0 4px;
    font-size: 14px;
    font-weight: 600;
    color: #1a1d3a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.portal-passport__produk-price {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: #5b5fd6;
}
.portal-passport__produk-meta {
    margin: 2px 0 0;
    font-size: 12px;
    color: #8b90a8;
}
.portal-passport__edit-btn {
    margin-top: 14px;
    width: 100%;
    justify-content: center;
}
.portal-passport__edit-form {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #eceef4;
}
.portal-passport__subtabs-wrap {
    margin: 0 0 12px;
}
.portal-passport__subtabs-wrap .portal-direktori__subtabs {
    padding: 0;
}

.portal-tabs-page__body--card {
    padding-top: 14px;
    padding-bottom: 16px;
}
.portal-tabs-page__body--card .portal-member-card-wrap {
    margin-bottom: 12px;
    width: 100%;
    align-items: center;
}
.portal-tabs-page__body--card .portal-passport__profile-panel {
    margin-top: 8px;
}
.portal-tabs-page__body--card .portal-member-card {
    width: 100%;
    max-width: 340px;
    border-radius: 20px;
}
.portal-tabs-page__body--card .portal-member-card__hint {
    max-width: 340px;
}
.portal-tabs-page__body--card .portal-passport__identitas {
    margin-top: 0;
}
.portal-member-card-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}
.portal-member-card {
    position: relative;
    width: 100%;
    max-width: 340px;
    aspect-ratio: 1.586 / 1;
    border-radius: 20px;
    overflow: hidden;
    box-shadow:
        0 16px 40px rgba(0, 40, 100, 0.28),
        0 0 0 1px rgba(255, 255, 255, 0.18) inset;
}
.portal-member-card--interactive {
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.portal-member-card--interactive:hover {
    transform: translateY(-2px) scale(1.015);
    box-shadow:
        0 20px 48px rgba(0, 40, 100, 0.34),
        0 0 0 1px rgba(255, 255, 255, 0.22) inset;
}
.portal-member-card--interactive:active {
    transform: scale(0.985);
}
.portal-member-card--interactive:focus-visible {
    outline: 2px solid rgba(244, 208, 63, 0.95);
    outline-offset: 3px;
}
.portal-member-card--large {
    max-width: 100%;
    width: 100%;
    border-radius: 22px;
}
.portal-member-card--large .portal-member-card__inner {
    padding: 18px 20px 14px;
}
.portal-member-card--large .portal-member-card__sub {
    font-size: 12px;
}
.portal-member-card--large .portal-member-card__name {
    font-size: 17px;
}
.portal-member-card--large .portal-member-card__qr {
    border-radius: 10px;
}
.portal-media-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 16px calc(20px + env(safe-area-inset-bottom));
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}
.portal-media-lightbox.is-open {
    opacity: 1;
    visibility: visible;
}
.portal-media-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.82);
    backdrop-filter: blur(4px);
}
.portal-media-lightbox__panel {
    position: relative;
    z-index: 1;
    width: min(100%, 560px);
    max-height: calc(100vh - 40px - env(safe-area-inset-bottom));
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(10px) scale(0.98);
    transition: transform 0.22s ease;
}
.portal-media-lightbox.is-open .portal-media-lightbox__panel {
    transform: translateY(0) scale(1);
}
.portal-media-lightbox__close {
    position: absolute;
    top: -42px;
    right: 0;
    z-index: 2;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}
.portal-media-lightbox__img {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: calc(100vh - 80px - env(safe-area-inset-bottom));
    border-radius: 14px;
    object-fit: contain;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
}
body.portal-media-lightbox-open {
    overflow: hidden;
}

.portal-member-card-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 16px calc(20px + env(safe-area-inset-bottom));
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}
.portal-member-card-modal.is-open {
    opacity: 1;
    visibility: visible;
}
.portal-member-card-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(4px);
}
.portal-member-card-modal__panel {
    position: relative;
    z-index: 1;
    width: min(100%, 340px);
    padding: 28px 22px 22px;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
    transform: translateY(12px) scale(0.98);
    transition: transform 0.22s ease;
    text-align: center;
}
.portal-member-card-modal.is-open .portal-member-card-modal__panel {
    transform: translateY(0) scale(1);
}
.portal-member-card-modal__close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 999px;
    background: rgba(46, 49, 146, 0.08);
    color: #374151;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}
.portal-member-card-modal__qr-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    padding: 14px;
    border-radius: 18px;
    background: #f8f9fc;
    border: 1px solid #eceef4;
    width: fit-content;
}
.portal-member-card-modal__qr {
    display: block;
    width: min(72vw, 240px);
    height: min(72vw, 240px);
    border-radius: 8px;
    image-rendering: pixelated;
}
.portal-member-card-modal__name {
    margin: 0 0 8px;
    font-family: Poppins, sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    line-height: 1.3;
    word-break: break-word;
}
.portal-member-card-modal__passport {
    margin: 0;
    font-size: 15px;
    color: #4b5563;
    line-height: 1.45;
}
.portal-member-card-modal__passport strong {
    color: var(--primary, #2e3192);
    font-weight: 700;
}
.portal-member-card-modal__scan-hint {
    margin: 16px 0 0;
    font-size: 12px;
    color: #9ca3af;
}
body.portal-member-card-modal-open {
    overflow: hidden;
}
.portal-member-card__bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background-color: #0047ab;
    background-image:
        radial-gradient(ellipse 52% 48% at 10% 14%, rgba(178, 230, 70, 0.42) 0%, rgba(162, 214, 69, 0.14) 38%, transparent 68%),
        radial-gradient(ellipse 48% 42% at 50% 92%, rgba(162, 214, 69, 0.32) 0%, rgba(162, 214, 69, 0.08) 40%, transparent 65%),
        linear-gradient(155deg, #003580 0%, #0047ab 38%, #0056b3 68%, #003878 100%);
}
.portal-member-card__nodes {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.48;
    pointer-events: none;
}
.portal-member-card__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, transparent 42%, rgba(0, 20, 60, 0.08) 100%);
    pointer-events: none;
}
.portal-member-card__inner {
    position: relative;
    z-index: 2;
    height: 100%;
    padding: 14px 16px 12px;
    display: flex;
    flex-direction: column;
    color: #fff;
    box-sizing: border-box;
}
.portal-member-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 4px;
    flex-shrink: 0;
}
.portal-member-card__logo {
    width: 36px;
    height: 36px;
    object-fit: contain;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.95);
    padding: 4px;
    flex-shrink: 0;
}
.portal-member-card__logo--tda {
    width: auto;
    height: 34px;
    max-width: 44%;
    padding: 0;
    background: transparent;
    border-radius: 0;
    filter: brightness(0) invert(1);
}
.portal-member-card__together {
    height: 30px;
    width: auto;
    max-width: 54%;
    object-fit: contain;
    flex-shrink: 0;
    margin-left: auto;
}
.portal-member-card__brand {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}
.portal-member-card__brand-title {
    font-family: Poppins, sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.2;
}
.portal-member-card__brand-sub {
    font-size: 10px;
    opacity: 0.82;
    font-weight: 500;
}
.portal-member-card__main {
    display: flex;
    align-items: flex-start;
    flex: 1;
    min-height: 0;
    flex-shrink: 0;
    margin-top: 12px;
}
.portal-member-card__body {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}
.portal-member-card__avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.portal-member-card__avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.portal-member-card__avatar-initial {
    font-family: Poppins, sans-serif;
    font-size: 22px;
    font-weight: 700;
}
.portal-member-card__info {
    flex: 1;
    min-width: 0;
}
.portal-member-card__name {
    font-family: Poppins, sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.portal-member-card__sub {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
    gap: 5px;
    min-width: 0;
    margin-top: 2px;
    font-family: Poppins, sans-serif;
    font-size: 11px;
    line-height: 1.25;
}
.portal-member-card__no {
    font-size: inherit;
    line-height: inherit;
    font-weight: 600;
    letter-spacing: 0.01em;
    opacity: 0.95;
    flex-shrink: 0;
    white-space: nowrap;
}
.portal-member-card__sep {
    flex-shrink: 0;
    font-size: inherit;
    line-height: inherit;
    font-weight: 600;
    opacity: 0.65;
}
.portal-member-card__daerah {
    font-size: inherit;
    line-height: inherit;
    font-weight: 500;
    opacity: 0.9;
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.portal-member-card__foot {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    padding-top: 10px;
}
.portal-member-card__bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    padding-top: 6px;
    flex-shrink: 0;
}
.portal-member-card__meta {
    flex: 1 1 auto;
    min-width: 0;
    margin-top: 0;
    padding-right: 2px;
    padding-bottom: 2px;
}
.portal-member-card__aside {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    flex: 0 0 auto;
    width: 52%;
    max-width: 172px;
}
.portal-member-card__sponsors {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 5px;
    width: 100%;
    margin-top: 0;
    padding-top: 0;
}
.portal-member-card__sponsor {
    height: 30px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px dashed rgba(255, 255, 255, 0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 3px 4px;
    box-sizing: border-box;
}
.portal-member-card__sponsor img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.portal-member-card__sponsor--empty {
    opacity: 0.55;
}
.portal-member-card__biz {
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.portal-member-card__since,
.portal-member-card__status {
    font-size: 9px;
    opacity: 0.78;
    line-height: 1.4;
}
.portal-member-card__qr {
    width: 58px;
    height: 58px;
    border-radius: 8px;
    background: #fff;
    padding: 3px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.portal-member-card__hint {
    font-size: 11px;
    color: #9ca3af;
    text-align: center;
    margin: 0;
    line-height: 1.45;
    width: 100%;
    max-width: 340px;
}
.portal-member-card__link {
    font-family: Poppins, sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    margin-top: 2px;
}
.portal-member-card__link:hover {
    text-decoration: underline;
}

/* Benefit */
.portal-benefit__hero {
    padding: 20px 18px;
    margin-bottom: 14px;
    border-radius: 16px;
    background: linear-gradient(135deg, #5b5fd6 0%, #2e3192 60%, #1a1d5c 100%);
    color: #fff;
    box-shadow: 0 10px 28px rgba(46, 49, 146, 0.22);
}
.portal-benefit__hero-title {
    font-family: Poppins, sans-serif;
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    line-height: 1.35;
}

/* Materi */
.portal-materi-card__progress {
    margin-top: 10px;
}
.portal-materi-card__progress-meta {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #9ca3af;
    margin-top: 6px;
}
.portal-progress--light {
    background: #eceef4;
}
.portal-progress--light .portal-progress__bar {
    background: linear-gradient(90deg, var(--primary), #5b5fd6);
}

/* Wizard / KMB daftar */
.portal-wizard {
    padding: var(--portal-content-gap) var(--portal-pad-x) 20px;
}
.portal-stepper {
    display: flex;
    gap: 6px;
    margin-bottom: 18px;
}
.portal-stepper__step {
    flex: 1;
    height: 5px;
    border-radius: 999px;
    background: #e8eaf2;
    transition: background 0.2s;
}
.portal-stepper__step.done,
.portal-stepper__step.active {
    background: linear-gradient(90deg, var(--primary), #5b5fd6);
}
.portal-pick-card {
    padding: 14px 16px;
    margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.92);
    border: 2px solid transparent;
    border-radius: 16px;
    box-shadow: 0 4px 18px rgba(46, 49, 146, 0.07);
    cursor: pointer;
    transition: border-color 0.15s, transform 0.15s;
}
.portal-pick-card:hover {
    transform: translateY(-1px);
    border-color: rgba(46, 49, 146, 0.2);
}
.portal-pick-card__title {
    font-family: Poppins, sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 4px;
}
.portal-pick-card__meta {
    font-size: 12px;
    color: #9ca3af;
    margin: 0;
}

/* Laporan KMB */
.portal-laporan {
    padding: var(--portal-content-gap) var(--portal-pad-x) 20px;
}
.portal-laporan__hero {
    text-align: center;
    padding: 20px 16px;
    margin-bottom: 14px;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 16px;
    box-shadow: 0 4px 18px rgba(46, 49, 146, 0.07);
}
.portal-laporan__hero-sub {
    font-size: 13px;
    color: #9ca3af;
    margin-top: 8px;
}

/* ---- TDA Passport / Detail Member ---- */
.portal-member-detail__hero {
    padding-top: var(--portal-content-gap);
    padding-bottom: 24px;
    background-color: #eceef8;
    background-image:
        radial-gradient(ellipse 90% 70% at 50% -10%, rgba(123, 127, 232, 0.22) 0%, transparent 62%),
        linear-gradient(180deg, #eceef8 0%, rgba(236, 238, 248, 0.92) 55%, #f8f9fc 100%);
}
.portal-member-detail__hero-inner {
    padding: 0 max(20px, var(--portal-pad-x));
    text-align: center;
}
.portal-member-detail__hero .portal-item-card__avatar {
    width: 96px;
    height: 96px;
    margin: 0 auto 14px;
    font-size: 34px;
    border: 3px solid #fff;
    box-shadow: 0 8px 24px rgba(46, 49, 146, 0.14);
}
.portal-member-detail__name {
    font-family: Poppins, sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 6px;
}
.portal-member-detail__no {
    font-family: Poppins, sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #9ca3af;
    margin: 0 0 12px;
}
.portal-member-detail__level {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 999px;
    background: #ebe9ff;
    color: var(--primary);
    font-family: Poppins, sans-serif;
    font-size: 12px;
    font-weight: 600;
}
.portal-member-detail__body {
    padding: 14px max(20px, var(--portal-pad-x)) 24px;
}
.portal-member-detail__section {
    margin-bottom: 18px;
}
.portal-member-detail__section .portal-page-list__title {
    padding: 0 2px;
}
.portal-member-detail__info {
    background: rgba(255, 255, 255, 0.92);
    border-radius: 16px;
    padding: 4px 16px;
    box-shadow: 0 4px 18px rgba(46, 49, 146, 0.07);
}
.portal-member-detail__section .portal-item-card {
    margin: 0;
}
.portal-member-detail__info-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #eceef4;
}
.portal-member-detail__info-row:last-child {
    border-bottom: none;
}
.portal-member-detail__info-label {
    font-size: 13px;
    color: #9ca3af;
    flex-shrink: 0;
}
.portal-member-detail__info-value {
    font-family: Poppins, sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #1f2937;
    text-align: right;
}

/* Profil bisnis (multi) — TDA Passport */
.portal-member-detail__section--bisnis {
    margin-bottom: 8px;
}
.portal-bisnis-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.portal-bisnis-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 16px;
    box-shadow: 0 4px 18px rgba(46, 49, 146, 0.07);
}
.portal-bisnis-card__main {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.portal-bisnis-card__ico {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--primary-50, #eef0ff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}
.portal-bisnis-card__body {
    flex: 1;
    min-width: 0;
}
.portal-bisnis-card__head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 4px;
}
.portal-bisnis-card__title {
    font-family: Poppins, sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}
.portal-bisnis-card__badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    background: #ebe9ff;
    color: var(--primary);
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}
.portal-bisnis-card__meta {
    font-size: 12px;
    color: #9ca3af;
    margin: 0;
    line-height: 1.4;
}
.portal-bisnis-card__btn {
    display: block;
    width: 100%;
    padding: 10px 14px;
    border-radius: 10px;
    background: var(--primary);
    color: #fff;
    font-family: Poppins, sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: opacity 0.15s;
}
.portal-bisnis-card__btn:hover {
    opacity: 0.9;
    color: #fff;
}

/* Detail bisnis */
.portal-bisnis-detail__hero {
    padding-top: var(--portal-content-gap);
    padding-bottom: 24px;
    background-color: #eceef8;
    background-image:
        radial-gradient(ellipse 90% 70% at 50% -10%, rgba(123, 127, 232, 0.22) 0%, transparent 62%),
        linear-gradient(180deg, #eceef8 0%, rgba(236, 238, 248, 0.92) 55%, #f8f9fc 100%);
}
.portal-bisnis-detail__hero-inner {
    padding: 0 max(20px, var(--portal-pad-x));
    text-align: center;
}
.portal-bisnis-detail__icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 14px;
    border-radius: 18px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 8px 24px rgba(46, 49, 146, 0.14);
}
.portal-bisnis-detail__title {
    font-family: Poppins, sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 6px;
}
.portal-bisnis-detail__owner {
    font-size: 13px;
    color: #9ca3af;
    margin: 0 0 12px;
}
.portal-bisnis-detail__badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 999px;
    background: #ebe9ff;
    color: var(--primary);
    font-family: Poppins, sans-serif;
    font-size: 12px;
    font-weight: 600;
}
.portal-bisnis-detail__body {
    padding: 14px max(20px, var(--portal-pad-x)) 24px;
}
.portal-bisnis-detail__desc {
    background: rgba(255, 255, 255, 0.92);
    border-radius: 16px;
    padding: 14px 16px;
    font-size: 14px;
    line-height: 1.6;
    color: #4b5563;
    box-shadow: 0 4px 18px rgba(46, 49, 146, 0.07);
}
.portal-bisnis-detail__link {
    color: var(--primary);
    text-decoration: none;
    word-break: break-all;
}
.portal-bisnis-detail__link:hover {
    text-decoration: underline;
}
.portal-bisnis-detail__back-member {
    display: block;
    margin-top: 8px;
    padding: 14px;
    text-align: center;
    font-family: Poppins, sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 16px;
    box-shadow: 0 4px 18px rgba(46, 49, 146, 0.07);
}

/* ---- Public Profile (/P-{no}-{nama}) ---- */
.portal-public-profile {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}
.portal-public-profile--ready {
    opacity: 1;
    transform: none;
}
.portal-public-profile__hero {
    position: relative;
    padding: 12px var(--portal-pad-x) 0;
    overflow: hidden;
}
.portal-public-profile__hero-bg {
    position: absolute;
    inset: 0;
    background-color: #0047ab;
    background-image:
        radial-gradient(ellipse 55% 50% at 8% 18%, rgba(178, 230, 70, 0.38) 0%, transparent 62%),
        radial-gradient(ellipse 50% 45% at 92% 78%, rgba(162, 214, 69, 0.22) 0%, transparent 58%),
        linear-gradient(155deg, #003580 0%, #0047ab 42%, #0056b3 100%);
}
.portal-public-profile__card {
    position: relative;
    margin: 0 auto;
    max-width: 420px;
    padding: 14px 16px 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow:
        0 16px 40px rgba(0, 30, 80, 0.22),
        0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    overflow: hidden;
}
.portal-public-profile__card-strip {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #8bc34a 0%, #b2e646 35%, #c5e84a 50%, #a2d645 65%, #8bc34a 100%);
    background-size: 200% 100%;
}
.portal-public-profile__card--explorer .portal-public-profile__card-strip,
.portal-public-profile__card--achiever .portal-public-profile__card-strip,
.portal-public-profile__card--leader .portal-public-profile__card-strip,
.portal-public-profile__card--champion .portal-public-profile__card-strip {
    background: linear-gradient(90deg, #8bc34a 0%, #b2e646 35%, #c5e84a 50%, #a2d645 65%, #8bc34a 100%);
    background-size: 200% 100%;
}
.portal-public-profile__card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
}
.portal-public-profile__card-brand {
    font-family: Poppins, sans-serif;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--primary);
    opacity: 0.75;
}
.portal-public-profile__card-no {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 11px;
    font-weight: 700;
    color: #6b7280;
    padding: 3px 8px;
    border-radius: 6px;
    background: #f3f4f8;
}
.portal-public-profile__card-body {
    display: flex;
    align-items: center;
    gap: 14px;
    text-align: left;
}
.portal-public-profile__avatar {
    width: 88px;
    height: 88px;
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #fff;
    box-shadow: 0 8px 22px rgba(46, 49, 146, 0.18);
    background: linear-gradient(145deg, #ebe9ff, #fff);
    display: flex;
    align-items: center;
    justify-content: center;
}
.portal-public-profile__avatar--explorer { box-shadow: 0 8px 22px rgba(99, 102, 241, 0.25); }
.portal-public-profile__avatar--achiever { box-shadow: 0 8px 22px rgba(8, 145, 178, 0.25); }
.portal-public-profile__avatar--leader { box-shadow: 0 8px 22px rgba(124, 58, 237, 0.25); }
.portal-public-profile__avatar--champion { box-shadow: 0 8px 22px rgba(180, 83, 9, 0.28); }
.portal-public-profile__avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.portal-public-profile__avatar-initial {
    font-family: Poppins, sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
}
.portal-public-profile__identity {
    min-width: 0;
    flex: 1;
}
.portal-public-profile__name {
    font-family: Poppins, sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 8px;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.portal-public-profile__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}
.portal-public-profile__level {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-family: Poppins, sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
}
.portal-public-profile__level--explorer { background: #eef2ff; color: #4338ca; }
.portal-public-profile__level--achiever { background: #ecfeff; color: #0e7490; }
.portal-public-profile__level--leader { background: #f5f3ff; color: #6d28d9; }
.portal-public-profile__level--champion { background: #fffbeb; color: #b45309; }
.portal-public-profile__location {
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
}
.portal-public-profile__location::before {
    content: '·';
    margin-right: 6px;
    color: #d1d5db;
}
.portal-public-profile__stats {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    max-width: 420px;
    margin: -18px auto 0;
    padding: 0 var(--portal-pad-x) 20px;
}
.portal-public-profile__stat {
    background: rgba(255, 255, 255, 0.96);
    border-radius: 14px;
    padding: 10px 4px 8px;
    box-shadow: 0 6px 20px rgba(0, 30, 80, 0.12);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.8);
}
.portal-public-profile__stat-ico {
    display: block;
    font-size: 14px;
    line-height: 1;
    margin-bottom: 4px;
}
.portal-public-profile__stat-value {
    display: block;
    font-family: Poppins, sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.1;
}
.portal-public-profile__stat-label {
    display: block;
    margin-top: 2px;
    font-size: 9px;
    font-weight: 700;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.portal-public-profile__tabs-wrap {
    background: #fff;
    border-bottom: 1px solid #eceef4;
    position: sticky;
    top: 0;
    z-index: 20;
    box-shadow: 0 2px 12px rgba(46, 49, 146, 0.04);
}
.portal-public-profile__tabs .portal-event__tab {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 12px 12px 10px;
    font-size: 13px;
}
.portal-public-profile__tab-count {
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: rgba(46, 49, 146, 0.1);
    color: var(--primary);
    font-size: 10px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
}
.portal-event__tab.active .portal-public-profile__tab-count {
    background: rgba(46, 49, 146, 0.18);
}
.portal-public-profile__body {
    padding: 16px var(--portal-pad-x) 32px;
}
.portal-public-profile__body-inner--fade {
    animation: portalProfileFade 0.22s ease;
}
@keyframes portalProfileFade {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: none; }
}
.portal-public-profile__section {
    margin-bottom: 4px;
}
.portal-public-profile__section-title {
    margin: 0 0 12px;
    padding: 0 2px;
    font-family: Poppins, sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.portal-public-profile__panel .portal-member-detail__info {
    margin-top: 0;
}
.portal-public-profile__bio {
    margin-bottom: 16px;
    padding: 14px 16px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 18px rgba(46, 49, 146, 0.06);
    border-left: 3px solid var(--primary);
}
.portal-public-profile__bio-label {
    display: block;
    margin-bottom: 6px;
    font-family: Poppins, sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--primary);
}
.portal-public-profile__bio p {
    margin: 0;
    font-size: 14px;
    line-height: 1.65;
    color: #4b5563;
}
.portal-public-profile__info {
    background: #fff;
    border-radius: 16px;
    padding: 12px;
    box-shadow: 0 4px 18px rgba(46, 49, 146, 0.06);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.portal-public-profile__info-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px;
    border-bottom: none;
    border-radius: 12px;
    background: #f8f9fc;
}
.portal-public-profile__info-row:last-child:nth-child(odd):not(.portal-public-profile__info-row--full) {
    grid-column: 1 / -1;
}
.portal-public-profile__info-bisnis {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.portal-public-profile__info-bisnis .portal-public-profile__info-row {
    width: 100%;
}
.portal-public-profile__info-bizname {
    margin: 0;
    padding: 12px 14px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.45;
    color: #1f2937;
    word-break: break-word;
    background: linear-gradient(145deg, #f8f9fc, #f3f4f8);
    border-radius: 12px;
}
.portal-public-profile__info-ico {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #f3f4f8;
    font-size: 15px;
    line-height: 1;
}
.portal-public-profile__info-text {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.portal-public-profile__info-label {
    font-size: 11px;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.portal-public-profile__info-value {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.4;
    word-break: break-word;
}
.portal-public-profile__empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 40px 20px;
    color: #9ca3af;
    font-weight: 500;
}
.portal-public-profile__empty-ico {
    font-size: 32px;
    opacity: 0.6;
}
.portal-public-profile__biz-card {
    background: #fff;
    border-radius: 18px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 0 4px 18px rgba(46, 49, 146, 0.06);
    border: 1px solid rgba(46, 49, 146, 0.04);
    transition: box-shadow 0.15s;
}
.portal-public-profile__biz-card:last-child {
    margin-bottom: 0;
}
.portal-public-profile__biz-head {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}
.portal-public-profile__biz-logo {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    object-fit: cover;
    flex-shrink: 0;
    background: #f3f4f8;
}
.portal-public-profile__biz-logo--ph {
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: Poppins, sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
}
.portal-public-profile__biz-meta {
    min-width: 0;
    flex: 1;
}
.portal-public-profile__biz-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.portal-public-profile__biz-title {
    margin: 0;
    font-family: Poppins, sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
}
.portal-public-profile__biz-sub {
    margin: 4px 0 0;
    font-size: 13px;
    color: #6b7280;
}
.portal-public-profile__biz-count {
    margin: 4px 0 0;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
}
.portal-public-profile__biz-desc,
.portal-public-profile__biz-addr {
    margin: 12px 0 0;
    font-size: 13px;
    line-height: 1.55;
    color: #4b5563;
}
.portal-public-profile__biz-addr::before {
    content: '📍 ';
}
.portal-public-profile__biz-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}
.portal-public-profile__link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(46, 49, 146, 0.08);
    color: var(--primary);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s;
}
.portal-public-profile__link:active {
    background: rgba(46, 49, 146, 0.14);
}
.portal-public-profile__product-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.portal-public-profile__product-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(46, 49, 146, 0.06);
    border: 1px solid rgba(46, 49, 146, 0.04);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    transition: transform 0.15s, box-shadow 0.15s;
}
.portal-public-profile__product-card:active {
    transform: scale(0.98);
}
.portal-public-profile__product-media {
    position: relative;
    aspect-ratio: 4 / 3;
    background: linear-gradient(135deg, #eef0ff, #e8ebfa);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
}
.portal-public-profile__product-tag {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
    max-width: calc(100% - 16px);
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.62);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
.portal-public-profile__product-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}
.portal-public-profile__product-ph {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: Poppins, sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
    opacity: 0.45;
}
.portal-public-profile__product-body {
    padding: 10px 12px 12px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 3px;
    min-height: 0;
}
.portal-public-profile__product-title {
    margin: 0;
    font-family: Poppins, sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.portal-public-profile__product-price {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
}
.portal-public-profile__product-biz {
    margin: 0;
    font-size: 11px;
    color: #9ca3af;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.portal-public-profile__activity-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.portal-public-profile__activity-card {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(46, 49, 146, 0.06);
    border: 1px solid rgba(46, 49, 146, 0.04);
}
.portal-public-profile__activity-img {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
    background: #f3f4f8;
}
.portal-public-profile__activity-img--ph {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}
.portal-public-profile__activity-body {
    min-width: 0;
    flex: 1;
}
.portal-public-profile__activity-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 4px;
}
.portal-public-profile__activity-badge {
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.portal-public-profile__activity-badge--hadir,
.portal-public-profile__activity-badge--selesai {
    background: rgba(34, 197, 94, 0.12);
    color: #15803d;
}
.portal-public-profile__activity-badge--berjalan {
    background: rgba(59, 130, 246, 0.12);
    color: #1d4ed8;
}
.portal-public-profile__activity-badge--akan_datang {
    background: rgba(245, 158, 11, 0.12);
    color: #b45309;
}
.portal-public-profile__activity-date {
    font-size: 11px;
    font-weight: 600;
    color: #9ca3af;
}
.portal-public-profile__activity-title {
    margin: 0;
    font-family: Poppins, sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.35;
}
.portal-public-profile__activity-loc {
    margin: 4px 0 0;
    font-size: 12px;
    color: #6b7280;
}
.portal-public-profile__activity-loc::before {
    content: '📍 ';
}
.portal-public-profile__amanah-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.portal-public-profile__amanah-card {
    background: #fff;
    border-radius: 16px;
    padding: 14px 16px;
    box-shadow: 0 4px 16px rgba(46, 49, 146, 0.06);
    border: 1px solid rgba(46, 49, 146, 0.04);
    border-left: 3px solid var(--primary);
}
.portal-public-profile__amanah-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
}
.portal-public-profile__amanah-title {
    margin: 0;
    font-family: Poppins, sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.35;
}
.portal-public-profile__amanah-badge {
    flex-shrink: 0;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(46, 49, 146, 0.08);
    color: var(--primary);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.portal-public-profile__amanah-badge--aktif {
    background: rgba(34, 197, 94, 0.12);
    color: #15803d;
}
.portal-public-profile__amanah-meta {
    margin: 0;
    font-size: 13px;
    color: #6b7280;
    line-height: 1.45;
}
.portal-public-profile__amanah-note {
    margin: 8px 0 0;
    font-size: 12px;
    color: #9ca3af;
    line-height: 1.5;
}
@media (max-width: 380px) {
    .portal-public-profile__stats {
        grid-template-columns: repeat(2, 1fr);
        margin-top: -12px;
    }
    .portal-public-profile__card-body {
        flex-direction: column;
        text-align: center;
    }
    .portal-public-profile__meta {
        justify-content: center;
    }
    .portal-public-profile__product-grid {
        grid-template-columns: 1fr;
    }
    .portal-public-profile__tabs .portal-event__tab {
        padding: 12px 10px 10px;
        font-size: 12px;
    }
}

.portal-stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.portal-stat {
    background: rgba(255, 255, 255, 0.92);
    border-radius: 16px;
    padding: 14px 8px;
    text-align: center;
    box-shadow: 0 4px 18px rgba(46, 49, 146, 0.07);
}
.portal-stat__val { font-family: Poppins, sans-serif; font-size: 20px; font-weight: 700; color: var(--primary); }
.portal-stat__lbl { font-size: 11px; color: #9ca3af; margin-top: 4px; font-weight: 500; }

.portal-progress { height: 8px; background: rgba(255,255,255,.25); border-radius: 4px; overflow: hidden; margin-top: 8px; }
.portal-progress__bar { height: 100%; background: var(--secondary, #C9A227); border-radius: 4px; transition: width .4s; }

.portal-quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 16px; }
.portal-quick__item { display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; color: var(--text); font-size: 11px; }
.portal-quick__ico { width: 48px; height: 48px; border-radius: 14px; background: var(--primary-50, #eef0ff); display: flex; align-items: center; justify-content: center; font-size: 20px; }

.portal-list-item {
    display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border);
    text-decoration: none; color: inherit;
}
.portal-list-item:last-child { border-bottom: none; }
.portal-list-item__thumb { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; background: var(--bg-alt); flex-shrink: 0; }
.portal-list-item__body { flex: 1; min-width: 0; }
.portal-list-item__title { font-weight: 600; font-size: 14px; margin: 0 0 4px; }
.portal-list-item__meta { font-size: 12px; color: var(--muted); }

.portal-tabs { display: flex; gap: 8px; margin-bottom: 12px; overflow-x: auto; }
.portal-tab { padding: 8px 16px; border-radius: 20px; border: none; background: #fff; color: var(--muted); font-size: 13px; font-weight: 500; cursor: pointer; white-space: nowrap; }
.portal-tab.active { background: var(--primary); color: #fff; }

.portal-skeleton { background: linear-gradient(90deg, #eee 25%, #f5f5f5 50%, #eee 75%); background-size: 200% 100%; animation: portal-shimmer 1.2s infinite; border-radius: 8px; min-height: 80px; }
@keyframes portal-shimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }

.portal-auth-card { background: #fff; border-radius: 24px 24px 0 0; padding: 32px 24px; margin-top: auto; min-height: 50vh; }
.portal-welcome { min-height: 100vh; display: flex; flex-direction: column; padding: 40px 24px 0; color: #fff; text-align: center; }
.portal-welcome__logo { width: 80px; height: 80px; margin: 0 auto 16px; border-radius: 20px; background: rgba(255,255,255,.15); display: flex; align-items: center; justify-content: center; font-size: 32px; font-weight: 800; }
.portal-welcome__tagline { font-size: 14px; opacity: .9; margin-bottom: 32px; line-height: 1.5; }
.portal-btn { display: block; width: 100%; padding: 14px; border-radius: 12px; border: none; font-weight: 600; font-size: 15px; cursor: pointer; text-align: center; text-decoration: none; }
.portal-btn--primary { background: var(--primary); color: #fff; }
.portal-btn--outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); margin-top: 10px; }
.portal-btn--white { background: #fff; color: var(--primary); }
.portal-btn--ghost-white { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.6); margin-top: 10px; }

.portal-level-badge { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.2); padding: 6px 12px; border-radius: 20px; font-size: 13px; font-weight: 600; }
.portal-chip-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.portal-chip { padding: 6px 14px; border-radius: 16px; background: #fff; border: 1px solid var(--border); font-size: 12px; cursor: pointer; }
.portal-chip.active { background: var(--primary); color: #fff; border-color: var(--primary); }

.portal-donut { width: 120px; height: 120px; margin: 0 auto; position: relative; }
.portal-donut svg { transform: rotate(-90deg); }
.portal-donut__label { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; font-family: Poppins, sans-serif; font-weight: 700; font-size: 24px; }

.portal-empty { text-align: center; padding: 32px 16px; color: #9ca3af; font-size: 13px; }

.portal-form-group { margin-bottom: 14px; }
.portal-form-group label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 6px; }
.portal-form-group input, .portal-form-group select, .portal-form-group textarea {
    width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; font-size: 15px; box-sizing: border-box;
}

.portal-benefit-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.portal-benefit-item {
    background: rgba(255, 255, 255, 0.92);
    border-radius: 16px;
    padding: 16px 12px;
    text-align: center;
    box-shadow: 0 4px 18px rgba(46, 49, 146, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.95);
}
.portal-benefit-item__ico { font-size: 28px; margin-bottom: 8px; line-height: 1; }
.portal-benefit-item__title {
    font-family: Poppins, sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    line-height: 1.35;
}

.portal-news-scroll { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; margin: 0 -16px; padding-left: 16px; padding-right: 16px; }
.portal-news-card { flex: 0 0 240px; scroll-snap-align: start; border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.06); }
.portal-news-card img { width: 100%; height: 120px; object-fit: cover; }
.portal-news-card__body { padding: 10px 12px; }
.portal-news-card__title { font-size: 13px; font-weight: 600; margin: 0; }

.badge--portal { display: inline-block; padding: 3px 8px; border-radius: 6px; font-size: 11px; font-weight: 600; }
.badge--upcoming { background: #e8f4fd; color: #2E86C1; }
.badge--done { background: #e8f8ef; color: #1E8449; }
.badge--cancel { background: #fdecea; color: #C0392B; }

@media (max-width: 639px) {
    .portal-body:not(.portal-auth-body--member-login),
    .portal-auth-body:not(.portal-auth-body--member-login) {
        background: #f8f9fc;
    }
    .portal-body:not(.portal-auth-body--member-login) .portal-desktop-bg {
        background: #f8f9fc;
    }
    .portal-auth-body--member-login .portal-desktop-bg {
        background: transparent;
    }
}

/* ---- Desktop / web — bingkai mobile di tengah (sama dengan splash) ---- */
@media (min-width: 640px) {
    :root {
        --portal-width: var(--portal-frame-width);
        --portal-pad-x: 20px;
        --portal-splash-width: 420px;
    }

    .portal-desktop-bg,
    .portal-body,
    .portal-auth-body,
    .portal-auth-body--splash {
        background: #eef0f6;
        padding: 0;
        box-sizing: border-box;
    }
    .portal-auth-body--member-login,
    .portal-auth-body--member-login .portal-desktop-bg {
        background: transparent;
    }
    .portal-auth-body--member-login .portal-shell--frame {
        min-height: auto;
        max-width: 440px;
    }
    .portal-shell--frame {
        max-width: var(--portal-frame-width);
        width: 100%;
        margin: 0 auto;
        min-height: 100dvh;
    }
    .portal-shell--frame::after {
        border-radius: 0;
        box-shadow: var(--portal-glow-desktop);
    }
    .portal-shell--frame.portal-shell--app {
        height: 100dvh;
        max-height: 100dvh;
    }
    .portal-shell--app .portal-header {
        left: auto;
        right: auto;
        transform: none;
        max-width: 100%;
    }
    .portal-bottom-nav {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        max-width: var(--portal-frame-width);
        border-radius: 0;
    }
    .portal-shell--app .portal-bottom-nav {
        left: auto;
        right: auto;
        transform: none;
        max-width: 100%;
    }
    .portal-header {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        max-width: var(--portal-frame-width);
    }

    .portal-splash__logo-img {
        height: 78px;
        max-width: 168px;
    }

    .portal-gamifikasi__hero-wrap,
    .portal-kmb__hero-wrap,
    .portal-market-detail__cover {
        padding-left: var(--portal-pad-x);
        padding-right: var(--portal-pad-x);
    }
    .portal-gamifikasi__hero,
    .portal-kmb__hero {
        border-radius: 20px;
    }
    .portal-event-detail__cover {
        width: 148px;
    }
    .portal-event-detail__cover-btn,
    .portal-event-detail__cover-img,
    .portal-event-detail__cover-ph {
        border-radius: 16px;
    }
    .portal-market-detail__cover-img,
    .portal-market-detail__cover-ph {
        border-radius: 16px;
    }
}

@media (min-width: 768px) {
    .portal-splash__actions {
        flex-direction: row;
        padding: 12px var(--portal-pad-x) calc(6px + env(safe-area-inset-bottom));
        gap: 10px;
    }
    .portal-splash__actions .portal-btn { flex: 1; }
}

/* ---- Member login (TDA Passport) ---- */
.portal-auth-body--member-login {
    position: relative;
    overflow-x: hidden;
    background-color: #0047ab;
    background-image:
        radial-gradient(ellipse 52% 48% at 10% 14%, rgba(178, 230, 70, 0.42) 0%, rgba(162, 214, 69, 0.14) 38%, transparent 68%),
        radial-gradient(ellipse 48% 42% at 50% 92%, rgba(162, 214, 69, 0.32) 0%, rgba(162, 214, 69, 0.08) 40%, transparent 65%),
        linear-gradient(155deg, #003580 0%, #0047ab 38%, #0056b3 68%, #003878 100%);
}
.portal-auth-nodes-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    opacity: .82;
}
.portal-auth-body--member-login .portal-desktop-bg {
    position: relative;
    z-index: 2;
    background: transparent;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: max(32px, env(safe-area-inset-top)) 16px max(24px, env(safe-area-inset-bottom));
    box-sizing: border-box;
}
.portal-auth-body--member-login .portal-shell--frame {
    max-width: 440px;
    width: 100%;
    min-height: auto;
    flex-shrink: 0;
    animation: portalAuthFadeIn .45s cubic-bezier(.4, 0, .2, 1) both;
}
.portal-auth-body--member-login .portal-shell--frame::after {
    display: none;
}
@keyframes portalAuthFadeIn {
    from { opacity: 0; transform: translateY(16px) scale(.98); }
    to { opacity: 1; transform: none; }
}
.portal-auth--member-login {
    min-height: auto !important;
    height: auto !important;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
}
.portal-auth--member-login .portal-auth__frame {
    min-height: auto;
    height: auto;
    flex: 0 0 auto;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 24px 60px rgba(0, 40, 100, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.6);
}
.portal-auth--member-login .portal-auth__scroll {
    flex: 0 0 auto;
    min-height: 0;
    overflow: visible;
    padding: 32px 28px 28px;
}
.portal-auth--member-login .portal-auth__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.portal-auth--member-login .portal-auth__brand {
    text-align: center;
    margin-bottom: 24px;
    padding-bottom: 22px;
    border-bottom: 1px solid #eef0f4;
}
.portal-auth--member-login .portal-auth__logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(16px, 3vw, 24px);
    margin-bottom: 16px;
}
.portal-auth--member-login .portal-auth__logo {
    height: clamp(44px, 8vw, 52px);
    width: auto;
    max-width: none;
    object-fit: contain;
    margin: 0;
}
.portal-auth--member-login .portal-auth__logo--90 {
    border-radius: 4px;
    box-shadow: 0 8px 20px rgba(0, 71, 171, 0.12);
}
.portal-auth--member-login .portal-auth__title {
    font-family: Poppins, sans-serif;
    font-size: clamp(10px, 2.85vw, 15px);
    font-weight: 800;
    letter-spacing: -.045em;
    color: #1a1d3a;
    margin: 0;
    line-height: 1.2;
    white-space: nowrap;
}
.portal-auth--member-login .portal-auth__title-accent {
    color: #56ba5b;
}
.portal-auth--member-login .portal-field--plain label {
    font-size: 13px;
    font-weight: 700;
    color: #5c6078;
    margin-bottom: 6px;
}
.portal-auth--member-login .portal-field__wrap--plain input {
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid #dde1ea;
    background: #f8f9fc;
    font-size: 15px;
}
.portal-auth--member-login .portal-field__wrap--plain input:focus {
    background: #fff;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(46, 49, 146, 0.12);
}
.portal-auth--member-login .portal-field__wrap--select select {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid #dde1ea;
    background: #f8f9fc;
    font-family: Poppins, sans-serif;
    font-size: 15px;
    color: #1a1d3a;
    appearance: none;
}
.portal-auth--member-login .portal-field__wrap--select .select2-container {
    width: 100% !important;
}
.portal-auth--member-login .portal-field__wrap--select .select2-container--default .select2-selection--single {
    height: auto;
    min-height: 46px;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid #dde1ea;
    background: #f8f9fc;
    font-family: Poppins, sans-serif;
    font-size: 15px;
}
.portal-auth--member-login .portal-field__wrap--select .select2-container--default .select2-selection--single .select2-selection__rendered {
    padding: 0 28px 0 0;
    line-height: 1.4;
    color: #1a1d3a;
}
.portal-auth--member-login .portal-field__wrap--select .select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #9ca3af;
}
.portal-auth--member-login .portal-field__wrap--select .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100%;
    top: 0;
    right: 10px;
}
.portal-auth--member-login .portal-field__wrap--select .select2-container--default.select2-container--focus .select2-selection--single,
.portal-auth--member-login .portal-field__wrap--select .select2-container--default.select2-container--open .select2-selection--single {
    background: #fff;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(46, 49, 146, 0.12);
}
.portal-auth--member-login .select2-dropdown {
    border: 1px solid #dde1ea;
    border-radius: 10px;
    font-family: Poppins, sans-serif;
    font-size: 14px;
    box-shadow: 0 12px 32px rgba(26, 29, 58, 0.12);
    overflow: hidden;
}
.portal-auth--member-login .select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
    background: var(--primary, #2E3192);
}
.portal-auth--member-login .select2-search--dropdown .select2-search__field {
    border: 1px solid #dde1ea;
    border-radius: 8px;
    padding: 8px 10px;
    font-family: Poppins, sans-serif;
}
.portal-auth--member-login .portal-auth__daerah-wilayah {
    color: #8b8fa8;
    font-weight: 500;
}
.portal-auth--member-login .select2-results__option strong {
    font-weight: 700;
    color: #1a1d3a;
}
.portal-auth--member-login .portal-field__wrap--password input {
    padding-right: 44px;
}
.portal-auth--member-login .portal-auth__optional {
    font-weight: 500;
    color: #9ca3af;
    font-size: 12px;
}
.portal-auth--member-login.portal-auth--register .portal-auth__scroll {
    padding: 28px 28px 24px;
}
.portal-auth--member-login.portal-auth--register .portal-field--plain {
    margin-bottom: 14px;
}
.portal-auth--member-login .portal-auth__captcha-label {
    display: block;
    font-family: Poppins, sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #5c6078;
    margin-bottom: 7px;
}
.portal-auth--member-login .portal-auth__captcha-field {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    background: #f8f9fc;
    border: 1px solid #dde1ea;
    border-radius: 10px;
}
.portal-auth--member-login .portal-auth__captcha-field:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(46, 49, 146, 0.12);
    background: #fff;
}
.portal-auth--member-login .portal-auth__captcha-eq {
    flex: 0 0 auto;
    font-family: Poppins, sans-serif;
    font-size: 15px;
    color: var(--primary);
    white-space: nowrap;
}
.portal-auth--member-login .portal-auth__captcha-eq strong {
    font-size: 18px;
    font-weight: 800;
}
.portal-auth--member-login .portal-auth__captcha-input {
    flex: 1;
    width: auto;
    min-width: 0;
    padding: 10px 14px;
    border: 1px solid #dde1ea;
    border-radius: 8px;
    font-family: Poppins, sans-serif;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    letter-spacing: .04em;
    background: #fff;
    -moz-appearance: textfield;
}
.portal-auth--member-login .portal-auth__captcha-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(46, 49, 146, 0.12);
}
.portal-auth--member-login .portal-auth__captcha-input::-webkit-outer-spin-button,
.portal-auth--member-login .portal-auth__captcha-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.portal-auth--member-login .portal-btn--login-block {
    width: 100%;
    margin-top: 4px;
    padding: 14px 16px;
    border: none;
    border-radius: 12px;
    background: var(--primary, #2E3192);
    color: #fff;
    font-family: Poppins, sans-serif;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: transform .15s, box-shadow .15s, opacity .15s;
    box-shadow: 0 8px 20px rgba(46, 49, 146, 0.25);
}
.portal-auth--member-login .portal-btn--login-block:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(46, 49, 146, 0.3);
}
.portal-auth--member-login .portal-btn--login-block:disabled {
    opacity: .7;
    cursor: wait;
}
.portal-auth--member-login .portal-auth__switch {
    margin-top: 20px;
    text-align: center;
    font-size: 13px;
}
.portal-auth--member-login .portal-auth__otp {
    margin-top: 4px;
}
.portal-auth--member-login .portal-auth__otp-lead {
    margin: 0 0 4px;
    font-size: 13px;
    color: #6b7280;
    text-align: center;
}
.portal-auth--member-login .portal-auth__otp-email {
    margin: 0 0 16px;
    font-size: 14px;
    font-weight: 700;
    color: #1f2937;
    text-align: center;
    word-break: break-word;
}
.portal-auth--member-login .portal-auth__otp-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 14px 0 0;
    font-size: 13px;
    color: #9ca3af;
}
.portal-auth--member-login .portal-auth__link-btn {
    border: none;
    background: none;
    padding: 0;
    font: inherit;
    font-weight: 600;
    color: var(--primary);
    cursor: pointer;
}
.portal-auth--member-login .portal-auth__link-btn:disabled {
    opacity: .6;
    cursor: wait;
}
.portal-auth--member-login .portal-auth__divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 16px 0 14px;
    color: #8b8fa8;
    font-family: Poppins, sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
}
.portal-auth--member-login .portal-auth__divider::before,
.portal-auth--member-login .portal-auth__divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, #dde1ea, transparent);
}
.portal-auth--member-login .portal-auth__divider span {
    flex-shrink: 0;
}
.portal-auth--member-login .portal-auth__google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #dde1ea;
    border-radius: 10px;
    background: #fff;
    color: #1a1d3a;
    font-family: Poppins, sans-serif;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    box-sizing: border-box;
    transition: background .15s, border-color .15s, box-shadow .15s, transform .15s;
}
.portal-auth--member-login .portal-auth__google:hover {
    background: #f8f9fc;
    border-color: #c5cad6;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    transform: translateY(-1px);
}
.portal-auth--member-login .portal-auth__google:active {
    transform: translateY(0);
    box-shadow: none;
}
.portal-auth--member-login .portal-auth__footer {
    flex-shrink: 0;
    margin: 14px 0 0;
    padding: 0 4px;
    text-align: center;
    font-family: Poppins, sans-serif;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.72);
    font-weight: 500;
}
@media (min-width: 640px) {
    .portal-auth-body--member-login,
    .portal-auth-body--member-login .portal-desktop-bg {
        background-color: transparent;
        background-image: none;
    }
    .portal-auth-body--member-login {
        background-color: #0047ab;
        background-image:
            radial-gradient(ellipse 52% 48% at 10% 14%, rgba(178, 230, 70, 0.42) 0%, rgba(162, 214, 69, 0.14) 38%, transparent 68%),
            radial-gradient(ellipse 48% 42% at 50% 92%, rgba(162, 214, 69, 0.32) 0%, rgba(162, 214, 69, 0.08) 40%, transparent 65%),
            linear-gradient(155deg, #003580 0%, #0047ab 38%, #0056b3 68%, #003878 100%);
    }
}

/* Registrasi Google OAuth */
.portal-auth--register-google .portal-auth__subtitle {
    margin: 8px 0 0;
    font-size: 13px;
    color: #6b7280;
    line-height: 1.45;
    text-align: center;
}
.portal-auth__google-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    margin-bottom: 16px;
    border-radius: 12px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
}
.portal-auth__google-badge strong {
    display: block;
    font-size: 14px;
    color: #111827;
}
.portal-auth__google-badge span {
    display: block;
    font-size: 12px;
    color: #6b7280;
    margin-top: 2px;
}
.portal-auth__google-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.portal-auth__steps {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}
.portal-auth__step {
    flex: 1;
    text-align: center;
    padding: 8px 6px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    color: #9ca3af;
    background: #f3f4f6;
}
.portal-auth__step.is-active {
    color: var(--primary);
    background: rgba(46, 49, 146, 0.1);
}
.portal-auth__step.is-done {
    color: #166534;
    background: #f0fdf4;
}
.portal-auth__step-lead {
    margin: 0 0 14px;
    font-size: 13px;
    color: #4b5563;
    line-height: 1.45;
}
.portal-auth__required {
    color: #dc2626;
}
.portal-auth__daerah-chosen {
    margin-bottom: 14px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
}
.portal-auth__daerah-chosen-label {
    display: block;
    font-size: 11px;
    color: #6b7280;
    margin-bottom: 2px;
}
.portal-auth__daerah-chosen strong {
    font-size: 14px;
    color: #1e40af;
}
.portal-auth__step-actions {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 10px;
    margin-top: 4px;
}
.portal-btn--ghost-block {
    width: 100%;
    padding: 12px 16px;
    border-radius: 10px;
    border: 1px solid #dde1ea;
    background: #fff;
    color: #374151;
    font-family: Poppins, sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}
.portal-field__readonly {
    background: #f3f4f6 !important;
    color: #6b7280;
    cursor: not-allowed;
}

/* ---- Edit Profil (halaman dedicated) ---- */
.portal-edit-profil {
    padding-bottom: 32px;
}
.portal-edit-profil__top {
    padding: 12px var(--portal-pad-x) 8px;
}
.portal-edit-profil__back {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    margin-bottom: 8px;
}
.portal-edit-profil__title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
}
.portal-edit-profil__photo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px var(--portal-pad-x) 18px;
    background: #fff;
    border-bottom: 1px solid #eceef4;
}
.portal-edit-profil__avatar-wrap {
    position: relative;
    width: 96px;
    height: 96px;
    flex-shrink: 0;
}
.portal-edit-profil__avatar {
    width: 96px;
    height: 96px;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(135deg, #e8eaf6, #c5cae9);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e8eaf2;
}
.portal-edit-profil__avatar-btn {
    border: none;
    padding: 0;
    cursor: pointer;
}
.portal-edit-profil__edit-ico {
    position: absolute;
    top: -4px;
    right: -4px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 2px solid #fff;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(46, 49, 146, 0.25);
    transition: transform 0.15s, background 0.15s;
}
.portal-edit-profil__edit-ico svg {
    width: 13px;
    height: 13px;
    display: block;
}
.portal-edit-profil__edit-ico:hover {
    transform: scale(1.05);
    background: #252878;
}
.portal-edit-profil__avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.portal-edit-profil__avatar-initial {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
}
.portal-edit-profil__photo-hint {
    margin: 0;
    font-size: 12px;
    color: #9ca3af;
    text-align: center;
    line-height: 1.45;
    max-width: 280px;
}
.portal-btn--sm {
    padding: 8px 14px;
    font-size: 13px;
}
.portal-edit-profil__form {
    padding: 0 var(--portal-pad-x) 24px;
}
.portal-edit-profil__section {
    margin-top: 16px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 4px 18px rgba(46, 49, 146, 0.06);
}
.portal-edit-profil__section-title {
    margin: 0 0 14px;
    font-size: 15px;
    font-weight: 700;
    color: #374151;
}
.portal-edit-profil__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.portal-edit-profil__field--wide {
    grid-column: 1 / -1;
}
.portal-edit-profil__form .portal-form-group label {
    font-size: 13px;
    font-weight: 600;
    color: #4b5563;
    margin-bottom: 6px;
    display: block;
}
.portal-edit-profil__form .portal-form-group input,
.portal-edit-profil__form .portal-form-group select,
.portal-edit-profil__form .portal-form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e8eaf2;
    border-radius: 10px;
    font-family: Poppins, sans-serif;
    font-size: 14px;
    background: #f8f9fc;
    color: #1f2937;
}
.portal-edit-profil__form .portal-form-group textarea {
    min-height: 88px;
    resize: vertical;
    line-height: 1.45;
}
.portal-edit-profil__form .portal-form-group input.is-readonly,
.portal-edit-profil__form .portal-form-group input:disabled {
    background: #f3f4f6;
    color: #6b7280;
    cursor: not-allowed;
}
.portal-edit-profil__form .portal-form-group select:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
.portal-req {
    color: #ef4444;
}
.portal-edit-profil__actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    padding: 0 var(--portal-pad-x);
}
.portal-edit-profil__actions .portal-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 14px;
    margin-top: 0;
    box-sizing: border-box;
    text-align: center;
    text-decoration: none;
}
.portal-edit-profil__actions .portal-btn--outline {
    margin-top: 0;
}
.portal-edit-profil__file-input {
    width: 100%;
    font-family: Poppins, sans-serif;
    font-size: 14px;
}
.portal-edit-profil__compress-status {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: #9ca3af;
    line-height: 1.4;
}
.portal-profile-photo-modal__preview {
    position: relative;
    width: 140px;
    height: 140px;
    margin: 0 auto 16px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e8eaf2;
    background: #f8f9fc;
}
.portal-profile-photo-modal__preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}
.portal-profile-photo-modal__preview img.is-empty {
    display: none;
}
.portal-profile-photo-modal__preview.is-empty::before {
    content: attr(data-initial);
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
    font-weight: 700;
    color: var(--primary);
    background: linear-gradient(135deg, #e8eaf6, #c5cae9);
}
.portal-passport-modal .portal-form-group input[type="file"] {
    width: 100%;
    font-family: Poppins, sans-serif;
    font-size: 14px;
}
.portal-edit-profil__avatar--logo {
    border-radius: 12px;
}
.portal-edit-profil__checks {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
}
.portal-edit-profil__check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #374151;
    cursor: pointer;
}
.portal-edit-profil__check input {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
}
.portal-edit-profil__subsection-title {
    margin: 16px 0 10px;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}
.portal-edit-profil__org-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
}
.portal-edit-profil__org-opt {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid #e8eaf2;
    border-radius: 10px;
    font-size: 13px;
    cursor: pointer;
    background: #fff;
}
.portal-edit-profil__org-opt:has(input:checked) {
    border-color: var(--primary);
    background: #f5f6ff;
}
.portal-edit-profil__form select[multiple] {
    min-height: 120px;
}
a.portal-passport__item-edit {
    text-decoration: none;
}
@media (max-width: 520px) {
    .portal-edit-profil__grid {
        grid-template-columns: 1fr;
    }
}

