        /* Credit-account screens (Tim / Kredit / Pesanan aktif): one full-screen sheet opened from the
           bottom nav. The same cp-* cards also render inside the Profil panel. */

        /* ---- Sheet chrome ---- */
        #corp-sheet.modal-overlay {
            padding: 0;
            align-items: stretch;
            background: rgba(17, 24, 39, 0.45);
        }

        #corp-sheet .corp-sheet {
            width: 100%;
            max-width: 520px;
            height: 100%;
            max-height: none;
            margin: 0 auto;
            border-radius: 0;
            background: var(--gray-50);
            box-shadow: none;
            transform: translateY(24px);
            opacity: 0;
            transition: transform .32s cubic-bezier(.2, .8, .2, 1), opacity .2s ease;
        }

        #corp-sheet.open .corp-sheet {
            transform: translateY(0);
            opacity: 1;
        }

        .cp-sheet-head {
            position: sticky;
            top: 0;
            z-index: 2;
            display: flex;
            align-items: center;
            gap: 12px;
            padding: calc(env(safe-area-inset-top, 0px) + 14px) 16px 14px;
            background: var(--nav-color);
            color: #fff;
        }

        .cp-sheet-back {
            width: 40px;
            height: 40px;
            flex-shrink: 0;
            border: none;
            border-radius: 12px;
            background: rgba(255, 255, 255, 0.14);
            color: #fff;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: background .2s ease;
        }

        .cp-sheet-back:hover {
            background: rgba(255, 255, 255, 0.24);
        }

        .cp-sheet-title {
            font-size: 18px;
            font-weight: 800;
            line-height: 1.2;
            margin: 0;
        }

        .cp-sheet-subtitle {
            font-size: 12px;
            opacity: .75;
            margin-top: 2px;
        }

        #corp-sheet .cp-sheet-body {
            flex: 1;
            overflow-y: auto;
            -webkit-overflow-scrolling: touch;
            padding: 16px 16px calc(env(safe-area-inset-bottom, 0px) + 24px);
        }

        /* ---- Hero (balance) ---- */
        .cp-hero {
            background: var(--nav-color);
            color: #fff;
            border-radius: 20px;
            padding: 18px 20px 20px;
            margin-bottom: 16px;
        }

        .cp-hero-label {
            font-size: 12px;
            font-weight: 600;
            letter-spacing: .02em;
            opacity: .75;
        }

        .cp-hero-value {
            font-size: 40px;
            font-weight: 800;
            line-height: 1.05;
            margin-top: 4px;
            display: flex;
            align-items: baseline;
            gap: 8px;
        }

        .cp-hero-value span {
            font-size: 15px;
            font-weight: 600;
            opacity: .8;
        }

        .cp-hero-note {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            margin-top: 10px;
            font-size: 12px;
            padding: 5px 10px;
            border-radius: 999px;
            background: rgba(255, 255, 255, 0.12);
        }

        .cp-hero-stats {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 8px;
            margin-top: 16px;
        }

        .cp-hero-stats div {
            background: rgba(255, 255, 255, 0.1);
            border-radius: 14px;
            padding: 10px 12px;
            display: flex;
            flex-direction: column;
            gap: 2px;
        }

        .cp-hero-stats strong {
            font-size: 18px;
            font-weight: 800;
        }

        .cp-hero-stats span {
            font-size: 11px;
            opacity: .75;
            line-height: 1.3;
        }

        /* ---- Cards ---- */
        .cp-card {
            background: #fff;
            border: 1px solid var(--gray-100);
            border-radius: 20px;
            padding: 16px;
            margin-bottom: 12px;
            box-shadow: 0 1px 2px rgba(17, 24, 39, 0.04);
        }

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

        .cp-card-head h4 {
            font-size: 15px;
            font-weight: 800;
            color: var(--gray-900);
            margin: 0;
        }

        .cp-card-head p {
            font-size: 12px;
            color: var(--gray-500);
            margin: 2px 0 0;
            line-height: 1.4;
        }

        .cp-count {
            min-width: 26px;
            height: 26px;
            padding: 0 8px;
            border-radius: 999px;
            background: var(--gray-100);
            color: var(--gray-700);
            font-size: 12px;
            font-weight: 700;
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }

        .cp-muted {
            font-size: 12px;
            color: var(--gray-500);
            line-height: 1.4;
        }

        /* ---- Inputs & buttons ---- */
        .cp-invite {
            display: flex;
            gap: 8px;
        }

        .cp-input-wrap {
            flex: 1;
            min-width: 0;
            position: relative;
            display: flex;
            align-items: center;
        }

        .cp-input-wrap svg {
            position: absolute;
            left: 12px;
            width: 18px;
            height: 18px;
            color: var(--gray-400);
            pointer-events: none;
        }

        input.cp-input {
            width: 100%;
            min-width: 0;
            height: 46px;
            padding: 0 14px;
            border: 1.5px solid var(--gray-200);
            border-radius: 14px;
            background: var(--gray-50);
            font: inherit;
            font-size: 15px;
            color: var(--gray-900);
            transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
        }

        .cp-input-wrap input.cp-input {
            padding-left: 40px;
        }

        input.cp-input:focus {
            outline: none;
            border-color: var(--nav-color);
            background: #fff;
            box-shadow: 0 0 0 3px color-mix(in srgb, var(--nav-color) 15%, transparent);
        }

        input.cp-input:disabled {
            color: var(--gray-400);
            background: var(--gray-100);
        }

        .cp-btn {
            height: 46px;
            padding: 0 16px;
            border: none;
            border-radius: 14px;
            font: inherit;
            font-size: 14px;
            font-weight: 700;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            cursor: pointer;
            white-space: nowrap;
            flex-shrink: 0;
            transition: transform .15s ease, background .2s ease, opacity .2s ease;
        }

        .cp-btn svg {
            width: 18px;
            height: 18px;
        }

        .cp-btn:active {
            transform: scale(.97);
        }

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

        .cp-btn-primary:hover {
            background: color-mix(in srgb, var(--nav-color) 88%, black);
        }

        .cp-btn-soft {
            background: var(--gray-100);
            color: var(--gray-800);
        }

        .cp-btn-soft:hover {
            background: var(--gray-200);
        }

        .cp-btn-block {
            width: 100%;
        }

        .cp-link-danger {
            border: none;
            background: none;
            padding: 6px 0;
            font: inherit;
            font-size: 13px;
            font-weight: 600;
            color: var(--danger);
            display: inline-flex;
            align-items: center;
            gap: 6px;
            cursor: pointer;
        }

        .cp-link-danger svg {
            width: 15px;
            height: 15px;
        }

        .cp-error {
            margin-top: 10px;
            padding: 10px 12px;
            border-radius: 12px;
            background: var(--danger-light);
            color: #991b1b;
            font-size: 13px;
        }

        /* ---- Switch ---- */
        .cp-switch {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            font-size: 13px;
            font-weight: 600;
            color: var(--gray-700);
            cursor: pointer;
            user-select: none;
        }

        .cp-switch input {
            position: absolute;
            opacity: 0;
            pointer-events: none;
        }

        .cp-switch-track {
            width: 40px;
            height: 24px;
            border-radius: 999px;
            background: var(--gray-300);
            position: relative;
            transition: background .2s ease;
            flex-shrink: 0;
        }

        .cp-switch-track::after {
            content: '';
            position: absolute;
            top: 3px;
            left: 3px;
            width: 18px;
            height: 18px;
            border-radius: 50%;
            background: #fff;
            box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
            transition: transform .2s ease;
        }

        .cp-switch input:checked + .cp-switch-track {
            background: var(--nav-color);
        }

        .cp-switch input:checked + .cp-switch-track::after {
            transform: translateX(16px);
        }

        .cp-switch input:focus-visible + .cp-switch-track {
            box-shadow: 0 0 0 3px color-mix(in srgb, var(--nav-color) 25%, transparent);
        }

        /* ---- Avatars & chips ---- */
        .cp-avatar {
            width: 42px;
            height: 42px;
            flex-shrink: 0;
            border-radius: 14px;
            background: color-mix(in srgb, var(--nav-color) 12%, white);
            color: var(--nav-color);
            font-weight: 800;
            font-size: 15px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .cp-avatar-sm {
            width: 36px;
            height: 36px;
            border-radius: 12px;
            font-size: 13px;
        }

        .cp-chip {
            font-size: 11px;
            font-weight: 700;
            padding: 4px 10px;
            border-radius: 999px;
            white-space: nowrap;
            background: var(--gray-100);
            color: var(--gray-700);
        }

        .cp-chip-ok,
        .cp-chip.ready,
        .cp-chip.completed {
            background: var(--status-completed-bg);
            color: var(--status-completed-text);
        }

        .cp-chip-wait,
        .cp-chip.awaiting_confirmation,
        .cp-chip.pending {
            background: var(--status-pending-bg);
            color: var(--status-pending-text);
        }

        .cp-chip.preparing {
            background: var(--status-preparing-bg);
            color: var(--status-preparing-text);
        }

        .cp-chip.cancelled {
            background: var(--status-cancelled-bg);
            color: var(--status-cancelled-text);
        }

        /* ---- Members ---- */
        .cp-member {
            padding: 14px 0;
            border-top: 1px solid var(--gray-100);
        }

        .cp-member:last-child {
            padding-bottom: 0;
        }

        .cp-row {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .cp-row-main {
            flex: 1;
            min-width: 0;
        }

        .cp-name {
            font-size: 14px;
            font-weight: 700;
            color: var(--gray-900);
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .cp-allow {
            margin-top: 12px;
            padding: 12px;
            border-radius: 14px;
            background: var(--gray-50);
        }

        .cp-allow-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
            margin-bottom: 10px;
        }

        .cp-allow-title {
            font-size: 13px;
            font-weight: 700;
            color: var(--gray-800);
        }

        .cp-allow-row {
            display: flex;
            gap: 8px;
        }

        .cp-allow-row input.cp-input {
            flex: 1;
            height: 42px;
            background: #fff;
        }

        .cp-allow-row input.cp-input:disabled {
            background: var(--gray-100);
        }

        .cp-allow-row .cp-btn {
            height: 42px;
        }

        .cp-member-foot {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
            margin-top: 8px;
        }

        /* ---- Lists (usage, batches, orders) ---- */
        .cp-list-row {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px 0;
            border-bottom: 1px solid var(--gray-100);
        }

        .cp-list-row:last-child {
            border-bottom: none;
            padding-bottom: 0;
        }

        .cp-list-row:first-child {
            padding-top: 0;
        }

        .cp-list-end {
            text-align: right;
            flex-shrink: 0;
            display: flex;
            flex-direction: column;
            align-items: flex-end;
            gap: 4px;
        }

        .cp-list-end strong {
            font-size: 15px;
            font-weight: 800;
            color: var(--gray-900);
        }

        .cp-progress {
            height: 6px;
            border-radius: 999px;
            background: var(--gray-100);
            overflow: hidden;
            margin-top: 8px;
        }

        .cp-progress span {
            display: block;
            height: 100%;
            border-radius: inherit;
            background: var(--nav-color);
        }

        .cp-order {
            width: 100%;
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 14px;
            margin-bottom: 10px;
            border: 1px solid var(--gray-100);
            border-radius: 18px;
            background: #fff;
            font: inherit;
            color: inherit;
            text-align: left;
            cursor: pointer;
            box-shadow: 0 1px 2px rgba(17, 24, 39, 0.04);
            transition: border-color .2s ease, transform .15s ease;
        }

        .cp-order:hover {
            border-color: var(--gray-200);
        }

        .cp-order:active {
            transform: scale(.99);
        }

        .cp-order-icon {
            width: 44px;
            height: 44px;
            flex-shrink: 0;
            border-radius: 14px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: var(--gray-100);
            color: var(--gray-600);
        }

        .cp-order-icon.awaiting_confirmation,
        .cp-order-icon.pending {
            background: var(--status-pending-bg);
            color: var(--status-pending-text);
        }

        .cp-order-icon.preparing {
            background: var(--status-preparing-bg);
            color: var(--status-preparing-text);
        }

        .cp-order-icon.ready {
            background: var(--status-completed-bg);
            color: var(--status-completed-text);
        }

        .cp-order-top {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
            margin-bottom: 3px;
        }

        .cp-order-top strong {
            font-size: 14px;
            white-space: nowrap;
        }

        .cp-chevron {
            color: var(--gray-300);
            flex-shrink: 0;
        }

        /* ---- Empty states ---- */
        .cp-empty {
            text-align: center;
            padding: 18px 8px 6px;
        }

        .cp-empty-icon {
            width: 52px;
            height: 52px;
            margin: 0 auto 10px;
            border-radius: 16px;
            background: var(--gray-100);
            color: var(--gray-400);
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .cp-empty-title {
            font-size: 14px;
            font-weight: 700;
            color: var(--gray-800);
            margin-bottom: 4px;
        }

        .cp-empty-lg {
            padding: 56px 16px 24px;
        }

        .cp-empty-lg .cp-empty-icon {
            width: 72px;
            height: 72px;
            border-radius: 24px;
        }

        .cp-empty-lg .cp-btn {
            margin-top: 18px;
        }

        /* ---- Company link (corporate user) ---- */
        .cp-company-allow {
            margin-top: 12px;
            padding: 12px;
            border-radius: 14px;
            background: var(--gray-50);
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
        }

        .cp-company-allow strong {
            font-size: 16px;
            font-weight: 800;
            color: var(--gray-900);
        }

        .cp-invite-card {
            border: 1.5px solid color-mix(in srgb, var(--accent) 45%, white);
            background: var(--accent-light);
            border-radius: 16px;
            padding: 14px;
        }

        .cp-invite-card + .cp-invite-card {
            margin-top: 10px;
        }

        .cp-invite-actions {
            display: flex;
            gap: 8px;
            margin-top: 12px;
        }

        .cp-invite-actions .cp-btn {
            flex: 1;
            height: 42px;
        }

        .cp-skeleton {
            height: 92px;
            border-radius: 20px;
            margin-bottom: 12px;
            background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-50) 50%, var(--gray-100) 75%);
            background-size: 200% 100%;
            animation: cp-shimmer 1.2s ease-in-out infinite;
        }

        @keyframes cp-shimmer {
            to { background-position: -200% 0; }
        }

        @media (prefers-reduced-motion: reduce) {
            #corp-sheet .corp-sheet,
            .cp-skeleton {
                transition: none;
                animation: none;
            }
        }

        /* ---- Greeting: credit chip (right of "Hello,") ---- */
        .hello-top {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
            min-width: 0;
        }

        .hello-credits {
            flex-shrink: 1;
            min-width: 0;
            max-width: 100%;
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 7px 12px;
            border-radius: 999px;
            border: 1px solid #FDE68A;
            background: var(--accent-light);
            color: var(--status-pending-text);
            font: inherit;
            cursor: pointer;
            transition: background .2s ease, transform .15s ease;
        }

        .hello-credits:hover {
            background: #FDE68A;
        }

        .hello-credits:active {
            transform: scale(.96);
        }

        .hello-credits svg {
            width: 16px;
            height: 16px;
            color: var(--accent);
            flex-shrink: 0;
        }

        .hello-credits-value {
            font-size: 12px;
            font-weight: 600;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            min-width: 0;
        }

        .hello-credits-value b {
            font-size: 16px;
            font-weight: 800;
            color: var(--gray-900);
        }

        /* ---- Kredit sheet: balance card + package rows ---- */
        .cp-balance {
            background: var(--nav-color);
            color: #fff;
            border-radius: 20px;
            padding: 18px 20px 16px;
            margin-bottom: 16px;
        }

        .cp-balance-top {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
        }

        .cp-balance-label {
            white-space: nowrap;
            font-size: 12px;
            font-weight: 600;
            opacity: .75;
            text-transform: uppercase;
            letter-spacing: .06em;
        }

        .cp-balance-expiry {
            min-width: 0;
            display: inline-flex;
            align-items: center;
            gap: 5px;
            font-size: 11px;
            font-weight: 600;
            padding: 4px 9px;
            border-radius: 999px;
            background: rgba(255, 255, 255, 0.12);
            white-space: nowrap;
        }

        .cp-balance-expiry svg {
            width: 13px;
            height: 13px;
            flex-shrink: 0;
        }

        .cp-balance-value {
            font-size: 44px;
            font-weight: 800;
            line-height: 1;
            margin-top: 10px;
            display: flex;
            align-items: baseline;
            gap: 8px;
        }

        .cp-balance-value span {
            font-size: 15px;
            font-weight: 600;
            opacity: .8;
        }

        .cp-balance-bar {
            height: 6px;
            border-radius: 999px;
            background: rgba(255, 255, 255, 0.18);
            overflow: hidden;
            margin-top: 16px;
        }

        .cp-balance-bar span {
            display: block;
            height: 100%;
            border-radius: inherit;
            background: #FDE68A;
        }

        .cp-balance-foot {
            font-size: 12px;
            opacity: .75;
            margin-top: 8px;
        }

        .cp-section-title {
            font-size: 13px;
            font-weight: 700;
            color: var(--gray-500);
            text-transform: uppercase;
            letter-spacing: .05em;
            margin: 20px 4px 10px;
        }

        .cp-pack {
            background: #fff;
            border: 1px solid var(--gray-100);
            border-radius: 18px;
            padding: 14px 16px;
            margin-bottom: 10px;
        }

        .cp-pack-top {
            display: flex;
            align-items: baseline;
            justify-content: space-between;
            gap: 10px;
        }

        .cp-pack-name {
            font-size: 15px;
            font-weight: 700;
            color: var(--gray-900);
            min-width: 0;
        }

        .cp-pack-left {
            font-size: 13px;
            color: var(--gray-500);
            white-space: nowrap;
        }

        .cp-pack-left strong {
            font-size: 18px;
            font-weight: 800;
            color: var(--gray-900);
        }

        .cp-pack-meta {
            font-size: 12px;
            color: var(--gray-500);
            margin-top: 2px;
        }

        .cp-pack .cp-progress {
            margin-top: 10px;
            height: 5px;
        }

        .cp-pack.is-empty {
            opacity: .6;
        }

        .cp-pack.is-empty .cp-progress span {
            background: var(--gray-300);
        }

        .cp-note {
            display: flex;
            align-items: flex-start;
            gap: 8px;
            margin-top: 16px;
            padding: 12px 14px;
            border-radius: 14px;
            background: var(--gray-100);
            font-size: 12px;
            color: var(--gray-600);
            line-height: 1.5;
        }

        .cp-note svg {
            width: 15px;
            height: 15px;
            flex-shrink: 0;
            margin-top: 1px;
            color: var(--gray-500);
        }

        /* ---- Logout confirmation ---- */
        #logout-confirm.modal-overlay {
            padding: 20px;
        }

        .logout-confirm-card {
            max-width: 340px;
            padding: 28px 24px 22px;
            text-align: center;
            border-radius: 24px;
            transform: scale(.94) translateY(12px);
        }

        .logout-confirm-icon {
            width: 60px;
            height: 60px;
            margin: 0 auto 16px;
            border-radius: 50%;
            background: var(--danger-light);
            color: var(--danger);
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .logout-confirm-icon svg {
            width: 26px;
            height: 26px;
        }

        .logout-confirm-title {
            font-size: 18px;
            font-weight: 800;
            color: var(--gray-900);
            margin: 0 0 6px;
        }

        .logout-confirm-text {
            font-size: 14px;
            line-height: 1.5;
            color: var(--gray-500);
            margin: 0 0 22px;
        }

        .logout-confirm-actions {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 10px;
        }

        .logout-confirm-actions .btn-secondary,
        .logout-confirm-actions .btn-primary {
            height: 46px;
            width: 100%;
            border-radius: 14px;
            font-weight: 700;
        }

        .logout-confirm-ok {
            background: var(--danger) !important;
        }

        /* ---- Tim sheet ---- */
        .cp-balance-stats {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            margin-top: 16px;
            padding-top: 14px;
            border-top: 1px solid rgba(255, 255, 255, 0.14);
        }

        .cp-balance-stats div {
            display: flex;
            flex-direction: column;
            gap: 2px;
            padding: 0 4px;
        }

        .cp-balance-stats div + div {
            border-left: 1px solid rgba(255, 255, 255, 0.14);
            padding-left: 14px;
        }

        .cp-balance-stats strong {
            font-size: 20px;
            font-weight: 800;
            line-height: 1.1;
        }

        .cp-balance-stats span {
            font-size: 11px;
            font-weight: 600;
            opacity: .7;
            white-space: nowrap;
        }

        .cp-invite-box {
            background: #fff;
            border: 1px solid var(--gray-100);
            border-radius: 20px;
            padding: 14px;
            box-shadow: 0 1px 2px rgba(17, 24, 39, 0.04);
        }

        .cp-invite-label {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 14px;
            font-weight: 800;
            color: var(--gray-900);
            margin-bottom: 10px;
        }

        .cp-invite-label svg {
            width: 18px;
            height: 18px;
            color: var(--nav-color);
        }

        .cp-invite-hint {
            margin-top: 8px;
        }

        .cp-section-title .cp-count {
            margin-left: 6px;
            min-width: 22px;
            height: 20px;
            font-size: 11px;
            vertical-align: middle;
            background: var(--gray-200);
        }

        .cp-member-card {
            padding: 14px;
            margin-bottom: 10px;
        }

        .cp-member-card .cp-allow {
            background: var(--gray-50);
        }

        .cp-empty-row {
            display: flex;
            align-items: center;
            gap: 14px;
        }

        .cp-empty-row-icon {
            width: 44px;
            height: 44px;
            flex-shrink: 0;
            border-radius: 14px;
            background: var(--gray-100);
            color: var(--gray-400);
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .cp-empty-row-icon svg {
            width: 22px;
            height: 22px;
        }

        .cp-empty-row .cp-empty-title {
            margin-bottom: 2px;
        }

        /* ---- Allowance: member-card summary ---- */
        .cp-allow-summary {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
        }

        .cp-allow-value {
            font-size: 22px;
            font-weight: 800;
            color: var(--gray-900);
            line-height: 1.15;
            margin-top: 2px;
        }

        .cp-allow-value span,
        .cp-allow-big span {
            font-size: 13px;
            font-weight: 600;
            color: var(--gray-500);
            margin-left: 6px;
        }

        .cp-allow-summary .cp-btn {
            height: 40px;
        }

        /* ---- Warnings (credit allowance above the company balance) ---- */
        .cp-warn,
        .cp-warn-inline {
            display: flex;
            align-items: flex-start;
            gap: 10px;
            background: var(--warning-light);
            color: var(--status-pending-text);
            border: 1px solid #FDE68A;
            border-radius: 14px;
            font-size: 12px;
            line-height: 1.45;
        }

        .cp-warn {
            padding: 12px 14px;
            margin-bottom: 12px;
        }

        .cp-warn strong {
            display: block;
            font-size: 13px;
            margin-bottom: 2px;
        }

        .cp-warn svg,
        .cp-warn-inline svg {
            width: 16px;
            height: 16px;
            flex-shrink: 0;
            margin-top: 1px;
        }

        .cp-warn-inline {
            align-items: center;
            margin-top: 10px;
            padding: 8px 10px;
            font-weight: 600;
        }

        .cp-warn-flat {
            margin: 12px 0 0;
        }

        /* ---- Allowance screen ---- */
        .cp-allow-big {
            font-size: 40px;
            font-weight: 800;
            line-height: 1;
            color: var(--nav-color);
            margin-top: 16px;
        }

        .cp-allow-big-label {
            font-size: 12px;
            font-weight: 600;
            color: var(--gray-500);
            margin-top: 4px;
        }

        .cp-allow-status {
            margin-top: 12px;
            padding: 10px 12px;
            border-radius: 12px;
            background: var(--gray-50);
            font-size: 12px;
            line-height: 1.45;
            color: var(--gray-600);
        }

        .cp-switch-card {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
        }

        .cp-seg {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 4px;
            padding: 4px;
            border-radius: 14px;
            background: var(--gray-100);
        }

        .cp-seg button {
            height: 40px;
            border: none;
            border-radius: 11px;
            background: transparent;
            font: inherit;
            font-size: 14px;
            font-weight: 700;
            color: var(--gray-500);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            cursor: pointer;
            transition: background .2s ease, color .2s ease, box-shadow .2s ease;
        }

        .cp-seg button svg {
            width: 16px;
            height: 16px;
        }

        .cp-seg button.is-on {
            background: #fff;
            color: var(--nav-color);
            box-shadow: 0 1px 3px rgba(17, 24, 39, 0.12);
        }

        .cp-seg button:disabled {
            opacity: .4;
            cursor: not-allowed;
        }

        .cp-amounts {
            display: grid;
            grid-template-columns: repeat(5, 1fr);
            gap: 8px;
            margin-top: 14px;
        }

        .cp-amount {
            height: 42px;
            border: 1.5px solid var(--gray-200);
            border-radius: 12px;
            background: #fff;
            font: inherit;
            font-size: 15px;
            font-weight: 700;
            color: var(--gray-700);
            cursor: pointer;
            transition: border-color .2s ease, background .2s ease, color .2s ease;
        }

        .cp-amount.is-on {
            border-color: var(--nav-color);
            background: color-mix(in srgb, var(--nav-color) 10%, white);
            color: var(--nav-color);
        }

        .cp-stepper {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            margin-top: 14px;
            padding: 6px;
            border-radius: 16px;
            background: var(--gray-50);
        }

        .cp-stepper button {
            width: 48px;
            height: 48px;
            border: none;
            border-radius: 13px;
            background: #fff;
            color: var(--gray-800);
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            box-shadow: 0 1px 3px rgba(17, 24, 39, 0.1);
            transition: transform .15s ease, opacity .2s ease;
        }

        .cp-stepper button:active {
            transform: scale(.94);
        }

        .cp-stepper button:disabled {
            opacity: .35;
            cursor: not-allowed;
        }

        .cp-stepper button svg {
            width: 20px;
            height: 20px;
        }

        .cp-stepper-value {
            display: flex;
            align-items: baseline;
            gap: 6px;
        }

        .cp-stepper-value strong {
            font-size: 28px;
            font-weight: 800;
            color: var(--gray-900);
        }

        .cp-stepper-value span {
            font-size: 13px;
            font-weight: 600;
            color: var(--gray-500);
        }

        .cp-allow-preview {
            text-align: center;
            font-size: 13px;
            color: var(--gray-500);
            margin: 14px 0 12px;
        }

        .cp-allow-preview strong {
            color: var(--gray-900);
        }

        /* ---- History ---- */
        .cp-hist-row {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 11px 0;
            border-bottom: 1px solid var(--gray-100);
        }

        .cp-hist-row:first-child {
            padding-top: 0;
        }

        .cp-hist-row:last-child {
            border-bottom: none;
            padding-bottom: 0;
        }

        .cp-hist-icon {
            width: 36px;
            height: 36px;
            flex-shrink: 0;
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: var(--gray-100);
            color: var(--gray-500);
        }

        .cp-hist-icon svg {
            width: 18px;
            height: 18px;
        }

        .cp-hist-icon.up {
            background: var(--status-completed-bg);
            color: var(--status-completed-text);
        }

        .cp-hist-icon.down {
            background: var(--status-pending-bg);
            color: var(--status-pending-text);
        }

        .cp-hist-plus {
            color: #166534;
            font-size: 15px;
            font-weight: 800;
        }

        .cp-hist-minus {
            color: #b45309;
            font-size: 15px;
            font-weight: 800;
        }

        .cp-hist-row .cp-name {
            white-space: normal;
            overflow: visible;
            text-overflow: clip;
            line-height: 1.3;
        }

        /* History stats: `.corp-only` reverts to the UA display (block), which would drop the card's flex sizing */
        body.is-corporate .history-stat-card.corp-only {
            display: block !important;
            flex: 1;
        }

.cp-section-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cp-section-row .cp-count { margin-left: 4px; }
.cp-invite-open { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; font-size: 13px; text-transform: none; letter-spacing: 0; }
.cp-invite-open svg { width: 16px; height: 16px; }
.cp-modal { position: fixed; inset: 0; z-index: 100300; background: rgba(0,0,0,.5); display: flex; align-items: center; justify-content: center; padding: 20px; }
.cp-modal-card { background: #fff; border-radius: 20px; width: 100%; max-width: 380px; padding: 20px; }
.cp-modal-head { display: flex; justify-content: space-between; align-items: center; font-size: 17px; margin-bottom: 14px; }
.cp-modal-x { width: 34px; height: 34px; border: 0; border-radius: 10px; background: var(--gray-100); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.cp-modal-x svg { width: 18px; height: 18px; }
.cp-modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }

.mc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.mc-tile { background: var(--gray-50); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; min-width: 0; }
.mc-label { font-size: 11px; font-weight: 600; color: var(--gray-500); line-height: 1.25; min-height: 28px; }
.mc-value { font-size: 22px; font-weight: 800; color: var(--gray-900); line-height: 1.15; margin-top: 2px; }
.mc-value span { font-size: 12px; font-weight: 500; color: var(--gray-500); margin-left: 4px; }
.mc-note { font-size: 11px; color: var(--gray-500); margin: 4px 0 10px; line-height: 1.3; flex: 1; }
.mc-warn { color: #b45309; font-weight: 600; }
.mc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; width: 100%; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--gray-300); background: #fff; color: var(--gray-800); font-size: 13px; font-weight: 600; cursor: pointer; }
.mc-btn svg { width: 15px; height: 15px; }
.mc-btn-main { background: var(--primary); border-color: var(--primary); color: #fff; }
.cp-member-card .cp-member-foot { margin-top: 10px; }
.cp-member-card .cp-link-danger { font-size: 12px; opacity: .8; }
.mc-btn { white-space: nowrap; }
.cp-tu-grid { grid-template-columns: minmax(0, 1.3fr) repeat(4, minmax(44px, .8fr)); }
.cp-tu-head { font-size: 10px; font-weight: 600; color: var(--gray-500); text-transform: none; letter-spacing: 0; }
.cp-tu-grid { grid-template-columns: minmax(70px, 1.4fr) repeat(4, minmax(34px, auto)); gap: 10px; }
.cp-tu-head { font-size: 9.5px; }
.cp-section-row .cp-invite-open { min-height: 0; height: 34px; padding: 0 14px; border-radius: 12px; }
.mc-sum { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; text-align: center; }
.mc-sum div { background: var(--gray-50); border-radius: 12px; padding: 10px 4px; }
.mc-sum strong { display: block; font-size: 18px; color: var(--gray-900); }
.mc-sum span { font-size: 11px; color: var(--gray-500); }

.mc-icon-btn { width: 32px; height: 32px; border: 0; border-radius: 10px; background: transparent; color: var(--gray-400); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex: none; }
.mc-icon-btn:hover, .mc-icon-btn:active { background: #fef2f2; color: #dc2626; }
.mc-icon-btn svg { width: 17px; height: 17px; }
.mc-rows { margin-top: 12px; border-top: 1px solid var(--gray-100); }
.mc-line { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 12px 0; }
.mc-line + .mc-line { border-top: 1px solid var(--gray-100); }
.mc-line-title { font-size: 13px; font-weight: 600; color: var(--gray-800); }
.mc-line-sub { font-size: 11px; color: var(--gray-500); margin-top: 2px; }
.mc-line-val { font-size: 18px; font-weight: 800; color: var(--gray-900); text-align: right; white-space: nowrap; }
.mc-line-val span { font-size: 11px; font-weight: 500; color: var(--gray-500); margin-left: 3px; }
.mc-pill { min-width: 68px; height: 32px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--gray-300); background: #fff; color: var(--gray-800); font-size: 12.5px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.mc-pill-main { background: var(--primary); border-color: var(--primary); color: #fff; }
.cp-confirm-msg { font-size: 14px; line-height: 1.45; }
.cp-btn-danger { background: #dc2626; border-color: #dc2626; color: #fff; }
.mc-chip { margin-left: 4px; padding: 1px 7px; font-size: 10px; vertical-align: 1px; }
.mc-icon-btn { background: #fee2e2; color: #dc2626; }
.mc-icon-btn:hover, .mc-icon-btn:active { background: #fecaca; color: #b91c1c; }
.mc-sum-sm { margin-top: 12px; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); }
.mc-sum-sm div { padding: 8px 4px; }
.mc-sum-sm strong { font-size: 16px; }
.mc-sum-sm span { font-size: 10.5px; }
.cp-flow { background: var(--gray-50); border-radius: 14px; padding: 4px 14px; margin: 14px 0; }
.cp-flow-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; font-size: 13px; color: var(--gray-600); }
.cp-flow-row + .cp-flow-row { border-top: 1px solid var(--gray-200); }
.cp-flow-val { display: inline-flex; align-items: center; gap: 8px; color: var(--gray-500); white-space: nowrap; }
.cp-flow-val i { font-style: normal; color: var(--gray-400); }
.cp-flow-val strong { font-size: 16px; color: var(--gray-900); }
.mc-held { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.mc-held .cp-allow-big-label { text-align: right; margin: 0 0 6px; max-width: 45%; }

/* Top-up screen: per-plan pickers */
.tp-plans { display: grid; gap: 10px; margin-top: 8px; }
.tp-plan { border: 1.5px solid var(--gray-200); border-radius: 16px; padding: 12px 14px; background: #fff; transition: border-color .15s, background .15s; }
.tp-plan.is-on { border-color: var(--primary); background: var(--primary-light); }
.tp-plan-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.tp-plan-name { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tp-plan-name strong { font-size: 14px; color: var(--gray-900); }
.tp-max { border: 0; background: transparent; color: var(--primary); font-size: 12px; font-weight: 700; padding: 4px 8px; border-radius: 8px; cursor: pointer; }
.tp-max:disabled { color: var(--gray-400); cursor: default; }
.tp-plan-ctl { display: grid; grid-template-columns: 34px 54px 34px minmax(0, 1fr); gap: 8px; align-items: center; margin-top: 10px; }
.tp-step { width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--gray-300); background: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: var(--gray-800); padding: 0; }
.tp-step:disabled { opacity: .4; cursor: default; }
.tp-step svg { width: 16px; height: 16px; }
.tp-num { width: 100%; height: 34px; text-align: center; font-size: 16px; font-weight: 800; border: 1px solid var(--gray-300); border-radius: 10px; background: #fff; color: var(--gray-900); -moz-appearance: textfield; padding: 0; }
.tp-num::-webkit-outer-spin-button, .tp-num::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.tp-range { width: 100%; accent-color: var(--primary); margin: 0; }

/* Member detail (Kredit & riwayat) */
.mc-detail-link { display: flex; align-items: center; gap: 8px; width: 100%; margin-top: 4px; padding: 11px 2px 2px; border: 0; border-top: 1px solid var(--gray-100); background: none; color: var(--primary); font-size: 13px; font-weight: 700; cursor: pointer; text-align: left; }
.mc-detail-link span { flex: 1; }
.mc-detail-link svg { width: 16px; height: 16px; }
.mh-since { display: flex; gap: 8px; align-items: flex-start; margin: 10px 2px 2px; padding: 10px 12px; border-radius: 12px; background: var(--gray-50); color: var(--gray-600); font-size: 12px; line-height: 1.4; }
.mh-since svg { width: 15px; height: 15px; flex: none; margin-top: 1px; color: var(--primary); }
.mh-items { font-size: 12px; color: var(--gray-700); margin: 2px 0 1px; overflow-wrap: anywhere; }
.mh-void { color: var(--gray-400); text-decoration: line-through; }
.mh-more { margin-top: 8px; background: #fff; border: 1px solid var(--gray-300); color: var(--gray-800); }
.cp-balance-extra { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding: 8px 12px; border-radius: 12px; background: rgba(255,255,255,.14); font-size: 13px; color: #fff; }
.cp-balance-extra svg { width: 16px; height: 16px; flex: none; }
.cp-company-allow { gap: 12px; }
.cp-company-allow strong { white-space: nowrap; }
.cp-member-foot { flex-wrap: wrap; gap: 10px; }
.cp-pick, .cp-pick *, .mc-pill, .mc-max, .tp-max, .tp-num, .tp-step, .cp-amount, .cp-plan, .cp-btn, .cc-info-btn { font-family: inherit; }
.cp-pick.is-on { background: var(--primary-light); }
.cp-pick.is-on .cp-avatar { background: #fff; }

/* Corporate account whose credit ran out: menu is browsable only */
.browse-only-note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: #fffbeb; border: 1px solid #fde68a; color: #78350f; font-size: 13px; line-height: 1.4; }
.browse-only-note svg { width: 18px; height: 18px; flex: none; margin-top: 1px; color: #d97706; }
.product-card.is-browse-only { cursor: default; }
.product-card.is-browse-only .product-info { padding-bottom: 12px; }
