{
  "version": "2.6",
  "children": [
    {
      "type": "frame",
      "id": "PaymentPartialScreen",
      "name": "Payment/Partial",
      "reusable": true,
      "width": 480,
      "height": 800,
      "fill": "$bg-page",
      "layout": "vertical",
      "clip": true,
      "children": [
        {
          "type": "frame",
          "id": "PartialHeader",
          "width": "fill_container",
          "padding": [20, 24],
          "fill": "$bg-elevated",
          "stroke": {"thickness": 1, "fill": "$border-subtle", "sides": ["bottom"]},
          "justifyContent": "space_between",
          "alignItems": "center",
          "children": [
            {"type": "frame", "id": "PartialHeaderLeft", "gap": 12, "alignItems": "center", "children": [
              {"type": "frame", "id": "PartialBackBtn", "width": 40, "height": 40, "fill": "$bg-interactive", "cornerRadius": 10, "justifyContent": "center", "alignItems": "center", "children": [
                {"type": "icon_font", "id": "PartialBackIcon", "width": 20, "height": 20, "iconFontName": "arrow-left", "iconFontFamily": "lucide", "fill": "$text-secondary"}
              ]},
              {"type": "text", "id": "PartialTitle", "fill": "$text-primary", "content": "Thanh toán nhiều phương thức", "fontFamily": "Roboto", "fontSize": 17, "fontWeight": "700"}
            ]}
          ]
        },
        {
          "type": "frame",
          "id": "PartialContent",
          "width": "fill_container",
          "height": "fill_container",
          "padding": 24,
          "layout": "vertical",
          "gap": 20,
          "children": [
            {"type": "frame", "id": "PartialTotalSection", "width": "fill_container", "fill": "$bg-elevated", "cornerRadius": 16, "padding": 20, "layout": "vertical", "gap": 16, "children": [
              {"type": "frame", "id": "PartialTotalRow", "width": "fill_container", "justifyContent": "space_between", "alignItems": "center", "children": [
                {"type": "text", "id": "PartialTotalLabel", "fill": "$text-secondary", "content": "Tổng hóa đơn", "fontFamily": "Roboto", "fontSize": 14, "fontWeight": "normal"},
                {"type": "text", "id": "PartialTotalValue", "fill": "$text-primary", "content": "530,250₫", "fontFamily": "Roboto", "fontSize": 20, "fontWeight": "700"}
              ]},
              {"type": "frame", "id": "PartialProgressBar", "width": "fill_container", "height": 8, "fill": "$bg-interactive", "cornerRadius": 4, "children": [
                {"type": "frame", "id": "PartialProgressFill", "width": 280, "height": 8, "fill": {"type": "gradient", "gradientType": "linear", "enabled": true, "rotation": 90, "size": {"height": 1}, "colors": [{"color": "#22C55E", "position": 0}, {"color": "#16A34A", "position": 1}]}, "cornerRadius": 4}
              ]},
              {"type": "frame", "id": "PartialProgressText", "width": "fill_container", "justifyContent": "space_between", "alignItems": "center", "children": [
                {"type": "text", "id": "PartialPaidLabel", "fill": "#22C55E", "content": "Đã thanh toán: 300,000₫", "fontFamily": "Roboto", "fontSize": 13, "fontWeight": "600"},
                {"type": "text", "id": "PartialRemainingLabel", "fill": "$orange-primary", "content": "Còn lại: 230,250₫", "fontFamily": "Roboto", "fontSize": 13, "fontWeight": "600"}
              ]}
            ]},
            {"type": "frame", "id": "PartialMethodsSection", "width": "fill_container", "layout": "vertical", "gap": 12, "children": [
              {"type": "text", "id": "PartialMethodsLabel", "fill": "$text-secondary", "content": "Các khoản đã thanh toán", "fontFamily": "Roboto", "fontSize": 14, "fontWeight": "500"},
              {"type": "frame", "id": "PartialMethod1", "width": "fill_container", "fill": "$bg-elevated", "cornerRadius": 12, "padding": [14, 16], "justifyContent": "space_between", "alignItems": "center", "children": [
                {"type": "frame", "id": "PartialMethod1Left", "gap": 12, "alignItems": "center", "children": [
                  {"type": "frame", "id": "PartialMethod1Icon", "width": 40, "height": 40, "fill": "#22C55E20", "cornerRadius": 10, "justifyContent": "center", "alignItems": "center", "children": [
                    {"type": "icon_font", "id": "PartialMethod1IconInner", "width": 20, "height": 20, "iconFontName": "banknote", "iconFontFamily": "lucide", "fill": "#22C55E"}
                  ]},
                  {"type": "frame", "id": "PartialMethod1Info", "layout": "vertical", "gap": 2, "children": [
                    {"type": "text", "id": "PartialMethod1Name", "fill": "$text-primary", "content": "Tiền mặt", "fontFamily": "Roboto", "fontSize": 14, "fontWeight": "600"},
                    {"type": "text", "id": "PartialMethod1Time", "fill": "$text-tertiary", "content": "19:25:30", "fontFamily": "Roboto", "fontSize": 12, "fontWeight": "normal"}
                  ]}
                ]},
                {"type": "frame", "id": "PartialMethod1Right", "gap": 8, "alignItems": "center", "children": [
                  {"type": "text", "id": "PartialMethod1Value", "fill": "#22C55E", "content": "300,000₫", "fontFamily": "Roboto", "fontSize": 15, "fontWeight": "700"},
                  {"type": "icon_font", "id": "PartialMethod1Check", "width": 18, "height": 18, "iconFontName": "check-circle", "iconFontFamily": "lucide", "fill": "#22C55E"}
                ]}
              ]}
            ]},
            {"type": "frame", "id": "PartialAddSection", "width": "fill_container", "layout": "vertical", "gap": 12, "children": [
              {"type": "text", "id": "PartialAddLabel", "fill": "$text-secondary", "content": "Thêm phương thức cho 230,250₫ còn lại", "fontFamily": "Roboto", "fontSize": 14, "fontWeight": "500"},
              {"type": "frame", "id": "PartialAddRow", "width": "fill_container", "gap": 10, "children": [
                {"type": "frame", "id": "PartialAddCash", "width": "fill_container", "height": 72, "fill": "$bg-elevated", "cornerRadius": 12, "layout": "vertical", "gap": 6, "justifyContent": "center", "alignItems": "center", "children": [
                  {"type": "icon_font", "id": "PartialAddCashIcon", "width": 24, "height": 24, "iconFontName": "banknote", "iconFontFamily": "lucide", "fill": "#22C55E"},
                  {"type": "text", "id": "PartialAddCashText", "fill": "$text-primary", "content": "Tiền mặt", "fontFamily": "Roboto", "fontSize": 13, "fontWeight": "500"}
                ]},
                {"type": "frame", "id": "PartialAddCard", "width": "fill_container", "height": 72, "fill": "$bg-elevated", "cornerRadius": 12, "layout": "vertical", "gap": 6, "justifyContent": "center", "alignItems": "center", "children": [
                  {"type": "icon_font", "id": "PartialAddCardIcon", "width": 24, "height": 24, "iconFontName": "credit-card", "iconFontFamily": "lucide", "fill": "#3B82F6"},
                  {"type": "text", "id": "PartialAddCardText", "fill": "$text-primary", "content": "Thẻ", "fontFamily": "Roboto", "fontSize": 13, "fontWeight": "500"}
                ]},
                {"type": "frame", "id": "PartialAddQR", "width": "fill_container", "height": 72, "fill": "$bg-elevated", "cornerRadius": 12, "stroke": {"thickness": 2, "fill": "$orange-primary"}, "layout": "vertical", "gap": 6, "justifyContent": "center", "alignItems": "center", "children": [
                  {"type": "icon_font", "id": "PartialAddQRIcon", "width": 24, "height": 24, "iconFontName": "qr-code", "iconFontFamily": "lucide", "fill": "$orange-primary"},
                  {"type": "text", "id": "PartialAddQRText", "fill": "$text-primary", "content": "VietQR", "fontFamily": "Roboto", "fontSize": 13, "fontWeight": "500"}
                ]}
              ]}
            ]},
            {"type": "frame", "id": "PartialAmountSection", "width": "fill_container", "layout": "vertical", "gap": 8, "children": [
              {"type": "text", "id": "PartialAmountLabel", "fill": "$text-secondary", "content": "Số tiền thanh toán", "fontFamily": "Roboto", "fontSize": 14, "fontWeight": "500"},
              {"type": "frame", "id": "PartialAmountInput", "width": "fill_container", "height": 56, "fill": "$bg-elevated", "cornerRadius": 12, "stroke": {"thickness": 2, "fill": "$orange-primary"}, "padding": [0, 16], "justifyContent": "space_between", "alignItems": "center", "children": [
                {"type": "text", "id": "PartialAmountValue", "fill": "$text-primary", "content": "230,250", "fontFamily": "Roboto", "fontSize": 24, "fontWeight": "700"},
                {"type": "text", "id": "PartialAmountCurrency", "fill": "$text-tertiary", "content": "₫", "fontFamily": "Roboto", "fontSize": 20, "fontWeight": "500"}
              ]}
            ]}
          ]
        },
        {
          "type": "frame",
          "id": "PartialFooter",
          "width": "fill_container",
          "fill": "$bg-elevated",
          "padding": [16, 24],
          "stroke": {"thickness": 1, "fill": "$border-subtle", "sides": ["top"]},
          "gap": 12,
          "children": [
            {"type": "frame", "id": "PartialPayBtn", "width": "fill_container", "height": 52, "fill": {
              "type": "gradient", "gradientType": "linear", "enabled": true, "rotation": 135, "size": {"height": 1}, 
              "colors": [{"color": "#FF5C00", "position": 0}, {"color": "#E64D00", "position": 1}]
            }, "cornerRadius": 12, "gap": 10, "justifyContent": "center", "alignItems": "center", "children": [
              {"type": "icon_font", "id": "PartialPayIcon", "width": 20, "height": 20, "iconFontName": "plus", "iconFontFamily": "lucide", "fill": "$text-primary"},
              {"type": "text", "id": "PartialPayText", "fill": "$text-primary", "content": "Thanh toán 230,250₫", "fontFamily": "Roboto", "fontSize": 15, "fontWeight": "600"}
            ]},
            {"type": "frame", "id": "PartialCancelBtn", "width": "fill_container", "height": 48, "fill": "$bg-interactive", "cornerRadius": 12, "justifyContent": "center", "alignItems": "center", "children": [
              {"type": "text", "id": "PartialCancelText", "fill": "$text-secondary", "content": "Hủy giao dịch", "fontFamily": "Roboto", "fontSize": 14, "fontWeight": "500"}
            ]}
          ]
        }
      ]
    }
  ],
  "variables": {
    "bg-elevated": {"type": "color", "value": "#1A1A1D"},
    "bg-interactive": {"type": "color", "value": "#2A2A2E"},
    "bg-page": {"type": "color", "value": "#0A0A0B"},
    "border-default": {"type": "color", "value": "#2A2A2E"},
    "border-subtle": {"type": "color", "value": "#1F1F23"},
    "orange-primary": {"type": "color", "value": "#FF5C00"},
    "text-primary": {"type": "color", "value": "#FFFFFF"},
    "text-secondary": {"type": "color", "value": "#ADADB0"},
    "text-tertiary": {"type": "color", "value": "#8B8B90"}
  }
}
