/* 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-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;
    scrollbar-width: thin;
    scrollbar-color: rgba(46, 49, 146, 0.28) transparent;
    padding: calc(20px + env(safe-area-inset-top)) var(--portal-pad-x) 28px;
    scroll-padding-bottom: 20px;
}
.portal-auth__scroll::-webkit-scrollbar {
    width: 6px;
}
.portal-auth__scroll::-webkit-scrollbar-track {
    background: transparent;
    margin: 8px 0;
}
.portal-auth__scroll::-webkit-scrollbar-thumb {
    background: rgba(46, 49, 146, 0.22);
    border-radius: 999px;
    border: 2px solid transparent;
    background-clip: padding-box;
}
.portal-auth__scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(46, 49, 146, 0.38);
    background-clip: padding-box;
}
.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-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: 18px;
    color: var(--primary);
}
.portal-header__title {
    flex: 1;
    text-align: center;
    font-family: Poppins, sans-serif;
    font-weight: 700;
    font-size: 17px;
    color: var(--text, #1f2937);
    margin: 0 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.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: 6px;
    min-width: 0;
    font-family: Poppins, sans-serif;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.05em;
    color: var(--primary);
    white-space: nowrap;
}
.portal-header__brand-name {
    overflow: hidden;
    text-overflow: ellipsis;
}
.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); margin-left: auto; }
.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;
    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 {
    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);
}

/* ---- Direktori ---- */
.portal-direktori__subtabs-wrap {
    background: #fff;
    border-bottom: 1px solid #eceef4;
    padding: 10px var(--portal-pad-x) 12px;
}
.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: 7px 14px;
    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-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__search { margin-bottom: 10px; }
.portal-market__toolbar-row {
    display: flex;
    align-items: center;
    gap: 8px;
}
.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__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;
    background: linear-gradient(135deg, #eef0ff, #e8ebfa);
    aspect-ratio: 1;
    max-height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.portal-market-detail__cover--logo {
    aspect-ratio: 16 / 10;
    max-height: 200px;
}
.portal-market-detail__cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.portal-market-detail__cover-ph {
    width: 88px;
    height: 88px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.7);
    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 .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__title {
    font-family: Poppins, sans-serif;
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 8px;
    line-height: 1.35;
    color: var(--text, #1f2937);
}
.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;
}
.portal-market-detail__body {
    padding-bottom: 24px;
}
.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;
}
.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;
}
.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;
}
.portal-event__meta {
    font-family: Poppins, sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: #9ca3af;
    margin: 0 0 10px;
    line-height: 1.4;
}
.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__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);
}
.portal-gamifikasi__body {
    padding: 14px var(--portal-pad-x) 16px;
}
.portal-gamifikasi__stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 18px;
}
.portal-gamifikasi__stat {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 12px;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 16px;
    box-shadow: 0 4px 18px rgba(46, 49, 146, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.95);
}
.portal-gamifikasi__stat--link {
    text-decoration: none;
    color: inherit;
    transition: transform 0.15s;
}
.portal-gamifikasi__stat--link:hover { transform: translateY(-1px); }
.portal-gamifikasi__stat-ico { font-size: 28px; line-height: 1; flex-shrink: 0; }
.portal-gamifikasi__stat small {
    display: block;
    font-size: 11px;
    color: #9ca3af;
    margin-bottom: 2px;
}
.portal-gamifikasi__stat strong {
    font-family: Poppins, sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
}
.portal-gamifikasi__section-title {
    font-family: Poppins, sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 12px;
}
.portal-gamifikasi__log {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.portal-gamifikasi__log-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 16px;
    box-shadow: 0 4px 18px rgba(46, 49, 146, 0.07);
}
.portal-gamifikasi__log-ico {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #ebe9ff;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.portal-gamifikasi__log-ico svg { width: 20px; height: 20px; }
.portal-gamifikasi__log-text {
    flex: 1;
    min-width: 0;
}
.portal-gamifikasi__log-text strong {
    display: block;
    font-family: Poppins, sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 2px;
}
.portal-gamifikasi__log-text small {
    display: block;
    font-size: 11px;
    color: #9ca3af;
}
.portal-gamifikasi__log-poin {
    font-family: Poppins, sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
    white-space: nowrap;
}
.portal-gamifikasi__log-empty { padding: 24px 12px; }

/* ---- 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__cover {
    padding-top: var(--portal-content-gap);
}
.portal-event-detail__cover-img,
.portal-event-detail__cover-ph {
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 0;
    object-fit: cover;
    display: block;
    background: linear-gradient(135deg, #eef0ff, #e8eaf2);
}
.portal-event-detail__body {
    padding: 14px var(--portal-pad-x) 20px;
}
.portal-event-detail__title {
    font-family: Poppins, sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 12px;
    line-height: 1.35;
}
.portal-event-detail__meta {
    list-style: none;
    margin: 0 0 14px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.portal-event-detail__meta li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: #6b7280;
    line-height: 1.4;
}
.portal-event-detail__meta-ico {
    width: 22px;
    text-align: center;
    flex-shrink: 0;
}
.portal-event-detail__divider {
    border: none;
    border-top: 1px solid #eceef4;
    margin: 0 0 14px;
}
.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 {
    padding: 14px 16px;
    border-radius: 14px;
    background: #ebe9ff;
    color: var(--primary);
    margin-bottom: 16px;
}
.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: 16px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 10px;
}
.portal-event-detail__desc-text {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.6;
}
.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;
}

.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"); }

/* ---- Beranda / Home ---- */
.portal-home {
    padding-bottom: 8px;
    margin: 0;
}
.portal-home__top {
    padding: 0 var(--portal-pad-x) 20px;
    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: 20px;
}
.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;
}
.portal-home-hero {
    position: relative;
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 12px;
    padding: 20px;
    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; }
.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: 28px;
    font-weight: 800;
    margin: 0 0 14px;
    line-height: 1.1;
    color: #fff;
}
.portal-home-hero__label,
.portal-home-hero__meta {
    color: #fff;
}
.portal-home-hero__meta {
    display: flex;
    justify-content: space-between;
    font-family: Poppins, sans-serif;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 8px;
    opacity: 0.95;
}
.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: 52px;
    line-height: 1;
    align-self: center;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
    z-index: 1;
}
.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; }

/* ---- 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__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__title {
    font-family: Poppins, sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 4px;
    line-height: 1.3;
}
.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-tabs-page__body--card {
    padding-top: 14px;
}
.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(46, 49, 146, 0.28),
        0 0 0 1px rgba(255, 255, 255, 0.12) inset;
}
.portal-member-card__bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 85% 15%, rgba(212, 172, 13, 0.35) 0%, transparent 42%),
        radial-gradient(circle at 10% 90%, rgba(255, 255, 255, 0.12) 0%, transparent 45%),
        linear-gradient(135deg, #1a1d5c 0%, #2e3192 38%, #5b5fd6 72%, #4346b8 100%);
}
.portal-member-card__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 8px,
        rgba(255, 255, 255, 0.03) 8px,
        rgba(255, 255, 255, 0.03) 9px
    );
    pointer-events: none;
}
.portal-member-card__inner {
    position: relative;
    z-index: 1;
    height: 100%;
    padding: 18px 20px 16px;
    display: flex;
    flex-direction: column;
    color: #fff;
    box-sizing: border-box;
}
.portal-member-card__head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}
.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__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__chip {
    width: 38px;
    height: 28px;
    border-radius: 6px;
    margin-bottom: 14px;
    background: linear-gradient(135deg, #f4d03f 0%, #d4ac0d 45%, #f9e79f 100%);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    opacity: 0.95;
}
.portal-member-card__body {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
    min-height: 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__no {
    font-family: 'Courier New', monospace;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    opacity: 0.92;
    margin-bottom: 6px;
}
.portal-member-card__level {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.28);
    font-family: Poppins, sans-serif;
    font-size: 10px;
    font-weight: 600;
}
.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__meta {
    flex: 1;
    min-width: 0;
}
.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: 72px;
    height: 72px;
    border-radius: 8px;
    background: #fff;
    padding: 4px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.portal-member-card__hint {
    font-size: 12px;
    color: #9ca3af;
    text-align: center;
    margin: 0;
    line-height: 1.5;
    max-width: 300px;
}
.portal-member-card__link {
    font-family: Poppins, sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
}
.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);
}

.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,
    .portal-auth-body,
    .portal-desktop-bg {
        background: #f8f9fc;
    }
}

/* ---- 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-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-event-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-img,
    .portal-event-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; }
}
